:root {
  color-scheme: dark;
  background-color: #15080b;
}

html {
  background-color: #15080b;
  background-image: url("../video-poster.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

body {
  position: relative;
  isolation: isolate;
  background: transparent;
  min-height: 100%;
  min-height: 100dvh;
}

#backgroundVideo {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: transparent;
}

.backgroundShade { z-index: 1; }
.page { position: relative; z-index: 2; }

@supports (-webkit-touch-callout: none) {
  #backgroundVideo {
    height: 100lvh;
    min-height: 100dvh;
  }
}

@media (display-mode: standalone) {
  html, body {
    min-height: 100dvh;
    background-color: transparent;
  }
  html { background-color: #15080b; }
  #backgroundVideo {
    min-height: 100dvh;
    height: 100lvh;
  }
  #enterScreen { min-height: 100dvh; }
  .page { min-height: 100dvh; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .volumeControl {
    position: fixed;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    margin: 0;
  }
}
