/* Celkové pozadí stránky */
body {
    color: #793d00; /* Tmavě šedá pro text */
    padding-top: 120px; /* Odsazení pro pevný nadpis a navigaci */
}

/* Pevná horní část */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #3cb043, #2b7a2b); /* Zelený gradient pro efekt listu */
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 1); /* Jemný stín */

}

.header::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: overlay; /* Jemný efekt světla */
    z-index: 1;
}

.header::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 2px,
        transparent 2px,
        transparent 10px
    );
    opacity: 0.5; /* Textura jemných čar */
    z-index: 2;
}

.header h1 {
    margin: 0;
    padding: 13px;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 3; /* Text nad efekty */
}

.header-image {
    position: fixed;
    top: 10px; /* Posun od horního okraje */
    left: 20px; /* Posun od levého okraje */
    width: 100px; /* Nastavení šířky obrázku */
    height: auto; /* Automatické přizpůsobení výšky */
    z-index: 1100; /* Zajištění, že obrázek bude nad lištami */
}

.header-image2 {
    position: fixed;
    top: 10px; /* Posun od horního okraje */
    right: 20px; /* Posun od levého okraje */
    width: 100px; /* Nastavení šířky obrázku */
    height: auto; /* Automatické přizpůsobení výšky */
    z-index: 1100; /* Zajištění, že obrázek bude nad lištami */
}

/* ? Pokud je viewport menší než 600px nebo pokud obrázky zasahují do nadpisu, skryj je */
@media (max-width: 600px) {
    .header-image {
        display: none;
    }
}

/* ? Dynamické skrytí obrázků, pokud zasahují do nadpisu */
@media screen and (max-height: 120px) {
    .header-image {
        display: none;
    }
}

/* ? Pokud je viewport menší než 600px nebo pokud obrázky zasahují do nadpisu, skryj je */
@media (max-width: 600px) {
    .header-image2 {
        display: none;
    }
}

/* ? Dynamické skrytí obrázků, pokud zasahují do nadpisu */
@media screen and (max-height: 120px) {
    .header-image2 {
        display: none;
    }
}

/* Navigační lišta */
.navbar {
    background: linear-gradient(135deg, #6b4423, #4b2e13); /* Hnědý gradient pro stromovou kůru */
    position: relative;

    box-shadow: 0 -2px 5px rgba(0, 0, 0, 1); /* Jemný stín */
}

.navbar::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: overlay; /* Jemný světelný efekt */
    z-index: 1;
}

.navbar::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 2px,
/*        transparent 50px,*/
/*        transparent 50px*/
    );
    opacity: 0.3; /* Jemná textura dřeva */
    z-index: 2;
}

.navbar .nav-link {
    color: white;
    font-weight: bold;
    margin: 0 30px;
    position: relative;
    z-index: 3; /* Text nad texturou */
}

.navbar .nav-link:hover {
    text-decoration: underline;
    color: #ebe1dc; /* Světlejší hnědá při hoveru */
}

/* Dropdown menu */
.nav-item {
    position: relative;
    width: 150px;
    text-align: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 150px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background: linear-gradient(135deg, #925b30, #4b2e13); /* Hnědý gradient pro stromovou kůru */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 1); /* Jemný stín */
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #ebe1dc;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #3cb043;
}

/* Zobrazení seznamu při najetí myší */
.nav-item:hover .dropdown-content {
    display: block;
}

.navbar .container-fluid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Umožní, že se položky přetáhnou na novou řadu, pokud není dost místa */
}

/* Footer styling */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6b4423, #4b2e13); /* Hnědý gradient pro stromovou kůru */
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 1); /* Jemný stín nahoře */
}

.footer::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: overlay; /* Jemný světelný efekt */
    z-index: 1;
}

.footer::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 2px,
    );
    opacity: 0.3; /* Jemná textura dřeva */
    z-index: 2;
}

.footer a {
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 3; /* Text nad texturou */
}

.footer a:hover {
    text-decoration: underline;
}

.calendar-container {
    max-width: 900px;
    margin: 30px auto; /* Zarovnání na střed */
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrované v rámci divu */
}

.calendar-container iframe {
    width: 100%; /* Přizpůsobí se kontejneru */
    max-width: 800px; /* Maximální šířka pro lepší vzhled */
    height: 500px; /* Fixní výška */
    border: none; /* Odstranění okraje */
}

.gallery {
   display: grid;
   grid-template-columns: repeat(5, 1fr); /* 5 sloupců */
   gap: 10px;
    padding: 20px;
    justify-content: center;
}

.gallery img {
    width: 100%; /* Obrázek se roztáhne na celou šířku sloupce */
    height: 150px; /* Fixní výška */
    object-fit: contain; /* Obrázek se přizpůsobí, ale neztratí části */
    background-color: white; /* Přidá bílé okraje, pokud obrázek nemá správný poměr */
    cursor: pointer;
    border: 0px solid #ddd;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.active {
    display: flex;
}
.modal img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 5px;
}
.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
.modal .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}
.modal .arrow.left {
    left: 10px;
}
.modal .arrow.right {
    right: 10px;
}
input[readonly] {
    background-color: white !important;
    cursor: pointer; /* pro lepší UX */
}
.btn {
    min-width: 100px;
    min-height:37px;
}

