@font-face {
    font-family: GenosRegular;
    src: url("../ttf/Genos-Regular.ttf");
}

@font-face {
    font-family: OrbitronBlack;
    src: url("../ttf/Orbitron-Black.ttf");
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: GenosRegular;
    font-size: large !important;
    background-color: white;
    color: #1d1d1f;
    overflow-y: scroll;

}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: white;
}

::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 10px;
}

a {
    /* color: #0077FF; */
    color: #1d1d1f;
    text-decoration: none;
}

/* U stitku kazdy druhy odkaz vetsi pismo */
.second:nth-of-type(2n+0) {
    font-size: x-large;
}
/* U stitku kazdy treti odkaz vetsi pismo */
.second:nth-of-type(3n+0) {
    font-size: xx-large;
}

h1 {
    font-size: xx-large;
}
h2 {
    font-size: x-large;
    padding-bottom: 5px;
    border-bottom: 1px solid black;
}
    h2 a {
        color: #1d1d1f !important;
    }

video {
    max-width: 100%;
    height: auto;
}

.pj {
    text-align: justify;
}

.zahlavi {
    width: 100%;
    height: 70;
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    border-top: 0.5px solid #777;
    border-bottom: 0.5px solid #777;
}

    .zahlavi1 {
        flex: auto;
        padding: 10px 20px 10px 20px;
        display: flex;
        align-items: center;
        justify-content: right;
        background-color: #f5f5f7;
    }

    .zahlavi2 {
        flex: auto;
        padding: 10px 20px 10px 20px;
        display: flex;
        align-items: center;
        justify-content: left;
        background-color: #f5f5f7;
    }

        .menu a {
            display: inline-block;
            padding: 10px;
            cursor: pointer;
            text-align: center;
            font-size: x-large;
            text-decoration: underline;
            color: #1d1d1f;
        }

        .overlay {
            display: none;
        }

        .jenmobilni {
            display: none;
        }

.obsah {
    width: 980px; /* zmena ze 100% na 980px */
    padding: 10px 20px 10px 20px;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
}

    .prispevek {
        width: 100%;
        margin-bottom: 20px;
    }

        .prispevek p {
            text-align: justify;
        }

        .prispevek img {
            padding: 10px;
        }
    
    .serial {
        width: 100%;
        padding-top: 0px;
        padding-bottom: 20px;
    }

    .stitky {
        text-align: justify;
    }
    .epizody {
        display: flex;
        flex-wrap: wrap;
    }

        .epizody1 {
            flex: 10%;
            border-bottom: 1px solid black;
            font-size: x-large;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .epizody2 {
            flex: 75%;
            border-bottom: 1px solid black;
            font-size: x-large;
        }

        .epizody3 {
            flex: 15%;
            border-bottom: 1px solid black;
            font-size: x-large;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .formular {
        width: 75%;
        margin: 0 auto;
        padding-bottom: 20px;
    }

        .formular input[type=text] {
            width: 100%;
            padding: 5px;
            font-family: GenosRegular;
            font-size: large;
            background-color: white;
            color: black;
            border: 1px solid black;
        }

        .formular input[type=password] {
            width: 100%;
            padding: 5px;
            font-family: GenosRegular;
            font-size: large;
            background-color: white;
            color: black;
            border: 1px solid black;
        }

        .formular input[type=submit] {
            width: 100%;
            padding: 5px;
            margin-top: 5px;
            font-family: GenosRegular;
            font-size: large;
            border: 1px solid black;
            background-color: white;
            color: black;
        }

        .formular input[type=email] {
            width: 100%;
            padding: 5px;
            margin-top: 5px;
            font-family: GenosRegular;
            font-size: large;
            border: 1px solid black;
            background-color: white;
            color: black;
        }

        .formular textarea {
            width: 100%;
            padding: 5px;
            font-family: GenosRegular;
            font-size: large;
            background-color: white;
            color: black;
            border: 1px solid black;
            resize: none;
        }

        .formular input:focus {
            outline: none;
        }

        .formular input:-webkit-autofill {
            -webkit-box-shadow:0 0 0 50px white inset; /* Change the color to your own background color */
            -webkit-text-fill-color: black;
        }
        
        .formular input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 50px white inset;/*your box-shadow*/
            -webkit-text-fill-color: black;
        }
        
.zapati {
    width: 980px;
    margin: 0 auto;
    padding: 20px;
    font-size: medium;
    text-align: center;
}
    .zapati a {
        display: inline-block;
        padding: 10px;
        text-decoration: underline;
    }

@media only screen and (max-width: 900px) {
    ::-webkit-scrollbar {
        width: 0px;
    }

    .zahlavi {
        position: unset;
    }

    .zahlavi1 {
        flex: 50%;
        align-items: center;
        justify-content: left;
        text-align: center;
    }

    .zahlavi2 {
        flex: 50%;
        align-items:center;
        text-align: center;
        justify-content: right; 
    }

    .menu {
        display: none;
    }

    .menu a {
        padding: 5px;
    }

        .jenmobilni {
            display: unset;
        }

        .overlay {
            display: unset;
            height: 0%;
            width: 100%;
            position: fixed;
            z-index: 1;
            top: 0;
            left: 0;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0, 0.9);
            overflow-y: hidden;
            transition: 0.5s;
        }

        .overlay-content {
            position: relative;
            top: 25%;
            width: 100%;
            text-align: center;
            margin-top: 30px;
        }

        .overlay a {
            padding: 8px;
            text-decoration: none;
            font-size: 36px;
            color: #818181;
            display: block;
            transition: 0.3s;
        }

        .overlay a:hover, .overlay a:focus {
            color: #f1f1f1;
        }

        .overlay .closebtn {
            position: absolute;
            top: 20px;
            right: 45px;
            font-size: 60px;
        }


    .obsah {
        margin-top: 0;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .epizody1 {
        flex: 100%;
        text-align: center;
        border: none;
    }

    .epizody2 {
        flex: 100%;
        text-align: center;
        border: none;
    }

    .epizody3 {
        flex: 100%;
        text-align: center;
        padding-bottom: 20px;
    }

    .zapati {
        width: 100%;
    }
}