@use '../abstracts/variables' as *;

.loading-bars {
  width: 100%;
  height: 100%;
  background-color: inherit;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  
  & span {
    height: 20px;
    width: 6px;
    background-color: currentColor;
    animation: loadingBarsAnimation 1s infinite;

    &:nth-child(1) {
      animation-delay: 0s;
    }

    &:nth-child(2) {
      animation-delay: 0.15s;
    }

    &:nth-child(3) {
      animation-delay: 0.3s;
    }

    &:nth-child(4) {
      animation-delay: 0.45s;
    }
  }
}


@keyframes loadingBarsAnimation {
  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}