@import url(https://fonts.googleapis.com/css?family=Montserrat:700,900|Dancing+Script);

.retro-hero {
  position: relative;
  perspective: 1000px;
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

.retro-hero .scene-container {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2;
}

.retro-hero .parallax-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.retro-hero .content-wrapper {
  position: relative;
  z-index: 10;
}

.retro-hero :root {
  font-size: 3vw;
}

.retro-hero .grid {
  position: absolute;
  bottom: -30%;
  left: 0;
  margin-left: -50%;
  width: 200%;
  height: 100%;
  background-position-y: 0px;
  background-image:
    repeating-linear-gradient(90deg,var(--grid-color,black) 0%,transparent calc(1px + var(--grid-blur,0px)), transparent var(--grid-size),var(--grid-color,black) calc(var(--grid-size) + 1px + var(--grid-blur,0px))),
    repeating-linear-gradient(180deg,var(--grid-color,black) 0%,transparent calc(1px + var(--grid-blur,0px)), transparent var(--grid-size),var(--grid-color,black) calc(var(--grid-size) + 1px + var(--grid-blur,0px)));
  transform: perspective(50vh) rotateX(60deg) translateZ(10px);
  animation: moving-grid 0.5s infinite linear;
  z-index: -1;
}

@keyframes moving-grid {
  0% {
    transform: perspective(50vh) rotateX(60deg) translateZ(10px) translateY(-var(--grid-size));
  }
  100% {
    transform: perspective(50vh) rotateX(60deg) translateZ(10px) translateY(var(--grid-size));
  }
}

.retro-hero .sun {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  position: absolute;
  background-color: yellow;
  left: calc(50%);
  bottom: 40%;
  transform: translateX(-50%);
  background-image: linear-gradient(red,yellow), linear-gradient(black,white);
  clip-path: polygon(-50% 0px,150% -50%,150% 55%,-50% 55%,
    -50% 62%,150% 62%,150% 70%,0 70%,
    -50% 75%,150% 75%,150% 80%,0 80%,
    -50% 82%,150% 82%,150% 85%,0 85%,
    -50% 87%,150% 87%,150% 90%,0 90%,
    -50% 92%,150% 92%,150% 95%,0 95%,
    -50% 96%,150% 96%,150% 150%,0 150%);
  box-shadow: rgba(255,128,0,0.7) 0px 0 20px;
  z-index: -1;
}

.retro-hero .mountain {
  position: absolute;
  content: '';
  bottom: 35%;
  left: calc(50% + var(--mountain-offset,0px));
  border-left: calc(var(--mountain-base) / 2) solid transparent;
  border-bottom: var(--mountain-height, 100px) solid var(--mountain-color1,white);
  border-top: 0px solid transparent;
  border-right: calc(var(--mountain-base, 100px) / 2) solid transparent;
  transform-origin: bottom;
  transform: skewX(var(--mountain-tilt,0deg));
  z-index: -1;
}

.retro-hero .mountain:after {
  content: '';
  border-left: calc(var(--mountain-base) / 2) solid transparent;
  border-bottom: var(--mountain-height, 100px) solid var(--mountain-color2,black);
  border-top: 0px solid transparent;
  border-right: calc(var(--mountain-base, 100px) / 2) solid transparent;
  transform: translate(-50%) scale(0.98);
  position: absolute;
  left: 0;
  top: 0;
}

.retro-hero .overlay {
  width: 100%;
  height: 100%;
  z-index: 2;
  position: absolute;
  left: 0;
  top: 0;
  background-image: repeating-linear-gradient(rgba(0,0,0,0.3) 0,transparent 1px,transparent 2px,rgba(0,0,0,0.3) 3px);
  pointer-events: none;
}

.retro-hero .background-80s {
  background: linear-gradient(to bottom, #010310 0,#0c1142 24%,#45125e 45%,#d53567 60%,#f0c3d9 65%,#0c1142 65%) fixed;
  background-size: 100% var(--background-height,100vh);
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: var(--background-height,100vh);
  z-index: -2;
}

.retro-hero .animated-clouds:before {
  filter: url(#filter);
}

.retro-hero .background-80s:before {
  content: '';
  background: linear-gradient(to bottom, #010310 0,#0c1142 24%,#45125e 45%,#d53567 60%,#f0c3d9 65%,#0c1142 65%) fixed;
  width: 100%;
  height: 55%;
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  opacity: 0.2;
}

.retro-hero .stars:after {
  transform: translateY(-40%);
  content: ' ';
  border-radius: 100%;
  width: 3px;
  height: 4px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  box-shadow: 
    5vw 15vh 2px white,
    1vw 33vh 0px white,
    2vw 25vh 2px white,
    10vw 10vh 2px white,
    12vw 20vh 0px white,
    30vw 15vh 2px white,
    16vw 5vh 2px white,
    24vw 10vh 0px white,
    32vw 40vh 0px white,
    33vw 35vh 2px white,
    12vw 38vh 2px white,
    24vw 10vh 0px white,
    33vw 5vh 2px white,
    20vw 10vh 0px white,
    80vw 10vh 2px white,
    62vw 20vh 0px white,
    60vw 15vh 2px white,
    70vw 7vh 0px white,
    62vw 50vh 0px white,
    65vw 35vh 2px white,
    64vw 10vh 0px white,
    85vw 2vh 0px white,
    92vw 40vh 0px white,
    75vw 35vh 2px white,
    90vw 10vh 0px white;
  opacity: 0.3;
  animation: glitter 2s infinite;
}

@keyframes glitter {
  0% { opacity: 0.5; }
  50% { opacity: 0.9; }
  100% { opacity: 0.5; }
}

.retro-hero .road {
  --grid-size: 90px;
  --road-color: #2a025d;
  position: absolute;
  bottom: -28.5%;
  left: 0;
  margin-left: calc(50% - 200px /2 );
  width: 200px;
  height: 100%;
  background-position-y: 0px;
  background-image: repeating-linear-gradient(90deg, #a684cb 0%, #a684cb 2%, var(--road-color,rgba(115,59,139,1)) 2%, var(--road-color,rgba(115,59,139,1)) 98%,#a684cb 98%);
  transform: perspective(50vh) rotateX(60deg);
  z-index: -1;
}

.retro-hero .road:after {
  content: '';
  --grid-size: 90px;
  position: absolute;  
  margin-left: calc(50% - 10px /2 );
  width: 10px;
  height: 100%;
  background-position-y: 0px;
  animation: moving-grid 0.5s infinite linear;
} 