.reveal .slides section {
  text-align: left;
}

.reveal .slides section h1,
.reveal .slides section h2,
.reveal .slides section h3 {
  text-align: center;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.reveal input,
.reveal button,
.reveal select,
.reveal textarea,
.reveal label,
.reveal summary {
  touch-action: manipulation;
}

.reveal input[type="range"] {
  touch-action: pan-x;
}

.reveal {
  font-size: 24px;
  color: #3f3f3f;
}

.reveal,
.reveal .slides,
.reveal .slide-background,
.reveal .slide-background-content {
  background: rgb(247, 247, 247);
}

.reveal h1 {
  font-size: 1.8em;
}

.reveal h2 {
  font-size: 1.4em;
}

.reveal h3 {
  font-size: 1.15em;
}

.back-link-row {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 12px;
}

.back-link {
  display: inline-block;
  margin: 6px auto 0;
  font-size: 0.95em;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  text-decoration: none;
}

.formula-line {
  margin: 20px auto 12px;
  text-align: center;
}

.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 12px auto 16px;
}

.slide-btn {
  display: block;
  margin: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 0 #1b4c61;
  background: #2e6f8e;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.slide-btn:hover {
  background: #3a7f9f;
}

.slide-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #1b4c61;
}

.sample-output {
  width: min(920px, 94%);
  margin: 12px auto 0;
  min-height: 48px;
  text-align: center;
  overflow-wrap: anywhere;
}

.formula-output {
  width: min(940px, 96%);
  margin: 12px auto 0;
  min-height: 36px;
  text-align: center;
  overflow-wrap: anywhere;
}

.interval-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: min(980px, 96%);
  margin: 12px auto 0;
}

.interval-output {
  width: auto;
  margin: 0;
}

.interval-status {
  min-width: 28px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: 700;
}

.interval-status.is-success {
  color: #1f9d55;
}

.interval-status.is-failure {
  color: #c10000;
}

.formula-output-compact {
  font-size: 0.95em;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 14px;
  width: min(620px, 90%);
}

.slider-row input[type="range"] {
  flex: 1 1 auto;
  max-width: 360px;
  accent-color: #2e6f8e;
}

.slider-value {
  display: inline-block;
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
