/* CSS Document */
body {
  background-color: #e0ebf8;
  color: #111;
  font-family: Archivo, sans-serif;
  font-size: 1.3rem;  /* Globální velikost písma je pro větší obrazovky zvětšena až na 1.2rem */
  font-weight: 500;
}

* {  /* do šířky elementu se počítá i padding a border */
 -webkit-box-sizing: border-box;
 -moz-box-sizing: border-box;
 box-sizing: border-box;
}

/* Hack pro rušení obtékání */
.Cf:after {
  content: "";
  clear: both;
  display: table;
}

/* Globální centrování a rozměry webu */
.Center-global {
  max-width: 1100px;
  margin: 0 auto;
  overflow:hidden;
}

/* Začátek navigačního tlačítka */
#main_nav {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	background-color: hsl(9, 60%, 60%);  /* pozadí menu */ 
	width: 100%;
  
	border: RoyalBlue 5px dashed;        /* rámeček menu */
	border-radius: 0 0 24px 24px;
	box-shadow: 0 0 8px 2px #000;
}

.with_nav #main_nav {
	display: block;
  z-index: 5;
}

.access_aid {
	display: none;
}

#access_nav {  /* tlačítko */
	display: block;
	position: fixed;
	top: 0;
	right: 0;
	width: 48px;
	height: 0;
	padding-top: 40px;
	overflow: hidden;
	border: 4px solid Firebrick;
	background: #ccc 8px 8px / 24px 24px no-repeat;

	background-image: -webkit-repeating-linear-gradient(Firebrick, Firebrick 2px, #ccc 2px, #ccc 4px);
	background-image: repeating-linear-gradient(Firebrick, Firebrick 2px, #ccc 6px, #ccc 10px);
	z-index: 6;
}

.with_nav #access_nav {
	background-image: linear-gradient(45deg, transparent 13px, Firebrick 18px, Firebrick 18px, transparent 0), linear-gradient(-45deg, #ccc 13px, Firebrick 18px, Firebrick 18px, #ccc 0);
}
/* Konec navigačního tlačítka */

h1, h2, h3, h4 {
  font-family: Georgia, serif;
  margin-bottom: .4rem;
  text-shadow: White -2px -2px 0;
}

h1, h2, h3, h4, p {
  margin-left: 1%;
  margin-right: 1%;
}

p {
 margin-top: 0.6rem;
}

h1 {  /* Velikosti nadpisů jsou pro větší obrazovky ještě zvětšeny */
    font-size: 1.4rem;
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.2rem
}
h4 {
  font-size: 1.1rem
}

img {  /* všechny obrázky pod sebou doprostřed stránky */
  display: block;
  margin: 0 auto;
}

a:hover, a *:hover {
  background-color: #6495ed;    
}
a:active, a *:active {
  background-color: #b22222;    
}
a img {
  transition: all .2s ease-out;
}
a img:hover {
  transform: scale(1.11);
}
a:visited, a *:visited {
  color: hsl(300, 100%, 20%)
}

.Centruj {
  text-align: center;
}

.Podnadpis {
  margin-bottom: 2.2rem;
}

.Cihla {
  color: Firebrick;
}

.PrvniSloupec, .DruhySloupec {
    clear: none;
    margin-top: .2rem;
    margin-bottom: .7rem;
    margin-left: 1%;
  }

iframe {
  width: 160px;
  height: 90px;
} 

ul {
  line-height: 1.6;
} 

header {

}
  #Promo {
    position: relative;
  }
    #Logo {
      position: absolute;
      top:  0.3rem;
      left: 0.5%;
      z-index: 2;
    }
      #Logo img {
        position: absolute;
        top:0;
        width: 84px;
        height: auto;
        box-sizing: content-box;
      }
    .Kola {
      position: absolute;
      bottom: 0;
      z-index: 3;
    }
      .Kola a {
        text-decoration: none;
       } 
      .Kola a img {
        width: 75px;
        height: 75px;
        border-radius: 75px;
        border: #876061 5px groove; 
        background-color: hsl(9, 60%, 60%); 
      }
        .Kola a img:hover {
          background-color: #6495ed;
        }
      .Kola a p {
        padding: .2rem .4rem 0;
        margin: 0 0 .3rem;
        border-radius: .6rem;
        border: #876061 5px groove;
        background-color: hsl(9, 60%, 60%);
        color: #000; 
        font-size: .7rem;
      }
        .Kola a p:hover {
          background-color: #6495ed;
        }
    .Auto {
      position: absolute;
      left: 0;
    }
    .Stavby {
      position: absolute;
      left: 23%;
    }
    .Zemni {
      position: absolute;
      right: 23%;
    }
    .Refer {
      position: absolute;
      right: 0;
    }
      
    .Banner {     
    }
      .Banner img {
        width: 100%;
        height: auto;  
      }
      
    .Buttons {
      position: absolute;
      top: 0;
      right:0;
      z-index: 2;
    } 
      .Buttons button {
        font-size:1.1rem;
      }  
    
  nav {
    font-size: 1.2rem;
  }
    nav ul * li:hover {
      background-color: #6495ed;
    }
    nav a {
      text-decoration: none;
    }  
    nav.Vertical > ul {
      list-style-type: none;
      margin-top: .5rem;
      margin-bottom: .4rem;
    }
      nav.Vertical > ul > li {
        font-weight: bold;
      }
        nav.Vertical > ul > li:hover {
          background-color: #6495ed;
        }
        nav.Vertical ul.Ano > li.ActivePage {
          background-color: #6495ed;
        }
          nav.Vertical ul.Ano > li.ActivePage a {
            color: #fefefe;
          } 
        nav.Vertical ul.Ano > li {
          font-weight: normal;  
        }
    nav.Horizontal {
      display:none;
    }

main {
  
} 
  article, aside, .PrvniSloupec, .DruhySloupec {  
    float: none;
    clear: left;
    width: auto;
  }
  article {
    border-bottom: solid 2px #a99888;
  }
  article img {
    max-width: 100%;
  }  
  aside img {
    width: 76%;
    height: auto;
  }
  aside h2, aside h3 {
    text-align: center;
  }
  aside p {
    margin-bottom: 2rem;
  }

footer {
  border: solid 4px #6495ed;
  background-color: #a2d9F7;
}
  .Actuality, .Author {
    float: none;
    clear: left;
    width: auto;
  }
    .Author p {
      text-align: right; 
    }
  footer p {
    padding-top: .2rem;
    padding-bottom: .8rem;
    margin-bottom: 0; 
  }  
    
@media (min-width: 380px) {

  header .Kola a p {
    font-size: .8rem;
  } 
  .Auto {
    position: absolute;
    left: .5%;
  }
  .Stavby {
    position: absolute;
    left: 25%;
  }
  .Zemni { 
    position: absolute;
    right: 25%;
  }
  .Refer {  
    position: absolute;
    right: .5%;
  }
    
  #main_nav {
    position: fixed;
	  width: 80%;
  }

  #Logo img {
    transform: translateX(500%) translateY(400%);
    animation: PresunLoga 2s ease-out 0s normal forwards;
  }

  @-webkit-keyframes PresunLoga {     /* Přesun Loga */
    0% {
      -webkit-transform: translateX(400%) translateY(800%) rotate(0);
    }
    100% {
      -webkit-transform: translateX(0) translateY(0) rotate(-360deg);
    }
  }
    
    iframe {
    width: 284px;
    height: 160px;
  } 
  
} /* End of @media (min-width: 380px) */ 

    
          
@media (min-width: 560px) {

  #main_nav {
	 width: 66%;
   position: fixed;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.3rem
  }
  h4 {
    font-size: 1.2rem
  }

/*  #Logo h1, #Logo p  {
    font-size: 1rem;  
  }             */
  #Logo img {
      width: 168px;
      height: auto;
  } 
/*  #Logo h1 {
    margin-left: .4rem; 
  }
  #Logo p {
    top: 122px;
    margin-left: 1.1rem; 
  }     */
  
  main {
    border-top: solid 2px #a99888;  
  }  

  article, aside, .Actuality, .Author {
    clear: none;
  }
  
  article, .Actuality {
    float: left;
    width: 65%;
  }
  
  aside, .Author  {
    float: right;
    width: 35%;
  }
  article {
    background: url(../images/pozadi-sloupce.png) no-repeat top right;
    border-bottom: none;
  }
  
  nav.Vertical {
      display:none;  
    }         
    nav.Horizontal {
      display: inline;
    }
      nav.Horizontal .Okno {
        float: left;
        width: 49.7%;
        padding: .2rem .1rem .4rem 1rem;
        border: #876061 6px groove;
        margin: .2% .6% .8% 0;
        background-color: hsl(9, 60%, 60%); 
      }
        nav.Horizontal .Okno:last-child, nav.Horizontal .Dr {
          margin-right: 0;
        }
        
        nav.Horizontal .Okno > ul {
          list-style-type: none;
          padding-left: 8%;
          margin: .2rem 0 0 0;
        }
    
        .Okno ul > li {
          position: relative;
       /* margin: 0; */
          padding: .2rem 0 .1rem 2.2rem;
       /* border: 0; */
       /* text-shadow: Black -1px -1px 0; */
        } 
        .Okno ul li.ActivePage {
          background-color: #6495ed;
        }
          .Okno ul li.ActivePage a {
            color: #f5f5f5;
          }
        .Okno ul li:hover {
          background-color: #6495ed;
        }       
        .Okno > ul > li:before {
          content: url(../images/favicon-m.png);
          display: block;
          position: absolute;
          left: -2.3rem;
          top: -0.1rem;
          transition: all .3s linear;
        }
        .Okno > ul > li:hover:before {
          transform: translateX(10px);
        }
        .Okno > ul a {
          color: #000;
        }
  
  .PrvniSloupec, .DruhySloupec {
    clear: none;
  } 
  .PrvniSloupec {
    float: left;
    width: 51%;
  }
  .DruhySloupec {
    float: right;
    width: 46%;
    margin-left: 0; 
  }

} /* End of @media (min-width: 560px) */

@media (min-width: 700px) {

  header .Kola a img {
    width: 150px;
    height: 150px;
  }
  header .Kola a p {
    font-size: 1.2rem;
  } 
  
  .Auto {
    position: absolute;
    left: 1%;
  }
  .Stavby {
    position: absolute;
    left: 28%;
  }
  .Zemni {
    position: absolute;
    right: 28%;
  }
  .Refer {
    position: absolute;
    right: 1%;
  }

} /* End of @media (min-width: 700px) */

@media (min-width: 860px) {

  #main_nav {
    position: fixed;
	  width: 56%;
  }
  
  h1 {
  font-size: 1.6rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size:1.4rem;
  }
  h4 {
    font-size:1.3rem;
  }
  
  #Logo img {
    width: 335px;
    height: 114px;
  }
  
/*  #Logo h1, #Logo p {
    width: 176px;
    font-size:1.2rem;
  }
  #Logo h1 {
    margin-left: .5rem; 
  } 
  #Logo p {
    top: 220px;
    margin-left: .6rem;  
  }      */
 
  nav.Horizontal .Dr {
    margin-right: .6%;
  }  

  nav.Horizontal .Okno {
    width: 24.55%;
    margin: -1% .6% .8% 0;
  }

  nav.Horizontal .Okno ul {
    font-size: 1.2rem;
  }
  
} /* End of @media (min-width: 830px) */    

@media (min-width: 1100px) {

  #main_nav {
	 width: 44%;
   position: fixed;
  }
  
  h1 {
  font-size: 1.7rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.4rem;
  }
  
  iframe {
    width: 498px;
    height: 280px;
  }
  
} /* End of @media (min-width: 1100px) */  

@media (min-width: 1500px) {

  #main_nav {
	 width: 20%;
   position: fixed;
  }
  
} /* End of @media (min-width: 1500px) */         

