body {
  margin: 0;
  padding: 0;
  font-size: 16px;

  font-family: Verdana, Tahoma, Geneva, sans-serif;
}
body>*{
    max-width: 1440px;
    background-color:rgb(245, 245, 245);
    margin: 0 auto;
}
h1#slogan{
    font-size:23px;
    text-align: right;
    color: rgb(127, 127, 127);
    font-weight: normal;
    margin: 0;
}
h2{
    font-size: 30px;
    margin-top:0;
    margin-bottom: 15px;
}

a{color: black;}
nav {
    background-color:unset;
  display: flex;
  justify-content: space-between;
}
nav > a,
nav > ul {
  display: block;
  padding: 20px 40px;
  flex-basis:100%;
}
nav > a img {
    height: 100px;
  text-align: left;
}
nav > ul {
  list-style: none;
  margin-top:32px;
  display:flex;
}
nav > ul li{display: block;flex-basis:100%;}
nav > ul li:not(:first-of-type){margin-left:20px;}
nav > ul li a{
  display: block;
  font-size:17px;
  border: 2px solid #99cc33;
  border-radius: 5px;
  width:100%;
  min-width: 122px;
  padding: 10px 0;
  text-align:center;
  text-decoration: none;
  transition: 1s background-color linear;
}

nav> ul li a#odkazaktivni{
    border-color:black;
}

nav> ul li a:not(#odkazaktivni):hover{
    background-color: rgb(220, 240, 210);
}

.slideshow, .slide{
    background-color:grey;
    height: 35vw;
    min-height: 200px;
    max-height: 400px;
}
.slideShowDots{
    background-color:rgb(153, 204, 51);
    padding: 10px 0;
}

.slideShowDots span{border-radius:50%;width: 7px;
    height: 7px;
    margin: 0 5px;
    opacity: 0.5;
    transition: 0.5s opacity linear;
}
    .slideShowDots span.active{
        opacity:1;
    }

    .slideshow>div>div{
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
    }
    .imageUp800 {
        display:none;
    }
    .imageUp1440 {
        display: none;
    }
    @media only screen and (max-width:800px){
        .imageUp800{display:block;}
    }
    @media only screen and (min-width:801px){
        .imageUp1440{
            display:block;
        }
    }
    
        
.obsah{
    padding: 40px;
    max-width: 1360px;
    color:#29370D;

  font-size: 18px;
}
.obsah img{max-width:100%;}
.obsah .obalobjektu{margin-top:50px;}
.obsah .obalobjektu:first-of-type{margin-top:50px;}
.obsah .popis,.obsah .nahledyfoto{margin-bottom: 20px;}
.obsah .nahledyfoto{display:flex;flex-wrap: wrap;margin:-5px;max-width: 100%;margin-bottom: 15px;}
.obsah .nahledyfoto img{display:block;margin:5px;cursor:pointer;}
.obsah .objektfoto img{width:100%;}

h3{font-size:24px;}

@media only screen and (min-width: 1100px){
    .obalobjektu {
        display: flex;
        justify-content: space-between;
    }
    
    .obalobjektu > div {
        flex-basis: 49%;
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
    }    
    .obsah .popis {
        padding-right: 20px;
    }
}

footer{
    background-color:#B4B4B4;
    padding:40px;
    font-size:18px;
    max-width:1360px;
}
footer ul{margin:0;padding:0;list-style: none;}


@media only screen and (min-width: 1100px){
    footer{display:flex;}
    footer>ul{flex-basis: 50%;}
}


@media only screen and (max-width: 850px){

    nav{flex-direction: column;}
    nav>a,nav>ul{flex-basis: unset;text-align: center;}

nav > a img {
    max-width:100%;
  max-height: 100px;
  text-align: left;
}
    nav > ul {margin-top:-10px;margin-bottom: 0;}
}

@media only screen and (max-width: 450px){
    nav{flex-direction: column;}
    nav>a,nav>ul{flex-basis: unset;text-align: center;}
    nav > ul {margin-top:0;margin-bottom: 0;display: none}
    nav.showMenu > ul {display: flex;flex-direction: column;margin-top:-20px;}
    nav.showMenu > ul>li{flex-basis: unset;margin-left: 0;}
    nav.showMenu > ul>li:not(:first-of-type){margin-top:20px;}
}

#mobileNavButton {
    margin-top: -20px;
background-color: unset;
cursor: pointer;
text-align: right;
padding: 0 20px 20px;
}

#mobileNavButton svg {
    width: 25px;
    height: 25px;
    stroke: rgb(127, 127, 127);
    stroke-width: 10px;
    stroke-linecap: round;
}

#mobileNavButton:hover svg {
stroke:#99cc33;
}

.adresa{
    list-style: none;
    padding: 0;
}
.flex{
    display: flex;
    justify-content: space-between;
}
.column{
    max-width: 50%;
}
@media only screen and (max-width: 800px){
    .flex{
        flex-direction: column;
    }
}

.flex h2{margin-top: 50px;}
.flex .column h2{margin-top: 0px;}

@media only screen and (min-width: 451px){
    #mobileNavButton{display:none;}
}


