:root {
    --bg-color: #000000;
    --door-bg: #3E2723;
    --door-hover: #4E342E;
    --accent-green: #1B5E20;
    --text-color: #E0E0E0;
    --gold: #FFD700;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.calendar-container {
    position: relative;
    width: 95vw;
    max-width: 1200px;
    min-height: 90vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    border: 5px solid var(--door-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 50px rgba(27, 94, 32, 0.3);
    overflow: hidden;
}

.title {
    font-family: 'Mountains of Christmas', cursive;
    text-align: center;
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
}

.doors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.door {
    background-color: var(--door-bg);
    border: 2px solid #5D4037;
    border-radius: 10px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s, background-color 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.door:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
    background-color: var(--door-hover);
    z-index: 10;
}

.door.opened {
    background-color: #2c1e1b;
    border-color: #333;
    color: #555;
    transform: scale(0.95);
    box-shadow: inset 0 0 10px #000;
}

.door.opened::after {
    content: '✓';
    font-size: 1rem;
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: var(--accent-green);
}

/* Decorations */
.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tree {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 150px solid var(--accent-green);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    opacity: 0.6;
}

.tree-1 {
    bottom: -20px;
    left: -20px;
    transform: rotate(-10deg);
}

.tree-2 {
    bottom: -30px;
    right: -20px;
    transform: rotate(10deg) scale(1.2);
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 3s infinite ease-in-out;
}

.star-1 {
    top: 50px;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 80px;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Poinsettia */
.poinsettia {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FFD700 10%, transparent 10%);
    z-index: 2;
}

.poinsettia::before,
.poinsettia::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 20%;
    background-color: #D32F2F;
    border-radius: 50% 0 50% 0;
    transform: translate(-50%, -50%);
}

.poinsettia::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.poinsettia .leaves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 20%;
    background-color: #D32F2F;
    border-radius: 50% 0 50% 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.poinsettia .leaves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D32F2F;
    border-radius: 50% 0 50% 0;
    transform: rotate(90deg);
}

.flower-1 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.flower-2 {
    top: 150px;
    left: -10px;
    transform: scale(0.8);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(135deg, #2b1d1a, #1a1a1a);
    padding: 50px;
    border-radius: 15px;
    border: 2px solid var(--gold);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
    animation: modalOpen 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalOpen {
    0% {
        transform: scale(0.5) rotateY(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: var(--text-color);
}

#modal-body h2 {
    color: var(--gold);
    font-family: 'Mountains of Christmas', cursive;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
}

#modal-body p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 15px 0;
}

/* Snowflake Animation */
.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall linear forwards;
}

@keyframes snowfall {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
    }
}

/* Confetti particle */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    opacity: 0;

    .star-2 {
        top: 80px;
        right: 15%;
        animation-delay: 1.5s;
    }

    @keyframes twinkle {

        0%,
        100% {
            opacity: 0.3;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1.2);
        }
    }

    /* Poinsettia */
    .poinsettia {
        position: absolute;
        width: 60px;
        height: 60px;
        background: radial-gradient(circle, #FFD700 10%, transparent 10%);
        z-index: 2;
    }

    .poinsettia::before,
    .poinsettia::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 20%;
        background-color: #D32F2F;
        border-radius: 50% 0 50% 0;
        transform: translate(-50%, -50%);
    }

    .poinsettia::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .poinsettia .leaves {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 20%;
        background-color: #D32F2F;
        border-radius: 50% 0 50% 0;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .poinsettia .leaves::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #D32F2F;
        border-radius: 50% 0 50% 0;
        transform: rotate(90deg);
    }

    .flower-1 {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .flower-2 {
        top: 150px;
        left: -10px;
        transform: scale(0.8);
    }

    /* Modal */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }

    .modal.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .modal-content {
        background: linear-gradient(135deg, #2b1d1a, #1a1a1a);
        padding: 50px;
        border-radius: 15px;
        border: 2px solid var(--gold);
        max-width: 600px;
        width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
        animation: modalOpen 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes modalOpen {
        0% {
            transform: scale(0.5) rotateY(-180deg);
            opacity: 0;
        }

        100% {
            transform: scale(1) rotateY(0deg);
            opacity: 1;
        }
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2rem;
        cursor: pointer;
        color: #888;
        transition: color 0.2s;
        z-index: 10;
    }

    .close-btn:hover {
        color: var(--text-color);
    }

    #modal-body h2 {
        color: var(--gold);
        font-family: 'Mountains of Christmas', cursive;
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 2rem;
    }

    #modal-body p {
        font-size: 1.3rem;
        line-height: 1.8;
        margin: 15px 0;
    }

    /* Snowflake Animation */
    .snowflake {
        position: fixed;
        top: -10px;
        color: white;
        font-size: 1.5rem;
        opacity: 0;
        pointer-events: none;
        z-index: 9999;
        animation: snowfall linear forwards;
    }

    @keyframes snowfall {
        0% {
            opacity: 0;
            transform: translateY(0) translateX(0) rotate(0deg);
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
        }
    }

    /* Confetti particle */
    .confetti {
        position: fixed;
        width: 10px;
        height: 10px;
        opacity: 0;
        pointer-events: none;
        z-index: 9999;
        animation: confettiFall linear forwards;
    }

    @keyframes confettiFall {
        0% {
            opacity: 1;
            transform: translateY(0) translateX(0) rotate(0deg);
        }

        100% {
            opacity: 0;
            transform: translateY(100vh) translateX(var(--drift)) rotate(720deg);
        }
    }

    .quote-type {
        display: inline-block;
        background: var(--accent-green);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    /* Shake Animation */
    @keyframes shake {
        0% {
            transform: translate(1px, 1px) rotate(0deg);
        }

        10% {
            transform: translate(-1px, -2px) rotate(-1deg);
        }

        20% {
            transform: translate(-3px, 0px) rotate(1deg);
        }

        30% {
            transform: translate(3px, 2px) rotate(0deg);
        }

        40% {
            transform: translate(1px, -1px) rotate(1deg);
        }

        50% {
            transform: translate(-1px, 2px) rotate(-1deg);
        }

        60% {
            transform: translate(-3px, 1px) rotate(0deg);
        }

        70% {
            transform: translate(3px, 1px) rotate(-1deg);
        }

        80% {
            transform: translate(-1px, -1px) rotate(1deg);
        }

        90% {
            transform: translate(1px, 2px) rotate(0deg);
        }

        100% {
            transform: translate(1px, -2px) rotate(-1deg);
        }
    }

    .shake {
        animation: shake 0.5s;
        animation-iteration-count: 1;
    }

    /* Poinsettia */
    .poinsettia {
        position: absolute;
        width: 60px;
        height: 60px;
        background: radial-gradient(circle, #FFD700 10%, transparent 10%);
        z-index: 2;
    }

    .poinsettia::before,
    .poinsettia::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 20%;
        background-color: #D32F2F;
        border-radius: 50% 0 50% 0;
        transform: translate(-50%, -50%);
    }

    .poinsettia::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .poinsettia .leaves {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 20%;
        background-color: #D32F2F;
        border-radius: 50% 0 50% 0;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .poinsettia .leaves::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #D32F2F;
        border-radius: 50% 0 50% 0;
        transform: rotate(90deg);
    }

    .flower-1 {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .flower-2 {
        top: 150px;
        left: -10px;
        transform: scale(0.8);
    }

    /* Modal */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }

    .modal.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .modal-content {
        background: linear-gradient(135deg, #2b1d1a, #1a1a1a);
        padding: 50px;
        border-radius: 15px;
        border: 2px solid var(--gold);
        max-width: 600px;
        width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
        animation: modalOpen 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes modalOpen {
        0% {
            transform: scale(0.5) rotateY(-180deg);
            opacity: 0;
        }

        100% {
            transform: scale(1) rotateY(0deg);
            opacity: 1;
        }
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2rem;
        cursor: pointer;
        color: #888;
        transition: color 0.2s;
        z-index: 10;
    }

    .close-btn:hover {
        color: var(--text-color);
    }

    #modal-body h2 {
        color: var(--gold);
        font-family: 'Mountains of Christmas', cursive;
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 2rem;
    }

    #modal-body p {
        font-size: 1.3rem;
        line-height: 1.8;
        margin: 15px 0;
    }

    /* Fire Animation */
    .fire-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        z-index: 100;
    }

    .fire-logs {
        position: absolute;
        bottom: 0;
        left: 10px;
        width: 100%;
        height: 100%;
        background: #4E342E;
        border-radius: 5px;
        transform: rotate(15deg);
    }

    .fire-flame {
        position: absolute;
        bottom: 10px;
        left: 50%;
        width: 30px;
        height: 30px;
        background: radial-gradient(circle, #FFD700 0%, #FF6B6B 50%, transparent 100%);
        border-radius: 50% 0 50% 50%;
        transform: translateX(-50%) rotate(45deg);
        animation: fireBurn 1s infinite alternate;
        opacity: 0.8;
        filter: blur(1px);
    }

    .fire-flame:nth-child(1) {
        width: 40px;
        height: 40px;
        animation-duration: 1.2s;
        bottom: 15px;
    }

    .fire-flame:nth-child(2) {
        width: 25px;
        height: 25px;
        left: 40%;
        animation-duration: 0.8s;
        animation-delay: 0.2s;
        background: radial-gradient(circle, #FFA07A 0%, #FF4500 60%, transparent 100%);
    }

    .fire-flame:nth-child(3) {
        width: 20px;
        height: 20px;
        left: 60%;
        animation-duration: 1.5s;
        animation-delay: 0.5s;
        background: radial-gradient(circle, #FFFF00 0%, #FF8C00 60%, transparent 100%);
    }

    .fire-flame:nth-child(4) {
        width: 15px;
        height: 15px;
        left: 50%;
        bottom: 30px;
        animation: fireRise 2s infinite ease-out;
        background: rgba(255, 215, 0, 0.6);
        border-radius: 50%;
    }

    @keyframes fireBurn {
        0% {
            transform: translateX(-50%) rotate(45deg) scale(1);
            opacity: 0.8;
        }

        100% {
            transform: translateX(-50%) rotate(45deg) scale(1.2);
            opacity: 1;
        }
    }

    @keyframes fireRise {
        0% {
            bottom: 20px;
            opacity: 0;
            transform: translateX(-50%) scale(0.5);
        }

        50% {
            opacity: 0.8;
        }

        100% {
            bottom: 80px;
            opacity: 0;
            transform: translateX(-50%) scale(1.5);
        }
    }