#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Start hidden, JS will show it */
    opacity: 0;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.show {
    display: flex;
    opacity: 1;
}

  .loading-content {
    text-align: center;
    color: white;
  }
  
  .loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 0.5rem solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }