/* General Styles */
body {
    background: radial-gradient(circle, rgba(10, 10, 50, 1) 30%, rgba(0, 0, 0, 1) 80%);
    transition: background 3s ease-in-out;
    overflow: hidden;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Galaxy and Black Sky Transition */
#galaxy, #stars {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 3s ease-in-out;
}

/* Overlay to prevent white flash */
#fadeOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    z-index: 2;
}

/* Individual Star */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s infinite alternate ease-in-out;
}

/* Twinkling Effect */
@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Ensures smooth visibility of stars */
.show-stars {
    opacity: 1 !important;
}

/* Get Set Sleep Button */
#sleepButton {
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 24px;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    position: relative;
    z-index: 3;
}

/* Button Hover */
#sleepButton:hover {
    background-color: #cccccc;
}

/* Smoothly fade out the galaxy */
.fade-out-galaxy {
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

/* Sleep Mantra (Slightly Above the Button & Properly Fading) */
#sleepMantra {
    position: fixed;
    bottom: 60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #a0a0a0;
    text-align: center;
    opacity: 0;
    transition: opacity 5s ease-in-out;
    z-index: 3;
}

/* "Good Night" Button - Transparent with White Outline */
.good-night-mode {
    font-size: 18px;
    padding: 10px 20px;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid white !important;
    border-radius: 30px;
    opacity: 1;
    transition: opacity 10s ease-in-out;
}

/* Fading Out Effect for Mantra & Button */
.fade-out {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #sleepButton {
        font-size: 20px;
        padding: 12px 24px;
    }

    #sleepMantra {
        font-size: 16px;
        bottom: 65%;
    }
}
/* Mute Button - Styled Like "Good Night" Button */
#muteButton {
    font-size: 16px;
    padding: 8px 16px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 5s ease-in-out;
    opacity: 1;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Hide Mute Button After 15s */
.fade-out {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}
