/*! 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: #5c5c5c;
    font-family: 'Open Sans', sans-serif;    
}

html {
    font-size: 87.5%; /* 14px */
    font-weight: 400;
    line-height: 1.6; 
    background: url('../images/ico-bg.png') repeat;
    padding: 30px 0;   
}

/*
 * 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
   ========================================================================== */
@font-face {
    font-family: 'LatoBlack';
    src: url('../fonts/Lato-Black.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Lato-Black.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Lato-Black.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Lato-Black.ttf') format('truetype'); 
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

.container {
    border: #e1e1e1 solid 1px;
    background: #FFF;
    margin: 0 auto;
} 

a, a:hover {
    color: #00afec;
}   

/* hlavička */
header {
    padding: 0;    
}

header a.logo {
    font-family: 'LatoBlack';    
	color: #504e53;
    text-decoration: none;
    font-size: 28px;
    margin: 25px 0;
    display: inline-block;    
}

header a.logo span {
	color: #00afec;	
}

header .row:first-child .col-xs-12:last-child {
	line-height: 56px;	
	padding-top: 25px;
	padding-bottom: 25px;
}

header .row:first-child .col-xs-12:last-child img {
	max-width: 120px;
}


/* button for responsive menu */ 
.navbar-toggle {
	position: relative;
	padding: 8px;
	margin: 8px;
	border-radius: 4px;
	background: none;
	border: 1px solid #ddd;
	margin-left: calc(100% - 46px);
}

.navbar-toggle:focus {
	outline: 0;
}

.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

.navbar-toggle  .icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
	background: #ddd;
}

/* menu */
nav {
    background: #393939;
}

nav ul {
	display: none;	
}

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

nav ul li+li {
    border-top: #464646 solid 1px;  
}

nav ul li a {
    display: inline-block;
    line-height: 52px;
    font-size: 0.929em;
    color: #d0d0d0;
    padding: 0 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

nav ul li a:hover, nav ul li.active a {
    color: #00afec;
}

nav ul ul {
	padding: 0 0 0 15px;
}


/* hlavní obsah */
.content {
    padding: 25px 0;
}

.content h1 {
    font-size: 2em;
    color: #5c5c5c;
	font-weight: 700;
}

.content h2 {
    font-size: 1.714em;
    color: #5c5c5c;
	font-weight: 400;
}

.content h1 {
    text-align: center;
}

.content table {
    margin: 1em 0;
}

.content table th, .content table td {
    text-align: left;
    padding: 5px 10px;
    vertical-align: top;
}

@media (min-width: 768px) {
	.content table th {
		min-width: 200px;
	}
	
	#contact_box th {
		min-width: auto;
	}
	
	.navbar-toggle {
		display: none !important;
	}

	nav ul {
		display: block;
	}

	nav ul ul {
		display: none;
		position: absolute;
		background: #393939;
		padding: 0;
		min-width: 200px;
		z-index: 99;
	}

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

	nav > ul > li {
		border: 0;
		border-right: #464646 solid 1px;  		
		float: left;
	}		
	
	nav > ul > li > ul > li {
		border-top: #464646 solid 1px;  		
	}	
	

	header a.logo {
		font-size: 35px;
	}	
}

/* services */
.service {
    padding: 30px 70px;
}

.service ul, .service ul li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.service ul li {
    float: left;
    width: 140px;
    padding: 105px 0 0 0;
    background: url('../images/bg-service.png') top center no-repeat;
    margin: 0 30px;    
}

.service ul li:hover {
    background: url('../images/bg-service-hover.png') top center no-repeat;
}

.service ul li h2 {
    color: #5c5c5c;
    font-size: 1.143em;
    text-align: center;
}

.service ul li:hover h2 {
    color: #71cec2;
}

/* patička */
footer {    
    background: #393939;
    color: #d2d2d2;
	margin: 0 -15px;
}

footer h2 {
    color: #efefef;
    font-size: 1.143em;
    font-weight: 700;
    text-transform: uppercase;
}

footer ul, footer ul li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

footer ul {
    padding: 40px 50px;
}

footer ul li {
    float: left;
    width: 302px;
    margin: 0 0 0 22px;
}

footer ul li:first-child {
    margin: 0;
}

footer ul li span {
    display: inline-block;
    padding: 0 0 0 25px;
}

footer ul li span.location {
    background: url('../images/ico-location.png') center left no-repeat;
}

footer ul li span.phone {
    background: url('../images/ico-phone.png') center left no-repeat;
}

footer ul li span.mail {
    background: url('../images/ico-mail.png') center left no-repeat;
}

footer .copy {
    background: #333333;
    margin: 0;
	padding: 25px 15px;
}

footer a {
    color: #d2d2d2;    
}

/* kontaktní formulář */
#contact_box table {
	width: 100%;
}

#contact_box th, #contact_box td {
    padding: 0 5px 10px 5px;
}

#contact_box th {
    font-weight: normal;
    text-align: left;
}

#contact_box input[type="text"], #contact_box textarea {
    border: #e3e3e3 solid 1px;
    background: none;
    padding: 5px;
    width: 100%;
}

#contact_box textarea {
    height: 70px;
}

#contact_box input[type="submit"] {
    background: #00afec;
    color: #FFF;
    border: none;
    padding: 10px 15px;
}

#contact_box ul {
    margin: 0 0 2em 0;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */
.text-left {
	text-align: left;
}   
   
/*
 * 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;
}

/*
 * 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;
}


/*
 * jQuery FlexSlider v2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */

 
/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} 

/* FlexSlider Necessary Styles
*********************************/ 
.flexslider {margin: 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden; padding: 0 !important;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; display: block; -webkit-border-radius: 1px; -moz-border-radius: 1px; -o-border-radius: 1px; border-radius: 1px;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}


/* FlexSlider Default Theme
*********************************/
.flexslider {margin: 0; position: relative; zoom: 1; padding: 0; overflow: hidden;}
.flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .flex-viewport {max-height: 300px;}
.flexslider .slides {zoom: 1;}

.carousel li {margin-right: 5px}

/* Direction Nav */
.flex-direction-nav {*height: 0;}
.flex-direction-nav a  { display: block; width: 20px; height: 22px; margin: -11px 0 0; position: absolute; top: 50%; z-index: 10; overflow: hidden; opacity: 1; cursor: pointer; color: rgba(0,0,0,0.8); text-shadow: 1px 1px 0 rgba(255,255,255,0.3); -webkit-transition: all .3s ease; -moz-transition: all .3s ease; transition: all .3s ease;}
.flex-direction-nav .flex-prev { left: 0px; background: url('../images/ico-direction.png') 0 0 no-repeat; text-indent: -9999px;}
.flex-direction-nav .flex-next { right: 0px; text-align: right; background: url('../images/ico-direction.png') 0 -22px no-repeat; text-indent: 9999px;}
.flexslider:hover .flex-prev { left: 0px; }
.flexslider:hover .flex-next { right: 0px; }
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover { opacity: 0.5; }
.flex-direction-nav .flex-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }


/* Control Nav */
.flex-control-nav {width: 100%; position: absolute; bottom: 0; text-align: right;}
.flex-control-nav li {margin: 0 2px; display: inline-block; zoom: 1; *display: inline;}
.flex-control-paging li a {width: 11px; height: 11px; display: block; background: #bebebe; cursor: pointer; text-indent: 9999px; -webkit-border-radius: 11px; -moz-border-radius: 11px; -o-border-radius: 11px; border-radius: 11px;}
.flex-control-paging li a:hover { background: #3284be; }
.flex-control-paging li a.flex-active { background: #3284be; cursor: default; }

.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}

@media screen and (max-width: 860px) {
  .flex-direction-nav .flex-prev {opacity: 1; left: 0;}
  .flex-direction-nav .flex-next {opacity: 1; right: 0;}
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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;
    }
}
