:root {
    --primary-color: #c0392b;
    /* Christmas Red */
    --secondary-color: #27ae60;
    /* Christmas Green */
    --accent-color: #f1c40f;
    /* Gold */
    --text-color: #2c3e50;
    --snow-white: #ffffff;
    --door-bg: #ecf0f1;
    --door-border: #bdc3c7;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: url('tree_background_village2.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    color: var(--snow-white);
}

#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    /* On top of everything */
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    /* Above calendar, below modal */
}

main {
    /* border: thin solid blue; */
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    /* max-width: 1000px; */
    /* Wider to fit tree better */
    text-align: center;
    padding: 0rem 0;
    /* Removed background and backdrop-filter */

    display: flex;
    justify-content: center;
    align-items: center;
}

.containerTitre {
    position: absolute;
    /* width: 100%; */
    left: 20px;
    top: 20px;
    margin-top: 20px;
    margin-left: 50px;
    /* border: thin solid red; */
}

h1 {
    font-family: 'Mea Culpa', cursive;
    font-size: 5rem;
    padding-top: O;
    padding-bottom: O;
    margin-bottom: 0;
    margin-top: 0;
    color: #fff;
    /* Gold for title */
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
}

h2 {
    font-family: 'Funnel Display', cursive;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 2rem;
    color: #f6c514;
    /* Gold for title */
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
}

.calendar-grid {
    position: relative;
    width: 100%;
    height: 800px;
    /* Fixed height for the tree area */
    max-width: 600px;
    /* Constrain width to keep tree shape */
    margin: 0 auto;
    /* Ensure it's centered */
    /* border: thin solid red; */
}

.day-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    /* Circular ornaments */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 60px;
    /* Smaller size for ornaments */
    height: 60px;
    position: absolute;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.day-card:hover {
    transform: scale(1.1);
    z-index: 5;
}

.door {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle at 30% 30%, #0936ee, #13013c); */
    background: radial-gradient(circle at 30% 30%, #f6c514, #9f5b03f9);
    /* border: 1px solid #f1c40f; */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Funnel Display', cursive;
    font-size: 1.8rem;
    color: #c0392b;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
    transform-origin: top;
    /* Swing like an ornament? Or just flip */
    transition: transform 0.6s cubic-bezier(0.4, 2.08, 0.55, 0.44), opacity 0.6s;
    z-index: 2;
    backface-visibility: hidden;
}

.day-card.open .door {
    transform: rotateX(180deg);
    /* Flip up/down */
    opacity: 0;
    /* Fade out to reveal content fully */
    pointer-events: none;
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--snow-white);
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--text-color);
    z-index: 1;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Opened door state - desaturated colors */
.day-card.opened .door {
    filter: saturate(0.4) brightness(0.7);
    opacity: 0.8;
}

/* Door click animation */
@keyframes doorPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Door bounce on close */
@keyframes doorBounce {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    50% {
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.day-card.animating {
    animation: doorPulse 0.6s ease-out;
}

.day-card.bouncing {
    animation: doorBounce 0.5s ease-out;
}

/* Variation in ornament colors */
.day-card:nth-child(even) .door {
    background: radial-gradient(circle at 30% 30%, #c0392b, #4e0c06);
    color: #f6c514;
}



/* Remove old snow styles */
/* .snow-container, @keyframes snow, body::after removed/replaced */



/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(255 178 0 / 34%);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: #000;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    box-shadow: 3px 3px 18px 2px rgba(255, 142, 8, 0.72);
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
    border-radius: 10px;
    overflow: hidden;
}

.close-button {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 101;
    cursor: pointer;
    text-shadow: 0 0 5px black;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

video,
iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 10px 20px;

    /* Door 4 Style (Green) */
    background: radial-gradient(circle at 30% 30%, #f6c514, #9f5b03f9);
    color: #fff;

    text-decoration: none;
    border-radius: 30px;
    font-family: 'Funnel Display', sans-serif;
    /* Chewy font */
    font-size: 1.2rem;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;
}

.floating-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    /* Slightly lighter green on hover or just scale */
    filter: brightness(1.1);
}

.hat-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}



@media (max-width: 700px) {
    .day-card {
        width: 50px;
        height: 50px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .hideOnMobile {
        display: none;
    }

    .modal-content {
        width: 100%;
    }

    .main {
        width: 95%;
    }

    .containerTitre {
        position: absolute;
        text-align: center;
        margin-top: 20px;
        /* border: thin solid red; */
        top: -20px;
        left: 0;
    }

    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 1.8em;
        margin-top: -15px;
    }

    .floating-contact-btn {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1rem;
        width: 220px;
    }

    .floating-contact-btn:hover {
        transform: translate(-50%, -2px);
    }
}

@media (max-height: 800px) {
    .floating-contact-btn {
        bottom: 10px;
        /* font-size: .8rem; */
        width: 180px;
        height: 40px;
        padding: 0px;
    }
}


@media (min-width: 1024px) {
    body {
        background-image: url('tree_background_desktop_16-9.png');
    }
}