html, body {
    margin: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;

}
body{
    position: relative;
    margin: 0%;
    padding: 0px;
    border: hidden;
    display: block;
    font-family: none;
}
.main_body{
    width: 100%;
    height: auto;
    
}
header{
    height: 186px;
    width: 100%;
}
.text_in_header{
    margin-top: 30px;
    float: left;
}
.header_items{
    padding-left: 10%;
    height: 150px;
    width: 90%;
}
nav{
    height: 45px;
    width: 100%;
}

nav ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgb(255, 255, 255), #eeeeee);
    border: 1px solid #d7d5d5;
}
nav ul li{
    float: left;
    padding-left: 10px; 
    padding-right: 10px; 
    height: 100%;
    border-right: 1px solid #d7d5d5;
}
nav ul li a {
    display: block;
  text-align: center;
  padding: 4px 8px;
  text-decoration: none;
  color: black;
  padding-top: 12px;
}
nav ul li:hover {
    background-color: black;
}

nav ul li:hover a {
    color: white;
}
.main_img{
    height: 100%;
    width: auto;
    float: left;
    margin-left: 5%;
}
@media screen and (max-width: 1300px) {
    .main_img{
        margin-left: 2%;
    }
    .text_in_header{
        width: 50%;
    }
}
@media screen and (max-width: 1100px) {
    .main_img{
        margin-left: 0%;
    }
    .header_items{
        padding-left: 4%;
    }
}
@media screen and (max-width: 930px) {
    .main_img{
        visibility: hidden;
        height: 0%;
    }
    .header_items{
        padding-left: 4%;
    }
    .text_in_header{
        width: 90%;
    }
}
@media screen and (max-width: 800px) {
    .main_img{
        visibility: hidden;
        height: 0%;
    }
    article{
        padding: 15%;
    }
    .foot_container{
        border-bottom:  solid #3f3f3f;
        border-right:  hidden;
    }
    .text_in_header{
        width: auto;
    }

}

@media screen and (min-width: 800px) {
    .foot_container{
        border-bottom:  hidden;
        border-right:  solid #3f3f3f;
        padding-bottom: 0%;
        padding-top: 0%;
    }
    article{
        padding: 20%;
    }
}
@media screen and (max-width: 610px) {
    nav ul li{
        float: none;
        border-right: 0px;
    }
    nav ul li a{
        padding-bottom: 10px;
    }
    nav{
        height: auto;
    }
    .text_in_header h1, h2{
        align-content: center;
    }
    nav ul{
       border-left: hidden;
       border-right: hidden;
    }
    article{
        padding: 10%;
    }

}

article{
    height: auto;
    padding-top: 5%;
    padding-bottom: 10%;
}
footer{
    background-color: #3a3a3a;
    height: auto;
    bottom: 0px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: space-evenly;
    padding: 2%;
}
.foot_container{
    height: 100%;
    width: 80%;
    padding-left: 20%;
}
.foot_content{
    padding-bottom: 20px;
    padding-top: 20px;
    padding-right: 20%;
    width: 80%;
}


#last_item_in_footer {
    border: hidden;
}
.red_color, a{
    color: red;
}

.aktualita_karticka{
    padding: 5%;
    border-style: solid;
    -webkit-box-shadow: 15px 19px 18px 0px rgba(84,84,84,0.74);
    -moz-box-shadow: 15px 19px 18px 0px rgba(84,84,84,0.74);
    box-shadow: 15px 19px 18px 0px rgba(84,84,84,0.74);
    margin-top: 10px;
}
.aktualita_karticka ul li, .aktualita_pozadi ul li{
    margin-top: 10px;
}

.aktualita_pozadi{
    margin-top: 10px;
    padding: 5%;
}