body {
  background-color: black;
}

main {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  color: white;
  flex-direction: column;
}

.animation-wrapper {
  height: 20vh;
  width: 20vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle {
  position: inherit;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: turquoise;
  animation: move-the-circle 1s infinite;
  transform-origin: center center;
}

/* @for $num from 1 through 8 { */
/*   .circle:nth-child(#{$num}) { */
/*     left: ($num - 1) * 30px; */
/*     animation-delay: $num * 0.1s; */
/*   } */
/* } */

.circle:nth-child(1) {
  left: 0px;
  animation-delay: 0s;
}

div.circle:nth-child(2) {
  left: 30px;
  animation-delay: 0.1s;
}

div.circle:nth-child(3) {
  left: 60px;
  animation-delay: 0.3s;
}

div.circle:nth-child(4) {
  left: 90px;
  animation-delay: 0.4s;
}

div.circle:nth-child(5) {
  left: 120px;
  animation-delay: 0.5s;
}

div.circle:nth-child(6) {
  left: 150px;
  animation-delay: 0.6s;
}

div.circle:nth-child(7) {
  left: 180px;
  animation-delay: 0.7s;
}

div.circle:nth-child(8) {
  left: 210px;
  animation-delay: 0.8s;
}

@keyframes move-the-circle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    background-color: turquoise;
  }
  50% {
    transform: translate(0, 50px) scale(0.4);
    opacity: 0.5;
    background-color: blue;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    background-color: turquoise;
  }
}
