/* Sized in vh/vw so the browser preview matches the TV's 1920x1080 stage. */
:root {
  --slide-bg: #1f4068;
  --slide-fg: #ffffff;
  --muted: #c9d6e3;
  --pill-bg: rgba(0, 0, 0, 0.55);
  --pill-fg: #ffffff;
  --focus-bg: #ffffff;
  --focus-fg: #10243d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--slide-fg);
  font-family: "Samsung One", "SamsungOne", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[hidden] { display: none !important; }

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

#image {
  position: absolute;
  inset: 0;
  background: #000;
}

#image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#text, #empty {
  position: absolute;
  inset: 0;
  padding: 7vh 7vw 14vh;
  background: var(--slide-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#text h1, #empty h1 {
  margin: 0 0 0.5em;
  font-size: 1.45em;
  line-height: 1.15;
  font-weight: 700;
}

#text p, #empty p {
  margin: 0;
  line-height: 1.35;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

#empty { font-size: 5vh; text-align: center; align-items: center; }
#empty p { color: var(--muted); max-width: 30em; }

#hdmi {
  position: fixed;
  right: 3vw;
  bottom: 4vh;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  font: inherit;
  font-size: 2.6vh;
  font-weight: 600;
  color: var(--pill-fg);
  background: var(--pill-bg);
  border: 0.15em solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

#hdmi svg { width: 1.3em; height: 1.3em; }

#hdmi:focus {
  outline: none;
  color: var(--focus-fg);
  background: var(--focus-bg);
  border-color: var(--focus-bg);
  transform: scale(1.06);
  box-shadow: 0 0.3em 1.2em rgba(0, 0, 0, 0.5);
}

#toast {
  position: fixed;
  left: 3vw;
  bottom: 4vh;
  max-width: 60vw;
  padding: 0.7em 1.1em;
  font-size: 2.2vh;
  background: rgba(150, 20, 20, 0.9);
  border-radius: 0.5em;
}
