body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(-90deg, #b31e43, #3645e6);
    color: #fff;
    overflow-x: hidden; /* Oldalra görgetés tiltása */
}

.container {
    max-width: 100%; 
    margin: 0 auto;
    padding: 0 10px; 
    font-weight: bold;
}

header {
    background-color: #333;
    padding: 10px 0; 
    font-weight: bold;
}

.header-content {
    display: flex;
    justify-content: center; /* Középre igazítás */
    align-items: center;
    text-align: center;
}


nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    display: flex;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px; /* Kisebb padding */
    background-color: #333; /* háttérszín */
    transition: background-color 0.3s ease; /* áttűnő effekt */
}

nav ul li a:hover {
    background-color: #555; /* hover állapotban más háttérszín */
}


.main {
    padding: 20px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

.image-wrapper img {
    width: 100%;
    height: auto;
}

.image-wrapper:hover img {
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    nav ul li a {
        padding: 5px 7px; /* Kisebb padding telefonon */
        font-size: 6px; /* Kisebb betűméret */
    }

    h1 {
        font-size: 6px; 
    }
    nav ul li a {
        font-size: 6.8px; 
    }
    .container {
        padding: 0 5px; 
    }
    .image-wrapper {
        margin-bottom: 10px; 
    }

    body {
        overflow-x: hidden;
    }

    /* Szép megjelenítés vízszintes nézetben */
    @media screen and (orientation: landscape) {
        nav ul li a {
            padding: 8px 15px; /* Növelt padding vízszintes nézetben */
            font-size: 8px; /* Növelt betűméret vízszintes nézetben */
        }
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 20px;
    }

    .image-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        transition: transform 0.3s;
        margin-bottom: 20px;
    }

    .image-wrapper:hover {
        transform: scale(1.05);
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
    }

    .image-wrapper:hover img {
        filter: brightness(1.2);
    }
}

