/* Preloader wrapper */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Hide state */
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Loader animation */
.loader {
  display: flex;
  gap: 1.0rem;
}

.loader span {
  width: 1.0rem;
  height: 1.0rem;
  background-color: #2BAE66;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }

  to {
    transform: translateY(-1.0rem);
    opacity: 1;
  }
}