/* The main overlay */
#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: transparent; Transparent background */
  background-color: rgba(0, 0, 0, 0.3); /* This is a semi-transparent black */
  
  z-index: 9999;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
}

/* The container for the dots */
.dot-loader {
  display: flex;
}

/* Styling for each dot */
.dot-loader span {
  width: 20px;
  height: 20px;
  margin: 0 10px;
  background-color: #3498db; /* A nice blue color, change as needed */
  border-radius: 50%;
  
  /* Apply the animation */
  animation-name: blink;
  animation-duration: 1.4s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

/* Add a delay to the 2nd and 3rd dots for the sequential effect */
.dot-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

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

/* The animation keyframes */
@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}