/* BASIC TAGS */
/* BASIC TAGS */
/* BASIC TAGS */

body {
    background: #fff;
    font-family: 'Georgia', serif;
    font-size: 1em;
}

a {
    color: #2b92d2;
}

h1, h2, h3, h4, b, .kontakt {                                   
    font-family: 'Source Sans Pro', sans-serif;
}

h2 {
    font-size: 2.25em;
}

h3 {
    padding-bottom: 7px;
    display: inline-block;
    font-size: 1.75em;
}

/* HEADER HEADER HEADER HEADER */
/* HEADER HEADER HEADER HEADER */
/* HEADER HEADER HEADER HEADER */

.logo {
    padding: 20px 30px;
    position: relative;      
    background: #fff; 
}

.logo span {
    font-size: 1.5em;
    font-family: 'Source Sans Pro', sans-serif;
    margin-left: 40px;
    position: absolute;
    bottom: 15px;
}

#myCarousel {
    height: calc(((100vh/4)*3) - 122px);
    min-height: 400px;
    position: relative;
    border-top: 6px solid #006ebe; 
}  

#myCarousel .carousel-item {
    width: 100%;   
    height: calc(((100vh/4)*3) - 128px);     
    min-height: 394px;
    font-size: 1.25em;
}

#myCarousel h3 {
    font-size: 1.5em !important;
    margin-bottom: 0px;
}

.carousel-caption {
    display: inline-block !important;
    padding: 15px 15px 5px 40px !important;
    bottom: 40px !important;
    right: auto !important;
    text-align: left !important;
    left: auto !important;
    background: rgba(37, 164, 255, 0.8);
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0 8px 8px 0;
}

.carousel-indicators {
    bottom: 0px !important;
}

/* PAGE PAGE PAGE PAGE */
/* PAGE PAGE PAGE PAGE */
/* PAGE PAGE PAGE PAGE */

#page {
    margin: 0 auto;
    width: calc(90vw - 16px);
    background: #fff;
    position: relative;    
    color: #035793;
    box-shadow: 1px 1px 5px #a6a6a6;
}

.content {
    color: #035793;
    margin: 0 auto;
    padding: 40px 40px 80px 40px;
    width: calc(90vw - 16px);
    background: #f5faff;
    position: relative; 
    border-bottom: 6px solid #006ebe; 
}

.content p {
    margin: 10px;
}

.welcome {
  font-size: 1.1em;
  width: calc(100% + 80px);
  padding: 40px;
  position: relative;
  top: -40px;
  left: -40px;
  background: #d3e9ff; 
  margin-bottom: 50px;
}

#about img {
  margin-right: 10px;
  height: 90px;
  width: auto;
  float: left;
}

#about .col-md-4 {
  margin: 30px 0px;
}

#services .col-md-4 {
  text-align: center;
  margin: 30px 0 auto;    
}

#services img {
  margin-bottom: 10px;
}

#services p {
  text-align: left !important;
}

/* MENU MENU MENU MENU */   
/* MENU MENU MENU MENU */
/* MENU MENU MENU MENU */

nav {
  display: block;
  height: 50px;
  background: #006ebe;
  position: relative;  
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;   
}

nav a { 
  border-right: 1px solid #fff;      
  white-space : nowrap;
  display: inline-block;
  width: calc(100%/3);
  text-align: center;
  font-size: 20px;
  color: #fff;
  transition: all 0.3s ease-in-out;
  font-weight: 700;
  margin: 0;
  padding: 9px 0;
}

nav a:last-child {
  border-right: none;
}

nav a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(37, 164, 255, 0.6);
  text-shadow: 1px 1px 1px #035793;
}

.box {
  display: inline-block;
  position: relative;
  padding: 0;
  width: calc((100%/3) - 3px);
  height: calc(100vh/4);
  font-family: 'Source Sans Pro', sans-serif;
}

.left {background: url('../img/onas.jpg'); background-size: cover;}
.middle {background: url('../img/sluzby.jpg'); background-size: cover;}
.right {background: url('../img/kontakt.jpg'); background-size: cover;}

.box a {
  color: #fff;
  font-size: 2.25em;
  text-shadow: 3px 3px 1px #035793;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: background 0.2s ease-in-out, color 0.5s ease-in-out;
  background: rgba(37, 164, 255, 0.6);
  margin: 0;
  padding:  0;
}

.box a:hover {
  background: rgba(0,0,0,0.1);
  color: transparent;
  text-shadow: 2px 2px 1px transparent;
}

.box span {    
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header-menu {
    display: block;
    padding-top: 6px;
    background: #006ebe; 
}

/* CONTACT FORM */

input, textarea {
  width: 100%;
  padding: 5px;
}

#contact input, #contact textarea, #contact button {
  border: 1px solid #7dadde;
  border-radius: 2px;
  margin-bottom: 5px;
  max-width: 400px;
  display: block;
}

#contact [type=submit] {
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  background: #4eaef2;
  color: #fff;
  font-weight: 700;
  border: 1px solid #0163aa;
}

#contact [type=submit]:hover {
  background: #006ebe;
  cursor: pointer;
}

/* FOOTER FOOTER FOOTER FOOTER */ 
/* FOOTER FOOTER FOOTER FOOTER */
/* FOOTER FOOTER FOOTER FOOTER */

footer {
  width: 100%;
  height: 80px;
  position: relative;
  font-family: 'Source Sans Pro', sans-serif;
}

footer .cont {
  position: relative;
  margin: 20px 30px;
  display: inline-block;
  width: calc(50% - 60px); 
}

footer .social {
  text-align: right;
  position: relative;
  margin: 20px 30px;
  display: inline-block;
  float: right;
  width: calc(50% - 60px); 
}
footer .social img {
  padding: 2px;
  transition: all 0.3s ease-in-out;
  border: 2px solid transparent; 
}

footer .social img:hover {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  cursor: pointer;
  border: 2px solid #006ebe;
  border-radius: 50%;
}

footer .cont img {
  float: left;
  margin-right: 15px;
}

footer .social img {
  margin-left: 5px;
}

.author {
  font-size: 1em;
  text-align: center;
  margin: 25px 0;                   
  font-family: 'Pattaya';
  color: rgba(37, 164, 255, 0.8);
}

.author a {
  color: #006ebe;
  transition: all 0.3s ease-in-out;
}

.author a:hover {
  color: red;
}

.author .fa {
  font-size: 1em;
  color: red;
}

/* RESPONSIVE WEBDESIGN RESPONSIVE WEBDESIGN RESPONSIVE WEBDESIGN */
/* RESPONSIVE WEBDESIGN RESPONSIVE WEBDESIGN RESPONSIVE WEBDESIGN */
/* RESPONSIVE WEBDESIGN RESPONSIVE WEBDESIGN RESPONSIVE WEBDESIGN */

@media all and (min-width: 1500px) {
  #page, .content { width: 1500px }
} 

@media all and (max-width: 1300px) {
  #about img {
    margin-right: 5px;
    height: 70px;
  }
} 

/* TABLET TABLET TABLET TABLET */
@media all and (max-width: 991px) { 
  h2, .box a {
    font-size: 2em;
  }
  
  h3 {
    font-size: 1.5em;
  }
  
  #myCarousel h3 {
    font-size: 1.4em;
  }
  
  #myCarousel .carousel-item {
    font-size: 1.15em;
  }

  #page, .content {
    width: calc(95vw - 16px);
  }

  .carousel-caption {
    border-radius: 0;
    border: none;  
    width: calc(100% - 20px);
    margin: 0 10px;
    bottom: 10px !important;
  }

  .box span {
    width: 100%;
    text-align: center;
  }
  
  #about .row {          
    text-align: center;
  }
  
  #about img {
    height: 90px;
    float: none;
    margin: 0 auto;
    display: block;
  }

  footer {
    margin-bottom: 0;
    padding: 40px 0 20px 0;
    height: auto;
  }
  
  

} 

/* MOBILE MOBILE MOBILE MOBILE */
@media all and (max-width: 768px) {
  h2 {
    font-size: 1.625em;
  }

  .box a {
    font-size: 2em;
    font-weight: 700;
  }
  
  h3 {
    font-size: 1.375em;
  }
  
  #myCarousel h3 {
    font-size: 1.3em;
  }

  #myCarousel .carousel-item {
    font-size: 1.05em;
  }
  
  .carousel-caption {
    margin: 0px;
    bottom: 0px !important;
    width: 100%;
  }


  #page, .content {
    width: 100%;
    box-shadow: none;
  }

  .logo {
    text-align: center;
    padding: 10px 0 0 0;
  }
  
  .logo img {
    height: 90px;
    margin: 10px 0;
  }

  .logo span {
    bottom: 7px;
    margin-left: 0;
    display: block;
    position: relative;
  }

  .header-menu {
    padding: 5%;
    background: #fff;
  }
  
  .box {
    display: block;
    width: 100%;
    border-bottom: 10px solid #006ebe;
    height: calc(100vh/3);
  }

  .left {
    border-top: 10px solid #006ebe;
  }
  
  .left, .middle, .right {
    background-repeat-x: no-repeat;
  }
  
  #contact .col-md-4 {
    margin-bottom: 40px;
  }
  
  #contact h3 {
    margin-bottom: 0;  
  }
  
  footer .social img {
    margin-left: 0;
  }
} 

@media all and (max-width: 575px) {
  
  h1, h2, h3, h4, h5, h6 {
    text-align: center;
  }
  
  nav {
    height: 146px;    
  }
  
  nav a {
    font-size: 20px;
    padding: 8px 0;
    margin: 0 auto;
    display: block;
    width: 70%;
    border-bottom: 3px solid #fff;   
    border-right: none;  
  }
  
  nav a:last-child {
    border-bottom: none;      
  }

  .content {
    padding: 40px 20px 80px 20px;
  }
  
  .carousel-caption {
    padding: 15px 15px 5px 15px !important;
    margin: 0;
  }  
  
  .welcome {
    width: calc(100% + 40px);
    padding: 40px 20px;
    left: -20px;
  }  
  
  footer .cont, footer .social {
    width: 100%;
    display: block;
    float: none;
    text-align: center; 
    margin: 5px 0 auto;
  }
  footer .cont img {
    float: none;
    display: block;
    margin: 0 auto;
  }
  footer .social img {
    margin-left: 5px;
  }
}