/* Shared Christmas atmosphere for public giving pages. */
.roh-home-seasonal-effects {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 30;
}

.roh-home-seasonal-effect {
    animation: roh-home-seasonal-fall var(--effect-duration) linear var(--effect-delay) infinite;
    left: var(--effect-left);
    opacity: .72;
    position: absolute;
    top: -12vh;
    transform: translate3d(0, -12vh, 0);
    will-change: transform;
}

.roh-home-seasonal-effect--snow {
    color: rgba(255, 255, 255, .92);
    filter: drop-shadow(0 1px 2px rgba(15, 111, 104, .18));
    font-size: 1.45rem;
}

.roh-home-seasonal-effect.snow--small {
    font-size: .95rem;
    opacity: .58;
}

.roh-home-seasonal-effect--confetti {
    border-radius: 3px;
    height: 15px;
    opacity: .78;
    width: 7px;
}

.roh-home-seasonal-effect.confetti--pink { background: #ff7898; }
.roh-home-seasonal-effect.confetti--gold { background: #d09a32; }
.roh-home-seasonal-effect.confetti--teal { background: #31a497; }
.roh-home-seasonal-effect.confetti--red { background: #b72849; }

.roh-home-seasonal-effect--star {
    animation-name: roh-home-seasonal-star-fall;
    color: #d09a32;
    font-size: 1.35rem;
    opacity: .78;
    text-shadow: 0 0 10px rgba(208, 154, 50, .25);
}

@keyframes roh-home-seasonal-fall {
    0% { transform: translate3d(0, -12vh, 0) rotate(0deg); }
    35% { transform: translate3d(var(--effect-drift), 35vh, 0) rotate(130deg); }
    70% { transform: translate3d(calc(var(--effect-drift) * -0.65), 72vh, 0) rotate(250deg); }
    100% { transform: translate3d(var(--effect-drift), 116vh, 0) rotate(360deg); }
}

@keyframes roh-home-seasonal-star-fall {
    0%, 100% {
        opacity: .28;
        transform: translate3d(0, -12vh, 0) rotate(0deg) scale(.8);
    }
    35% {
        opacity: .86;
        transform: translate3d(var(--effect-drift), 35vh, 0) rotate(80deg) scale(1.05);
    }
    70% {
        opacity: .5;
        transform: translate3d(calc(var(--effect-drift) * -0.65), 72vh, 0) rotate(160deg) scale(.82);
    }
}

@media (max-width: 580px) {
    .roh-home-seasonal-effect--snow { font-size: 1.05rem; }
    .roh-home-seasonal-effect--confetti { height: 11px; width: 5px; }
    .roh-home-seasonal-effect--star { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .roh-home-seasonal-effect {
        animation: none;
        display: none;
    }
}
