body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.navmobil {
    display: none;
}

.logo {
    width: 87px;
    height: 38px;
    margin-top: 6px;
    margin-bottom: 12px;
    margin-left: 104px;
}

.nav {
    background-color: black;
    position: relative;
    max-height: 50px;
}

.nav a {
    float: right;
    color: #f2f2f2;
    margin-right: 20px;
    margin-top: 15px;
    text-decoration: none;
    font-size: 100%;
    font-family: 'Montserrat', sans-serif;
}

@media screen and (max-width: 960px) {
    .nav a {
        font-size: 80%;
        margin-top: 18px;
    }
}

@media screen and (max-width: 865px) {
    .nav a {
        font-size: 60%;
        margin-top: 20px;
    }
}

.nav a:nth-child(2) {
    margin-right: 150px;
}

.nav a:hover {
    color: #96C11E;
}

.fejfb {
    position: absolute;
    top: 25%;
    right: 120px;
    margin-top: -10px;
    margin-right: 5px;
    width: 39px;
    height: 39px;
}

.fejemail {
    position: absolute;
    top: 25%;
    right: -30px;
    margin-top: -10px;
    margin-right: 104px;
    width: 39px;
    height: 39px;
}

@media screen and (max-width: 767px) {
    .fejemail {
        display: none;
    }

    .fejfb {
        display: none;
    }

    .logo {
        width: 10%;
        height: 10%;
        margin-left: 45%;
        margin-right: 45%;
        margin-top: 2%;
    }

    .nav {
        display: none;
    }

    .navmobil {
        overflow: hidden;
        background-color: black;
        position: relative;
        display: block;
    }

    .navmobil #oldalak {
        display: none;
    }

    .navmobil a {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 18px;
        display: block;
        font-family: 'Montserrat', sans-serif;
    }

    .navmobil a.icon {
        width: 15px;
        height: 19px;
        background: black;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
    }

    .navmobil a:hover {
        background-color: #96C11E;
        color: black;
    }

    .active {
        color: white;
    }
}

h1 {
    font-size: 1.84vw;
    color: #575756;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2.26%;
    margin-left: 6%;
}

.card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 200px;
    margin-right: 10%;
    margin-left: 10%;
}

.cards {
    height: auto;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -40%;
}

.cards img {
    cursor: pointer;
    width: 400px;
    height: auto;
    border: 2px solid black;
    border-radius: 9px;
    margin-right: 7%;
    margin-left: 7%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 10px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.modal-content {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    cursor: pointer;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

@media screen and (max-width: 767px) {
    h1 {
        font-size: 5.83vw;
        margin-left: 8%;
    }

    .card {
        margin-left: 5%;
        margin-right: 5%;
    }

    .cards {
        width: 60%;
        height: auto;
        margin-bottom: -30%;
        margin-left: 20%;
        margin-right: 5%;
    }

    .cards img {
        width: 350px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 100%;
    }
}

.lablecmobil {
    display: none;
}
    
.lablec {
    width: 100%;
    height: auto;
    margin-top: 15%;
    margin-bottom: -1px;
}

:root {
    scroll-behavior: smooth;
}

.fel {
    width: 5%;
    height: auto;
    float: right;
    margin-right: 104px;
    position: relative;
    margin-top: -13%;
}

@media screen and (max-width: 767px) {
    .lablec {
        display: none;
    }
    
    .lablecmobil {
        margin-top: 40%;
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: -1px;
    }
    
    .fel {
        width: 15%;
        height: auto;
        margin-top: -25%;
        margin-right: 4%;
    }
}