@font-face {
    font-family: Sora;
    src: url(fonts/Sora/Sora-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Sora;
    src: url(fonts/Sora/Sora-ExtraBold.ttf);
    font-weight: bold;
}

html {
    background: #414042;
}

body {
    font-family: "Sora";
    color: #414042;
    background: #f9f9f9;
    box-sizing: border-box;
    margin: 0;
    padding: 100px 0px 0px 0px;
    min-width: 960px;
}


.centrovany {
    text-align: center;
}

.avatar {
    /*float: right;*/
    width: 300px;
    padding-left: 10px;
    filter: grayscale(1);
}

.bistro-venku {
    float: left;
    width: 85%;
    height: auto;
    margin-top: 15px;
}

.cistic {
    clear: both;
}

article header {
    height: auto;
    margin-bottom: 9px;
}

article {
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 50px 10px 50px;

}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
    padding: 10px 0;
    color: #EF6534;
}

h3 {
    padding: 5px 5px 5px 0;
    margin: 0 10px 0 0;
}

article h1 {
    margin: 0;
    font-size: 2.3em;
    font-weight: bold;
    text-transform: uppercase;
    width: max-content;
    border-bottom: 4px solid #EF6534;
}

article h2 {
    font-size: 2em;
}

article section p {
    line-height: 1.8em;
}

article section a {
    color: #00386B;
}

.menu-tlacitko {
    background: #592C01;
    color: white;
    font-size: 0.9em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
}

.menu-tlacitko:hover {
    filter: brightness(120%) contrast(85%);
    border: 0;
}

article section p {
    margin-bottom: 1.5em;
    line-height: 1.8em;
}

body > header {
    height: 100px;
    width: 100%;
    background: #EF6534;
    color: white;
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    z-index: 1;
    top: 0;
}

#logo {
    height: 90px;
    margin: auto 0 auto 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('img/bistro-slunicko-logo.png') no-repeat;
    filter: grayscale(1);
    background-size: 98px 85px;
}

#logo > * {
    margin: 0 0 0 100px;
}

#logo h1 {
    font-weight: normal;
    font-size: 1.55em;
    line-height: 1.5em;
    color: white;
}

#logo h1 span {
    font-weight: bold;
    text-transform: uppercase;
}

#logo small {
    text-transform: uppercase;
    font-size: 0.85em;
}

nav ul {
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    height: 100px;
}

nav ul li {
    padding: 0 10px;
    margin: 0 5px;
    font-size: 1em;
    line-height: 4.3em;
}


nav ul a {
    color: white;
    padding: 8px 0;
    text-decoration: none;
    text-transform: uppercase;
}

nav ul a:hover, .aktivni a {
    border-bottom: 2px solid #1e7aa1;
}

footer {
    box-sizing: border-box;
    text-align: center;
    height: 100px;
    color: white;
    background: #414042;
    padding: 50px 0 0 0;
    clip-path: polygon(0 30px, 100% 0, 100% 105%, 0 105%);
}

footer a {
    color: white;
    text-decoration: none;
}


/*První div musí být flexbox aby mohly být bloky vedle sebe*/
.section-prvni-main-div-flex {
    display: flex;
    justify-content: space-between;
}

/*Druhý div - levý - není flexbox protože prvky musí být pod sebou*/
.section-druhy-div-vlevo {
    display: block;
    min-width: 35%;
    max-width: 57%;
}

.section-druhy-div-vlevo h3 {
    padding: 5px 5px 5px 0;
    margin: 0 10px 0 0;
}
.section-druhy-div-vlevo h6 {
    padding: 0;
    margin: 0 10px 0 0;
}

.section-druhy-div-vlevo .date {
    padding-bottom: 5px;
    margin: 0 10px 0 0;
}

.section-druhy-div-vlevo p {
    margin: 0;
}

/*Druhý div - pravý - není flex ale block aby byly prvky pod sebou */
.section-druhy-div-pravy {
    display: block;
    flex: 1;/* Prvek se bude rozšiřovat, aby vyplnil dostupný prostor */
}

.section-druhy-div-pravy h3 h6 {
    padding: 5px 5px 5px 0;
    margin: 0 10px 0 0;
}

.section-druhy-div-pravy p {
    margin: 0;
}

/*css pro mapu*/
.section-druhy-div-pravy iframe {
    width: 100%; /* Nastaví šířku iframe na 100% šířky prvku */
    height: 100%; /* Nastaví výšku iframe na 100% výšky prvku */
}

/*css pro stránku kontakty - blok pro adresy a kontakty*/
address {
    margin-bottom: 25px;
    font-style: normal;
}

.telefony {
    margin-bottom: 25px;
}

.novinky-blok {
    margin-bottom: 15px;
}

.novinky-div-obr {
    margin-left: 25px;
    flex: 0;
    height: 100%;
    justify-content: left;
}

.novinky-obr {
    height: 192;
}

/* Stylování navigačních tlačítek */
/*Jídelák*/
.nav-buttons {
    margin: 20px 0;
    text-align: center;
}

.nav-buttons button {
    padding: 10px 20px;
    margin: 0 10px 10px 10px;
    cursor: pointer;
    font-size: 16px;
    background-color: #f37121;
    border: 2px solid #bc4b1c;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
}

.nav-buttons button:hover {
    background-color: #bc4b1c;
}

.nav-buttons button.active {
    background-color: #bc4b1c;
    border-color: #8e3312;
}

/* Skrytí sekcí */
.menu-section {
    display: none;
}

.menu-section.active {
    display: block;
}

/* Flexbox kontejner pro rozdělení menu na dva sloupce */
.menu-container,
.drink-menu-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.menu-column,
.drink-menu-column {
    width: 48%;
}

.menu-column ul,
.drink-menu-column ul {
    list-style-type: disc;
    margin-left: 20px;
}

.jidelak{
    padding: 0;
    margin: 10px;
}

.jdelak_radky{
    margin-top: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    cursor: pointer;
    object-fit: cover;
    height: 150px;
}

/* Styl pro modální okno */
.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.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 50%;
    max-width: 700px;
    transition: transform 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
}

.prev {
    left: 10%;
}

.next {
    right: 10%;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

        /* Stylování pomocí tříd */
        .menu-day-header {
            height: auto;
            margin-top: 25px;
            /* Zachování mezer mezi dny */
            padding: 1px;
        }

        .soup-header,
        .main-header {
            margin-top: 3px;
            margin-bottom: 3px;
            padding: 1px;
        }

        .soup-list {
            margin-top: 2px;
            padding: 1px;
            list-style-type: disc;
            margin-left: 20px; /* Přidá odsazení pro odrážky */
        }

        .main-list {
            margin-top: 2px;
            padding: 1px;
            list-style-type: decimal; /* Změna odrážek na číslování */
            margin-left: 20px; /* Přidá odsazení pro čísla */
        }

        .soup-list li,
        .main-list li {
            margin-bottom: 1px;
            padding: 1px;
        }

        .main-h1{
            margin-bottom: 10px;
        }

        .article-header{
            height: auto;
        }

/* HAMBURGER - výchozí stav */
#hamburger {
    display: none; /* na počítači skryté */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-right: 20px;
    cursor: pointer;
}

#hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 1224px) {


    body {
        min-width: auto; 
        padding-top: 130px; 
    }

    body > header {
        justify-content: space-between;
        padding: 0;
        height: 100px;
    }

    #logo {
        flex: 1 1 75%;
        background-size: 70px 60px;
        background-position: left center;
        height: 70px;
    }

    #logo > * {
        margin: 0 0 0 80px;
    }

    nav {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        background: #EF6534;
        z-index: 100; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.5); 

        
        height: calc(100vh - 100px); /* ZABER VŽDY CELÝ displej bez hlavičky */
        overflow-y: auto; /* povolit vertikální scrollování */
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        background: #EF6534;
        width: 100%;
    }

    nav ul li {
        text-align: center;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid white;
        background: #EF6534;
        height: 70px;
        justify-content: center; /* vertikální zarovnání */
        align-items: center; /* horizontální zarovnání */
    }

    nav ul a {
        display: block;
        width: 100%;
        color: white;
        justify-content: center; /* vertikální zarovnání */
        align-items: center; /* horizontální zarovnání */
    }

    nav ul a:hover, .aktivni a {
        background: #bc4b1c;
        border: none;
    }

    nav ul li {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px; /* výška tlačítka */
    }

    nav ul li a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    nav ul a.menu-tlacitko {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    #hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center; /* vertikální zarovnání */
        align-items: center; /* horizontální zarovnání */
        width: 50px; /* šířka hamburgeru */
        height: 80px; /* výška stejná jako header */
        cursor: pointer;
        margin-right: 10px; /* malá mezera zprava */
    }
}

@media (max-width: 770px) {
    article{
        padding: 0px 40px 10px 40px;
    }
    article h1 {
        font-size: 1.2em;
    }

    article h3 {
        font-size: 1em;
    }

    article section p {
        font-size: 0.8em;
    }

    /* Flex na mobilu -> blokové zobrazení */
    .section-prvni-main-div-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-druhy-div-vlevo,
    .section-druhy-div-pravy {
        max-width: 100%;
        min-width: 100%;
    }

    /* Upravíme zarovnání obrázku */
    .centrovany {
        text-align: center;
        margin-top: 20px;
    }

    .avatar {
        width: 80%; 
        max-width: 300px;
        height: auto;
    }

    footer {
        font-size: 0.8em;
    }

    .menu-container,
    .drink-menu-container {
        flex-direction: column; /* Sloupce pod sebe */
        align-items: center; /* Zarovnat na střed */
    }

    .menu-column,
    .drink-menu-column {
        width: 100%; /* Sloupce budou celé přes šířku */
        margin-bottom: 20px; /* Odstup mezi sekcemi */
    }

    .jidelak{
        margin: 5px; 
    }

    .jdelak_radky{
        margin-top: 5px;
        padding-left: 20px;
    }

    .section-druhy-div-pravy{
        margin-top: 10px;
    }
}

@media (max-width: 890px) {
    article header h1 {
        max-width: 90%;
        white-space: normal; /* Povolit zalomení textu */
        text-align: center; /* Zarovnání na střed */
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        align-items: center; /* zarovnání obrázků na střed */
        gap: 20px; /* mezera mezi obrázky */
    }

    .gallery-item img {
        width: 100%;
        max-width: 500px; /* aby na malých telefonech nebyly obrázky moc velké */
        height: auto;
    }
}

#formular iframe {
    width: 100%;
    max-width: 500px;
    height: 220px;
    border: none;
}

/* Pokud je otevřené */
nav.active {
    display: flex;
}