@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --darkBlue: #19313e;
  --cream: #ffe4c4;
  --emerald: #40755e;
  --gold: #956d3c;
  --bronze: #634625;
}
* {  
  margin: 0;
  padding:0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
.scene {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(#a6d8ff, #fff, #fff)
}
.sun {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  top: 100px;
  left: 55%;
  transform: translateX(-50%);
  box-shadow: 0 0 50px #fff;
  transition: .2s;
  cursor: pointer;
}
.bg {
  position: absolute;
  width: 100%;
  height: 400px;
  bottom: 0;
  background: url(bg.png);
  background-size: 1500px;
  background-repeat: repeat-x;
  animation: animateBg 25s linear 1;
}
@keyframes animateBg {
  0% {
    background-position-x: 0px;
  }
  100% {
    background-position-x: -1500px;
  }
}
.car1 {
  position: absolute;
  bottom: 20px;
  max-width: 200px;
  z-index: 1;
  left: -200px;
  animation: car1 20s linear 1;
}
.car2 {
  position: absolute;
  bottom: 50px;
  max-width: 200px;
  right: -200px;
  animation: car2 14s linear 1;
}
@keyframes car1 {
  0% {
    transform: translateX(0px);
  }
  90%, 100% {
    transform: translateX(calc(100vw + 200px));
  }
}

@keyframes car2 {
  0% {
    transform: translateX(0px) rotateY(180deg);
  }
  90%, 100% {
    transform: translateX(calc(-100vw - 200px)) rotateY(180deg);
  }
}
.scene.night {
  background: var(--darkBlue)
}

.scene.night .sun {
  left: 65%;
  box-shadow: 0 0 0 #fff;
}
.scene.night .bg {
  opacity: .8;
}
.scene.night .sun:before {
  content: '';
  position: absolute;
  top: -20px;
  left: 20px;
  width: 100%;
  height:100%;
  border-radius: 50%;
  background: var(--darkBlue);
  transition: .01s;
}