/* Reveal.js integration for the fixed 1280 by 720 projection layout. */

html,
body,
.reveal {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.reveal {
  color: var(--text);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
}

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

.reveal .slides > section.slide {
  width: 1280px;
  height: 720px;
  padding: 56px 64px 64px;
  text-align: left;
  box-sizing: border-box;
}

.reveal .slides > section.slide.present {
  display: flex !important;
  flex-direction: column !important;
}

.reveal .slides > section.slide.center.present {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Ensure all slides render cleanly in Reveal's 34-slide grid overview */
.reveal.overview .slides > section.slide {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.reveal.overview .slides > section.slide.center {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Position controls above the footer slide counter to prevent overlap */
.reveal .controls {
  color: var(--blue);
  right: 20px;
  bottom: 48px;
  transform: scale(0.68);
  transform-origin: bottom right;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.reveal .controls:hover {
  opacity: 1;
}

.reveal .progress {
  height: 4px;
  color: var(--blue);
}

.reveal .progress span {
  background: var(--blue);
}

.reveal h1.title {
  text-transform: none;
}

.reveal a {
  color: inherit;
  text-decoration: none;
}

.reveal a:hover {
  text-decoration: underline;
}

/* Floating link back to main companion site */
.companion-back {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.companion-back:hover {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}

.reveal aside.notes {
  display: none;
}

.reveal .speaker-notes {
  display: none;
}

/* Speaker notes styling in Presenter View */
.speaker-controls-notes .value p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 0.9em;
  color: #1e293b;
}

noscript {
  display: block;
  margin: 2rem;
  color: #991b1b;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.1rem;
}

@media print {
  html,
  body,
  .reveal {
    overflow: visible;
  }

  .reveal aside.notes,
  .reveal .controls,
  .reveal .progress {
    display: none !important;
  }
}
