/* Shared P99 Background Styles */
/* Used across all pages for consistent day/night cycle */

body {
    transition: background 3s ease-in-out;
    position: relative;
    overflow-x: hidden;
    background-attachment: fixed;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
}

/* Fixed background container to prevent stretching */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: inherit;
}

/* Stars background layer */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sun element */
#sun {
    position: fixed;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFF9E6 0%, #FFD700 40%, #FFA500 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 165, 0, 0.4);
    z-index: 0;
    pointer-events: none;
    transition: all 3s ease-in-out;
    opacity: 0;
}

/* Moon element - Drinal */
#moon {
    position: fixed;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 35% 35%, #e8e8e8 0%, #c0c0c0 30%, #888888 70%, #666666 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(200, 200, 220, 0.6),
        0 0 80px rgba(180, 180, 200, 0.3),
        inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    z-index: 0;
    pointer-events: none;
    transition: all 3s ease-in-out;
    opacity: 0;
}

/* Moon craters (for realistic appearance) */
#moon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(100, 100, 100, 0.3);
    border-radius: 50%;
    top: 30%;
    left: 50%;
    box-shadow: 
        -15px 10px 0 5px rgba(100, 100, 100, 0.2),
        10px -5px 0 3px rgba(100, 100, 100, 0.25),
        -5px -10px 0 2px rgba(100, 100, 100, 0.15);
}

/* Ensure content is above background */
.container {
    position: relative;
    z-index: 1;
}

