main {
    display: flex;
    align-items: center;
    flex-direction: column;
}



.openImg {
    width: 100%;
    position: relative;


}


.openImg h1 {
    color: var(--contrast);
    font-size: 5rem;
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: 45%;
    
    
}


.openImg img {
    width: 100%;
    height: auto;
    filter: brightness(80%);
}



@media screen and (orientation:portrait) {
    .openImg {
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50vh;
    
        background-image: url('../images/munkagepek/main_mobile.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: 50%;
    }
    
    
    .openImg h1 {
        color: var(--contrast);
        font-size: 2.5rem;
        top: 0;

        position: relative;

        
        
    }
    
    
    .openImg img {
        display: none;
    }


}





















section {
    width: 60%;
}


section h1 {
    font-size: 2.3rem;
    text-transform: uppercase;
    color: var(--main);
}


section h3 {
    font-weight: normal;
    font-size: 1.4rem;
}


section h2 {
    font-size: 2rem;
    color: var(--main);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}



.termekelonyok {
    display: grid;
    grid-template-columns: 50% 50%;
}



.termekelonyok img {
    width: 90%;
    height: auto;
    padding: 5%;
}

.termekelonyok div {
    margin-top: 2rem;
}

.termekelonyok div h4 {
    text-align: center;
    font-size: 1.85rem;
    color: var(--main);
}



.termekelonyok div ul {
    overflow-x: visible !important;
    list-style: none;
}


.termekelonyok div ul li {
    overflow-x: visible;
    line-height: 1.4rem;
    font-size: 1.3rem;
}


.termekelonyok div ul li::before {
    color: var(--main);
    content: "\2022";
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}


.sublist-item {
    padding-left: 1.5rem;
}


.mobile-appear {
    display: none;
}


.gallery {
    display: grid;
    grid-template-columns: 50% 50%;
}

.gallery img {
    width: 96%;
    padding: 2%;
    height: auto;
}



.termekek {
    display: grid;
    grid-template-columns: 50% 50%;

}





.termek {
    width: 90%;
    height: fit-content;
    margin: 5%;
    border: solid 0.2rem var(--main);
    border-radius: 1rem;


} 

@media screen and (orientation:portrait) {
    section {
        width: 90%;
    }

    section img {
        width: 100%;
        padding: 0;
    }

    section div h4 {
        margin-top: 0;
    }



        
    .termekelonyok {
        display: flex;
        flex-direction: column;
    }


    .mobile-appear {
        display: block;
    }


    .mobile-disappear {
        display: none;
    }


        
    .termekek, .gallery {
        display: flex;
        flex-direction: column;
    }


    .gallery img {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }


    .termek {
        width: 95%;
        margin: 2.5%;
    }

}

  

.upper {
    aspect-ratio: 9/7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;

}






@media screen and (orientation:landscape) and (min-width: 2400px) {
    
    .upper img {
        width: 90% !important;

    }
}


.upper div {
    width: 100%;
    background-color: var(--main);
    border-radius: 0 0 0.6rem 0.6rem;
    display: flex;
    justify-content: space-between;
    transition: 0.5s ease-in;
    align-items: center;
    cursor: pointer;
    
}

.upper div h1 {
    color: var(--contrast);
    padding: 0.3rem 0;
    margin: 0;
    margin-left: 1rem;
}




.lower {
    width: 100%;
    height: auto;
    
}

.lower table {
    width: 100%;
    padding: 0 1rem 1rem 1rem;
}

.lower table tr {
    line-height: 1.4rem;
}

.lower table td {
    padding-left: 0.25rem;
}

.lower h5 {
    font-size: 1.6rem;
    padding: 0;
    margin: 1rem 0;
    text-align: center;
    color: var(--main);
}

.lower table tr:nth-child(even) {
    background-color: var(--main);
    color: var(--contrast);
}



.upper div.active {
    transition: 0.5s ease-in;
    border-radius: 0;
}



.lower {
    max-height: 0;
    transition: 0.5s ease-in;
    overflow: hidden;
}






.lower.active {
    transition: 0.5s ease-in;
    max-height: 500px;
}





.downsvg {
    transition: 0.3s ease-in;    
    fill: var(--contrast);
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    transform: translateY(0rem) rotate(-90deg);
}


.downsvg.active {
    transform: translateY(-0.2rem) rotate(0deg);
    transition: 0.3s ease-in;

}










.actions {
    display: grid;
    grid-template-columns: 50% 50%;
}


.actions div {
    width: 96%;
    margin: 2%;
    background-color: var(--main);
    color: var(--contrast);
    border-radius: 1rem;
    height: fit-content;
    margin-bottom: 1.5rem;
    padding: 0 0 1rem 0;
}



.actions div h1 {
    font-weight: bold;
    margin: 0;
    text-transform: none;
    color: var(--contrast);
    margin: 1rem 1rem 0 1rem;
}


.actions div p {
    margin: 1rem;
    font-size: 1.2rem;
}


.actions div a {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--contrast);
    border: solid var(--contrast) 0.15rem;
    font-weight: bold;


    border-radius: 2rem;

    margin: 2rem 1rem 2rem 1rem;
    transition: 0.3s ease-in;
    padding: 0.3rem 1rem;
}

.actions div a svg {
    fill: var(--contrast);
    transition: 0.3s ease-in;
    margin-left: 0.4rem;
}


.actions div a:hover {
    color: var(--main);
    transition: 0.3s ease-in;
    background-color: var(--contrast);
}

.actions div a:hover > svg  {
    fill: var(--main);
    transition: 0.3s ease-in;
}



@media screen and (orientation:portrait) {
        
    .actions {
        display: flex;
        flex-direction: column;
    }



    .actions div {
        width: 100%;
        margin: 0;
        margin-bottom: 1.5rem;
    }
    






}






#currentSection {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--main);
    color: var(--contrast);
    padding: 0.15rem 0.3rem;
    font-weight: bold;
}





.tipusok {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

}



.tipusok a {
    width: auto;
    margin: 1rem;
    border-radius: 2rem;
    text-decoration: none;
    border: var(--main) solid 0.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    aspect-ratio: 1/1;

}


.tipusok a h1 {
    font-size: 1.9rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--contrast);
    background-color: var(--main);
    height: auto;
    padding: 0.5rem 0.3rem;
    margin: 0;
    text-align: center;
    text-transform: none;
    overflow: hidden;
    width: 100%;
}


.tipusok a img {
    width: 100%;
}



@media screen and (orientation:portrait) {
    .tipusok {
        display: flex;
        flex-direction: column;
        align-items: center;
    
    }
    
    
    .tipusok a {
        width: auto;
        margin: 1rem 0;

    }


}



.upper img {
    max-height: 80%;
    width: auto;
}



.gyarto {

}


.gyarto p {
    font-size: 1.5rem;
}


.gyarto img {
    width: 25%;
    float: right;
    margin: 0 0 1rem 1rem;
}


.gyarto h1 {
    font-size: 2.3rem;
    text-transform: uppercase;
    color: var(--main);
}



@media screen and (orientation:portrait) {
    .gyarto h1 {
        font-size: 1.8rem;

    }
    
    .gyarto p {
        font-size: 1.2rem;
    }
    
    
.gyarto img {
    width: 70%;
    float: none;
    margin: 1rem 15%;
}
    


}




.gyarto ul {
    overflow-x: visible !important;
    list-style: none;
    margin-top: -1rem;
}


.gyarto ul li {
    overflow-x: visible;
    line-height: 1.7rem;
    font-size: 1.5rem;
}


.gyarto ul li::before {
    color: var(--main);
    content: "\2022";
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}



@media screen and (orientation:portrait) {

    .gyarto ul li {
        line-height: 1.35rem;
        font-size: 1.2rem;
    }


}