@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  color: #333;
  font-family: Arial, sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

/* Logo style */
.preloader-logo {
  width: 80%;
 
}

/* Preloader text */
#preloader-text {
  font-size: 30px;
  width: 100%;
  max-width: 800px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  line-height: 1.4;
  padding: 10px;
  box-sizing: border-box;
  height: auto;         /* 💥 This allows the text to grow */
  overflow: visible;    /* Just in case */
}

.preloader-line {
  opacity: 1;
  white-space: normal;  /* Allow wrapping */
}


#line1.show,
#line2.show {
  opacity: 1;
}

/* Responsive text scaling */
@media (max-width: 1024px) {
  #preloader-text {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  #preloader-text {
    font-size: 18px;
  }
}


/* Optional pulse animation */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive styles */
@media (max-width: 768px) {
  #preloader-text {
    font-size: 24px;
    height: 80px;
  }

  .preloader-logo {
    width: 70%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  #preloader-text {
    font-size: 20px;
    height: 60px;
  }

  .preloader-logo {
    width: 60%;
    max-width: 200px;
  }
}

body.loaded {
  overflow: auto;
}
