.loading-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background-color: grey;
  border-radius: 50%;
  animation: loading 1.5s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}