/* Teljes oldal beállítás */
* {
    box-sizing: border-box;
}

body {    
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
}

#hatter {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('imgs/hatter2.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left bottom;  
    background-attachment: fixed; 
}
@media screen and (max-width: 768px) {
    #hatter {
        background-size: cover;
    }    
}

#alap{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow-y: auto;
}
#tartalom{
    overflow: hidden;
    position: absolute;
    width: 90%;
    min-height: 100%;
    margin-left: 5%;
    background-color: rgba(255,255,255,0.6);
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.4);
    z-index: 8;
}

.cim {
    font-family: 'Rubik', sans-serif;
    position: relative;
    font-size: 2rem;
    width: 100%;
    margin-top: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;

}
.cim::after {
    content: "";
    position: absolute;
    bottom: -0.2rem; /* eltolás a szöveg alatt */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.6), transparent);
}
.szoveg {
    font-family: 'Raleway', sans-serif;
    width: 90%;
    margin-left: 5%;
    text-align: center;
    line-height: 2rem;
    font-size: 1.2rem;
    color: black;
    text-shadow: 1px 1px 2.5px rgba(0, 0, 0, 0.5);    
}




/* Logó konténer felül középen */
.logo-container {
    position: relative;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 14rem;
    aspect-ratio: 1 / 1;
    z-index: 10;
}

/* Statikus logó szöveg */
.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16rem;
    z-index: 11;
}

/* Forgó körvonal */
.logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: forgas 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 2.5;

    z-index: 11;
}
@keyframes forgas {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}





#menu_tartalom {
    position: fixed;
    top: 0;
    left: -100%; /* Kezdőállapot: balra kitolva a képernyőről */
    width: 50%;  /* Vagy amennyi neked volt */
    height: 100%;
    z-index: 101;

    display: none; /* Alapból rejtve */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    
    /* Ezeket TÖRÖLTÜK, mert a jQuery intézi: */
    /* transition: ... */
    /* transform: ... */

    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 3px 1px black;    
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius:0rem 0rem 5rem 0rem;
}



.menu-gomb {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 280px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}


.menu-gomb:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.09);
}

.menu-icon {
    width: 7.0rem;
    height: auto;
    max-height: 7.0rem;
    height: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
    filter: drop-shadow(0px 0px 4px black);
}

.menu-szoveg {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    color: white;
    letter-spacing: 1px;
}


@media screen and (min-width: 2000px) {
    #menu_tartalom {
        width: 30%;
    }
}

@media screen and (max-width: 768px) {
    .menu-icon {
        width: 4rem;
        max-height: 4rem;
    }

    .menu-szoveg {
        font-size: 1rem;
    }

    .menu-gomb {
        padding: 0.8rem;
        width: 85%;
    }
    #menu_tartalom {
        width: 100%;
    }
    #tartalom {
        width: 100%;
        margin-left: 0%;
        background-color: rgba(255,255,255,0.75);
    }
}

/* ===== Menü: 2x2 elrendezés alacsony viewport-magasságnál ===== */
@media (max-height: 860px) {
    #menu_tartalom {
        /* a JS flexre állítja → maradjon is flex, csak tördeljen */
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;     /* függőlegesen is középre gyűljön */
        justify-content: center;   /* vízszintesen középre */
        gap: 1rem 1rem;            /* sor- és oszlopköz */
        padding: 1rem;
    }

  /* két oszlop – rugalmas szélesség, ne ugráljon */
    .menu-gomb {
        flex: 0 1 calc(50% - 1rem);   /* 2 oszlop */
        max-width: 320px;             /* ne nőjön túl nagyra nagy képernyőn sem */
    }

    /* ikon és felirat kisebb helyen */
    .menu-icon { width: 5rem; max-height: 5rem; }
    .menu-szoveg { font-size: 1.2rem; }
}

/* Extra szűk, nagyon alacsony kijelző (pl. 480px alatt) – még kompaktabb */
@media (max-height: 560px) {
    .menu-gomb { flex: 0 1 calc(50% - 0.8rem); padding: 0.6rem; }
    .menu-icon { width: 4rem; max-height: 4rem; }
    .menu-szoveg { font-size: 1rem; }
}














#loader {
    position: fixed;
    inset: 0;
    display: flex;                /* <-- ez kell a középre igazításhoz */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    opacity: 0;                   /* alapból rejtve */
    pointer-events: none;
    transition: opacity 150ms ease;
}

#loader.show {
    opacity: 1;                   /* látszik */
    pointer-events: auto;
}

#loader img {
    width: 120px;
    height: 120px;
    display: block;
}





.lb-image {
    transition: transform 0.4s ease;
}

.lb-image:hover {
    transform: scale(1.02);
}


.terkep-wrap {
    width: 92%;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    aspect-ratio: 16 / 9;      /* reszponzív magasság */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.25);
    background: #eaeaea;       /* amíg betölt az iframe */
}

.terkep-wrap iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

    .utvonal-btn-wrap {
        width: 92%;
        max-width: 1200px;
        margin: .75rem auto 2rem;
        text-align: right;
    }
    .utvonal-btn {
        display: inline-block;
        padding: .6rem 1rem;
        border-radius: 9999px;
        background: rgba(0,0,0,.75);
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0,0,0,.25);
        transition: transform .2s, background-color .2s;
    }
    .utvonal-btn:hover { transform: scale(1.04); background: rgba(0,0,0,.85); }

    @media (max-width: 768px) {
        .terkep-wrap, .utvonal-btn-wrap { width: 96%; }
        .utvonal-btn-wrap { text-align: center; }
}










.fb-section { overflow: visible; }


.fb-section{
    margin-top: 2.5rem;
    width: min(96vw, 560px);    /* << a kártya ne legyen túl széles */
    margin-left:auto;
    margin-right:auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.85);
    border-radius: 1rem;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    }

    .fb-box{
    width: 100%;
    display:flex;
    justify-content:center;
    }

    .fb-box .fb-page{
    width: 100% !important;
}

.fb-box iframe {
    max-width: 100% !important;
}

