
/* =====================================
   THE HOTEI CHRISTMAS POPUP 
   ===================================== */

#kerst-popup-toggle {
    display: none;
}

.kerst-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.82);
    overflow: auto;
}

.kerst-popup-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 390px;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid #d6b65b;

    background:
        radial-gradient(ellipse at 50% 0%,
            rgba(255,255,255,.18),
            transparent 55%),
        linear-gradient(145deg,
            #092f20,
            #145438 55%,
            #071e19);

    box-shadow:
        0 0 25px rgba(255,215,0,.35),
        0 15px 50px rgba(0,0,0,.7);

    color: white;
    text-align: center;
}

/* Christmas lights */

.kerst-lights {
    display: flex;
    justify-content: space-around;
    padding: 12px 5px 15px;
    background: rgba(0,0,0,.15);
}

.kerst-lights span {
    font-size: 19px;
    color: #ff3030;
    animation: kerst-lampjes 1.5s infinite alternate;
    text-shadow: 0 0 8px currentColor;
}

.kerst-lights span:nth-child(3n+1) {
    color: #ff3030;
    animation-delay: .2s;
}

.kerst-lights span:nth-child(3n+2) {
    color: #ffe45c;
    animation-delay: .7s;
}

.kerst-lights span:nth-child(3n) {
    color: #5cff91;
    animation-delay: 1s;
}

@keyframes kerst-lampjes {
    from {
        opacity: .45;
        text-shadow: 0 0 3px currentColor;
    }
    to {
        opacity: 1;
        text-shadow: 0 0 18px currentColor;
    }
}

/* Falling snow */

.kerst-snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .8;

    background-image:
        radial-gradient(3px 3px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 100px 80px, white, transparent),
        radial-gradient(3px 3px at 180px 140px, white, transparent),
        radial-gradient(2px 2px at 250px 40px, white, transparent),
        radial-gradient(3px 3px at 330px 180px, white, transparent),
        radial-gradient(2px 2px at 420px 100px, white, transparent);

    background-size: 250px 220px;
    animation: kerst-sneeuw 9s linear infinite;
}

@keyframes kerst-sneeuw {
    from {
        background-position: 0 -220px;
    }
    to {
        background-position: 70px 440px;
    }
}

/* Main content */

.kerst-inner {
    position: relative;
    z-index: 2;
    padding: 25px 25px 30px;
}

.kerst-decoration {
    font-size: 35px;
    margin-bottom: 12px;
}

.kerst-inner h2 {
    color: #ffe28a;
    font-family: Georgia, serif;
    font-size: 34px;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(255,215,0,.5);
}

.kerst-inner h3 {
    color: white;
    font-size: 19px;
    margin: 12px 0;
}

.kerst-inner p {
    color: #f5f5f5;
    line-height: 1.7;
    font-size: 15px;
}

.kerst-stars {
    margin: 18px 0;
    font-size: 23px;
}

/* Christmas button */

.kerst-popup-button {
    display: block;
    background: linear-gradient(135deg, #d9ad42, #f8df8a);
    color: #173b27 !important;
    padding: 16px 12px;
    margin: 20px auto;
    border: 2px solid #fff0b0;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 18px rgba(255,215,0,.35);
    transition: .3s;
}

.kerst-popup-button:hover {
    transform: scale(1.04);
    background: #fff0b0;
}

/* Close button */

.kerst-popup-close {
    position: absolute;
    z-index: 5;
    right: 14px;
    top: 45px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    line-height: 1;
}

/* Stay on original website */

.kerst-popup-stay {
    display: block;
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    margin: 18px 0;
    font-size: 14px;
}

.kerst-footer {
    color: #e8d69c;
    font-size: 12px;
    margin-top: 25px;
    letter-spacing: 1px;
}

/* Close popup */

#kerst-popup-toggle:checked ~ .kerst-popup {
    display: none;
}

/* Mobile */

@media (max-width: 480px) {
    .kerst-popup-content {
        max-width: 100%;
    }

    .kerst-inner {
        padding: 20px 16px 25px;
    }

    .kerst-inner h2 {
        font-size: 29px;
    }
}
