h1,p,a{
    font-family: 'Kanit', sans-serif;
    color: white;
}

h1{
    font-size: 45px;
    text-align: center;
}

p{
    font-size: 18px;
}



.container{
    height: 839px;
    margin: 0 auto;
    max-width: 1000px;
}

body {
    margin: 0;
    padding: 0;
    background: #000; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    background: linear-gradient(to top,#2c3e50,#000 ); 
}

.topnav {
    position: fixed;
    width: 100%;
    top: 0;
}

main {
    margin-top: 100px;
}


nav {
    background-color: #000;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    position: fixed;
    z-index: 999;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #fff;
    color: #000;
}

.logo {
    max-height: 60px;
    width: 40px;
    height: 60px; 
    display: flex;
    position: absolute;
    left: 0;
    margin-left: 20px;

}

.obrazky{
    display: flex;
    padding-top: 50px;
    border: 2px white;
    text-align: center;

}


.stred{
    color: white;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
}
.rada1{
    float: left;
    filter: grayscale();
    
}

.rada1:hover{
    filter: none;
    transition: 0.5s;
}

.rada2{
    float: right;
    padding-left: 30px;
    border-radius: 10px;
    position: relative;
    filter: grayscale();
}

.rada2:hover{
    filter: none;
    transition: 0.5s;
}

img{
    border-radius: 7px;
}

iframe{
    border-radius: 7px;
}

@media (max-width: 450px) {


    nav ul {
        flex-direction: column;
        align-items: center;
        list-style-type: none;
        display: flex;
        top: 3%;
        left: 10%;
        transform: translateX(-10%)translateY(-3%);
    }

    
    nav {
        background-color: transparent;
        padding-left: 35px;
        padding-right: 0;
        padding-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: sticky;
        z-index: 999;
    }

    nav li {
        margin: 8px;
    }

    .topnav {
        position: absolute;
        width: 100%;
        top: 0;
    }
    
    
    
    nav a {
        text-decoration: none;
        color: #fff;
        padding: 3px;
        border: 1px solid #fff;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
        font-size: 15px;
    }
    
    nav a:hover {
        background-color: #fff;
        color: #000;
    }

    .logo { 
        display: flex;
        position: absolute;
        margin-bottom: 145px;
        right: auto;
        margin-top: -12.5px;
        bottom: auto;
        transform: rotate(90deg);
        max-height: 60px;
    }

    .container{
        height: 1150px;
        margin: 0 auto;
        max-width: 450px;
        margin-top: 280px;
    }

    p{
        font-size: 15px;
        text-align: justify;
        max-width: 300px;
        padding-left: 50px;

    }

    h1{
        max-width: 300px;
        padding-left: 50px;
        font-size: 40px;
    }

    .rada1{
        max-width: 300px;
        max-height: 200px;
        padding-left: 55px;
    }
    
    .rada2{
        max-width: 300px;
        max-height: 200px;
        padding-left: 55px;
    }
    
}

@media screen and (max-width: 1025px) and (min-width: 1023px){

    p{
        font-size: 16px;
    }

    .container{
        max-width: 700px;
        height: 693px;
    }

    img{
        max-width: 350px;
    }

    iframe{
        max-width: 350px;
    }

    main{
        margin-top: 75px;
    }

    .obrazky{
        padding-top: 10px;
    }

    .logo{
        max-height: 40px;
        margin-left: 10px;
    }
}

@media (max-width: 782px){

    nav li {
        margin: 8px;
    }

    .topnav {
        position: absolute;
        width: 100%;
        top: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        list-style-type: none;
        display: flex;
        top: 3%;
        left: 10%;
        transform: translateX(-10%)translateY(-3%);
    }


    nav {
        background-color: transparent;
        padding-left: 30px;
        padding-right: 0;
        padding-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: sticky;
        z-index: 999;
    }


    nav a {
        text-decoration: none;
        color: #fff;
        padding: 3px;
        border: 1px solid #fff;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
        font-size: 15px;
    }

    nav a:hover {
        background-color: #fff;
        color: #000;
    }

    .logo { 
        display: flex;
        position: absolute;
        margin-bottom: 145px;
        right: auto;
        margin-top: -12.5px;
        bottom: auto;
        transform: rotate(90deg);
        max-height: 60px;
    }

    .container{
        height: 1150px;
        margin: 0 auto;
        max-width: 450px;
        margin-top: 280px;
    }

    p{
        font-size: 18px;
        text-align: justify;
        max-width: 500px;

    }

    .rada1{
        max-width: 500px;
        max-height: 400px;
    }

    .rada2{
        max-width: 500px;
        max-height: 400px;
        padding-left: 1px;
        margin-top: 20px;
    }
    
    .obrazky {
        flex-direction: column;

    }

    img:not(.logo img), iframe {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 400px){

    nav{
        padding-left: 45px;
    }

    .logo{
        margin-left: 39px;
        max-height: 58px;
    }
}