/* Fullscreen video background */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.4375);
  z-index: 2;
}

footer p {
  margin: 0;
  line-height: 32px;          /* Match the footer height */
  text-align: center;
  color: white;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75em;
}

body {
  background-color: black;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

/* Base reset for scroll bounce */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Optional: Extra mobile protection */
@media (max-width: 768px) {
  body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}


#bg-video {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

body.loaded #bg-video {
  opacity: 1;
}