@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/*    font-family: "Roboto", sans-serif;
*/

body{
    margin: 0;
    font-family: "Roboto", sans-serif;
}
header{
    padding: 2% 7% 0;
    display: flex;
    flex-direction: column;
    background-color: black;
}
.header{
    display: flex;
    flex-direction: column;
}
header img{
    width: 100%;
    max-width: max-content;
    border: 15px solid rgb(155, 155, 155);
    box-sizing: border-box;
    position: relative;
    top: 50px;
}
.actual{
    color: yellow;
}
header span{
    color: yellow;
}
header h1{
    font-size: 3em;
    color: white;
    margin: 15px 0 0;
}
section{
    display: flex;
    flex-direction: column;
    padding: 2% 4%;
}
section p{
    text-align: justify;
    font-size: 1.4em;
    margin: 16px;
}
section h2{
    text-align: center;
}
section article{
    margin: 40px;
}
section img{
    border: none;
}
footer{
    background-color: black;
    padding: 20px 0;
}
footer p{
    color: white;
    text-align: center;
}
header a{
    color: white;
    text-decoration: none;
    text-align: center;
}
main li{
    font-size: 1.3em;
}
.order{
    display: flex;
    flex-direction: column;
}
img{
    width: 100%;
    max-width: max-content;
}
.tabulka{
    display: flex;
    flex-direction: column;
    text-align: center;
}
table{
    margin: 40px auto 20px auto;
    border-collapse: collapse;  
}
th, td {
    padding: 5px 20px; 
}

th:first-child, td:first-child {
    text-align: left;
}
th:last-child, td:last-child {
    text-align: right;
}  
th:nth-child(2), td:nth-child(2) {
    text-align: left;
}
tr:nth-child(odd) {
    background-color: #E0E0E0;
}
.tabulka h1{
    font-size: 2em;
}
.wrap{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.wrap img{
    width: 100%;
    height: auto;
    max-width: 640px;
}
.wrap article{
    flex: 1 0 320px;
}







@media(min-width: 800px){
    .header{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .order{
        flex-direction: row;
        align-items: center;
    }
    section{
        flex-direction: row;
    }
    .prvni{
        margin-top: 50px;
    }
    section img{
        box-shadow: 2px;
    }
    .flex1{
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .flex2{
        display: flex;
        flex-direction: column;
        flex: 2;
    }
    nav ul ul{
        transform: scaleY(0);
        transition: 0.5s;
        background-color: white;
        list-style-type: circle;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    nav ul li:hover ul{
        transform: scaleY(1);
        transition: 0.5s;
    }
    nav ul li ul li a{
        color: black;
    }

    nav > ul{
        display: flex;
        flex-direction: row;
    }
    nav ul li{
        margin: 10px;
    }
    .poradi2{
        order: 2;
    }
    .f2{
        flex: 1;
        margin: 0;
    }
    .f1, .poradi2{
        flex: 1;
        margin: 0;
    }
    .order{
        gap: 15px;
    }
    main{
        margin-top: 30px;
    }
}
@media(min-width: 1000px){
    .f2{
        flex: 2;
    }
    .f1, .poradi2{
        flex: 1;
    }
}
@media(max-width: 800px){
    header img{
        display: none;
    }
    tr{
        display: flex;
        flex-direction: column;
    }
    th{
        display: none;
    }
}