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/uzemanyagok/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%;
}



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


.bevezeto {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.kepek {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}


.kepek img {
    width: 94%;
    height: auto;
    margin: 2rem 3%;
    margin-bottom: 0;
}

.kepek img:nth-child(1) {
    margin-left: 0;
}

.kepek img:nth-child(3) {
    margin-right: 0;
}


@media screen and (orientation:portrait) {
    .kepek {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .kepek img {
        width: 100%;
        margin: 1rem auto;
    }


    .kepek img:nth-child(1) {
        order: 2;
    }


    .kepek img:nth-child(2) {
        order: 1;
    }

    .kepek img:nth-child(3) {
        order: 3;
    }

}


.bevezeto p {
    margin-left: 2rem;
    font-size: 1.5rem;

}


.bevezeto img {
    width: 40rem;
}


.bevezeto a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}



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

    .bevezeto {
        flex-direction: column-reverse;
    
    }

    
    .bevezeto img {
        width: 100%;
    }

    .bevezeto p {
        margin-left: 0;
    }

    

}






.termek {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}


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


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


.termek li {
    overflow: visible !important;
    font-size: 1.3rem;
    list-style: none;

}


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


@media screen and (orientation:landscape) {
    .termek img {
        transform: translateY(3rem);
    }


}







@media screen and (orientation:portrait) {
    .termek {
        flex-direction: column;
        align-items: center;
    }

    .termek ul li::before {
        color: var(--main);
        content: "\2022";
        font-weight: bold;
        display: inline-block; 
        width: 1.5em;
        transform: translateX(1rem);
    }


    .termek ul {
        padding: 0.5rem;
        margin: 0;
    }


    

}









.kenoanyagok h1, .nyito h1 {
    color: var(--main);
    font-size: 2rem;
    text-transform: uppercase;
}


.kenoanyagok a {
    display: flex;
    flex-direction: column;
    width: 50%;
    text-decoration: none;
    color: var(--secondary);
    align-items: center;
    margin-bottom: 1rem;
}


.kenoanyagok a img {
    width: 100%;
}


@media screen and (orientation:portrait) {
    .kenoanyagok a {
        
        width: 100%;
        
    }

    
}