/* Loading Screen - Updated for black/white aesthetic */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;  /* Extended 20% below viewport to hide content */
    display: flex;
    justify-content: center;
    align-items: flex-start;
/*    padding-top: 40vh;*/
    z-index: 9999;
    transform: translateY(0);
    transition: transform 2.88s cubic-bezier(0.76, 0, 0.24, 1);
    
    /* Black gradient for zine aesthetic */
    background: 
        linear-gradient(
            180deg, 
            #000 0%,           /* Black at top */
            #111 50%,          /* Slightly lighter through middle */
            #111 75%,          /* Solid color through most of screen */
            #111 80%,          /* Still solid at 80% */
            rgba(17, 17, 17, 0.95) 85%,  /* Slight fade begins */
            rgba(17, 17, 17, 0.7) 90%,   /* More fade */
            rgba(17, 17, 17, 0.3) 95%,   /* Heavy fade */
            rgba(17, 17, 17, 0) 100%     /* Fully transparent at very bottom */
        );
	        display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-screen img{
    max-width: 20%;
    display: block;
    margin-bottom: 3em;
    margin-top: -10em;
}
.loading-screen.hidden {
    transform: translateY(-120%);  /* Move up by full extended height */
}

/* Fallback fade animation */
.loading-screen.fade-transition {
    transition: opacity 0.5s ease;
}

.loading-screen.fade-transition.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #333;  /* Dark gray for base */
    border-top: 3px solid #fff;  /* White for spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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