body{
    /* background-image: url('imgs/bck.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; */
    background-color: #fdf4e5;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: hidden;
    max-width: 100%;
    position: relative;
    margin:0;
}


html {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    overflow-y: hidden;
}


#main-header {
  position: fixed;
  top: 0;
  left:50%;
    transform: translateX(-50%);
  width: 100%;
  height: 100vh;
  transition: all 0.3s ease; /* Ez teszi simává a váltást */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background-color: #fdf4e5;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1); 
  pointer-events: none;
  touch-action: none;
}

#logo, #nav-bar, #LPIcon, #SocialMedia, #hamburger-btn, #telNum, #Instagram, #Languages {
    pointer-events: auto;
    touch-action: auto;   /* de a header tartalmi elemei kattinthatók maradjanak */
}

#logo {
    position: absolute;
    top:5%;
    left:50%;
    transform: translateX(-50%);
  width: 45%; /* Eredeti nagy méret */
  transition: width 0.3s ease, transform 0.8s ease-in, opacity 0.5s ease-in;
}

#logo.zoom-out {
    transform: translateX(-50%) scale(10) !important;
    opacity: 0 !important;
    /* z-index: 0 !important;
    width: 0 !important;
    height: 0 !important; */
    /* transition: transform 0.8s ease-in, opacity 0.5s ease-in, width 0.3s ease, height 0.3s ease; */
}

.shrink #logo{
    width:10px;
    height:10px;
    z-index: 0;
    top:-200%;
    left:-200%;
}

/* Ez az osztály akkor aktiválódik, ha görgetünk */
.shrink {
    height: 80px !important;
    display: flex !important;
    flex-direction: row !important;
    
    justify-content: space-around;
  background-color: #fdf4e5; /* opcionális */
}

.shrink #logo {

  width: 160px;
  z-index: 0;
}



#nav-bar{
    --items:4;
    display:none;
    position:relative;
    left:-30%;
}

.shrink #nav-bar{
    display:grid;
    grid-template-columns: repeat(var(--items), 1fr);
    width:400px;
}

#nav-bar ul li a{
    position: relative;
    text-decoration:none;
    color: #28381e;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    left:0;
}



#nav-bar ul{
    display: contents;
    list-style-type: none;
}

#nav-bar ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.line{
    position:absolute;
    bottom:0;
    height:3px;
    background-color:#971e14;
    transition: all 0.5s ease;
    opacity:0;
    width:calc(100%/var(--items));
    pointer-events:none;
}

#nav-bar a:hover ~ .line{
    opacity: 1;
}



.shrink #LPIcon{
    display: block;
}

#LPIcon{
    position:absolute;
    left:50%;
    top:0;
    transform: translateX(-50%);
    display:none;
    width: 150px;
    height:150px;
    z-index: 1000;
    background-color: #fdf4e5;
    border-radius: 50%;
    border-bottom: 3px solid #28381e;
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
}

#LPIcon #lp-icon{
    position:absolute;
    width:140px;
    height:140px;
    left:50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.shrink #SocialMedia{
    display: flex;
}
#SocialMedia{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20%;
    display: none;
    flex-direction: row;
    row-gap: 20px; /* Távolság a két sor között */
    justify-content: flex-end;
    align-items: flex-end;
    gap: 30px; /* Távolság a két sor között */
}

#SocialMedia div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px; /* Távolság a képek és a szöveg között */
}


.shrink #Languages{
    display: flex;
}


#Languages{
    display:none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0%;
    
    flex-direction: row;
    gap: 20px; /* Távolság a zászlók között */
    width: 200px;
    z-index: 900;
}

#Languages img{
    width: 30px; /* Zászlók mérete */
    height: auto;
    cursor: pointer;
}


#Languages a:hover img{
    transform: scale(1.2);
    transition: transform 0.3s ease;
}





#brickWall{
    
    position: relative;
    top: -270px;
    left: -10px;
    width: 105%;
    height: auto;
    z-index: 100;
    object-fit: cover;
    display: block;
    margin-top:0;
    padding:0;
}

footer{
    position: relative;   /* ← absolute helyett */
    width: 105%;
    left:-10px;  
    top:10px;        /* ← 120% törölve, felesleges overflow-t okozott */
    height: 60px;
    background-color: #28381e;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p{
    font-family: "Radley", serif;
    font-weight: 400;
    font-style: italic;
    color:#fdf4e5;
}




#hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #28381e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* X alakká animálja nyitáskor */
#hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
#hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 768px) {

    html {
        overflow-y: scroll !important;
    }

    body{
        /* overflow-y: scroll !important;
        scroll-snap-type: none; */
        scroll-behavior: auto !important;

    }

    #home, footer{
        scroll-snap-align: start;
    }

    #menu{
        scroll-snap-align: none;
    }

    #logo{
        width:65%;
        top:50%;
        transform:translateY(-50%) translateX(-50%);
    }


     #hamburger-btn {
        display: none;
    }

    .shrink #hamburger-btn{
        display: flex;
    }


    #nav-bar {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fdf4e5;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
    }

    #Languages{
        display: none !important;
        position: absolute;
        top: 100px;
        right:0;
        width: 100px;
        height: 100px;
        margin:0;
        padding:0;
        flex-direction: column;
        
    
        align-items: center;
        gap:20px;
        
    }

    #SocialMedia{
        display: none !important;
        position: absolute;
        top: 100px;
        left:0;
        width: 200px;
        height: 100px;
        margin:0;
        padding:0;
        flex-direction: column;
        font-size: 10px;
    
        align-items: center;
        gap:20px;
        
    }

    #nav-bar.open {
        display: flex !important;
        top:0;
        
        padding-top:50px;
    }

    #Languages.open {
        display: flex !important;
        top:115px;
        
        
    }

    #SocialMedia.open {
        display: flex !important;
        top:95px;
        
        
    }

    #nav-bar ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    #nav-bar ul li a {
        font-size: 24px;
    }

    .shrink #nav-bar {
        width: 100%;
        grid-template-columns: none;
    }

    .line {
        display: none; /* mobilon a hover-csíkot nem érdemes mutatni */
    }


    .shrink{
        height:50px !important;
    }



    #LPIcon{
        top:0;
        left:60px;
        width:70px;
        height: 70px;
        border-bottom: 1px solid #28381e;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
        
    }

    #LPIcon #lp-icon{
        width:60px;
        height: 60px;
        left:50%;
        top:50%;
        transform:translate(-50%,-50%);
    }

    #brickWall{
    
    width:105%;
    height: auto;
    top:auto;   
    margin:0; 
}



    
}

@media(max-width: 480px) {
    #nav-bar ul li a {
        font-size: 20px;
    }

    
}


@media (max-width:390px){


    html {
        overflow-y: scroll !important;
    }

    body{
        /* overflow-y: scroll !important;
        scroll-snap-type: none; */
        scroll-behavior: auto !important;

    }

    #LPIcon{
        left:40px;
    }

   

    
}





@media (max-width:270px){
    footer{
        font-size: 12px;
    }

    

}

