:root {
  /* Background shown around flyers that don't fill the screen */
  --bg: #000000;
  --text: #ffffff;
  --fade-ms: 1200ms; /* cross-fade duration; kept in sync with app.js */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Stop the browser from showing text-selection / long-press menus on a kiosk */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: none;
}

#stage {
  position: fixed;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain; /* show the whole flyer, never crop */
  opacity: 0;
  transition: opacity var(--fade-ms) ease-in-out;
}

.slide.visible {
  opacity: 1;
}

/* Images and videos sit inside a slide layer and fit whole (no cropping). */
.slide-img,
.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}

.message {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  z-index: 10;
}

.message-inner { padding: 2rem; max-width: 80%; }
.message h1 { font-size: 2.4rem; font-weight: 600; margin-bottom: 1rem; }
.message p  { font-size: 1.3rem; opacity: 0.7; line-height: 1.5; }

.clock {
  position: fixed;
  bottom: 24px;
  right: 32px;
  font-size: 1.6rem;
  font-weight: 500;
  opacity: 0.55;
  z-index: 5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hidden { display: none !important; }
