/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    transition: opacity 1s ease-in-out;
    
}
body.content-loaded {
  opacity: 1;
}

/* Preloader Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f1ebc3; /* Light background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100002;
    overflow: hidden;
  }
  
  .text-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .preloader-logo {
    width: 120px; /* Smaller default size */
    height: auto;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.25s;
  }
  
  .preloader-text {
    display: inline-flex;
    gap: 5px; /* Smaller gap for better alignment */
    flex-wrap: wrap; /* Responsive wrapping */
    justify-content: center; /* Center text */
  }
  
  .preloader-text span {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5rem; /* Smaller default size */
    font-weight: bold;
    color: rgb(32, 31, 31);
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    display: inline-block;
    transform: translateY(20px);
  }
  
  /* Adding responsive adjustments */
  @media (min-width: 768px) {
    .preloader-logo {
        width: 150px;
    }
  
    .preloader-text span {
        font-size: 2rem; /* Larger font size for tablets and above */
    }
  }
  
  /* Fixing animation delays */
  .preloader-text span:nth-child(1) { animation-delay: 0.5s; }
  .preloader-text span:nth-child(2) { animation-delay: 0.65s; }
  .preloader-text span:nth-child(3) { animation-delay: 0.75s; }
  .preloader-text span:nth-child(4) { animation-delay: 0.85s; }
  .preloader-text span:nth-child(5) { animation-delay: 0.95s; }
  .preloader-text span:nth-child(6) { animation-delay: 1.05s; }
  .preloader-text span:nth-child(7) { animation-delay: 1.15s; }
  .preloader-text span:nth-child(8) { animation-delay: 1.25s; }
  .preloader-text span:nth-child(9) { animation-delay: 1.35s; }
  .preloader-text span:nth-child(10) { animation-delay: 1.45s; }
  .preloader-text span:nth-child(11) { animation-delay: 1.55s; }
  .preloader-text span:nth-child(12) { animation-delay: 1.65s; }
  .preloader-text span:nth-child(13) { animation-delay: 1.75s; }
  .preloader-text span:nth-child(14) { animation-delay: 1.85s; }
  .preloader-text span:nth-child(15) { animation-delay: 1.95s; }
  
  @keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
  }
  
  #preloader.fade-out {
    animation: fadeOut 2s ease-in-out forwards;
  }
  
  @keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
  }