/*
 * Christmas fairy lights, shown 1 December - 1 January.
 *
 * Rendered by //layouts/_seasonalDecorations. The strand is decorative only
 * and the overlay never intercepts clicks (pointer-events: none).
 */

.seasonal-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1040;
    overflow: hidden;
    pointer-events: none;
}

.seasonal-lights__wire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
}

.seasonal-lights__wire path {
    fill: none;
    stroke: #7a7a7a;
    stroke-width: 1.5;
}

.seasonal-lights__bulb {
    position: absolute;
    width: 11px;
    height: 15px;
    margin-left: -5.5px;
    border-radius: 50% 50% 45% 45% / 42% 42% 58% 58%;
    background: var(--bulb-colour, #ffe9b0);
    box-shadow: 0 0 7px 2px var(--bulb-colour, #ffe9b0);
    animation: seasonal-twinkle 3.2s ease-in-out infinite;
    animation-delay: var(--bulb-delay, 0s);
}

.seasonal-lights__bulb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 5px;
    height: 4px;
    margin-left: -2.5px;
    border-radius: 1px;
    background: #3a3a3a;
}

@keyframes seasonal-twinkle {
    0%,
    100% {
        opacity: .6;
    }

    50% {
        opacity: 1;
    }
}

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

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