#content img, img:not(.logo_in_header){
  max-width: 100%;
  display: inline;
  margin: 0.5%;
}

html{
  height: 100%;  
  width: 100%; 
}

body{
  width: 100%; 
  background-color: rgb(239,239,239);
  height: 100%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 0px;
}

#header_bg{
  width: 100%; 
  height: 280px;
  background-color: #9cb036;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: -1000;
}

#main{
  max-width: 1000px;
  width: 98%;
  margin: 0px auto;
}

#header{
  width: 100%;
}

#logo{
  margin-top: 25px;
  margin-left: 10px;  
  width: calc(100% - 10px);
  background-image: url('/img/logo_bw.gif');
  background-position: left top;
  background-size: auto 65%;
  background-repeat: no-repeat;
  height: 160px;
}

.logo_in_header{
  width: 25%;
}

.shadow{
  -moz-box-shadow: 0px 2px 10px 1px rgba(64,64,64, 0.4);
  -webkit-box-shadow: 0px 2px 10px 1px rgba(64,64,64, 0.4);
  box-shadow: 0px 2px 10px 1px rgba(64,64,64, 0.4); 
}

#main_menu{
  min-height: 30px;
  width: 97%;
  padding: 10px 1.5% 1px 1.5%;
  background-color: rgb(119,119,119);
}

#footer{
  color: white;
  width: 97%;
  padding: 10px 1.5% 10px 1.5%;
  margin-bottom: 20px;
  background-color: rgb(119,119,119); 
}

#footer a, #footer a:visited{
  color: white;
}

#footer_left{
  float: left;
  width: 35%;
}

#footer_right{
  float: right;
  width: 25%;
  line-height: 1.5;
}

#copyright{
  text-align: center;
}

/*--------------------------------------------------------------------*/

.category_ul{
  padding-left: 0px;
}

.category_ul li a{
  text-decoration: none;
  display: block;
  padding: 15px;
}

.category_ul li{
  display: inline-block;
  list-style-type: none;
  -moz-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  -webkit-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  width: 32%;
  margin-left: 1%;
  margin-bottom: 15px;
}

.category_ul li a:hover{
  color: white;
  background-color: rgb(173,195,61);
}

.main_menu_ul, .vertical_menu_ul{
  padding-start: 0px;
  -webkit-padding-start: 0px;
  padding-start: 0px;
  padding: 0px;
  margin: 0px;
}

.main_menu_ul{
  min-height: 31px;
}

.main_menu_ul li:not(:last-child){
  border-right: 1px solid rgb(224,224,224);
}  
  
.main_menu_ul li{
  text-align: center;
  display: inline-block; 
  font-weight: bold;
  margin-bottom: 9px;
}

.main_menu_ul li.active, .main_menu_ul li:hover{
  background-color: white;
  border: none;
  margin-left: -1px;
  margin-top: -14px;         
  margin-bottom: 6px;  
}

.main_menu_ul li.active a, .main_menu_ul li:hover:not(.active) a{
  color: black;
  padding: 7px 10px 7px 10px; 
  -moz-box-shadow: 0px 2px 10px 1px rgba(255,255,255, 0.4);
  -webkit-box-shadow: 0px 2px 10px 1px rgba(255,255,255, 0.4);
  box-shadow: 0px 2px 10px 1px rgba(255,255,255, 0.4);
}

@media screen and (min-width: 900px) {
  .main_menu_ul{
    height: 31px;
  }
  
  #main_menu{
    height: 38px;
  }
  
  .main_menu_ul:not(.home_main_menu) li.active a{
    padding-bottom: 29px;
  }
}

.main_menu_ul a{
  color: white;
  display: block;
  text-decoration: none;  
  padding: 5px 9px 5px 9px;
}

.vertical_menu_ul{
  margin-left: 15px;
}

.vertical_menu_ul li{
  list-style: square url('/img/menu_item_square-green.jpg');
  /*margin-bottom: 3px;*/
}

.pro-studenty .vertical_menu_ul li{
  list-style: square url('/img/menu_item_square-tyrkys.jpg');
}

.pro-zajemce .vertical_menu_ul li{
  list-style: square url('/img/menu_item_square-orange.jpg');
}

.pro-rodice .vertical_menu_ul li{
  list-style: square url('/img/menu_item_square-blue.jpg'); 
}

.vertical_menu_ul a{ 
  padding: 8px 9px 8px 1px;
  display: block;  
  color: black;
  text-decoration: none;
}

.vertical_menu_ul li.active, .vertical_menu_ul li:hover{
  background-color: rgb(173,195,61);
  list-style: none;
  margin-left: -15px;  
}

.pro-studenty .vertical_menu_ul li.active, .pro-studenty .vertical_menu_ul li:hover, .pro-studenty .category_ul li a:hover{
  background-color: rgb(0,148,144);  
}

.pro-zajemce .vertical_menu_ul li.active, .pro-zajemce .vertical_menu_ul li:hover, .pro-zajemce .category_ul li a:hover{
  background-color: rgb(227,97,47);  
}

.pro-rodice .vertical_menu_ul li.active, .pro-rodice .vertical_menu_ul li:hover, .pro-rodice .category_ul li a:hover{
  background-color: rgb(0,84,118);  
}

.vertical_menu_ul li.active{
  margin-left: calc(-15px - 15%);
}

.vertical_menu_ul li.active a, .vertical_menu_ul li:not(.active) a:hover{
  padding-left: calc(16px + 12.176%);
  color: white; 
  -moz-box-shadow: 0px 2px 10px 1px rgba(64,64,64, 0.4);
  -webkit-box-shadow: 0px 2px 10px 1px rgba(64,64,64, 0.4);
  box-shadow: 0px 2px 10px 1px rgba(64,64,64, 0.4);
}

.vertical_menu_ul li:not(.active) a:hover{
  padding-left: 16px; 
}

/*-----------------------------------------*/


#content_body, #alert{
  z-index: 1000;
  width: calc(100% - 5px);
  margin-top: 10px;
  margin-bottom: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: white;   
  border-right: 5px solid rgb(173,195,61);
}

#alert{
  padding: 15px 2% 15px 2%;
  width: calc(96% - 5px);
  margin-bottom: 15px;
}

.pro-studenty #content_body{
  border-color: rgb(0,148,144);  
}

.pro-zajemce #content_body{
  border-color: rgb(227,97,47);  
}

.pro-rodice #content_body{
  border-color: rgb(0,84,118);  
}

#content_body .with_menu{
  width: 71%;
  padding: 1px 3% 20px 3%;
  float: right;
}

#content_body .without_menu{
  width: 92%;
  padding: 1px 4% 20px 4%;  
  float: none;   
}

#to_nav, #up{
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  background-color: #c6d577;  
}

#up{
  margin-bottom: 10px;
  margin-top: -10px;
}

#vertical_menu{
  padding: 15px 1.5% 20px 1.5%;
  width: calc(20% - 1px);
  border-right: 1px solid rgb(119,119,119);
}

.headline{
  display: block;
  background-color: rgb(173,195,61);
  color: white;
  width: 100%;
  margin-left: -2.5%;
  margin-bottom: 25px;
  padding: 15px 6.45% 15px 2.5%;
}

.pro-studenty .headline{
  background-color: rgb(0,148,144);  
}

.pro-zajemce .headline{
  background-color: rgb(227,97,47);  
}

.pro-rodice .headline{
  background-color: rgb(0,84,118);  
}

.page_img{
  float: left;
  width: 30%;
  margin-right: 3%;
  margin-bottom: 3%;
}

#gallery_in_content{
  width: 100%;
  height: 200px;
  overflow: auto;  
}

#gallery_in_content table{
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none; 
}

#gallery_in_content table tr td{
  background-color: white;
  padding: 5px;
}

#gallery_in_content img{
  height: 170px; 
}

/*------------------------------------------------------------*/

table{
  border-collapse: collapse;
  border: none; 
  -moz-box-shadow: 0px 3px 10px 1px rgba(64,64,64, 0.4);
  -webkit-box-shadow: 0px 3px 10px 1px rgba(64,64,64, 0.4);
  box-shadow: 0px 3px 10px 1px rgba(64,64,64, 0.4); 
}

tr:nth-child(2n+1):not(.th){
  background-color: #f1f1f4;  
}

th{
  background-color: rgb(173,195,61);
  color: white;
  font-weight: bold; 
  text-align: left;   
}

.pro-studenty th{
  background-color: rgb(0,148,144);  
}

.pro-zajemce th{
  background-color: rgb(227,97,47);  
}

.pro-rodice th{
  background-color: rgb(0,84,118);  
}

td, th{
  padding-left: 17px;
  padding-right: 17px;
  padding-top: 12px;
  padding-bottom: 12px;
  border: none;
}

/*--------------------------------------------------------------*/

#homepage{
  margin-top: 10px;
}

#studenti, #rodice, #uchazeci{
  padding: 0.5% 2% 0.5% 2%; 
  float: left;               
  width: calc(18.5% - 5px);
  margin-bottom: 15px;
  background-color: white;
  min-height: 240px;
  border-right: 5px solid rgb(0,148,144);
  background-position: right 15px;
  background-repeat: no-repeat;  
}

#rodice, #uchazeci{
  margin-left: 1%
}

#studenti{
  background-image: url('/img/bg_studenti.gif');
  border-color: rgb(0,148,144);
}

#rodice{
  background-image: url('/img/bg_rodice.gif');
  border-color: rgb(0,84,118);
}

#uchazeci{
  background-image: url('/img/bg_zajemci.gif');
  border-color: rgb(227,97,47);
}

#obory{
  background-image: url('/img/bg_obory.gif');
  background-position: right 15px;
  background-repeat: no-repeat;  
}

#obory, #galerie{
  padding: 0.5% 2% 0.5% 2%; 
  margin-bottom: 15px;
  background-color: white;
  border-right: 5px solid rgb(227,97,47);
  float: right;
  width: calc(25.5% - 5px);
}

#studenti a, #rodice a, #uchazeci a, #obory a, #news a, #galerie a{
  text-decoration: none;
}

#galerie{
  border-color: rgb(173,195,61);
}

#page-switch{
  text-align: center;
  display: block;
  clear: both;
}

#news{
  float: left;
  width: calc(65.5% - 5px);
  padding: 0.5% 2% 0.5% 2%; 
  margin-bottom: 15px;
  background-color: white;
  border-right: 5px solid rgb(173,195,61);

}

.news_item p{
  margin-top: 1px;
  margin-bottom: 5px;
}

.news_item h3, .gallery_item h3{
  margin-bottom: 4px;
  margin-top: 5px;
  display: inline;
}

.news_item{
  display: block;
  text-decoration: none;
  padding: 10px;
  -moz-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  -webkit-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  width: 100%;
  margin-left: -10px;
  margin-bottom: 15px;
}

.news_item .img{
  display: inline-block;
  float: left;
  width: 25%;
  height: 100px;
  margin-right: 10px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.news_item div:nth-of-type(2){
  clear: both
}

.news_item:hover, .gallery_item:hover{
  -moz-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  -webkit-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);  
  background-color: rgb(173,195,61);
  color: white;
}

.gallery_item{
  width: 28%;
  display: inline-block;
  text-decoration: none;
  padding: 1.5%;
  -moz-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  -webkit-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  margin-bottom: 3%;
}

.gallery_item:not(:nth-child(3n)):not(.hp){
  margin-left: 3%;
}

.hp{
  width: 91%;
  padding: 4.5%;
  margin-bottom: 6%;
}

.gallery_item div{
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/*-----------------------------------------------------------------------------------------*/

#content h2, #content h3, #content h4{
  clear: both;
}

a {
  color: rgb(0,0,0);
}

a:hover{
  text-decoration: none;
}

hr{
  height: 1px;
  border: none;
  background-color: rgb(192,192,192);
  clear: both;
}

button{
  background-color: rgb(173,195,61);
  padding: 8px;
  border-radius: 2px; 
  border: none;
  color: white; 
  margin: 5px;
  -moz-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  -webkit-box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
  box-shadow: 0px 3px 10px 1px rgba(64,64,64, .2);
}

button.active{
  padding: 7px;
  border: 1px solid #7D7D7D;
  background-color: white;
  color: black
}

@media screen and (max-width: 950px) {
 div.loader{
    height: 550px;
  }
  
  div.slideshow a.advance-link {
    height: 550px;
    line-height: 550px;
  }
   
  div.slideshow-container{
    height: 550px;
  } 
}

@media screen and (max-width: 800px) {
  #studenti, #rodice, #uchazeci, #obory{
    padding: 1% 3.5% 1% 3.5%;
    width: calc(42% - 5px); 
  }
  
  #uchazeci{
    margin-left: 0px;
    clear: left;
  }
  
  #rodice, #obory{
    margin-left: 2%;
  }
  
  #galerie, #news, #alert{
    padding: 1% 3.5% 1% 3.5%;
    width: calc(93% - 5px);
  }
  
  .gallery_item, .hp{
    padding: 3%;
    width: 43%
  }
    
  .gallery_item:not(:nth-child(2n)){
    margin-left: 2%;
  }
  
  #footer{
    padding: 1% 3.5% 1% 3.5%;
    width: 93%;
  }
  
  div.loader{
    height: 460px;
  }
  
  div.slideshow a.advance-link {
    height: 460px;
    line-height: 460px;
  }
   
  div.slideshow-container{
    height: 460px;
  }
}

@media screen and (max-width: 700px) {
  #footer_left{
    display: none;
  }
  
  #footer_right{
    width: 50%;
  }
  
  #content_body .with_menu{
    float: none;
    width: 92%;
    padding: 1px 4% 20px 4%;
  }
  
  .headline{
    padding-right: 6.4%;
  }
  
  .page_img{
    width: 50%;
  }
  
  #vertical_menu{
    width: 92%;
    padding: 20px 4% 20px 4%; 
    border-right: none;
    border-top: 1px solid rgb(119,119,119); 
  }
  
  #to_nav, #up{
    display: block;
  }
}

@media screen and (max-width: 623px) {
  div.loader{
    height: 360px;
  }
  
  div.slideshow a.advance-link {
    height: 360px;
    line-height: 360px;
  }
    
  div.slideshow-container{
    height: 360px;
  }
  
  .category_ul li{
    width: 48%;
    margin-left: 2%;
  }
}

@media screen and (max-width: 550px) {
  
  #studenti, #rodice, #uchazeci, #obory, #galerie, #news, #alert{
    padding: 2% 5% 2% 5%;
    width: calc(90% - 5px);
    margin-left: 0px;
    min-height: 100px;
  }
  
  #footer{
    padding: 2% 5% 2% 5%;
    width: 90%;
  }
  
  .gallery_item, .hp{
    margin-left: 0px !important;
    padding: 3%;
    width: 94%;
  }
  
  div.loader{
    height: 307px;
  }
  
  div.slideshow a.advance-link {
    height: 307px;
    line-height: 307px;
  }
    
  div.slideshow-container{
    height: 307px;
  }
  
  .category_ul li{
    width: 100%;
    margin-left: 0px;
  }
}

@media screen and (max-width: 500px){
  #logo{
    margin-top: 25px;
    margin-left: 10px;  
    width: calc(100% - 20px);
    background-size: 100% auto;
    height: 30vw;
  }  
}

@media screen and (max-width: 350px) {
  .page_img{
    float: none;
    width: 100%;
    margin-right: 0px;
  }
  
  .news_item .img{
    display: none;
  }  
  
  #footer_right{
    float: none;
    width: 100%;
  } 
}