body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    /* padding: 20px; */
    background: #075f4b;
    background-image: url('images/snow.png');
    /* Bild beállítása háttérként */
    background-repeat: no-repeat;
    /* Kép ne ismétlődjön */
    background-size: cover;

    background-attachment: fixed;
    /* Kép kitöltése a háttér méretére */
    /* Vagy: az érték lehet 'contain', ha a kép arányait szeretnéd megtartani. */
    background-position: center;
    /* Kép középre igazítása */
    color: #fff;
    text-align: center;
}

body #text {
    background-color: white;
    color: black;
    padding: 20px;
}

.title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    color: #0a614d;
}

#header {
    height: 200px;
    width: 600px;
    display: flex;
    justify-self: center;
    align-self: center;
    display: flex;
    align-items: self-end;
    justify-content: center;
    background-image: url("images/header.png");
    background-size: cover;
    margin-bottom: 20px;
}

/*** GRID ***/
/* Asztali: 4 oszlop */
#calendar {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* Mobil: 1 oszlop (max 600px) */
body.mobile {
    background-size: auto;
    background-position: unset;
    background-attachment: fixed;

    #calendar {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    #header {
        /* margin-bottom: 100px; */
        width: 100%;
        height: 120px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        font-size: 1rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .day-box {
        margin: 5%;
        width: auto;
    }

    .masni-kepes {
        margin: 0px;
    }

    .day-number{
        font-size: 5rem;
    }

    .day-box.opened::after {
        font-size: 1.2rem;
    }
}

/*** Dobozok ***/
.day-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* background-size: cover; */
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-position: center;
    border-radius: 12px;
    border: 3px solid #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
}

.day-box:hover {
    transform: scale(1.05);
}

/*** Ajtó ***/
.door {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(1px);
    transform-origin: left;
    transition: transform 0.7s ease-in-out;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
}

.day-box.opening .door {
    transform: perspective(600px) rotateY(-100deg);
}

/*** Szám ***/
.day-number {
    position: absolute;
    bottom: 15px;
    right: 15px;
    /* transform: translate(-50%, -50%); */
    font-size: 3rem;
    font-weight: bold;
    color: #075f4b;
    text-shadow: 0 0 5px #ffdc93;
}

/*** Megnyitott ***/
.day-box.opened {
    background-color: #075f4b52 !important;
    /* background-image: none !important; */
}

.day-box.opened .door {
    background-color: #08604c87;
}

.day-box.opened .day-number {
    color: #757575;
    text-shadow: 0 0 5px #075f4b;
}

.day-box.opened::after {
    content: "Már kinyitottad";
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 12px;
    left: 0;
    font-size: 0.9rem;
    color: #ffe7e7;
    text-shadow: 0 0 3px #000;
    background: linear-gradient(to right, #c40000, #ff3a3a, #c40000);
}

.day-box.opened:hover::after {
    content: "🎁 Megnézem újra";
}


.masni-wrap {
    position: relative;
    height: 20px;
    /* A szalag magassága */
    overflow: visible;
    /* EZ ENGEDI KILÓGNI A MASNI KÉPET */
    margin: 50px 0;
}

.masni-kepes {
    height: 20px;
    background: linear-gradient(to right, #c40000, #ff3a3a, #c40000);
    position: relative;
}

/* KÖZÉPSŐ KÉP – nagyobb, mint a szalag */
.masni-kepes::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background-image: url('images/masni.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Masni szárnyak */
.masni-kepes::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 160px;
    height: 20px;

    /* border-left: 50px solid #ff3a3a;
    border-right: 50px solid #ff3a3a; */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;

    z-index: -1;
}