/*********************************************
 * GLOBAL STYLES
 *********************************************/
/* Import shared stylesheets */
@import url('colors.css');
@import url('fonts.css');


/*********************************************
 * REVEAL.js
 *********************************************/

.reveal-viewport {
  background: #191919;
  background-color: var(--fs-background-color);
}

.reveal {
  font-family: var(--fs-main-font);
  font-size: var(--fs-main-font-size);
  font-weight: normal;
  color: var(--fs-text-color);
}

.reveal ::selection {
  color: var(--fs-selection-color);
  background: var(--fs-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--fs-selection-color);
  background: var(--fs-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
  text-align: left;
  line-height: 1.3;
}

/*********************************************
 * Font
 *********************************************/

.reveal strong,
.reveal b {
  font-weight: bold;
}

.reveal em {
  font-style: italic;
}

.reveal dt {
  font-weight: bold;
}

.reveal .small {
  font-size: 0.85em;
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  color: var(--fs-heading-color);
  font-family: var(--fs-heading-font);
  text-transform: none;
  word-wrap: break-word;
  text-align: left;
}

.reveal h1 {
  text-align: center;
  line-height: 1.7em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 2em;
  /* Percentages of the slide width; three title lines still clear the footer */
  margin-block: 14% 5%;
}

.reveal h2 {
  margin: 4px 0 50px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.reveal h3 {
  font-weight: 600;
}

/*********************************************
* LISTS
*********************************************/

.reveal ul,
.reveal ol {
  padding-left: 2em;
  margin: 0;
}

.reveal li {
  margin: 0.5em 0;
}

/*********************************************
 * OTHER
 *********************************************/

/* Remove trailing margins after titles */
.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--fs-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reveal a:hover {
  color: var(--fs-link-color-hover);
  text-shadow: 0 0 10px var(--fs-shadow-color);
  border: none;
}

/*********************************************
 * NAVIGATION CONTROLS
 *********************************************/

.reveal .controls {
  display: none !important;
}

/*********************************************
 * PROGRESS BAR
 *********************************************/
.reveal .progress {
  color: var(--fs-navigation-color);
  height: 8px;
}

/*********************************************
 * PRINT BACKGROUND
 *********************************************/
@media print {
  .backgrounds {
    background-color: var(--fs-background-color);
  }

  body {
      counter-reset: page-counter;
  }
  
  .pdf-page {
      counter-increment: page-counter;
      page-break-after: always;
  }

  .pdf-page::before {
      content: counter(page-counter);
      position: absolute;
      left: 47.5%;
      bottom: 39px;
      color: var(--fs-text-subtle-color);
      font-weight: 400;
      width: 40px;
      text-align: right;
      white-space: nowrap;
      font-size: 30px;
      font-size: 0.65em;
      letter-spacing: -0.02em;
      z-index: 1000;
  }

  .slide-footer {
    position: fixed !important;
    height: 80px !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .footer-content {
    font-size: 30px !important;
    padding: 0 24px 30px 24px !important;
  }

  .footer-left,
  .footer-right {
    gap: 18px !important;
  }

  .slide-counter {
    margin: 0 18px !important;
  }

  .slide-header,
  .header-logo-box {
    position: fixed !important;
    top: -10px !important;
    padding: 15px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    margin-right: 20px !important;
  }

  .header-logo {
    height: 50px !important;
  }
}

/*********************************************
 * SLIDE HEADER AND FOOTER
 *********************************************/

.header-logo-box {
  position: absolute;
  /* Above the chapter overview too, so its buttons stay at hand there */
  z-index: 2001;
  right: 0;
  top: -0.5vw;
  display: flex;
  align-items: center;
  gap: min(0.8vw, 1.4vh);
  padding: min(0.8vw, 1.4vh);
  background: var(--fs-header-bg);
  backdrop-filter: blur(0.26vw);
  border-radius: 0.2vw;
  margin-right: min(2vw, 3vh);
  border: 1px solid var(--fs-border-light);
  box-shadow: 0 0px 1vw var(--fs-shadow-color-light);
}

.header-logo {
  height: min(2.6vw, 4.65vh);
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.header-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(2.6vw, 4.65vh);
  width: min(2.6vw, 4.65vh);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fs-text-color);
  opacity: 0.7;
  cursor: pointer;
}

.header-button:hover {
  opacity: 1;
}

.header-button svg {
  width: 70%;
  height: 70%;
}

/* The overview button shows where it leads: the overview, or back to a slide */
.icon-slide,
.overview-open .icon-overview {
  display: none;
}

.overview-open .icon-slide {
  display: block;
}

.slide-footer {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: min(4.2vw, 6.5vh);
    background: transparent;
    backdrop-filter: blur(0.5vw);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    padding: 0 1.5vw 1.9vw 1.5vw;
    font-size:  min(1.4vw, 2.5vh);
    letter-spacing: -0.02em;
}

.footer-left {
    color: var(--fs-text-muted-color);
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.9vw;
}

.footer-left::after {
    content: '';
    height: 1px;
    background: linear-gradient(to right, transparent, var(--fs-text-muted-color), transparent);
    opacity: 0.6;
    flex: 1;
    margin-left: auto;
}

.slide-counter {
    color: var(--fs-text-subtle-color);
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    margin: 0 0.9vw;
    grid-column: 2;
}

.footer-right {
    color: var(--fs-text-muted-color);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.9vw;
}

.footer-right::before {
    content: '';
    height: 1px;
    background: linear-gradient(to right, transparent, var(--fs-text-muted-color), transparent);
    opacity: 0.6;
    flex: 1;
    margin-right: auto;
}


/* Hide the footer for specific slides; no-chrome also hides the header buttons
   (chapter overview, theme switch), for the ADC title card */
.no-footer .slide-footer,
.no-chrome .slide-footer,
.no-chrome .slide-header {
  display: none;
}

/*********************************************
 * Highlighted Elements
 *********************************************/

 /* Highlighted emphasis */
.highlight {
  background: var(--fs-highlight-background) !important;
  color: var(--fs-highlight-color) !important;
  padding: 35px;
  border-radius: 0.2em;
  margin: 1em 0 1em 0;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 20px var(--fs-shadow-color);
}

.highlight a {
  color: var(--fs-link-color-light);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.tile {
  background: var(--fs-surface);
  border: 2px solid var(--fs-border);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 0px 20px var(--fs-shadow-color-light);
}

.tile h3 {
  font-size: 0.9em;
  color: var(--fs-text-color);
  margin-top: 5px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.tile-description {
  color: var(--fs-text-muted-color);
  height: auto;
  font-size: 0.65em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tile-applications {
  color: var(--fs-text-subtle-color);
  font-size: 0.65em;
  font-style: italic;
  padding-top: 15px;
  border-top: 2px solid var(--fs-border);
}

.applications-label {
  font-weight: 600;
  color: var(--fs-text-muted-color);
  margin-bottom: 5px;
}

.tile.color-0 {
  background: var(--fs-fragment-select-light);
}

.tile.color-1 {
  background: var(--fs-link-color-light);
}

.tile.color-2 {
  background: var(--fs-shadow-color-light);
  color: var(--fs-highlight-color);
}

/*********************************************
 * AGENDA
 *********************************************/

.agenda {
  display: flex;
  align-items: stretch;
  gap: 60px;
  margin: 30px 0;
}

.agenda-part {
  flex: 1;
}

.agenda-part-label {
  color: var(--fs-text-subtle-color);
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reveal .agenda-part h3 {
  margin: 5px 0 20px 0;
}

.reveal .agenda-part ol {
  list-style: none;
  padding-left: 0;
  font-size: 0.75em;
}

.reveal .agenda-part a {
  color: var(--fs-text-color);
}

.reveal .agenda-part a:hover {
  color: var(--fs-link-color-hover);
}

.agenda-number {
  display: inline-block;
  width: 1.5em;
  color: var(--fs-text-subtle-color);
  font-family: var(--fs-code-font);
}

.agenda-break {
  writing-mode: vertical-rl;
  text-align: center;
  padding: 0 15px;
  color: var(--fs-text-subtle-color);
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border-left: 2px solid var(--fs-border);
  border-right: 2px solid var(--fs-border);
}

/*********************************************
 * CHAPTER OVERVIEW
 *********************************************/

.chapter-overview {
  display: none;
  position: fixed;
  inset: 0;
  /* Above the header and footer */
  z-index: 2000;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
  /* Chapters and slides scroll together when they do not fit */
  overflow-y: auto;
  background: var(--fs-background-color);
}

.chapter-overview.open {
  display: flex;
}

.chapter-overview-chapters {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
  /* Room for the outline of the current chapter */
  padding: 6px 6px 12px 6px;
  border-bottom: 1px solid var(--fs-border);
}

.chapter-overview-section {
  flex: none;
}

.chapter-overview-heading {
  flex: none;
  margin: 0 6px 8px 6px;
  font-family: var(--fs-heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--fs-heading-color);
}

.chapter-overview-heading-chapter {
  font-weight: 400;
  color: var(--fs-text-muted-color);
}

.chapter-overview-heading-chapter::before {
  content: " · ";
}

.chapter-overview-part-label {
  margin-bottom: 10px;
  font-family: var(--fs-heading-font);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fs-text-muted-color);
}

/* Every chapter of the part visible at once, in as many rows as it takes */
.chapter-overview-part-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Always visible, macOS hides overlay scrollbars otherwise */
.chapter-overview ::-webkit-scrollbar {
  width: 8px;
}

.chapter-overview ::-webkit-scrollbar-thumb {
  background: var(--fs-border);
  border-radius: 4px;
}

.chapter-overview-chapter {
  --thumb-scale: 0.1;
  flex: none;
  width: 192px;
  cursor: pointer;
}

.chapter-overview-title {
  margin-top: 6px;
  font-family: var(--fs-heading-font);
  font-size: 12px;
  line-height: 1.2;
  color: var(--fs-text-muted-color);
}

.chapter-overview-chapter.selected .chapter-overview-title {
  color: var(--fs-heading-color);
}

.chapter-overview-chapter.selected .chapter-overview-thumb {
  border-color: var(--fs-link-color);
}

.chapter-overview-slides {
  padding: 6px;
}

.chapter-overview-list {
  --thumb-scale: 0.0833;
  display: none;
  flex-wrap: wrap;
  gap: 12px;
}

.chapter-overview-list.selected {
  display: flex;
}

/* The 1920 x 1080 slide at --thumb-scale */
.chapter-overview-thumb {
  position: relative;
  flex: none;
  width: calc(1920px * var(--thumb-scale));
  height: calc(1080px * var(--thumb-scale));
  overflow: hidden;
  cursor: pointer;
  background: var(--fs-background-color);
  border: 1px solid var(--fs-border);
  border-radius: 4px;
}

.chapter-overview-thumb:hover {
  border-color: var(--fs-link-color);
}

.chapter-overview-chapter.current .chapter-overview-thumb,
.chapter-overview-thumb.current {
  outline: 3px solid var(--fs-highlight-background);
  outline-offset: 2px;
}

.reveal .chapter-overview-slide {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  padding: 108px 192px;
  box-sizing: border-box;
  text-align: left;
  line-height: 1.3;
  transform: scale(var(--thumb-scale));
  transform-origin: 0 0;
  pointer-events: none;
}

/*********************************************
 * NEURAL NETWORK DIAGRAMS
 *********************************************/

.nn-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 50px 0 60px 0;
}

.nn-node {
  padding: 24px 40px;
  border: 2px solid var(--fs-border);
  border-radius: 16px;
  background: var(--fs-surface);
  font-family: var(--fs-heading-font);
  font-weight: 600;
  text-align: center;
}

.nn-node small {
  display: block;
  margin-top: 4px;
  font-family: var(--fs-main-font);
  font-size: 0.55em;
  font-weight: normal;
  color: var(--fs-text-muted-color);
}

.nn-node.model {
  border-color: var(--fs-highlight-background);
  background: var(--fs-surface-alt);
}

.nn-node.latent {
  border-style: dashed;
  border-color: var(--fs-highlight-background);
}

.nn-arrow {
  color: var(--fs-text-muted-color);
}

.nn-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 30px;
}

.reveal .nn-compare h3 {
  margin: 0 0 10px 0;
}

.reveal .nn-compare p,
.reveal .nn-compare ul {
  margin: 0 0 10px 0;
  font-size: 0.85em;
}

/* Spectrogram player: in above out, one transport, a crossfader */
.spectro-player {
  position: relative;
  margin: 30px 0 20px 0;
}

.spectro-track {
  position: relative;
  margin-bottom: 14px;
  transition: opacity 0.15s;
}

.spectro-track canvas {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 230px;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  cursor: pointer;
}

.spectro-label {
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--fs-heading-font);
  font-size: 0.55em;
  font-weight: 600;
  pointer-events: none;
}

.spectro-playhead {
  position: absolute;
  top: 0;
  width: 3px;
  height: calc(2 * 232px + 14px);
  background: var(--fs-heading-color);
  pointer-events: none;
}

.spectro-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  font-size: 0.6em;
}

.spectro-play {
  width: 80px;
  height: 56px;
  border: 2px solid var(--fs-border);
  border-radius: 12px;
  background: var(--fs-surface);
  color: var(--fs-text-color);
  font-size: 1em;
  cursor: pointer;
}

.spectro-fader {
  flex: 1;
  accent-color: var(--fs-highlight-background);
}

.audio-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 50px 0;
}

.reveal .audio-demo h3 {
  margin: 0 0 20px 0;
  font-size: 0.8em;
}

.audio-demo audio {
  width: 100%;
}

/* Task diagrams: what goes in, what the exercise does, what checks it */
.task-flow {
  gap: 24px;
  margin: 40px 0;
}

.task-flow .nn-node {
  padding: 22px 30px;
}

.reveal .nn-node code {
  font-size: 0.75em;
}

.nn-node.exercise {
  border-width: 3px;
  border-color: var(--fs-highlight-background);
  background: var(--fs-surface-alt);
}

.nn-node.check {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
}

.nn-node.check::before {
  content: '✓ ';
  color: #4caf50;
}

/* Two paths that meet, e.g. dry and wet */
.nn-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/*********************************************
 * STATEMENTS: a claim per slide, a tag for context, full-colour
 * statement slides at the turning points, cards and checks.
 *********************************************/

:root {
  --statement-bg: #bf85fc;
  --statement-fg: #1b0f2a;
}

/* Context above the claim: where we are, in a small box */
.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 14px;
  border: 2px solid currentColor;
  font-family: var(--fs-main-font);
  font-size: 0.45em;
  line-height: 1.4;
}

/* The claim, and what it leaves open in a quieter second line */
.reveal h2 .then {
  display: block;
  color: var(--fs-text-subtle-color);
}

/* The ADC title card fills the screen at any aspect ratio: the image whole at
   its own 16:9 (contain, never cropped), over a gradient of its top and bottom
   edge colours where the screen is taller. Reveal gives the slide's background
   the slide's class. */
.reveal .backgrounds .slide-background.title-card {
  background: linear-gradient(#49296f, #1a61a9);
}

/* Our title slide: the funder and the partners in a column on the right, top
   to bottom, beside the title block */
.reveal .slides section .title-logos {
  position: absolute;
  right: 40px;
  top: 540px;  /* the middle of the 1080-pixel slide, where the title block sits */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 70px;
}

.reveal .slides section .title-logos .title-logo {
  margin: 0;
  max-width: none;
  max-height: none;
}

.reveal .slides section .title-logos .title-logo.bmftr { height: 190px; }
.reveal .slides section .title-logos .title-logo.tu-berlin { height: 110px; filter: brightness(0); }
.reveal .slides section .title-logos .title-logo.baby-audio { height: 90px; }

/* The partners in black on light, in white on dark */
[data-theme="dark"] .reveal .slides section .title-logos .title-logo.tu-berlin { filter: brightness(0) invert(1); }
[data-theme="dark"] .reveal .slides section .title-logos .title-logo.baby-audio { filter: invert(1); }

/* Statement slides: full colour, one sentence, three points */
.reveal .slides section.statement {
  height: 100%;
  color: var(--statement-fg);
}

.reveal .slides section.statement h2 {
  color: var(--statement-fg);
  font-size: 2.3em;
  line-height: 1.08;
  margin-top: 40px;
}

.reveal .slides section.statement .tag {
  margin-top: 20px;
}

.reveal .slides section.statement .then {
  color: var(--statement-fg);
  opacity: 0.6;
}

.statement .slide-footer,
.statement .slide-footer .footer-left,
.statement .slide-footer .footer-right,
.statement .slide-footer .slide-counter {
  color: var(--statement-fg);
}

.statement-points {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 110px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.statement-points > div {
  padding-top: 18px;
  border-top: 2px solid currentColor;
  font-size: 0.75em;
  line-height: 1.25;
}

.statement-points small {
  display: block;
  margin-bottom: 8px;
  font-size: 0.55em;
  opacity: 0.7;
}

/* Cards side by side, optionally joined by arrows */
.cards {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 50px;
}

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border: 2px solid var(--fs-heading-color);
}

.card-title {
  font-family: var(--fs-heading-font);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.15;
}

.card-text {
  font-size: 0.6em;
  color: var(--fs-text-muted-color);
}

.card.accent {
  border-color: var(--statement-bg);
  background: var(--statement-bg);
  color: var(--statement-fg);
}

.card.accent .card-text {
  color: var(--statement-fg);
  opacity: 0.75;
}

.card-icon {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cards .card-arrow {
  align-self: center;
  flex: none;
  color: var(--fs-text-subtle-color);
}

.cards-note {
  margin-top: 30px;
  font-size: 0.6em;
  color: var(--fs-text-muted-color);
}

/* What is done: a check per line */
.reveal ul.checks {
  list-style: none;
  padding-left: 0;
}

.reveal ul.checks li::before {
  content: '✓';
  display: inline-block;
  width: 1.4em;
  color: var(--statement-bg);
  font-weight: bold;
}

/*********************************************
 * FILES, ICONS, WAVEFORMS
 *********************************************/

.file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-icon {
  width: 100px;
  height: 124px;
  overflow: visible;
}

.file-page {
  fill: var(--fs-surface);
  stroke: var(--fs-border);
  stroke-width: 3;
}

.file-fold {
  fill: none;
  stroke: var(--fs-border);
  stroke-width: 3;
}

.file-icon text {
  fill: #fff;
  font-family: var(--fs-code-font);
  font-size: 20px;
  font-weight: bold;
}

.file-name {
  font-family: var(--fs-code-font);
  font-size: 0.5em;
}

.cpp-icon {
  width: 130px;
  height: 146px;
}

.cpp-icon text {
  fill: #fff;
  font-family: var(--fs-heading-font);
  font-size: 30px;
  font-weight: 700;
}

.waveform {
  display: block;
  width: 100%;
}

.waveform path {
  fill: none;
  stroke: var(--fs-highlight-background);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.waveform-dividers line {
  stroke: var(--fs-border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

/* What's given: assets | helpers | exercise, split like the integration slide */
.given {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.given-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 0 30px;
}

.given-column + .given-column {
  border-left: 3px solid var(--fs-highlight-background);
}

.given-label {
  font-family: var(--fs-heading-font);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fs-heading-color);
}

.reveal .given-macro {
  font-size: 0.5em;
}

.signal-pair {
  margin-top: 30px;
}

.signal-pair .waveform {
  box-sizing: border-box;
  height: 230px;
  margin: 10px 0 40px 0;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
}

.signal-label {
  font-size: 0.6em;
}

/*********************************************
 * TASK PIPELINE: inputs → C++ → output → check
 * Plays once whenever the slide comes up.
 *********************************************/

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 70px;
}

.pipeline .file-icon {
  width: 130px;
  height: 161px;
}

.pipeline .file-name {
  font-size: 0.55em;
}

.pipeline .cpp-icon {
  width: 170px;
  height: 190px;
}

.pipe-inputs {
  display: flex;
  gap: 30px;
}

.pipe-link {
  position: relative;
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--fs-highlight-background) 0 14px, transparent 14px 24px);
  background-size: 24px 6px;
}

.pipe-link::after {
  content: '';
  position: absolute;
  right: -14px;
  top: -9px;
  border: 12px solid transparent;
  border-left: 16px solid var(--fs-highlight-background);
  border-right: 0;
}

.pipe-run {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Eight segments: one per model block */
.pipe-progress {
  width: 240px;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--fs-surface-alt) 0 28px, var(--fs-background-color) 28px 30px);
}

.pipe-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--fs-highlight-background);
}

.pipe-output {
  width: 480px;
}

.pipe-output .waveform {
  box-sizing: border-box;
  height: 200px;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  clip-path: inset(0 100% 0 0);
}

.pipe-label {
  margin-top: 10px;
  text-align: center;
  font-size: 0.55em;
  color: var(--fs-text-muted-color);
}

.pipe-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.pipe-check-mark {
  font-size: 2.2em;
  font-weight: bold;
  line-height: 1;
  color: #4caf50;
}

.reveal .slides section.present .pipe-link {
  animation: pipe-flow 0.8s linear infinite;
}

.reveal .slides section.present .pipe-progress span {
  animation: pipe-fill 3s steps(8, end) 0.6s forwards;
}

.reveal .slides section.present .pipe-output .waveform {
  animation: pipe-reveal 3s steps(8, end) 0.6s forwards;
}

.reveal .slides section.present .pipe-check {
  animation: pipe-pop 0.4s ease-out 3.8s forwards;
}

@keyframes pipe-flow {
  to { background-position: 24px 0; }
}

@keyframes pipe-fill {
  to { width: 100%; }
}

@keyframes pipe-reveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes pipe-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

/*********************************************
 * TASK TIMER
 *********************************************/

.task-timer {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 4.2em;
  padding: 8px 24px;
  border: 3px solid var(--fs-border);
  border-radius: 14px;
  font-family: var(--fs-code-font);
  font-size: 1.3em;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.task-timer::after {
  content: 'click to start';
  display: block;
  font-family: var(--fs-main-font);
  font-size: 0.35em;
  color: var(--fs-text-subtle-color);
}

.task-timer.running {
  border-color: var(--fs-highlight-background);
}

.task-timer.running::after {
  content: 'click to pause';
}

.task-timer.done {
  border-color: #c62828;
  background: #c62828;
  color: #fff;
}

.task-timer.done::after {
  content: 'time · double-click to reset';
  color: #fff;
}

/* Model types, one row each */
.nn-types {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin: 80px 0;
}

.nn-type {
  display: grid;
  grid-template-columns: 360px 80px 240px 80px 360px 1fr;
  align-items: center;
  text-align: center;
}

.nn-type .nn-node {
  padding: 24px 0;
}

.nn-examples {
  margin-left: 50px;
  text-align: left;
  font-size: 0.8em;
  color: var(--fs-text-muted-color);
}

/* Stateless vs. stateful: independent calls vs. calls chained by state */
.state-demo {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  row-gap: 50px;
  margin: 60px 0;
}

.state-label {
  font-family: var(--fs-heading-font);
  font-weight: 600;
}

.state-row {
  display: flex;
  align-items: center;
}

.state-gap,
.state-link {
  width: 200px;
  text-align: center;
}

.state-link {
  color: var(--fs-highlight-background);
  font-size: 0.7em;
  font-weight: bold;
}

.variations .tile h3 {
  font-size: 0.8em;
}

/* A row of short facts under a diagram */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
}

.facts span {
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--fs-surface-alt);
  font-size: 0.75em;
}

/*********************************************
 * INTRODUCTION
 *********************************************/

.people {
  display: flex;
  justify-content: space-around;
  margin-top: 80px;
}

.person {
  width: 420px;
  text-align: center;
}

.person-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
}

.reveal .person-photo {
  display: block;
  margin: 0 auto;
}

.reveal .person-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fs-surface-alt);
  font-family: var(--fs-heading-font);
  font-size: 3em;
  color: var(--fs-highlight-background);
}

.person-name {
  margin-top: 30px;
  font-family: var(--fs-heading-font);
  font-weight: 600;
}

.person-role {
  color: var(--fs-text-muted-color);
  font-size: 0.75em;
}

.scope {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
}

.reveal .scope h3 {
  margin: 0 0 10px 0;
}

.scope-out {
  color: var(--fs-text-muted-color);
}

.scope-out li {
  text-decoration: line-through;
}

.qr-row {
  display: flex;
  justify-content: space-around;
  margin-top: 60px;
}

.qr {
  text-align: center;
}

/* White background in both themes, or phones cannot read it */
.qr-code {
  width: 640px;
  height: 640px;
  margin: 0 auto;
  background: #fff;
  color: #1c1c1a;
  border-radius: 24px;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-label {
  margin-top: 24px;
  font-family: var(--fs-heading-font);
  font-weight: 600;
}

.qr-url {
  font-family: var(--fs-code-font);
  font-size: 0.5em;
  color: var(--fs-text-muted-color);
}

/* Agenda badges: what is hands-on and what is only shown */
.agenda-kind {
  margin-left: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.6em;
  vertical-align: middle;
  border: 2px solid var(--fs-border);
  color: var(--fs-text-muted-color);
}

.agenda-kind.exercise {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
  color: var(--fs-text-color);
}

/*********************************************
 * INTEGRATION (train, export, implement)
 *********************************************/

.integration {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0 40px 0;
}

.integration-step {
  padding: 0 40px;
  text-align: center;
}

.integration-step + .integration-step {
  border-left: 3px solid var(--fs-highlight-background);
}

/* The step this slide is about */
.integration-step.highlight-step {
  outline: 4px solid var(--fs-highlight-background);
  outline-offset: 12px;
  border-radius: 16px;
  background: var(--fs-surface-alt);
}

.integration-step svg {
  width: 100%;
  height: 280px;
  margin-bottom: 10px;
}

.integration-lines line,
.integration-ring,
.integration-curve {
  fill: none;
  stroke: var(--fs-border);
  stroke-width: 4;
}

.integration-dots circle {
  fill: var(--fs-highlight-background);
}

.integration-ring {
  stroke-dasharray: 10 8;
}

.integration-ring.accent,
.integration-curve.accent {
  stroke: var(--fs-highlight-background);
}

.integration-label {
  font-family: var(--fs-heading-font);
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fs-heading-color);
}

.integration-title {
  margin-top: 20px;
  font-weight: bold;
  font-size: 0.75em;
}

.integration-detail {
  color: var(--fs-text-muted-color);
  font-size: 0.7em;
}

.integration-language {
  margin-top: 10px;
  color: var(--fs-highlight-background);
  font-size: 0.7em;
}

/*********************************************
 * OVERFLOW CHECK (dev server only)
 *********************************************/

.overflow-check {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 40vw;
  padding: 12px 16px;
  border-radius: 8px;
  background: #c62828;
  color: #fff;
  font-family: var(--fs-main-font);
  font-size: 14px;
}

.overflow-check a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

/*********************************************
 * FRAGMENTS
 *********************************************/

.fragment.select.visible {
  background-color: var(--fs-fragment-select-color);
}

.fragment.select.visible.tile-description {
  background: none;
}

.fragment.select.visible.timeline-dot {
  background: var(--fs-fragment-select-color);
  border-color: var(--fs-background-color);
  box-shadow: 0 0 10px var(--fs-fragment-select-color);
}

.fragment.select.visible.timeline-item {
  background: none;
}

.fragment.select.visible.timeline-item .timeline-year {
  color: var(--fs-fragment-select-color);
  transition: color 1s;
}

.fragment.select:not(.current-fragment).visible {
  background: none;
}

.fragment.select:not(.current-fragment).visible.timeline-dot {
  background: var(--fs-background-color);
  border-color: var(--fs-link-color);
  box-shadow: none;
}

.fragment.select:not(.current-fragment).visible.timeline-item .timeline-year {
  color: var(--fs-link-color);
  font-size: 0.6em;
}

.timeline-purple .fragment.select:not(.current-fragment).visible.timeline-dot {
  background: var(--fs-background-color);
  border-color: var(--fs-highlight-background);
  box-shadow: none;
}

.timeline-purple .fragment.select:not(.current-fragment).visible.timeline-item .timeline-year {
  color: var(--fs-highlight-background);
  font-size: 0.6em;
}


.fragment.appear-table {
  display: none;
}

.fragment.appear-table.visible {
  display: table-row;
}

.fragment.appear-vanish {
  display: none !important;
}

.fragment.appear-vanish.current-fragment {
  display: block !important;
}

.fragment.appear-vanish:not(.current-fragment).visible {
  display: none !important;
}

.fragment.appear-vanish.flex.current-fragment {
  display: flex !important;
}

.fragment.vanish {
  display: block;
}

.fragment.vanish.flex {
  display: flex !important;
}

.fragment.vanish.visible {
  display: none !important;
}

.fragment.vanish.current-fragment {
  display: none !important;
}

.fragment.vanish:not(.current-fragment) {
  display: block !important;
}

.fragment.vanish:not(.current-fragment).flex {
  display: flex !important;
}

.fragment.color-0.visible {
  border-color: var(--fs-fragment-select-light);
  color: var(--fs-fragment-select-light) !important;
}

.fragment.color-1.visible {
  border-color: var(--fs-fragment-select-color-1);
  color: var(--fs-fragment-select-color-1) !important;
}

.fragment.color-2.visible {
  border-color: var(--fs-shadow-color);
  color: var(--fs-shadow-color) !important;
}

.reveal .slides section .fragment.select {
  transition: 2s;
}

/*********************************************
 * CODE BLOCKS AND INLINE CODE
 *********************************************/

/* Inline code */
.reveal code {
  font-family: var(--fs-code-font);
  color: var(--fs-link-color);
  background: var(--fs-surface);
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  font-size: 0.9em;
  border: 1px solid var(--fs-border-light);
  font-weight: 500;
}

/*********************************************
 * FORMULAS
 *********************************************/

.formula {
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-left: 4px solid var(--fs-link-color);
  border-radius: 8px;
  padding: 30px 40px;
  margin: 25px auto;
  text-align: center;
  box-shadow: 0 4px 20px var(--fs-shadow-color-light);
  max-width: 90%;
    color: var(--fs-text-color);
}

.formula .MathJax {
  color: var(--fs-text-color);
  font-size: inherit;
}

/* Alternative formula styles */
.formula.accent-purple {
  border-left-color: var(--fs-highlight-background);
}

.formula.minimal {
  background: transparent;
  border: none;
  border-top: 1px solid var(--fs-border-light);
  border-bottom: 1px solid var(--fs-border-light);
  box-shadow: none;
  padding: 20px 0;
}

.formula.highlight {
  background: var(--fs-highlight-background);
  border-color: var(--fs-highlight-background);
  color: var(--fs-highlight-color);
}

.formula.highlight .MathJax {
  color: var(--fs-highlight-color);
}

/*********************************************
 * CODE BLOCKS
 *********************************************/
.reveal pre {
  display: block;
  position: relative;
  width: 100%;
  margin: 1.5em 0;
  text-align: left;
  font-size: 0.8em;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 4px 20px var(--fs-shadow-color-light);
  border-radius: 8px;
  overflow: hidden;
}

.reveal pre code {
  display: block;
  padding: 1.5em;
  overflow: auto;
  max-height: 600px;
  word-wrap: normal;
  background: var(--fs-surface);
  color: var(--fs-text-color);
  border: 2px solid var(--fs-border);
  border-radius: 8px;
  font-weight: 400;
}

/* Code block with language label */
.reveal pre[class*="language-"]::before {
  content: attr(data-language);
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3em 0.8em;
  font-size: 0.75em;
  font-family: var(--fs-heading-font);
  background: var(--fs-surface-alt);
  color: var(--fs-text-muted-color);
  border-bottom-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* Syntax highlighting colors using your theme */
.reveal pre code .hljs-keyword,
.reveal pre code .hljs-built_in {
  color: var(--fs-link-color-hover);
  font-weight: 600;
}

.reveal pre code .hljs-string {
  color: var(--fs-fragment-select-color-1);
}

.reveal pre code .hljs-comment,
.reveal pre code .hljs-doctag {
  color: var(--fs-text-subtle-color);
  font-style: italic;
}

.reveal pre code .hljs-function,
.reveal pre code .hljs-title {
  color: var(--fs-link-color);
  font-weight: 500;
}

.reveal pre code .hljs-number,
.reveal pre code .hljs-literal {
  color: var(--fs-highlight-background);
}

.reveal pre code .hljs-operator,
.reveal pre code .hljs-punctuation {
  color: var(--fs-text-muted-color);
}

.reveal pre code .hljs-class .hljs-title,
.reveal pre code .hljs-type {
  color: var(--fs-link-color-light);
  font-weight: 600;
}

.reveal pre code .hljs-variable,
.reveal pre code .hljs-params {
  color: var(--fs-text-color);
}

.reveal pre code .number {
  color: var(--fs-highlight-background);
}

.reveal pre code .operator {
  color: var(--fs-text-muted-color);
}

.reveal pre code .class-name {
  color: var(--fs-link-color-light);
  font-weight: 600;
}

.reveal pre code .variable {
  color: var(--fs-text-color);
}

/* Line highlighting in code blocks */
.reveal pre code .highlight-line {
  background: var(--fs-selection-background-color);
  display: block;
  margin: 0 -1.5em;
  padding: 0 1.5em;
  border-left: 3px solid var(--fs-highlight-background);
}

/* Alternative code block style - accent border */
.reveal pre.accent {
  border-left: 4px solid var(--fs-link-color);
}

.reveal pre.accent-purple {
  border-left: 4px solid var(--fs-highlight-background);
}

/* Dark code blocks for light theme / light for dark theme */
[data-theme="light"] .reveal pre code {
  background: rgba(36, 37, 41, 0.05);
  border-color: var(--fs-border);
}

[data-theme="dark"] .reveal pre code {
  background: rgba(250, 250, 250, 0.03);
  border-color: var(--fs-border);
}

/* Scrollbar styling for code blocks */
.reveal pre code::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.reveal pre code::-webkit-scrollbar-track {
  background: var(--fs-surface);
  border-radius: 4px;
}

.reveal pre code::-webkit-scrollbar-thumb {
  background: var(--fs-border);
  border-radius: 4px;
}

.reveal pre code::-webkit-scrollbar-thumb:hover {
  background: var(--fs-text-subtle-color);
}

/*********************************************
 * TABLES
 *********************************************/

.reveal table {
  margin: 1.5em auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--fs-surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--fs-shadow-color-light);
  border: 2px solid var(--fs-border);
  font-family: var(--fs-main-font);
  font-size: 1.1em;
  max-width: 95%;
}

.reveal table th {
  background: var(--fs-surface-alt, var(--fs-surface));
  color: var(--fs-heading-color);
  font-family: var(--fs-heading-font);
  font-weight: 600;
  font-size: 1.0em;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 12px 20px;
  border-bottom: 2px solid var(--fs-border);
  position: relative;
}

.reveal table th:first-child {
  border-top-left-radius: 6px;
}

.reveal table th:last-child {
  border-top-right-radius: 6px;
}

.reveal table td {
  color: var(--fs-text-color);
  padding: 10px 20px;
  border-bottom: 1px solid var(--fs-border-light);
  vertical-align: top;
  line-height: 1.4;
}

.reveal table td.date {
  width: 80px;
}

.reveal .highlight td {
  text-align: left !important;
}

.reveal table tr:last-child td {
  border-bottom: none;
}

.reveal table tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

.reveal table tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

.reveal table tr:hover {
  background: var(--fs-surface-alt, var(--fs-selection-background-color));
}

.reveal table tr:hover td {
  color: var(--fs-text-color);
}

.reveal table th:not(:last-child),
.reveal table td:not(:last-child) {
  border-right: 1px solid var(--fs-border-light);
}

.reveal table code {
  background: var(--fs-surface-alt, var(--fs-selection-background-color));
  color: var(--fs-text-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: var(--fs-code-font);
}

.reveal table strong {
  color: var(--fs-heading-color);
  font-weight: 600;
}

.reveal table em {
  color: var(--fs-text-muted-color);
  font-style: italic;
}

/*********************************************
 * PICTURES LIGHT/DARK
 *********************************************/

[data-theme="light"] {
  .picture-light {
    display: block;
  }
  .picture-dark {
    display: none;
  }
}

[data-theme="dark"] {
  .picture-light {
    display: none;
  }

  .picture-dark {
    display: block;
  }
}

/*********************************************
 * REFERENCES
 *********************************************/

.reference {
  position: relative;
  bottom: -20px; /* Above the footer which is 80px high */
  width: 100%;
  font-size: 0.5em;
  color: var(--fs-text-subtle-color);
  font-family: var(--fs-main-font);
  font-weight: 400;
  pointer-events: none; /* Allow clicks to pass through */
}

.reference a {
  color: var(--fs-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
  pointer-events: auto; /* Re-enable clicks for links */
  cursor: pointer;
}

.reference a:hover {
  color: var(--fs-link-color-hover);
  text-decoration: underline;
}

.reference em {
  font-style: italic;
  color: var(--fs-text-muted-color);
}

/*********************************************
 * IMAGE OVERLAY
 *********************************************/

.image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--fs-overlay);
  border: 2px solid var(--fs-border);
  border-radius: 10px;
  padding: 60px;
  box-shadow: 0 4px 8px var(--fs-shadow-color);
  color: var(--fs-text-color);
  z-index: 10;
}


/***********************************************
 * TIMELINE
 *********************************************/

 .timeline-container {
    background: var(--fs-surface);
    border: 1px solid var(--fs-border);
    border-radius: 12px;
    padding: 30px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px var(--fs-shadow-color-light);
    display: flex;
}

.timeline-title {
    color: var(--fs-heading-color);
    font-family: var(--fs-heading-font);
    font-weight: 600;
    font-size: 0.8em;
    margin-bottom: 10px;
    text-align: center;
}

.timeline-text {
    color: var(--fs-text-muted-color);
    font-size: 0.5em;
    line-height: 1.4;
    text-align: left;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 15px;
    margin-right: 15px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0px;
    right: 0px;
    height: 3px;
    background: var(--fs-link-color);
    z-index: 1;
}

.timeline-dot {
    width: 1.4%;
    aspect-ratio: 1 / 1;
    background: var(--fs-background-color);
    border: 3px solid var(--fs-link-color);
    border-radius: 50%;
    margin-bottom: 12px;
    position: absolute;
    transform: translateX(-50%);
    top: -8px;
    z-index: 3;
    pointer-events: auto;
    left: calc((var(--year) - var(--start-year)) / (var(--end-year) - var(--start-year)) * (100% - 1.4%) + 0.7%);
    top: 0px;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
    margin-top: 40px;
}

.timeline-content {
    text-align: center;
    margin: 0 10px;
}

.timeline-year {
    font-size: 0.6em;
    font-weight: bold;
    color: var(--fs-link-color);
    margin-bottom: 2px;
}

.timeline-name {
    font-size: 0.5em;
    font-weight: 600;
    color: var(--fs-heading-color);
}

.timeline-author {
    font-size: 0.4em;
    color: var(--fs-text-muted-color);
}

.timeline-connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.timeline-connector svg {
  position: absolute;
}

.timeline-connector line {
  position: relative;
  stroke: var(--fs-shadow-color);
  stroke-width: 2px;
}

.timeline-purple .timeline-dot {
  border-color: var(--fs-highlight-background);
}

.timeline-purple.timeline::before {
  background: var(--fs-highlight-background);
}

.timeline-purple .timeline-year {
  color: var(--fs-highlight-background);
}

.timeline-secondary .timeline-year {
    font-size: 0.5em;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1em;
}

.timeline-secondary .timeline-name {
    font-size: 0.4em;
    font-weight: 400;
}


/*********************************************
 * Live screencast (js/screencast.js): the shared IDE in place of a solution
 *********************************************/

/* The hidden start button, top right of the first slide, where the title card
   hides the header */
.reveal .slides section .screencast-start {
  position: absolute;
  right: 0;
  top: 0;
  width: 160px;
  height: 160px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
  z-index: 10;
}

.reveal .slides section.screencast-on > *:not(.screencast-video) {
  visibility: hidden;
}

/* Over the whole window, above the footer; the chapter overview still opens on top */
.screencast-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--fs-background-color);
  z-index: 1500;
}

body:has(> .screencast-video) .header-logo-box {
  visibility: hidden;
}
