/* Preloader container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #161616; /* Background color */
    z-index: 9999; /* Ensure it's on top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Spinner animation */
  .spinner {
    margin: 0px;
    width: 50px;
    height: 50px;
    border: 10px solid #f3f3f3; /* Light border */
    border-top: 10px solid #ff810e; /* Dark border */
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  /* Loading text */
  .loading-text {
    /* margin-top: 20px; */
    font-size: 38px;
    font-family: var(--jersey-font);
    color: #fff; /* Text color */
    text-align: center;
  }
  
  /* Responsive scaling for spinner */
  @media (max-width: 768px) {
    .spinner {
      width: 40px;
      height: 40px;
    }
    .loading-text {
      font-size: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .spinner {
      width: 30px;
      height: 30px;
    }
    .loading-text {
      font-size: 14px;
    }
  }
  
  /* Spinner animation keyframes */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  