body
{
    margin: 0;
    background-color: #6e4c32;
}
@media screen and (orientation: portrait) {
    .topnav {
        overflow: visible; /* musí být visible, aby menu nebylo oříznuté */
        background-color: #6e4c32;
        position: relative;
        height: 10vh;
        text-align: center;
        z-index: 10; /* aby byla nad ostatními prvky */
    }
    .topnav #myLinks {
        display: none;
        position: absolute;
        top: 10vh; /* přímo pod lištou */
        left: 0;
        width: 100%;
        background-color: #333;
        z-index: 9;
    }
    .topnav #myLinks a {
        color: floralwhite;
        font-size: 2.7vh;
        padding: 3vh 2vw;
        display: block;
        text-decoration: none;
        border-top: 1px solid #444;
    }
    .topnav a.icon {
        background: #333333;
        display: block;
        position: absolute;
        right: 3vh;
        top: 2.5vh;
        padding: 14px 16px;
        cursor: pointer;
        z-index: 11; /* nad menu */
        text-decoration: none;
        color: #ffffff;
    }
    .topnav a:hover {
        background-color: #ddd;
        color: black;
    }
    .active {
        text-decoration: underline;
    }
    .logo {
        color: #faebd7;
        font-size: 4.5vh;
        position: absolute;
        top: 2.5vh;
        left: 3vh;
        text-decoration: none;
        z-index: 11;
    }
    div#part1 {
        height: 106vh;
        border-bottom: black dashed thick;
        border-top: black solid;
    }
    div#part2 {
        height: 67vh;
    }
    div#spodek {
        /* Zajistí, že celý obsah se vejde do vymezeného prostoru */
        padding-left: 5vw;
        padding-right: 5vw;
        box-sizing: border-box;
        height: 30vh;
        border: medium black solid;
        border-bottom: none;
    }
    .instagram-box {
        justify-content: center;
        margin: 0 auto; /* Centrování blokového prvku */
        max-width: 90%; /* Omezení šířky pro menší telefony */
    }
    div#spodek h1 {
        font-size: 3.5vh;
        /* Zajistíme nulové horizontální marginy, aby nic nepřesahovalo */
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    /* Zajištění, že se nic neroztáhne na šířku */
    body {
        overflow-x: hidden;
    }
}
@media screen and (orientation: landscape) {
    .topnav {
        text-align: center;
        height: 10vh;
        background-color: #6e4c32;
        position: relative;
    }
    .topnav #myLinks a {
        text-decoration: none;
        color: floralwhite;
        font-size: 2.7vh;
        padding: 4vh 2vw;
        display: inline-block;
    }
    .topnav a.icon {
        display: none;
    }
    .logo {
        color: #faebd7;
        font-size: 4.5vh;
        position: absolute;
        top: 2.5vh;
        left: 3vh;
        text-decoration: none;
    }
    .active {
        text-decoration: underline;
    }
    div#part1 {
        height: 106vh;
        border-bottom: black dashed thick;
        border-top: black solid;
    }

    div#part2 {
        height: 67vh;
    }

    div#spodek {
        height: 30vh;
        border: medium black solid;
        border-bottom: none;
    }
}
div#spodek
{
    background-color: #6e4c32;
    overflow: auto;
    height: auto;
}
div#spodek h1
{
    text-align: center;
    padding-top: 4vh;
    font-size: 4.5vh;
    color: floralwhite;
}
div#spodek a
{
    text-decoration: none;
    font-size: 3vh;
    color: floralwhite;
}
.instagram-box
{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2vh 2vw;
}
.instagram-box img
{
    width: 5vh;
    height: auto;
    margin-right: 1em;
    border-radius: 270px;
}
.tucny
{
    font-weight: bold;
}
@media print
{
    .topnav
    {
        display: none;
    }
    div#spodek
    {
        display: none;
    }
}