@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Montserrat Medium';
  src: url('fonts/MontserratMedium-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Arimo';
  src: url('fonts/Arimo-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1a1a1a;
  overflow: hidden;
}

#viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background: #fff;
}

/* On-screen controls (full-screen toggle). Fade in on pointer activity, out
   after a pause; pointer-events off while hidden so the corner stays a plain
   click-to-advance target. Fixed to the window, so in letterboxed layouts the
   button sits on the dark shell rather than over slide content. */
.sk-controls {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sk-controls.visible {
  opacity: 1;
  pointer-events: auto;
}
.sk-controls button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sk-controls button:hover,
.sk-controls button:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
}
.sk-controls button:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.sk-controls button svg {
  display: block;
}
.sk-controls button[aria-disabled="true"] {
  opacity: 0.45;
}
.sk-controls .sk-fs {
  margin-left: 4px;
}
.sk-controls .sk-fs:first-child {
  margin-left: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.slide.active {
  display: block;
}

/* Touch drag navigation: the neighbouring slide is shown alongside while the
   finger moves and both slides are translated; the stage clips the overflow. */
.slide.peek {
  display: block;
}
#stage.dragging {
  overflow: hidden;
}
#stage.dragging .slide.active,
#stage.dragging .slide.peek {
  will-change: transform;
}

.slide .bg {
  position: absolute;
  inset: 0;
}

.shp {
  position: absolute;
}

.shp .geom {
  position: absolute;
  inset: 0;
}

.shp a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.grp-inner {
  position: absolute;
  transform-origin: 0 0;
}

.cell {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
}

.cell .cellbg {
  position: absolute;
  inset: 0;
}

.txt-l {
  position: absolute;
  overflow: visible;
}

.txt-l .run {
  position: absolute;
  white-space: pre;
}
/* Run-level hyperlinks: the anchor IS the run box (not a full-shape block). */
.txt-l a.run {
  width: auto;
  height: auto;
  cursor: pointer;
}
.shp a.run-link {
  display: contents;
  cursor: pointer;
}

/* Video play badge: shown while paused; the player toggles .playing. Click-through
   so the click reaches the shape (which toggles playback). Large frames hand
   over to the native controls' own button while hovered. */
.media .play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  max-width: 64px;
  min-width: 28px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.media .play-badge::after {
  content: "";
  position: absolute;
  inset: 28% 24% 28% 38%;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.media.playing .play-badge {
  display: none;
}
/* Hover hand-off only where hover exists: on touch devices :hover sticks to the
   last tapped element, which hid the badge on a paused clip after one tap. */
@media (hover: hover) {
  .media:not(.small):hover .play-badge {
    display: none;
  }
}

/* Unfilled shapes: the interior passes clicks through to what's beneath;
   painted strokes and text still receive them (PowerPoint hit-testing). */
.shp.nofill {
  pointer-events: none;
}
.shp.nofill > svg.geom,
.shp.nofill > a > svg.geom {
  pointer-events: none;
}
.shp.nofill svg.geom * {
  pointer-events: visiblePainted;
}
/* Only the glyph boxes are hit-testable, not the whole text frame: a noFill
   text box overlapping a linked picture must not swallow its clicks
   (internal_links slide 3). */
.shp.nofill .txt-l .run,
.shp.nofill .txt-l .run-link,
.shp.nofill .txt,
.shp.nofill .txt-warp text {
  pointer-events: auto;
}
/* ...except a hyperlinked unfilled shape: PowerPoint hit-tests its whole box
   in the show, which is how "invisible hotspot" decks work (music.pptx lays
   noFill ovals over the hidden ghosts to jump to the found-it slide). */
.shp.nofill > a[data-nav],
.shp.nofill > a[href] {
  pointer-events: auto;
}
/* Media with "Hide During Show": plays, never paints. */
.shp.media.media-hidden {
  display: none;
}

/* WordArt warp: text fitted to the shape box along an SVG path */
.txt-warp {
  position: absolute;
  overflow: visible;
}
.txt-warp text {
  white-space: pre;
}

.txt {
  position: absolute;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.txt p {
  margin: 0;
  line-height: 1.2;
}
