/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000; /* Ensure it's on top of everything */
}

#loading-screen img {
    width: 100vh; /* Adjust as needed */
    height: 100vh; /* Adjust as needed */
    background-color: black;
}

/* Hide content initially */
#content {
    display: none;
}

/* Hide all other elements during loading */
body.loading * {
    visibility: hidden;
}

body.loading #preloader {
    visibility: visible;
}

  /* CSS spinner (hidden by default) */
  #loading-screen .spinner {
    display: none;
    width: 64px;
    height: 64px;
    border: 8px solid #b7410e;
    border-top: 8px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    100% { transform: rotate(360deg); }
  }

  /* Switch to CSS spinner on laptops */
  @media (min-width: 1024px) {
    #loading-screen img {
      display: none;
    }
    #loading-screen .spinner {
      display: block;
    }
  }