@import url("slides/theme.css");
#math-exhibit.cursor-idle, #math-exhibit.cursor-idle * { cursor: none !important; }
.imax-message {
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  min-height: 65dvh;
  padding: 2rem;
  text-align: center;
  background: var(--demo-bg);
  color: var(--demo-ink);
  border: 1px solid var(--demo-border);
  border-radius: 8px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.imax-message p { margin: 0; }
#math-exhibit { position: relative; background: var(--demo-bg); color: var(--demo-ink); border: 1px solid var(--demo-border); border-radius: 8px; overflow: hidden; }
#slides-loading { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: var(--demo-bg); color: var(--demo-ink); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; }
#slides-loading[hidden] { display: none; }
.loading-dots span { animation: loading-dot 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes loading-dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loading-dots span { animation: none; } }
.exhibit-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--demo-border); }
.exhibit-controls button { padding: 8px 14px; border: 1px solid var(--accent); border-radius: 5px; background: var(--control-bg); color: var(--demo-ink); font: inherit; }
.exhibit-controls button:hover { background: var(--control-hover); }
#tour-toggle { background: var(--accent-bg); color: white; }
.exhibit-controls > p { margin: 0 0 0 auto; }
#tour-status { font-size: 0.9rem; margin-left: auto; }
#math-carousel .carousel-item { height: min(76vh, 850px); min-height: 400px; }
/* The extension's image-overlay defaults otherwise block the demo controls. */
#math-carousel .overlay { position: static; pointer-events: auto; display: block; text-align: left; }
#math-carousel .overlay > div { width: 100%; height: 100%; font-size: 1rem !important; font-weight: normal !important; }
#math-carousel p { margin: 0; height: 100%; }
#math-carousel iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Override Bootstrap's !important responsive display utility in fullscreen. */
#math-exhibit:fullscreen { width: 100vw; height: 100dvh; border: 0; border-radius: 0; display: flex !important; flex-direction: column; }
#math-exhibit:fullscreen #math-carousel { flex: 1; min-height: 0; }
#math-exhibit:fullscreen .carousel-inner, #math-exhibit:fullscreen .carousel-item { height: 100%; min-height: 0; }

/* Keep the built-in arrows at the edges, clear of embedded demo controls. */
#math-carousel .carousel-control-prev,
#math-carousel .carousel-control-next {
  width: 42px;
  top: 45%;
  bottom: auto;
  height: 60px;
  z-index: 30;
  opacity: 0.75;
  background: #17354a;
  border-radius: 5px;
}
#math-carousel .carousel-control-prev:hover,
#math-carousel .carousel-control-next:hover { opacity: 1; }
