* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}





section {
    padding: 5%;
    background-color: #2e4d32;
    text-align: left;
    text-wrap: wrap;
    align-items: left;
}

section div {
    align-items: center;
    text-align: center;
}

section ul {
    list-style: none;
    padding: 0;
    color: white;

}

section ul li {
    margin-bottom: 10px;
}

#gallery-bg {
    background-color: white;
    padding: auto;
    margin: auto;
}

#gallery-bg h1 {
    font-size: 3rem;
    color: #2e4d32;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

section h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

section h2 {
    font-size: 2rem;
    color: white;
    margin: auto;
    text-align: center;
    text-transform: uppercase;
}

section p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.gallery img:hover {
    transform: scale(1.05);
}

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

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 20px;
    transform: translateY(-50%);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

section button {
    width: 200px;
    padding: 15px;
    margin: 20px 5px;
    text-align: center;
    border-radius: 25px;
    color: black;
    border: 2px;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
}

section button:hover {
    background: #153412;
    color: white;
}

a {
    color: #2e4d32;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#footer {
    background-color: white;
    color: black;
    text-align: center;
    padding: 20px 0;
}

.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2e4d32;
    padding: 30px;
    position: relative;
}

.navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar ul li {
    list-style: none;
    display: inline-block;
    margin: 20px;
}

.navbar ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-weight: 600;
    padding: 15px;
    transition: color 0.3s ease;
}

li a:hover {
    background: white;
    transition: 0.6s;
}

.navbar a:hover {
    color: black;
}


.logo {
    width: 150px;
    height: auto;
    cursor: pointer;
    margin: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 20px;
    z-index: 1001;
}


.hamburger .bar {
    height: 3px;
    width: 28px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.4s ease;
    margin: 4px 0;
}

/* ================= HAMBURGER NA KŘÍŽEK ================= */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* ================= RESPONZIVNÍ ================= */
@media (max-width: 768px) {


/* ================= RD NAVBAR ================= */

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* pod navbar */
        left: 0;
        width: 100%;
        background-color: #2e4d32;
        z-index: 999;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        
    }

    .nav-links.active {
        display: flex;
  
        transition: all 0.3s ease;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links li a {
        color: #2e4d32;
        font-weight: 600;
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        transition: background-color 0.3s ease;
    }

    .nav-links li a:hover {
        background-color: #d5e6c6;
        text-decoration: underline;
    }
}


