/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #666666;
}

html {
    font-size: 100%;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    background: #fff repeat-x;
}

a {
    color: #000;
}  

a:hover {
    text-decoration: none;
}

.red, .error {
    color: #d32b15;
 }
 
 .c {
    text-align: center;
 }

.radius {
    -webkit-border-top-left-radius: 10px; 
    -webkit-border-top-right-radius: 10px; 
    -webkit-border-bottom-left-radius: 10px; 
    -webkit-border-bottom-right-radius: 10px; 
    -moz-border-radius-topleft: 10px; 
    -moz-border-radius-topright: 10px; 
    -moz-border-radius-bottomleft: 10px; 
    -moz-border-radius-bottomright: 10px; 
    border-top-left-radius: 10px; 
    border-top-right-radius: 10px; 
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px;
}

.container {
    width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* hlavicka */
header {
    height: 230px;
    position: relative;
    margin: 0;
}

header p {
    float: left;
    margin: 30px 0 0 0;
    text-align: center;
}

header p a {
    color: #000;
    font-size: 2.2em;
    text-decoration: none;
}

header p span {
    font-size: 1.4em;
    color: #848282;
    margin: 0;
}



/* menu button*/
.button-menu {
    display: none;
    float: left;
    width: 33px;
    height: 18px;
    background: url('../img/button-menu.png') no-repeat 0 0;
    text-indent: -9999px;
    margin: 10px 0 0 20px;
}

.headline {
    float: left;
    margin: 0 0 50px 0;
}

.navigation {
    margin: 0;
    float: right;

}

/* vyhledavani */
.search {
    float: right;
    padding: 20px;
    line-height: 40px;
    background: #f4f4f4;
    -webkit-border-bottom-left-radius: 10px; 
    -moz-border-radius-bottomleft: 10px; 
    border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px; 
    -moz-border-radius-bottomright: 10px; 
    border-bottom-right-radius: 10px;
}

.search input[type=text] {
    float: left;
    height: 25px;
    border: none;
    margin: 6px 0 0 0;
    background: #fff;
    -webkit-border-top-left-radius: 10px; 
    -webkit-border-bottom-left-radius: 10px; 
    -moz-border-radius-topleft: 10px; 
    -moz-border-radius-bottomleft: 10px; 
    border-top-left-radius: 10px; 
    border-bottom-left-radius: 10px; 
} 

.search input[type=submit] {
    float: left;
    width: 25px;
    height: 27px;
    margin: 6px 0 0 0;
    background: #fff url('../img/bg-search.png') center 5px no-repeat;
    border: none;
    -webkit-border-top-right-radius: 10px; 
    -webkit-border-bottom-right-radius: 10px; 
    -moz-border-radius-topright: 10px; 
    -moz-border-radius-bottomright: 10px; 
    border-top-right-radius: 10px; 
    border-bottom-right-radius: 10px;     
} 

/* navigace */
nav {
    margin: 0;
}

nav ul, nav ul li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 1.05em;
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: #424242;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 20px; 
    line-height: 50px;  
}

nav ul li a:hover {
    text-decoration: underline;
} 

nav ul .sel {
    background: #f3a86b;
} 

nav ul .sel a {
    background: #f3a86b;
    color: #fff;
} 

nav ul ul {
    padding: 0; 
    position: absolute; 
    background: #e9f0f3;
}

nav ul li:hover ul {
    display: block;
}

nav ul ul li {
    float: none; 
    position: relative; 
    background: none; 
    width: auto;
}
nav ul ul li a {
    padding: 5px 10px; 
    color: #688691; 
    font-size: 0.9em; 
    text-align: left; 
    text-transform: none;
    background: none; 
    min-width: 200px; 
    line-height: normal;
}
nav ul ul li a:hover {
	text-decoration: none;
    background: #d8e1e5;
}

nav ul ul ul {
    position: absolute; 
    left: 100%; 
    top:0;}

nav ul li ul {
    display: none;
}



/* hlavni obsah */
.content {
	font-size: 1.2em;
    width: 1000px;
    margin: 0 0 100px 0;
    padding: 30px 0 0 0;
}

.content h1 {
    margin: 0 0 50px 0;
    padding: 0;
    font-size: 1.8em;
    font-weight: normal;
    color: #f3a86b;
}

.content h2 {
	margin: 0 0 25px 0;
	padding: 0;
    font-size: 1.35em;
    font-weight: normal;
    color: #4c4b4b;
}

.content h3 {
    font-size: 1em;
    font-weight: bold;
}

.content p {
	margin: 0 0 35px 0;
	padding: 0;
}

.content ul li {
    padding: 0 0 10px 35px;
    list-style-type: none;
    background: url('../img/ico-circle.png') 0 6px no-repeat; 
}

.content ol li {
    padding: 0 0 10px 0;
}

.login {
	text-align: right;
}


.login a {
	color: #666666;
}

.zona {
	padding: 10px !important;
	background: #f4f4f4;
}

.zona a {
	color: #666666;
	padding: 0 10px
}

.Address {
	float: left;
	margin-right: 30px;
}

.GoogleMap {
	float: right;
}

/* filtr */
.filter {
    margin: 25px 0 35px 0;
    padding: 10px;
    background: #f4f4f4;
}

.table-filter {
    width: 100%; 
}

.table-filter th {
    text-align: left;
    font-weight: normal;
}

.table-filter th, .table-filter td {
    padding: 5px;
}

.table-filter label {
    display: inline-block;
    padding: 0 0 10px 0;
}

.table-filter input[type="text"] {
    width: 180px;
    height: 25px;
    padding: 0 5px;
    border: 0;
    background: #fff;
}

.table-filter select {
    width: 150px;
    padding: 0 5px;
    border: 0;
    background: #fff;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.table-filter .cat {
    width: 250px;
}

.table-filter .button-search {
    width: 41px;
    height: 30px;
    border: 0;
    cursor: pointer; 
    display: inline-block; 
    line-height: 0; 
    overflow: hidden; 
    text-indent: -9999px; 
    margin: -20px 0 0 2px;
    background: url('../img/bg-search.png') no-repeat;
}

/* novinky - homepage */
.news ul, .news ul li {
    margin: 0;
    padding: 0 !important;
    list-style-type: none;
}

.news ul li { 
    margin: 0 0 20px 0;
    background: none !important;
}

.news ul li h2 {
    font-size: 1em;
    margin: 3px 0;
}

.news ul li a {
    text-decoration: underline;   
}

.news ul li a:hover {
    text-decoration: none;   
}

.news ul li p {
    padding: 0;
    margin: 0;
}

.news ul li .catnews {
    font-size: 0.8em;
}

.news ul li img {
    float: left;
    margin: 0 20px 0 0;
}

/* fotogalerie */
.photogallery {
    margin: 30px 0 0 0;
}

.photogallery img {
    float: left;
    margin: 5px;
    padding: 10px;
    background: #f4f4f4;

}

/* ke stazeni */
.download {
    margin: 15px 0;
}

.doc {
    background: url("../img/ico/doc.png") 0 6px no-repeat !important;
}
.pdf {
    background: url("../img/ico/pdf.png") 0 6px no-repeat !important;
}
.ppt {
    background: url("../img/ico/ppt.png") 0 6px no-repeat !important;
}
.rtf {
    background: url("../img/ico/rtf.png") 0 6px no-repeat !important;
}
.txt {
    background: url("../img/ico/txt.png") 0 6px no-repeat !important;
}
.xls {
    background: url("../img/ico/xls.png") 0 6px no-repeat !important;
}
.zip {
    background: url("../img/ico/zip.png") 0 6px no-repeat !important;
}
.jpg {
    background: url("../img/ico/jpg.png") 0 6px no-repeat !important;
}
.mp4 {
    background: url("../img/ico/mp4.png") 0 6px no-repeat !important;
}
.mpg {
    background: url("../img/ico/mpg.png") 0 6px no-repeat !important;
}
.mov {
    background: url("../img/ico/mov.png") 0 6px no-repeat !important;
}

/* mapa webu */
.sitemap .level1 {
    font-weight: bold;
}

.sitemap .level2 {
    margin: 0 0 0 50px;
}

.sitemap .level3 {
    margin: 0 0 0 100px;
}

/* form */
.table-form {
    float: left;
    width: 100%;
}

.table-form th {
    text-align: left;
    font-weight: normal;
}

.table-form td, .table-form th {
    padding: 5px;

}

.form {
    padding: 10px;
}

.form label {
    margin: 0 5px 0 0;
}

.form input[type="text"], .form input[type="password"] {
    width: 300px;
}

.form input[type="submit"] {
    padding: 10px;
    font-size: 1em;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border: 0;
    background: #8ca3ac;
}

.form textarea {
    width: 300px; 
    height: 100px;
    margin: 0 10px 0 0;
}

.form select {
    min-width: 150px; 
}

.form .date {
    width: 120px !important;
}

.form .result {
    width: 50px !important;
}

/* zapati */
footer {
	padding: 10px;

}

.footer1 {
	text-align: center;
    font-size: 0.9em;

}

.footer1 a { 
	color: #666666;
    text-decoration: none;
}

.footer1 a:hover { 
    text-decoration: underline;
}

.footer1 p { 
    margin: 0;
    padding: 0;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

.no {
    display: none;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

#sticker.stick {  
  position: fixed;  
  top: 0;  
  z-index: 10000;  
}

#stick-fix {
    width: 212px;
    position: relative;    
}


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 999px) {
    /* Style adjustments for viewports that meet the condition */
    .container {
        width: 96%;
        padding: 0 2%;
    }
    
    header {
        height: auto;
        background: none;
    }  
    
    header p {    
        float: none;
        overflow: hidden;
        width: auto;
        margin: 40px 0 0 0;
    }    

    nav {
        display: none;
        float: none;
        margin: 40px 0 20px 20px;
    }
    
    nav ul li {
        float: none;
    }
    
    nav ul li a {
        color: #162a72;
        padding: 0 20px;    
    }
    
    nav ul li a:hover {
        text-decoration: underline;
        color: #162a72;
    } 
    
    nav ul ul {
        padding: 0 0 0 40px; 
        position: relative; 
        background: none;
    }
    
    nav ul li:hover ul {
        display: block;
    }
    
    nav ul ul li {
        float: none; 
        position: relative; 
        background: none; 
        width: auto;
    }
    
    nav ul ul li a { 
        color: #162a72;          
    }
    
    nav ul ul li a:hover {
        text-decoration:underline; 
        background: none;
        color: #162a72;
    }
    
    nav ul ul ul {
        position: relative; 
        left: auto; 
        top: auto;
    }
    
    nav ul li ul {
        display: block;
    }        
    
    .button-menu {
        display: block;
        position: absolute;
        left: 0;
    }   
    
    .content {
        background: none;
        width: 100%;
    }   
        
    nav ul li:last-child {
        background: none;
    }    
       
}

@media only screen and (max-width: 614px) {
    .headline, .navigation {
        float: none;
    }            
    
    .table-filter input[type="text"] {
        width: 120px;
    }    
}



@media only screen and (max-width: 599px) {
    .footer1 {
        height: auto;
    }          
}

@media only screen and (max-width: 549px) {
    .table-filter td {
        display: block;            
    }
}         

@media only screen and (max-width: 500px) {
    .logo {
        display: none;
    }   
    
    header p {
        text-align: center;
        margin: 0;
    }    
    
    nav {margin-top: 0;}        
}


@media only screen and (max-width: 320px) {
    .search {        
        padding: 10px;
    }

    .search input[type=text] {
        width: 120px;
    }     
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
