* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Enriqueta", serif;
}

body {
    min-width: 800px;
    background-color: #778279;
    text-align: center;
    color: #998A76;
}

main {
    max-width: 100%;
    margin: 0 auto 40px auto;
    background: #EBE9E4;
    box-shadow: 5px 5px 15px #000;
    border-radius: 0 0 25px 25px;
}

header img {
    width: 450px;
    height: 450px;
}

header h3{
    color: rgb(124, 144, 124);
    font-size: 24px;
    text-shadow: 1px 1px 3px;
    padding-bottom: 50px;
}

ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding-top: 40px;
    margin-right: 65px;
}


ul li a {
    font-size: 22px;
    color: #778279;
    text-decoration: none;
    text-shadow: 1px 1px 3px;
    padding: 5px 10px;
    border-radius: 5px;
}

ul li a:hover {
    background: #778279;
    color: #EBE9E4;
    transition: all 0.4s ease-in-out;
}
/* .submenu{
    position: absolute;
    display: none;
    padding: 5px 10px;
}
.submenu li{
    margin-bottom: 7px;
}

.has-submenu:hover .submenu{
    display: block;
} */
hr{
    border: 1px solid #3A4B3D;
    margin-top: 70px;
    margin-bottom: 35px;
    /* box-shadow: 1px 1px 2px #3A4B3D; */
}
footer {
    background-color: #DFD8CE;
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: bold;
    padding-left: 25px;
}

#partner {
    color: #3A4B3D;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nea {
    width: 320px;
    padding: 15px;
}

.civil {
    padding: 15px;
    width: 180px;
}
footer h3{
    color: #778279;
    font-size: 21px;
    text-shadow: 1px 1px 3px;
}
article {
    padding: 30px 25px 30px 25px;
}

article p {
    text-align: left;
    line-height: 1.4;
    font-size: 19px;
}

article h2 {
    color: #778279;
    margin: 8px auto 20px auto;
    font-size: 25px;
    text-shadow: 1px 1px 3px;
}

/* elerhetoseg */

article h2 {
    font-size: 28px;
    margin-bottom: 50px;
    color: #778279;
    text-shadow: 1px 1px 3px;
}

.kapcsolat {
    display: flex;
    justify-content: center;
    font-size: 20px;
    padding-bottom: 25px;
}

.cim, .levelezes, .facebook, .email, .jozsi {
    padding: 7px 18px;
    border-radius: 5px;
}

td a {
    color: #778279
}

td a:hover {
    background: #778279;
    color: #EBE9E4;
    transition: 0.7s ease-in-out;
}

div h2 {
    font-size: 28px;
    padding: 8px;
    color: #778279;
    text-shadow: 1px 1px 3px;
}

.tamogat {
    padding: 30px 25px 30px 25px;
}

.tamogat p {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    font-size: 20px;
}

.tamogat h3 {
    font-size: 22px;
    display: flex;
    justify-content: center;
    color: #778279;
    text-shadow: 1px 1px 3px;
}

.tamogat ul {
    display: flex;
    justify-content: space-evenly;
    margin-left: 80px;
    margin-bottom: 50px;
    font-size: 23px;
    color: #778279;
    text-shadow: 1px 1px 3px;
}

/* galeria */
#container {
    padding: 30px 0 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

#container h2 {
    font-size: 28px;
    padding: 8px;
    color: #778279;
    text-shadow: 1px 1px 3px;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    
}

.kep {
    width: 180px;
    height: 180px;
    margin: 50px;
}

.kep img {
    width: 200px;
    height: 200px;
    box-shadow: 3px 3px 3px #000;
}

.kep img:hover {
    box-shadow: 5px 5px 10px #000;
}

/* lapozhato */

#gallery2 {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.lapozhato {
    display: flex;
    width: 600px;
    height: 600px;
    position: relative;
}

.lapozhato img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 410px;
    box-shadow: 7px 7px 7px #000
}

#nyil,
#nyil2 {
    margin-left: 100px;
    margin-right: 100px;
    cursor: pointer;
}

#nyil img,
#nyil2 img {
    width: 60px;

}

#nyil {
    transition: transform 0.3s;
}

#nyil:hover {
    transform: scale(1.2);
    transition: transform 0.3s;
}

#nyil2 {
    transition: transform 0.3s;
}

#nyil2:hover {
    transform: scale(1.2);
    transition: transform 0.3s;
}

/*Játék*/
#jatekContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding: 20px;
    border-radius: 10px;
}
#cellaContanier {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
}
.cella {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 2px solid;
    box-shadow: 0 0 0 3px;
    font-size: 50px;
    cursor: pointer;
    background: #EBE9E4;
}
#restart{
    font-size: 20px;
    cursor: pointer;
    background-color: #778279;
    color: #EBE9E4;
    width: 100px;
    border-radius: 10px;
}
#restart:hover{
    background-color: #3A4B3D;
}
#hangyagomb{
    align-items: center;
    width: 180px;
    height: 30px;
    margin-top: 50px;
    font-size: 18px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px;
    cursor: pointer;
    background-color: #778279;
    color: #EBE9E4;
    transition: all 0.4s ease-in-out;
}
#hangyagomb:hover{
    background-color: #3A4B3D;
}
/*Játék2*/
section{
    height: 250px;
}
.hangya{
    position: absolute;
    left: 30px;
    margin-top: 25px;
    width: 100px;
    display: none;
}
.kepContainer img{
    width: 200px;
}
.kepContainer{
    display: flex;
    justify-content: end;
    margin-right: 80px;
}

/* telefonra */
@media (max-width: 768px) {

    body {
        display: block;
        min-width: 100%;
        background-color: #778279;

    }

    header img {
        width: 100%;
        height: auto;
    }
    header h3 {
        font-size: 18px;
        
    }
    ul {
        flex-direction: column;
        margin-left: 55px;
        
    }

    ul li {
        margin-bottom: 10px;
    }

    ul li a {
        font-size: 18px;
    }

    ul li a:hover {
        background: #778279;
        color: #EBE9E4;
    }
    article{
        flex-direction: column  ;
    }
    footer {
        font-size: 20px;
        flex-direction: column;
        padding: 18px;
    }

    .nea {
        width: 168px;
        padding-left: 30px;
    }

    .civil {
        width: 125px;
        padding-right: 23px;
    }

    .bike {
        font-size: 15px;
        padding-right: 35px;
    }

    .kapcsolat,
    .tamogat {
        font-size: 17px;
    }

    .tamogat ul {
        font-size: 20px;
        margin: 25px 0;
    }

    #gallery {
        display: grid;
        place-items: center;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 10px;
        margin: 0 20px;
        
    }

    .kep {
        width: 100%;
        height: auto;
     }

    .kep img {
        width: 100%;
        height: auto;
        border-radius: 5px;
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    }

    .kep img:hover {
        box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.3);
    }


    #gallery2 {
        height: 400px;
    }

    .container h2 {
        margin-top: 50px;
    }

    .lapozhato img {
        width: 250px;
        height: auto;
        border-radius: 8px;
        box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2);
    }

    #nyil,
    #nyil2 {
        position: absolute;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1;
    }

    #nyil {
        left: -85px;
    }

    #nyil2 {
        right: -85px;
    }

    #nyil img,
    #nyil2 img {
        width: 40px;
    }

    #nyil:hover,
    #nyil2:hover {
        transform: scale(1.2) translateY(-50%);
        transition: transform 0.3s ease;
    }
    .cella{
        height: 110px;
        width: 110px;
    }
    #jatekContainer h1 {
        font-size: 30px;
    }
    .hangya{
        margin-top: 30px;
        width: 50px;
    }
}