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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #a47fdf, #ffdde1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

h1 {
    font-family: 'Mountains of Christmas', cursive;
    color: #d32f2f; /* Karácsonyi piros */
    font-size: 5em;
    margin-bottom: 20px;
    text-shadow: 
        2px 2px 0px rgba(255, 255, 255, 0.5), /* Fehér fényes árnyék */
        4px 4px 0px rgba(0, 0, 0, 0.3); /* Fekete árnyék */
    position: relative;
    animation: glow 1.5s infinite alternate; /* Világító animáció */
}

/* Világító hatás */
@keyframes glow {
    0% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8), 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 15px rgba(255, 0, 0, 0.6), /* Piros világító hatás */
            0 0 20px rgba(255, 0, 0, 0.4);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8), 
            0 0 15px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 30px rgba(255, 0, 0, 0.6);
    }
}



.calendar {
    display: grid;
    grid-template-columns: repeat(6, 120px);
    grid-template-rows: repeat(4, 120px);
    gap: 15px;
}

.box {
    background-color: #ffeaa7;
    color: #2d3436;
    font-size: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    border: 2px solid #a02323;
}

.box::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 15px;
    border: 2px solid rgba(108, 92, 231, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.box:hover {
    background-color: #74b9ff;
    color: #fff;
    transform: translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .calendar {
        grid-template-columns: repeat(4, 90px);
        grid-template-rows: repeat(6, 90px);
    }

    .box {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .calendar {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(8, 80px);
    }

    .box {
        font-size: 1.8em;
    }
}

/* A kinyitott dobozok stílusa */
.opened {
    background-color: #dfe6e9;
    color: #b2bec3;
    pointer-events: none; /* Nem kattintható */
    box-shadow: none;
    transform: none;
}

.opened:hover::before {
    opacity: 0; /* Ne legyen hover hatás a már megnyitott dobozokra */
}

#reset-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#reset-button:hover {
    background-color: #5a4cc8;
}

/* Hóesés stílusok */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Véletlenszerű pozicionálás és animációs időzítés */
.snowflake:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-duration: 3s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; width: 15px; height: 15px; animation-duration: 4s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; width: 8px; height: 8px; animation-duration: 2.5s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; width: 12px; height: 12px; animation-duration: 5s; animation-delay: 1.5s; }
.snowflake:nth-child(5) { left: 50%; width: 9px; height: 9px; animation-duration: 4s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; width: 14px; height: 14px; animation-duration: 3.5s; animation-delay: 2s; }
.snowflake:nth-child(7) { left: 70%; width: 11px; height: 11px; animation-duration: 5.5s; animation-delay: 4s; }
.snowflake:nth-child(8) { left: 80%; width: 13px; height: 13px; animation-duration: 4s; animation-delay: 0.5s; }
.snowflake:nth-child(9) { left: 90%; width: 10px; height: 10px; animation-duration: 6s; animation-delay: 1s; }

