* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #FFF8DC;
}

/* Decorative Trees */
.trees-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tree {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 120px solid #2F4F2F;
    opacity: 0.3;
}

.tree::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 130px solid #2F4F2F;
    top: -80px;
    left: -70px;
}

.tree::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 40px;
    background: #654321;
    bottom: -160px;
    left: -10px;
}

.tree-left {
    bottom: 0;
    left: 5%;
    transform: scale(1.5);
}

.tree-right {
    bottom: 0;
    right: 5%;
    transform: scale(1.3);
}

/* Snowflakes effect */
.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    animation: snowfall 20s linear infinite;
    opacity: 0.6;
    z-index: 2;
}

@keyframes snowfall {
    from { background-position: 0% 0%; }
    to { background-position: 0% 100%; }
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 3rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

header p {
    font-size: 1.3rem;
    color: #FFF8DC;
    font-style: italic;
}

/* Cards Container */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background: linear-gradient(145deg, #FFE4B5, #F4A460);
    border-radius: 15px;
    padding: 2rem;
    width: 280px;
    height: 320px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card-front h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-front p {
    color: #A0522D;
    font-size: 1rem;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #FFF8DC, #FFE4B5);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #8B4513;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #D2691E;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin: 1rem 0;
}

.modal-content h2 {
    color: #8B4513;
    margin: 1rem 0;
    font-size: 2rem;
}

.modal-content p {
    color: #654321;
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.modal-content a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(145deg, #D2691E, #CD853F);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content a:hover {
    background: linear-gradient(145deg, #CD853F, #D2691E);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Mystery Card - Peeking from bottom */
.mystery-card {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #FFE4B5, #F4A460);
    border-radius: 15px 15px 0 0;
    padding: 2rem;
    width: 280px;
    height: 320px;
    cursor: pointer;
    box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    z-index: 100;
    transition: all 0.3s ease;
    animation: teasingPeek 3s ease-in-out infinite;
}

.mystery-card:hover {
    bottom: -180px;
    box-shadow: 0 -12px 24px rgba(255, 215, 0, 0.4);
}

.mystery-card .card-front h2 {
    color: #8B4513;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.5);
}

.mystery-card .card-front p {
    color: #A0522D;
    font-size: 1rem;
    font-style: italic;
}

@keyframes teasingPeek {
    0%, 100% {
        bottom: -200px;
    }
    50% {
        bottom: -170px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .cards-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .card {
        width: 90%;
        max-width: 350px;
    }

    .modal-content {
        margin: 0 auto;
        padding: 1.5rem;
        width: 95%;
        max-width: 500px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 1rem;
    }

    .modal-content img {
        max-height: 300px;
    }

    .close {
        font-size: 1.8rem;
    }

    .tree-left,
    .tree-right {
        transform: scale(0.8);
    }

    .mystery-card {
        width: 90%;
        max-width: 300px;
        bottom: -220px;
    }

    .mystery-card:hover {
        bottom: -200px;
    }

    @keyframes teasingPeek {
        0%, 100% {
            bottom: -220px;
        }
        50% {
            bottom: -190px;
        }
    }
}
