@keyframes spin {
  to {
    background-position: 0 200%;
  }
}
@keyframes spinMask {
  to {
    -webkit-mask-position: 0 200%;
  }
}
body,
html {
  margin: 0;
  height: 100%;
  background: url(sky.jpg);
  background-size: cover;
}
body::after {
  content: '';
  position: fixed;
  width: 100vw;
  height: 100vw;
  bottom: -84vw;
  left: 0;
  border-radius: 100%;
  box-shadow: inset 0 5px 3px -5px white;
}
.wrapper,
.wrapper-earth {
  position: fixed;
  width: 100vw;
  height: 100vw;
  bottom: -84vw;
  left: 0;
  border-radius: 100%;
  overflow: hidden;
}
.wrapper {
  box-shadow: 0.5vw 0 1vw #6dcfff, 1vw 0 5vw rgba(255, 255, 255, 0.5), 3vw -8vw 6vw -9vw rgba(201, 237, 255, 0.5);
}
.wrapper::before,
.wrapper::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100%;
}
.wrapper::before {
  box-shadow: inset 0 0 3vw 1.5vw rgba(201, 237, 255, 0.83);
}
.wrapper::after {
  top: 200vw;
  box-shadow: -8vw -196vw 10vw black;
}
.wrapper-earth {
  bottom: -84.5vw;
  box-shadow: 0 0 0 0.5vw rgba(201, 237, 255, 0.5);
}
.planet,
.planet-clouds {
  perspective: 39vw;
}
.planet-clouds {
  mix-blend-mode: screen;
}
.planet,
.planet-clouds,
.water,
.earth,
.clouds {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.earth {
  background: url(earth.jpg) 0 0;
  background-size: cover;
  animation: spin 10s linear infinite;
  transform-origin: top;
  transform: rotateX(30deg) scale(0.4);
}
.water {
  -webkit-mask-image: url(water.png);
  -webkit-mask-size: cover;
  animation: spinMask 10s linear infinite;
  transform-origin: top;
  transform: rotateX(30deg) scale(0.4);
  mix-blend-mode: lighten;
}
.water::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 70%;
  width: 40%;
  height: 35%;
  border-radius: 100%;
  box-shadow: 0 0 15vw 20vw #ffb400;
}
.clouds {
  background: url(clouds.jpg) 0 0;
  mix-blend-mode: screen;
  background-size: cover;
  animation: spin 9s linear infinite;
  transform-origin: top;
  transform: rotateX(30deg) scale(0.4);
}
.wrapper-earth .clouds {
  mix-blend-mode: multiply;
  filter: invert(100%);
  opacity: 0.5;
}
.sun {
  mix-blend-mode: screen;
}
.sun::before {
  content: '';
  position: fixed;
  bottom: 0;
  right: 14vw;
  width: 50vw;
  height: 40vw;
  background: url(flare.jpg) no-repeat;
  background-size: contain;
  opacity: 0.2;
}
.sun .flare {
  position: fixed;
  width: 6vw;
  height: 68vw;
  right: 34vw;
  bottom: 0;
  overflow: hidden;
  opacity: 0.2;
  filter: blur(2px);
  transform: rotate(30deg);
}
.sun .flare:nth-child(2) {
  transform: rotate(-30deg);
}
.sun .flare:nth-child(3) {
  transform: rotate(60deg);
}
.sun .flare:nth-child(4) {
  transform: rotate(120deg);
}
.sun .flare::after {
  content: '';
  position: absolute;
  top: 30vw;
  width: 8vw;
  height: 8vw;
  border-radius: 100%;
  box-shadow: 0 0 30vw white;
}
.sun::after {
  content: '';
  position: fixed;
  bottom: 30vw;
  right: 33vw;
  width: 8vw;
  height: 8vw;
  border-radius: 100%;
  background: white;
  box-shadow: 0 0 4vw white, 0 0 10vw rgba(255, 165, 0, 0.5), 0 0 10vw rgba(255, 255, 255, 0.2), 0 0 1vw white, 0 0 2vw white;
}
