/* WhatsApp Button Styles */
.whatsapp-btn {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px; /* Distance from the right */
  background-color: #25d366; /* WhatsApp color */
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999; /* Ensure it is above all other elements */
  transition: background-color 0.3s ease;
}

.whatsapp-btn img {
  width: 50px;
  height: 50px;
  display: block;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .whatsapp-btn {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn img {
    width: 45px;
    height: 45px;
  }
}

/* Full-screen loader styles */
.loader-container {
  position: fixed; /* Make the loader fixed to cover the whole screen */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Semi-transparent white background */
  z-index: 9999; /* Ensure it's on top of all other content */
  visibility: visible; /* Initially visible */
  opacity: 1; /* Fully opaque initially */
  transition: opacity 1s ease-out; /* Smooth fade-out transition */
}

.loader {
  width: 70px;
  height: 70px;
  position: relative;
}

.loader:before {
  content: "";
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 6px solid #007bff;
  position: absolute;
  top: 0;
  left: 0;
  animation: pulse 1s ease-in-out infinite;
}

.loader:after {
  content: "";
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: #007bff;
  position: absolute;
  top: 0;
  left: 0;
  animation: spin 2s linear infinite;
}

.loader-text {
  font-size: 24px;
  margin-top: 20px;
  color: #007bff;
  font-family: Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

/* Pulsing animation for loader */
@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(0.6);
    opacity: 1;
  }
}

/* Spinning animation for loader */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hide content initially until the loader disappears */
.content-loader {
  display: none;
}

.loaded .loader-container {
  opacity: 0; /* Fade out the loader */
  visibility: hidden; /* Hide the loader completely after the fade-out */
}

.loaded .content-loader {
  display: block; /* Show the content once the loader is hidden */
}
