﻿html, body {
  height: 100%;
}

body {
  background: #2d2d2d;
}

#stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  margin: auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  perspective: 9999px;
  transform-style: preserve-3d;
}

#stage:before {
  content: '';
  position: absolute;
  left: 43px;
  width: calc(70% + 9px);
  height: 15%;
  top: 375px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}

#stage:after {
  content: '';
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 -18.75px 0 rgba(0, 0, 0, 0.15) inset, 0 -75px 75px rgba(0, 0, 0, 0.25) inset;
  border: 7.5px solid #2d2d2d;
  transform: translateZ(300px);
}

#ball {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  margin: auto;
  width: 300px;
  height: 300px;
  transform: rotateY(45deg);
  transform-style: preserve-3d;
}

.ring {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  transform: translateZ(180px);
  animation: doit 5000ms infinite ease-in-out forwards;
}

.ring:after {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 50%;
  background: #222;
  content: '';
  transform: scale(0);
  animation: toit 2500ms infinite ease-in-out alternate;
}

.ring:nth-child(even):after {
  background: #666666;
}

.ring:nth-child(1),
.ring:nth-child(1):after {
  animation-delay: -416.6666666667ms;
}

.ring:nth-child(2),
.ring:nth-child(2):after {
  animation-delay: -833.3333333333ms;
}

.ring:nth-child(3),
.ring:nth-child(3):after {
  animation-delay: -1250ms;
}

.ring:nth-child(4),
.ring:nth-child(4):after {
  animation-delay: -1666.6666666667ms;
}

.ring:nth-child(5),
.ring:nth-child(5):after {
  animation-delay: -2083.3333333333ms;
}

.ring:nth-child(6),
.ring:nth-child(6):after {
  animation-delay: -2500ms;
}

.ring:nth-child(7),
.ring:nth-child(7):after {
  animation-delay: -2916.6666666667ms;
}

.ring:nth-child(8),
.ring:nth-child(8):after {
  animation-delay: -3333.3333333333ms;
}

.ring:nth-child(9),
.ring:nth-child(9):after {
  animation-delay: -3750ms;
}

.ring:nth-child(10),
.ring:nth-child(10):after {
  animation-delay: -4166.6666666667ms;
}

.ring:nth-child(11),
.ring:nth-child(11):after {
  animation-delay: -4583.3333333333ms;
}

.ring:nth-child(12),
.ring:nth-child(12):after {
  animation-delay: -5000ms;
}

@keyframes doit {
  100% {
    transform: translateZ(-172.5px);
  }
}
@keyframes toit {
  100% {
    transform: scale(1);
  }
}
*, *:after {
  animation-play-state: running !important;
}