:root {
  --dot-size: clamp(12px, 4vmin, 40px);
  --dot-gap: clamp(8px, 2vmin, 18px);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: #eef5ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  display: flex;
  gap: var(--dot-gap);
}

.container .dots {
  height: var(--dot-size);
  width: var(--dot-size);
  border-radius: 50%;
  background-color: #008ae4;
  animation: animate 1s infinite ease-in-out alternate;
}

.dots:nth-child(1) {
  animation-delay: -0.25s;
}

.dots:nth-child(2) {
  animation-delay: -0.5s;
  background-color: #e60000;
}

.dots:nth-child(3) {
  animation-delay: -0.75s;
  background-color: #ffcb00;
}

.dots:nth-child(4) {
  animation-delay: -1s;
  background-color: #018900;
}

@keyframes animate {
  0% {
    transform: translateY(-40%);
  }
  100% {
    transform: translateY(20%);
  }
}
