/* The public page: your rain design, with the lyric and links at the bottom. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

[hidden] { display: none !important; }

/* Background video: an uploaded file ... */
#bg-video {
  position: fixed;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 0.4;
}

/* ... or a YouTube video, scaled to cover the window the same way */
#bg-embed {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.4;
  pointer-events: none;
}
#bg-embed iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
}

canvas {
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  opacity: 0;
  transition: opacity 1s ease;
}

#content {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

#ascii-art {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(5px, 1.1vw, 11px);
  line-height: 1.2;
  color: #ffffff;
  white-space: pre;
}

/* Lyric, then contact + email, centred at the bottom */
#footer {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(86vw, 640px);
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

#lyric {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-bottom: 16px;
}

#links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

#links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

#links a:hover,
#links a:focus-visible {
  color: rgba(255,255,255,0.8);
}

#links a:focus-visible {
  outline: 1px solid rgba(255,255,255,0.6);
  outline-offset: 4px;
}

#start-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
}

#start-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  text-transform: lowercase;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 24px;
  border-radius: 40px;
  pointer-events: none;
  transition: color 0.3s, border-color 0.3s;
}

#start-overlay:hover #start-btn,
#start-overlay:focus-visible #start-btn {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}
#start-overlay:focus-visible { outline: none; }
