/**
 * Celestial Background Styles for Yoga Tarot
 */

#celestial-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: background-color 2s ease;
    overflow: hidden;
}

/* Ensure canvas fills container */
#celestial-background canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Adjust content to work with background */
.content-container {
    position: relative;
    z-index: 1;
}

/* Card-specific background modifiers */
.card-asana #celestial-background {
    transition: background-color 1.5s ease;
}

.card-wisdom #celestial-background {
    transition: background-color 1.5s ease;
}

/* Time of day transitions should be slower */
.time-transition #celestial-background {
    transition: background-color 5s ease;
}

/* Make sure foreground text is legible */
body.has-celestial-background {
    color: #1f1f1f;
}

body.has-celestial-background .card {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.has-celestial-background h1, 
body.has-celestial-background h2, 
body.has-celestial-background h3 {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    body.has-celestial-background {
        color: #f1f1f1;
    }
    
    body.has-celestial-background .card {
        background-color: rgba(25, 25, 35, 0.85);
    }
    
    body.has-celestial-background h1, 
    body.has-celestial-background h2, 
    body.has-celestial-background h3 {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }
}