html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: black;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

main {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: black;
}

#pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

#pulse img {
  width: auto;
  height: auto;
  opacity: 1;
}

#bg-layer,
#fg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  will-change: transform, opacity;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

#fg-layer {
  z-index: 3;
  background-size: contain;
  animation-delay: 0.15s;
}

#bg-layer {
  z-index: 2;
  background-size: cover;
  filter: blur(8px);
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (orientation: portrait) {
  #bg-layer {
    background-image: url("/images/background-portrait.jpg");
  }
  #fg-layer {
    background-image: url("/images/background-portrait.jpg");
  }
}

@media (orientation: landscape) {
  #bg-layer {
    background-image: url("/images/background-landscape.jpg");
  }
  #fg-layer {
    background-image: url("/images/background-landscape.jpg");
  }
}
