body{
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 150%;
  background-color: white;
  margin: 0px;
  /*margin-top: -14px;*/
  padding: 0px;
  text-align: left;
  height: 100%;
}

html{
  text-align:center;
  height: 100%;
}

/*----------------------------------------------------------------------------*/
/* page sections */

#main {
  min-height: 100%;
}

#header {
  width:100%;
  top: 0px;
  z-index: 50;
  margin-bottom: 30px;
  box-shadow: 1px 2px 6px #666;
  background-color: #63bb37;
  color: white;
}

#header_content, #footer_content{
  margin: 0 auto;
  width: 90%;
  height: 27px;
  padding-top: 35px;
  padding-bottom: 35px;
  max-width: 1200px;
}

.my_name{
  text-decoration: none;
  height: 25px;
}

.my_name h2{
  font-family: Century Gothic, 'Open Sans';
  color: white;
  margin-top: 0px;
}

#headline{
  height: 25px;
  display: inline-block;
}

#web_cat, #web_cat_icon, .my_name h2, .my_name{
  vertical-align: baseline;
  line-height: 25px;
  display: inline-block;
}

#web_cat, #web_cat_icon{
  font-size: 22px;
}

#web_cat_icon{
  border-left: 2px solid white;
  margin-left: 22px;
  padding: 0px 15px;
  /*margin-right: 5px;*/
  width: 25px;
  text-align: center;
}

.footer_name{
  font-size: 18px;
  vertical-align: top;
  font-family: Century Gothic;
  text-decoration: none;
}

#content {
  padding: 10px 0px 140px 0px;
  margin: 0 auto;
  max-width: 1200px;
  width: 90%;
}

#content p:first-child {
  font-size: 18px;
  margin-bottom: 25px;
}


#footer {
  width: 100%;
  margin-top: -100px;
  /*background-color: #eee;
  background-color: rgba(99,187,55, 0.05);*/
  /*background-color: #5a5a5a;*/
  /*box-shadow: 1px -2px 6px #888;*/
  background-color: white;
  /*border-top: 3px solid #63bb37;*/
  clear: both;
  color: #3a3a3a;
  font-weight: bold;
  /*color: #e6e6e6;*/

}

#footer a {
  color: #3a3a3a;
  font-weight: bold;
  text-decoration: none;
}

#footer_content{
  border-top: 2px solid #63bb37;
}

/*----------------------------------------------------------------------------*/
/* menu */
#show_menu{
  display: none;
  float: right;
  font-size: 20px;
  height: 35px;
  width: 35px;
  text-align: center;
  line-height: 35px;
  vertical-align: middle;
  position: absolute;
  top: 30px;
  right: 12px;
  border-radius: 3px;
  border: 1px solid #9dda7e;
}

#main_menu, .main_menu, .footer_menu{
  float: right;
  margin: 0px;
}

.main_menu li, .footer_menu li{
  list-style: none;
  display: inline-block;
}

.main_menu li{
  margin-left: 20px;
}

.footer_menu li{
  margin-left: 8px;
  font-size: 14px;
}

.main_menu a, .footer_menu a{
  /*padding-bottom: 3px;*/
  text-decoration: none;
  display: inline-block;
  color: white;
  border-bottom: 2px solid rgba(224,224,224,0);
}

.main_menu li:hover:not(.active) a, .footer_menu li:hover a{
  animation: menu_item_hover 0.5s;
  -webkit-animation: menu_item_hover 0.5s;
  border-bottom-color: rgba(224,224,224,255);
}

@keyframes menu_item_hover {
  from  {border-bottom-color: rgba(224,224,224,0);}
  to {border-bottom-color: rgba(224,224,224,255);}
}

@-webkit-keyframes menu_item_hover {
  from  {border-bottom-color: rgba(224,224,224,0);}
  to {border-bottom-color: rgba(224,224,224,255);}
}

.main_menu a:hover{
  color: white !important;
}

.footer_menu a:hover {
  color: #3a3a3a !important;
}

.main_menu .active a{
  border-bottom-color: white
}

/*----------------------------------------------------------------------------*/

.article_img, .article div{
  display: inline-block;
  vertical-align: middle;
}

.article_img{
  width: 40%;
  margin-right: 5%;
}

.article_img img{
  width: 100%;
}

.article:nth-of-type(2n) .article_img{
  margin-left: 5%;
  margin-right: 0px;
}

.article:nth-of-type(2n) .article_img:nth-of-type(1){
  display: none;
}

.article:nth-of-type(2n+1) .article_img:nth-of-type(2){
  display: none;
}

.article div{
  width: 54.5%;
}

.article div h3{
  margin-top: 0px;
}

.article a.no_underline h3:hover{
  text-decoration: underline;
}

.foto .article_img{
  width: 60%;
}

.foto .article div{
  width: 34.5%;
}

/*--------------------------------------------------------------------------------*/

.img_weby, .img_websy{
  width: 55%;
  float: right;
  margin-top: 30px;
  margin-left: 5%;
}

.img_websy{
  margin-top: 15px;
  width: 45%;
}

.icon_web::before{
  font-size: 22px;
  text-decoration: none !important;
  vertical-align: middle;
  padding-right: 5px;
}


.contacts-left{
  width: 50%;
  float:left;
  padding-bottom: 30px;
}

.contacts-right{
  width: 50%;
  display: inline-block;
  padding-top: 10px;
  text-align: right;
}

/*----------------------------------------------------------------------------*/

.square{
  margin: 2px 2px 0px 0px;
  width: calc(25% - 2px);
  display: inline-block;
  height: calc(22.5vw - 2px);
  background-position: center center;
  background-size: cover;
  text-decoration: none;
  overflow: hidden;
  vertical-align: top;
}

.square span{
  display: block;
  width: calc(100% - 40px);
  background-color: rgba(0,0,0,.3);
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 18px;
  margin-top: calc(22.5vw - 80px);
}

@media screen and (min-width: 1333px) {
  .square{
    height: 296px;
  }

  .square span{
    margin-top: 230px;
  }
}

.inner-square{
  width: 100%;
  padding-top: 100%;
  background-position: center center;
  background-size: cover;
  animation: photo_scale_r 0.5s;
  animation-fill-mode: backwards;
}

.webove-sluzby .inner-square, .websy .inner-square{
  background-size: contain !important;
  background-repeat: no-repeat;
}

.inner-square:hover{
  animation: photo_scale 0.5s;
  animation-fill-mode: backwards;
  transform: scale(1.05);
}

@keyframes photo_scale {
  from{transform: scale(1)}
  to{transform: scale(1.05)}
}

@keyframes photo_scale_r {
  from{transform: scale(1.05)}
  to{transform: scale(1)}
}

/*----------------------------------------------------------------------------*/
/* other styles */

hr{
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
  height:1px;
  border-width:0;
  background-color:rgb(200,200,200);
  clear: both;
}

li{
  margin-top: 3px;
  line-height: 170%;
  margin-bottom: 5px;
}

#content a, #content a:visited{
  color: black;
}

#content a:hover{
  text-decoration: none;
}

a.no_underline{
  text-decoration: none;
}

button{
  text-decoration: none;
  color: white;
  background-color: #63bb37;
  padding: 10px 20px;
  border-radius: 3px;
  border: none;
}

img{
  max-width: 100%;
}

h1 {
  font-size: 35px;
  font-weight: normal;
  margin: 50px auto 1px auto;
  width: 90%;
  max-width: 1200px;
}

h2 {
  font-size: 25px;
  font-weight: normal;
  margin-top: 30px;
  margin-bottom: 5px
}

h3 {
  margin-top: 20px;
  font-size: 23px;
  font-weight: normal;
}

h4 {
  font-size: 19px;
  font-weight: normal;
}

h1, h2, h3, h4 {
  line-height: 150%;
}

p {
  line-height: 170%;
  text-align: justify
}