/*
 * Theme Name:  First Child
 * Theme URI:   
 * Description: Child theme of First theme.
 * Author:      
 * Author URI:  
 * Template:    first
 * Template Version: 2.0.4
 * Version: 2.0.4
 */

 @import url('https://fonts.googleapis.com/css?family=Encode+Sans:400,700,900&subset=latin-ext');

html[lang="cs-CZ"] {margin-top:74px !important;}
* {padding:0;margin:0;color:#818080;font-family:'Encode Sans', sans-serif !important;font-size:15px;}
body {background:#fff;}


#main .entry-content p {margin-bottom:10px;}
#main .entry-content h2 {font-size:25px;}

a {color:#e85640;text-decoration:none;transition:300ms;}
a:hover {color:#e85640;text-decoration:underline;}

.boxed .site {max-width:100%;}
#content, .container {padding-left:20px;padding-right:20px;width:1240px;box-sizing:border-box;margin:0 auto;max-width:100%;}

iframe {border:none;}

/*.edit-link, #wrapper-navbar .spacer, #content .entry-meta, #content .post-navigation, .navbar-toggle, #secondary {display:none;}*/
.site-top, .main-navigation, .site-bottom {padding:0;max-width:100%;}

.btn {position:relative;min-width:230px;box-sizing:border-box;padding:15px 50px 15px 40px;font-weight:900;color:#3d3d3d;font-size:16px;text-transform:uppercase;display:inline-block;line-height:30px;background:#f6f6f6;
    border-radius:30px;border:1px solid #ebebeb;}
.btn:hover {color:#3d3d3d;text-decoration:none;background:#f0f0f0;}
.btn::after {position:absolute;right:35px;top:0;bottom:0;width:8px;display:block;content:'';background:url('./images/btn.png') no-repeat center center / 7px auto;transition:300ms;}
.btn:hover::after {right:30px;}

#wpadminbar {display:none;}
#site-navigation .container {position:relative;}
#masthead .site-bar {line-height:74px;background:#e38c1b;position:fixed;left:0;right:0;top:0;z-index:999;}
#site-navigation ul li a {font-size:18px;color:#fff;font-weight:bold;text-transform:none;}
#site-navigation ul ul {background:#e38c1b;}
.main-navigation ul ul {width:auto !important;}
.main-navigation ul ul li a {white-space:nowrap;}
.main-navigation .search-form {right:20px;}
#masthead {min-height:150px;background:url('./images/header.jpg') no-repeat left bottom / cover;margin-bottom:0;position:relative;border-bottom:none;}
#masthead .site-top {margin-top:40px;background:#fff;display:inline-block;padding:10px 25px 15px 90px;border-radius:8px;position:relative;z-index:100;}
#masthead .site-top::after {display:block;position:absolute;content:'';left:0;top:0;bottom:0;width:80px;background:url('./images/logo.png') no-repeat 14px 10px / 80% auto;}
#masthead > .container {text-align:right;}
#masthead h1.site-title {line-height:60px;}
#masthead h1.site-title a {line-height:inherit;font-size:31px;font-weight:900;color:#71ab23;text-decoration:none;display:block;}
body.home #masthead {min-height:350px;}
body.home #masthead .site-top {padding:10px 25px 15px 160px;margin-top:150px;position:relative;z-index:20;}
body.home #masthead h1.site-title {border-bottom:1px solid #ebebeb;margin-bottom:10px;}
body.home #masthead .site-top::after {width:160px;background:url('./images/logo.png') no-repeat 18px 10px / 80% auto;} 
#masthead #headcontact {list-style:none;margin:0;}
#masthead #headcontact li a {line-height:30px;font-weight:bold;font-size:15px;color:#3d3d3d;text-decoration:none;padding-left:30px;}
#masthead #headcontact li a:hover {color:#3d3d3d;text-decoration:underline;}
#masthead #headcontact li#headmail a {background:url('./images/headmail.png') no-repeat 0 center / 19px auto;}
#masthead #headcontact li#headtel a {background:url('./images/headtel.png') no-repeat 1px center / 17px auto;}

#masthead::before, #masthead::after {position:absolute;content:'';top:0;bottom:0;width:calc( (100% - 1000px) / 2 );z-index:10;display:block;max-width:239px;}
#masthead::before {left:0;background:url('./images/headleft.png') no-repeat right bottom / auto auto;}
#masthead::after {right:0;background:url('./images/headright.png') no-repeat 0 top / auto auto;}

#headlinebox {background:#edfaff;}
#headlinebox #headlineleft {padding:30px 0 0 0;float:left;width:calc( 100% - 350px);}
#headlinebox #headlineleft a {float:left;width:calc( (100% - 20px ) / 3);box-sizing:border-box;padding-left:80px;position:relative;text-decoration:none;}
#headlinebox #headlineleft a::after {position:absolute;left:0;top:0;content:'';border-radius:8px;width:56px;height:56px;display:block;transition:300ms;}
#headlinebox #headlineleft a#headjidelna {padding-right:30px;}
#headlinebox #headlineleft a#headjidelna::after {background:#e38c1b url('./images/headjidelna.png') no-repeat center center / 100% auto;}
#headlinebox #headlineleft a#headrozvrh::after {background:#0d88bf url('./images/headrozvrh.png') no-repeat center center / 100% auto;}
#headlinebox #headlineleft a#headkalendar::after {background:#71aa22 url('./images/headkalendar.png') no-repeat center center / 100% auto;}
#headlinebox #headlineleft a#headjidelna:hover::after {background-color:#db8413;}
#headlinebox #headlineleft a#headrozvrh:hover::after {background-color:#0a7fb4;}
#headlinebox #headlineleft a#headkalendar:hover::after {background-color:#659b1a;} 
#headlinebox #headlineright {box-sizing:border-box;width:350px;float:right;padding:30px 100px 0 45px;min-height:150px;background:#272525;position:relative;}
#headlinebox #headlineright strong {color:#fff;}
#headlinebox #headlineright span {color:#c5c5c5;}
#headlinebox #headlineright::after {position:absolute;right:45px;top:50%;margin-top:-21px;width:42px;height:42px;border-radius:50%;content:'';display:block;background:#fff url('./images/headlineright.png') no-repeat center 17px / 22px auto;}
#headlinebox strong {font-size:16px;font-weight:900;color:#3d3d3d;text-transform:uppercase;line-height:35px;display:block;}
#headlinebox::after {content:'';display:block;clear:both;}



#primary {width:calc(100% - 400px);padding-top:40px;}
#primary .entry-header {margin-bottom:10px;}
#primary .entry-header .entry-title {float:left;}
#primary .entry-header .entry-title a, #primary .entry-header .entry-title {color:#3d3d3d;font-size:20px;font-weight:bold;text-decoration:none;}
#primary .entry-header .entry-title a:hover {text-decoration:underline;}
#primary .entry-header .entry-meta {float:right;margin-bottom:0;}
#primary .entry-header .entry-meta .byline {display:none;}
#primary .entry-header .entry-meta .posted-on * {color:#d4d3d3;}
#primary .entry-header::after {content:'';clear:both;display:block;}
#primary .entry-content {clear:both;margin-bottom:0;}
#primary .post-thumbnail {float:left;margin-right:20px; margin-bottom:20px;}
#primary .post-thumbnail a {width:150px;height:150px;overflow:hidden;border-radius:8px;display:block;}
#primary .post-thumbnail a img {display:block;max-width:1000%;}
#primary article.post {border-bottom:none;margin-bottom:30px;}
#primary article footer {display:none;}
body.single #primary .post-thumbnail a {width:200px;height:200px;overflow:hidden;border-radius:8px;display:block;}
body.single #primary .post-thumbnail img {width:100%;height:auto;}

.slideshowlink {display:none;}
#primary .ngg-gallery-thumbnail img {max-width:240px !important;height:auto !important;}

.widget {margin-bottom:35px;}
#secondary {width:350px;max-width:100%;}
#header-navigation {display:block;margin-bottom:35px;}
#header-navigation li {display:block;padding:0;}
#header-navigation li a {padding:30px 60px 30px 90px;display:block;background:#edfaff;line-height:30px;color:#3d3d3d;font-weight:900;font-size:16px;text-transform:uppercase;text-decoration:none;border-bottom:1px solid #efefef;position:relative;}
#header-navigation li a::before {position:absolute;right:35px;top:0;bottom:0;width:8px;display:block;content:'';background:url('./images/btn.png') no-repeat center center / 7px auto;transition:300ms;border:none;}
#header-navigation li a:hover::before {right:30px;}
#header-navigation li a:hover {background:#e1f3fa;}
#header-navigation li a::after {position:absolute;left:45px;top:30px;display:block;line-height:30px;color:#e38c1b;font-weight:900;font-size:16px;text-transform:uppercase;}
#header-navigation li:nth-of-type(1) a::after {content:'I.';}
#header-navigation li:nth-of-type(2) a::after {content:'II.';}
#header-navigation li:nth-of-type(3) a::after {content:'III.';}
#header-navigation li:nth-of-type(4) a::after {content:'IV.';}
#header-navigation li:nth-of-type(5) a::after {content:'V.';}
#text-3 {margin-bottom:0;border:1px solid #ebebeb;padding:40px 45px 160px 45px;background:url('./images/map.jpg') no-repeat 0 bottom / 100% auto;}
#text-3 .widget-title {text-transform:none;color:#0d88bf;font-weight:normal;margin-bottom:30px;font-size:20px;display:block;}
#text-3 a {text-decoration:none;color:#818080;}
#text-3 a:hover {text-decoration:underline;}
#custom_html-4 a {padding:22px 70px 22px 45px;display:block;background:#f6f6f6;border:1px solid #ebebeb;border-top:0;color:#3d3d3d;line-height:40px;font-size:16px;text-transform:uppercase;font-weight:900;text-decoration:none;position:relative;}
#custom_html-4 a:hover {background:#f0f0f0;}
#custom_html-4 a::after {position:absolute;right:35px;top:0;bottom:0;width:8px;display:block;content:'';background:url('./images/btn.png') no-repeat center center / 7px auto;transition:300ms;}
#custom_html-4 a:hover::after {right:30px;} 
#custom_html-5 {min-height:112px;background:#3a559f;color:#fff;box-sizing:border-box;position:relative;transition:300ms;}
#custom_html-5:hover {background:#2f4992;color:#3d3d3d;}
#custom_html-5::after {position:absolute;left:0;width:112px;top:0;bottom:0;display:block;content:'';background:url('./images/fb.png') no-repeat center center / 100% auto;pointer-events: none;}
#custom_html-5 a {max-width:140px;display:block;color:#fff;text-transform:uppercase;text-decoration:none;font-size:16px;font-weight:900;line-height:25px;padding-left:130px;padding-top:31px;padding-bottom:31px;padding-right:80px;}

body.page-id-92 #primary table {border-top:none !important;}
body.page-id-92 #primary table td {padding-left:1.2em;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6;border-top:1px solid #e6e6e6;}

#footfototext {padding:20px 0;border-top:1px solid #ebebeb;border-bottom:1px solid #ebebeb;}
#footfototext strong {font-weight:900;color:#3d3d3d;font-size:25px;line-height:60px;}
#footfototext .btn {float:right;}
#footfotos img {width:calc( 100% / 8);height:auto;}

.pagination a.page-numbers {border:1px solid #ebebeb;background:#fff;}
.pagination a.page-numbers:hover {border:1px solid #ebebeb;background:#f6f6f6;color:#e85640;}
 

footer {background:#272525;}
footer #footmenu {padding-top:65px;padding-bottom:65px;border-bottom:1px solid #5a5959;}
footer #footmenu::after {clear:both;content:'';display:block;}
footer #footmenu nav > div > ul > li {display:inline-block;vertical-align:top;padding-right:35px;}
footer #footmenu nav > div > ul > li > a {color:#e38c1b;font-size:20px;display:block;padding-bottom:25px;}
footer #footmenu nav > div > ul > li > ul > li {display:block;}
footer #footmenu nav > div > ul > li > ul > li > a {color:#d0d0d0;font-size:15px;display:block;line-height:25px;min-height:25px;}
footer #footmenu .footer-side .footer-navigation {float:none;} 
footer #footbottom {padding:40px 0;}
footer #footbottom * {line-height:50px;font-size:15px;text-decoration:none;color:#d0d0d0;}
footer #footbottom a:hover {text-decoration:underline;}
footer #footbottom #foot-copy {display:inline-block;padding-left:55px;background:url('./images/logo.png') no-repeat 0 center / 42px auto;}
footer #footbottom #foot-texpro {float:right;padding-right:35px;display:block;background:url('./images/texpro.png') no-repeat right center / 18px auto;}



@media only screen and (min-width: 1500px) {
    
}

@media only screen and (max-width: 1240px) {
    #site-navigation > div > div > ul > li > a {padding-left:0;}
    #content, .container {width:100%;box-sizing:border-box;}
}    

@media only screen and (max-width: 1100px) {
    #headlinebox #headlineleft a span {display:none;}
    #headlinebox #headlineleft a strong {line-height:25px;padding-right:20px;}
    #headlinebox #headlineleft {padding-top:50px;}
}



@media only screen and (max-width : 992px) {
    footer #footmenu {padding-top:30px;padding-bottom:30px;}
    footer #footmenu nav > div > ul > li {margin-top:30px;}
    #footfotos img {width:calc(100% / 4);}
    #custom_html-4, #custom_html-5, #text-3 {display:none;}
    #headlinebox {background:#272525;cursor:pointer;}
    #headlinebox #headlineleft {display:none;}
    #headlinebox #headlineright {width:100%;min-height:50px;padding-bottom:30px;}
    #header-navigation {display:none;position:fixed;left:0;right:0;top:0;z-index:1000;bottom:0;background:#edfaff;padding-top:0px;margin:0;}
    #header-navigation.active {display:block;}
    #primary {width:100%;}
    .sidebar-area {border:none;}
}

@media only screen and (max-width : 768px) {
    footer #footbottom {text-align:center;}
    footer #footbottom > * {margin: 10px 20px 10px 20px;display:inline-block !important;float:none !important;line-height:20px;text-align:left;}
    footer #footbottom {padding:20px 0;}
    .menu-toggle {line-height:75px;}
    #site-navigation ul li a {white-space:normal !important;}
    #site-navigation ul ul li a {padding-left:20px;}
    /*#site-navigation ul ul.sub-menu {display:none;}
    #site-navigation ul ul.sub-menu.active {display:block;}
    #site-navigation ul li.menu-item-has-children {position:relative;}
    #site-navigation ul li.menu-item-has-children::after {cursor:pointer;position:absolute;right:0;top:0;bottom:0;content:'+';color:#fff;font-size:20px;font-weight:bold;width:50px;text-align:center;line-height:300%;}*/
   html[lang="cs-CZ"] {margin-top:0 !important;}
   #masthead .site-bar {position:static;}
   /*#masthead {background-position: 80% bottom;}*/
} 



@media only screen and (max-width : 568px) {
    footer #footmenu nav > div > ul > li {display:block;}
}

@media only screen and (max-width : 480px) {
    #footfoto {display:none;}
    #masthead .site-top::after, body.home #masthead .site-top::after {display:none;}
    #masthead .site-top, body.home #masthead .site-top {padding-left:25px;width:100%;box-sizing:border-box;}
    
    body.page-id-92 #primary table td {padding:5px !important;}
    /*#secondary {display:none;}*/
   #secondary {padding:0;margin:0;min-height:0;}
}

@media only screen and (max-width : 420px) {
}    
