/* ImageLoader.module.css */

.loaderContainer {
  position: absolute;
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(
    190,
    168,
    150,
    0.8
  ); /* Slightly transparent warm beige background */
  z-index: 1000; /* Ensures loader is above other content */
  transition: opacity 0.5s ease; /* Smooth fade-out */
}

.loader {
  display: inline-block;
  width: 80px;
  height: 80px;
  position: relative;
}

.horseshoe {
  width: 80px;
  height: 80px;
  border: 8px solid transparent;
  border-top: 8px solid #4f3b2e; /* Dark brown color for the horseshoe */
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  position: relative;
}

.horseshoe::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 10%;
  background-color: #4f3b2e; /* Dark brown color for horseshoe bar */
  top: 15%;
  left: 30%;
  border-radius: 2px;
}
.dot {
  display: inline-block;
  animation: wave 1.2s infinite ease-in-out;
  font-size: 2rem;
  color: #333;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

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

.text {
  font-family: Arial, sans-serif;
  color: #4f3b2e;
  font-size: 0.85rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}
