/*
 * glpimod - GLPI Mod: self-service home page (real clock and seasonal decoration)
 */
.glpimod-overlay {
    position: absolute;
    pointer-events: none;
    overflow: visible;
}

/* string of lights along the top of the banner */
.glpimod-garland {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 42px;
    pointer-events: none;
    z-index: 2;
}
.glpimod-bulb {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6));
    animation: glpimod-twinkle 2.4s ease-in-out infinite;
}
.glpimod-bulb-1 { animation-delay: .8s; }
.glpimod-bulb-2 { animation-delay: 1.6s; }

@keyframes glpimod-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* gentle snowfall over the banner */
.glpimod-snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* candle flames and sun rays */
.glpimod-flame {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: glpimod-flicker 1.6s ease-in-out infinite;
}
.glpimod-spin {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: glpimod-spin 40s linear infinite;
}

@keyframes glpimod-flicker {
    0%, 100% { transform: scale(1, 1); opacity: 1; }
    30% { transform: scale(.94, 1.06); opacity: .9; }
    60% { transform: scale(1.04, .95); opacity: 1; }
}
@keyframes glpimod-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .glpimod-bulb, .glpimod-flame, .glpimod-spin { animation: none; }
}
