html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
    font-family: sans-serif;
}
header nav{
    background-color: rgb(0, 0, 137);
    padding: 0px 0 0px 50px;
    display: flex;
    flex-direction: column;
}
header nav a{
    text-decoration: none;
    color: white;
    padding: 20px 20px;
    border-right: 1px solid white;
    margin: 0;
}
header nav a:hover{
    background-color: white;
    color: rgb(0, 0, 137);
    transition: 0.3s;
}
header nav a:last-child{
    border-right: none;
}
.header,header p{
    padding: 0% 20% 1% 5%;
}
header h1{
    color: rgb(0, 0, 137);
    font-size: 3em;
    margin: 70px 0 0;
}
header h2{
    font-family: monospace;
    margin: 0;
    overflow: hidden; 
    white-space: nowrap;  
    border-right: .15em solid black;
    width: 0;   
    animation: 
        typing 3s steps(28, end) forwards,   /* psaní po znacích */
        blink .75s step-end infinite; 
}
@keyframes typing {
    from { width: 0 }
    to { width: 28ch } 
}
@keyframes blink {
    50% { border-color: transparent }
  }
header p{
    font-size: 1.2em;
}
header{
    padding-bottom: 150px;
}
.header{
    padding: 50px 5%;
}

.pilire{
    background-color: rgb(0, 0, 137);
    display: flex;
    flex-direction: column;

    padding: 1% 5% 3%;
    justify-content: center;
    gap: 20px;
}
.pilire h1{
    color: white;
}
.pilir{
    background-color: white;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.nadpis1 h1{
    text-align: center;
    color: white;
    margin: 0;
}
.nadpis1{
    background-color: rgb(0, 0, 137);
    padding: 3% 0 1%;
}
.pilir h2{
    text-align: center;
}
.pilir p{
    font-weight: bold;
    font-size: 1.1em;
}
.pilir ul{
    margin: 5px;
}
.pozor{
    margin: 5% 7%;
}
.pozor p{
    font-size: 1.3em;
    margin-bottom: 60px;
    border-bottom: 2px solid rgba(0,0,137, 0.51);
    padding-bottom: 20px;
}
.pozor h1{
    margin-bottom: 60px;
}
footer{
    background-color: rgb(0, 0, 137);
    
}
footer p{
    color: white;
    font-size: 1.5em;
    padding: 20px;
    margin: 0;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
}
.mytyDuvody{
    margin: 5% 7% 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mytyDuvody article{
    margin: 20px;
    flex: 1;

}
.mytyDuvody li{
    font-size: 1.3em;
    padding: 5px 0;
}
.mytyDuvody li::marker{
    color: rgb(0, 0, 137);
}
.mytyDuvody ol{
    list-style-type: square;
}

@media(min-width: 880px){
    .pilire{
        flex-direction: row;
        justify-content: center;
        padding: 1% 2% 3%;
    }
    .mytyDuvody{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}
@media(max-width: 880px){
    .header,header p{
        padding: 0% 20% 0% 8%;
    }
    header{
        padding-bottom: 100px;
    }
    nav{
        min-width: max-content;
        padding: 20px 0 20px 0px;
    }
}
@media(min-width: 500px){
    header nav{
        flex-direction: row;
    }
}