/* Spring Animations & Styles */

:root {
    --spring-blue: #38bdf8;
    --spring-pink: #f472b6;
    --spring-pink-light: #fbcfe8;
}

/* --- Falling Elements (Petals, Leaves, etc.) --- */
.falling-item {
    position: fixed;
    top: -50px;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    animation-name: fall, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: 1, infinite;
    text-shadow: 0 0 5px rgba(244, 114, 182, 0.5);
    /* soft pink glow */
}

@keyframes fall {
    0% {
        top: -50px;
    }

    100% {
        top: 110vh;
    }
}

@keyframes sway {
    0% {
        transform: translateX(0px) rotate(0deg);
    }

    50% {
        transform: translateX(20px) rotate(10deg);
    }

    100% {
        transform: translateX(0px) rotate(0deg);
    }
}

/* Button override for Spring */
#spring-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.8);
    border: 2px solid var(--spring-blue);
    color: var(--spring-pink);
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

#spring-toggle:hover {
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: scale(1.1);
}

#spring-toggle.spring-off {
    opacity: 0.7;
    filter: grayscale(1);
    border-color: #888;
}