@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;

}

h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.3vh;
}
body {
    font-family: 'Bricolage Grotesque', sans-serif; /* Použití fontu Bricolage Grotesk */  /* font-family: 'Dancing Script', cursive; */
    background-color: #f7fdff;
}

header {
    text-align: center;
}

.navbar {
    
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.781) 0%, rgba(255, 255, 255, 0.842) 35%, rgba(255,255,255,0.99) 100%);
 
    padding: 1vh;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
    overflow-x:auto;  /* Přidáme horizontální scroll pro mobilní verzi */
    white-space: nowrap;  /* Zajistí, že odkazy budou v řadě */
}

.navbar a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    position: sticky;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Horizontální zarovnání na střed */
    align-items:flex-end; /* Vertikální zarovnání na střed */
    gap: 24px;
    padding: 8px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 12px;
}

.logo{
    font-family: 'Dancing Script', cursive;
        text-decoration: none;
        color: #0f0f0f;
        font-weight:900;
        padding: 4px;
        font-size: 4vh; 
}

.navbar a:hover {
    color: #0066cc;
}
.intro-photo-container {
    position: relative; /* Creates a positioning context for the text */
    width: 100%;
    height: 90vh;
}
.intro-text {
    position: absolute;
    bottom: 25%; /* Positions text in the bottom 30% (90vh * 0.3 = 27vh, so ~15% from bottom) */
    left: 50%;
    transform: translate(-50%, 50%); /* Centers text horizontally and adjusts vertical alignment */
    color: white; /* Ensure text is visible on the image */
    font-size: 4vh; /* Adjust font size as needed */
    font-family: 'Dancing Script', cursive;

    text-align: center;
}

.intro-photo {
    width: 100%;
    height: 90vh;
    object-fit: cover;
  
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%; /* Na mobilu vyplňuje 90% šířky */
    margin: 0 auto;
    padding-top: 20px;
}

.box {
 
  
    margin: 15px 0;
    padding: 24px;
    width: 100%;
    max-width: 800px; /* Maximální šířka boxu */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


p {
    color: #555;
    line-height: 1.6;
    font-size: 2vh;
}

.images {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lokalita-img {
    width: 100%;
    max-width: 400px;
    height: auto;

    aspect-ratio: 4 / 3; /* Nastaví poměr stran 4:3 */
    object-fit: cover; /* Pokud obrázek není ve formátu 4:3, bude oříznut */
    padding: 2vh;
    border-radius: 2px; 
    border: 1px solid black; /* Black bottom border */
    overflow: hidden; /* Prevents image overflow */
}
.program-img {
    width: 100%;
    max-width: 400px;
    height: auto;

    aspect-ratio: 595 / 840; /* Nastaví poměr stran 4:3 */
    object-fit: cover; /* Pokud obrázek není ve formátu 4:3, bude oříznut */
    padding: 2vh;
    border-radius: 2px; 
    border: 1px solid black; /* Black bottom border */
    overflow: hidden; /* Prevents image overflow */
}


/* Mobile first */
@media (min-width: 600px) {
    .container {
        width: 90%; /* stále 90% šířky */
    }
   
}

@media (min-width: 900px) {
    .container {
        width: 75%; /* Na desktopu 75% šířky */
    }
}

/* Responzivní navbar pro malé obrazovky */
@media (max-width: 600px) {
    body {
        overflow-x:unset;  /* Zabrání horizontálnímu scrollování */
    }
}



/* Gallery Flexbox */
.gallery {
    display: flex;
    flex-direction: column; /* Arranges rows vertically */
    gap: 20px; /* Space between rows */
}

/* Flexbox for Rows */
.row {
    display: flex;
    justify-content: center; /* Centers the photos horizontally */
    gap: 20px; /* Space between photos in the same row */
}

/* Photo Styling */
.photo-container {
    width: 250px;height: 250px;
 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vh;
    border-radius: 2px; 
    border: 1px solid black; /* Black bottom border */
    overflow: hidden; /* Prevents image overflow */
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits without distortion */
    border-radius: 2px; /* Optional: Slightly rounded corners */
}

.bird {
    position: absolute;
    width: 40px; /* Adjust size */
    height: auto;
    z-index: -4; /* Place behind content */
    opacity: 0.75; /* Slight transparency */
    pointer-events: none; /* Make birds unclickable */
}


/* Media Query for Small Screens */
@media (max-width: 768px) {
    .gallery {
        flex-direction: column; /* Stack all rows vertically */
        gap: 20px; /* Space between photos */
    }

    .row {
        flex-direction: column; /* All photos stacked vertically */
        align-items: center; /* Center photos within each row */
    }

    .photo-container {
        width: 200px; /* Fixed width */
        height: 200px; /* Fixed height to ensure all photos are 200x200px */
    }
    .bird {
        position: absolute;
        width: 40px; /* Adjust size */
        height: auto;
        z-index: -4; /* Place behind content */
        opacity: 0.75; /* Slight transparency */
        pointer-events: none; /* Make birds unclickable */
    }
  
    
}