:root {
  --color-black: #090909;
  --color-red: #c51515;
  --color-blue: #0f3fb8;
  --colora1: #da2703;
  --colora2: #fb5326;
  --colorb1: #25517f;
  --colorb2: #3994cd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes scroll-bg {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -40px;
  }
}

body {
  margin: 0;
  height: 100vh;
  background: black;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--color-red) 2px, transparent 2px),
    linear-gradient(to bottom, var(--color-blue) 2px, transparent 2px);
  background-size: 60px 60px;
  transform-origin: bottom;
  filter: drop-shadow(0 0 6px var(--color-red))
    drop-shadow(0 0 10px var(--color-blue));
  transform: rotate(11deg) translateX(-100px) translateY(138px) scale(1.3);
}

main {
  position: relative;
  z-index: 2;
  height: 100%;
  background-clip: padding-box, border-box;
  background: url("poster.jpg") no-repeat center center fixed;
  background-size: auto 100vh;
  overflow: hidden;
  scrollbar-width: none;
}

@media (max-width: 900px) {
  main {
    background: url("poster_portrait.jpg") no-repeat center center;
    background-size: 100dvw auto;
  }
}

#loading-bars {
  position: absolute;
  bottom: 0;
  width: 100%;
}

#bar1 {
  height: 12px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--colora1) 0 20px,
    var(--colora2) 20px 40px
  );
  animation: scroll-bg 0.8s linear infinite;
}

#bar2 {
  border-top: 2px solid var(--color-black);
  height: 28px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--colorb1) 0 20px,
    var(--colorb2) 20px 40px
  );
  background-size: 40px 100%;
  animation: scroll-bg 0.5s linear infinite;
}
