* {
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Open Sans', 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    color: black;
}
#zahlavi {
    position: absolute;
    top: 0;
    left: 0;

    height: 7.5vh;
    min-height: calc(3.25vh + 40px);
    width: 100%;

    z-index: 10;

    background: rgba(30,30,30,0.4);
}

.logo {
    float: left;

    padding: 1.75vh 1vw 1.5vh 1vw;

    height: 4.25vh;
    min-height: 40px;
    max-width: 20%;
    min-width: 200px;

    z-index: 11;
}

#zalozky {
    float: right;
    width: 75%;
    height: 100%;

    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
}

#zalozky a {
    flex: 0 1 auto;

    height: 100%;

    display: flex;
    flex-flow: column nowrap;
    justify-content: center;

    padding: 0 1.2%;

    text-decoration: none;
    color: rgb(248,248,248);
    font-size: calc(10px + 0.35vw);

    transition: background 0.2s ease;
}

#zalozky a:hover {
    color: white;
    border-bottom: 5px solid #009ee0;
    background: rgba(0,0,0,0.3);
}

#language img {
    width: 2.5vw;
} 

@media all and (max-width: 800px) {
    #zahlavi {
        height: initial;
    }
    
    #zahlavi img, #zahlavi object {
        min-height: 0px;
        max-width: 100%;
        min-width: 0px;
        width: 40%;
        height: 8vh;
        margin: 2vh 0 2vh -20%;
        position: relative;
        left: 50%;
    }
    
    #zalozky {
        float: left;
        width: 100%;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: flex-start;
    }
    
    #zalozky a {
        padding: 1.5vh 0;
        flex-flow: row nowrap;
        justify-content: center;
        width: 100%;
    }
    
    #zalozky a:hover {
        border: none;
    }
    #language img {
        width: 10%;
    }
}

#prezentace {
    width: 100%;
    /*height: 100vh;*/
}

#slider p {
    position: absolute;
    width: 25%;
    z-index: 2;
    padding-top: calc((100vw / 16) * 9 * 0.75);
    /*font-size: 80px;*/
    font-size: calc(100vw / 16 / 1.5);
    text-align: center;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; 
    color: white;
}

#slider {
    overflow: hidden;
    /*height: 100vh;*/
}

#slider div {
    width: 25%;
    float: left;
}

#slider img {
    width: 100%;
    float: left;
}

#slider figure {
    position: relative;
    width: 400%;
    margin: 0;
    left: 0;
    transition: left 1s ease;
}

#pause, #play {
    fill: rgba(0, 0, 0, 0.3);
    margin: 8px;
    position: absolute;
    bottom: calc((100vh - (100vw / 16) * 9) + 2vh);
    left: 1%;
    z-index: 2;
    transition: fill 0.2s ease;
}

#pause {
    visibility: visible;
}

#play {
    visibility: hidden;
}

#pause:hover, #play:hover {
    fill: rgba(0, 0, 0, 0.6);
}

#top-button {
    position: fixed;
    bottom: 2%;
    right: 1%;
    cursor: pointer;
    padding: 0.75% 0.75%;
    background: rgb(20, 20, 20);
    border-radius: 10px;
    border: 2px solid rgba(60, 60, 60, 0.5);
    fill: rgb(240,240,240);
    opacity: 0.65;
    z-index: 10;
    transition: opacity 0.3s ease;
    visibility: visible;
}

#top-button:hover {
    opacity: 1;
    border: 2px solid rgb(40, 40, 40);
    color: white;
}

#top-button a {
    width:100%;
    height:100%;
}

#obsah {
    font-size: calc(12px + 0.25vw);
    width: 100%;
    list-style: disc inside;
}

#obsah div {
    padding: 2.5% 2%;
    width: 96%;
}

#obsah h1 {
    border-top: 3px solid rgba(0,0,0,0.4);
    display: inline-block;
    padding: 1.5% 0;
}

.download {
    list-style-image: url(pdf.png);
    line-height: 90%;
    margin: 12px 0;
}

#eu a {
    text-decoration: none;
    color: grey;
}

.download li {
    margin: 2px 0;
}

#obsah_prvni {
    background: #a5d6a7;
}

#obsah_druhy {
    background: #ffab91;
}

#obsah_treti {
    background: #fff59d;
}

#obsah_ctvrty {
    background: #81d4fa
}

#obsah_paty {
    background: #a1887f;
}

#obsah_sesty {
    background: rgb(40,40,40);
}

#zapati {
    width: 96%;
    padding: 4% 2% 3% 2%;
    background: rgb(20,20,20);
    color: rgb(144,144,144);
    text-align: left;
    font-size: calc(12px + 0.25vw);
    line-height: 120%;
}