/*
 * Bonfire Night fireworks, shown 1-10 November.
 *
 * Rendered by //layouts/_seasonalDecorations. The bursts are decorative only
 * and the overlay never intercepts clicks (pointer-events: none).
 */

.seasonal-fireworks {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    overflow: hidden;
    pointer-events: none;
}

.seasonal-fireworks__defs {
    position: absolute;
    width: 0;
    height: 0;
}

.seasonal-firework {
    position: absolute;
    color: var(--firework-colour, #ffb703);
    transform-origin: 50% 50%;
    animation: seasonal-firework-burst 8s ease-out infinite;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4));
}

.seasonal-firework--one {
    top: -70px;
    left: 3%;
    width: 260px;
    height: 260px;
    --firework-colour: #ffb703;
    animation-delay: -2.5s;
}

.seasonal-firework--two {
    top: -24px;
    right: 5%;
    width: 200px;
    height: 200px;
    --firework-colour: #fb8500;
    animation-delay: -5.5s;
}

.seasonal-firework--three {
    top: 300px;
    right: 9%;
    width: 120px;
    height: 120px;
    --firework-colour: #e63946;
    animation-delay: -1s;
    animation-duration: 9s;
}

@keyframes seasonal-firework-burst {
    0% {
        opacity: 0;
        transform: scale(.2);
    }

    8% {
        opacity: .2;
    }

    16% {
        opacity: 1;
    }

    55% {
        opacity: .9;
        transform: scale(1);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.06);
    }
}

@media (max-width: 767px) {
    .seasonal-firework--one {
        top: -50px;
        left: -40px;
        width: 180px;
        height: 180px;
    }

    .seasonal-firework--two {
        top: -30px;
        right: -30px;
        width: 150px;
        height: 150px;
    }

    .seasonal-firework--three {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seasonal-firework {
        animation: none;
    }
}

@media print {
    .seasonal-fireworks {
        display: none !important;
    }
}
