/* Styles for the fade effect */
.fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  display: flex; /* Flexbox layout */
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
  transition: opacity 0.5s ease;
}

.fade-active {
  opacity: 1;
  pointer-events: all;
}

/* Optional: Loading text style */
.loading-text {
  color: white;
  font-size: 1.5em;
  font-family: Arial, sans-serif;
  margin-bottom: 40px; /* Add spacing between text and spinner */
}

/* Spinner style */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

/* Mobile view */
@media (max-width: 1080px) {
  .fade {
display:none;
  }
  .fade-active {
      opacity: 0;
      pointer-events: all;
  }
  


}