/*Nastavit thumbnail na prostředek - nejspíš změnit floating, jinak se to asi nedá centrovat.

Potom v javascriptu nastavit aby se změnou rozlišení přepínalo mezi designem galerie*/



body, nav, header, main, footer{
    margin: 0;
    padding: 0;
    min-width: 360px;
}

body {
    background: #fff;
}

.container {
    margin: 0 auto;
}

nav {
    top:0;
    position: fixed;
    z-index: 3;
    width: 100%;

    font-family:'Open Sans', serif;
    font-size: 1rem;
    color: #fff;
    letter-spacing:0.1rem;
}

.navigation {
    display: none;
    border-bottom: 1px solid #666;
}

.navigation .fa-home{
    font-size: 1.5rem;
}

.navigation a, .navigation a:visited, .navigation a:link{
    text-decoration:none;
    display: inline-block;
    color: #fff;
    padding: 0.8rem;
}

.hidden{
    display: none;
}

.bckgColorMenu{
    background-color: rgba(34,34,34,1);
}

.frame{
    margin: 0.3rem;
    padding: 0.2rem 0.4rem 0.2rem 0.5rem;
}

.navigation_mobile em {
    cursor: pointer;
    color: #fff;
}
.navigation_mobile_link{
    margin-top: 1rem;
}

.navigation_mobile_link :last-child{
    text-align: center;
}

.pressColor{
    border-radius: 3px;
    background-color: #000;
}

.navigation_mobile .fa-home{
    cursor: pointer;
    color: #fff;
    font-size: 2rem;
}

.navigation_mobile_link a{
    display: block;
    clear: left;
    padding-bottom: 1.5rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.navigation_mobile_link a, .navigation_mobile_link a:visited, .navigation_mobile_link a:link{
    text-decoration:none;
    color: #fff;
}

.navigation a:hover, .navigation_mobile_link a:hover{
    text-decoration:underline;
    opacity: 0.4;
}

header {
    background: url(../img/bckg_img.jpg) no-repeat;
    background-position:center top !important;
    background-attachment:scroll !important;
    background-size:cover !important;
}

.zavoj{
    background-color: rgba(0,0,0,0.3);
}

.header_text{
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    padding-top: 4rem;
    margin-bottom: 6rem;

    display: flex;
    flex-flow: column wrap;
    align-items: center;
    
    display: -ms-flexbox;
    display: -webkit-flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
}

.header_text p {
    text-align: center;
}

.header_text p:first-child{
    font-size:1.2rem;
    margin-bottom: 4rem;
}

.header_text i{
    font-size:1.5rem;
}

.wrap_box{
    align-items: center;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-around;
}

.box{
    width: 360px;
    margin-bottom: 2rem;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    background-color:rgba(255, 255, 255,0.7);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;

    display: flex;
    flex-flow: column;
}

.arrow-up {
    width: 0;
    height: 0;
    margin: 0 auto;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgba(255, 255, 255,0.7);
    margin-top: -15px;
}

.box_content{
    padding: 0 1rem;
    flex: 1;
}

.box_content h2{
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #666;
}

.box_content li {
    font-family: 'Source Sans Pro', sans-serif;
    font-size:1.2rem;
    padding-bottom: 0.5rem;
}

.box button{
    margin: 0 2rem 1rem 13rem;
}

main{
    padding-top: 2rem;
    width: 100%;
}

.content{
    font-family: 'Source Sans Pro', sans-serif;
    font-size:1.1rem;
    color:#666;
    padding: 0 1rem;
}

.flex{
    display: flex;
    flex-flow: column wrap;
}

.flex-center{
    align-items: center;
}

.content_with_img{
    margin-top: 1rem;
}

.content_text{
    width: calc(100% - 4rem);
    padding: 1rem 2rem 0 2rem;
}

.black-board{
	width:100%;
	background-color:#1b1b1b;
	margin:2rem 0;
	padding:2rem 0;
	box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.board{
	text-align:left;
	margin:auto;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px;
    margin: 1.2rem;
    width: 80%;
}

.card img {
    border-radius: 5px 5px 0 0;
    height:240px;
    object-fit: cover;
}

.card_content {
    background-color: #FFFFFF;
    padding: 0 1rem 1rem 1rem;
}

img{
    height: auto;
    max-width: 100%;
}

.fullWidthImg img{
    width: 100%;
}

.contact_bckg{
    margin-top:4rem;
    background: url(../img/drevenaZed-small.jpg) no-repeat;
    background-position:center !important;
    background-size: cover !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

iframe{
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.contact_text{
    padding: 2rem;
    line-height:2rem;
    color: #422810;
}

.contact_input{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.submit_wrap{
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
}

.form_answer{
    margin-right: 2rem;
    font-size: 1.3rem; 
}

footer {
    margin-top: 2rem;
    width: 100%;
}

.footer_text{
    padding:0.8rem;
    text-align:center;
    font-family:'Open Sans', serif;
    font-size:0.9rem;
    color: #222;
    border-top: 1px solid #666;
}

.footer_text a, .footer_text a:visited, .footer_text a:link{
    color: #222;
}


/*----------CSS Gallery-----------*/
.row > .column {
    padding-right: 1rem;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 100%;
    position: relative;
}

.gallery .column img{
    object-fit: cover;
    height: 200px;
    transition: .5s ease;
    backface-visibility: hidden;
}

.img_hover_text {
    transition: .3s ease;
    opacity: 0;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.gallery .column:hover img{
    opacity: 0.3;
}

.gallery .column:hover .img_hover_text {
    opacity: 1;
}

.text_center{
    text-align: center;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 5;
    padding-top: 4.2rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #000000;

    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

/* The Close Button */
.close {
    color: white;
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 1;
    font-size: 1.8rem;
    padding: 0 0.7rem;
    background-color: #000000;
    border: 1px solid #FFFFFF;
    transition: 0.3s ease;
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 1);
    color:#000000;
}

/*Foto slides*/
.mySlides{
    text-align: center;
}

.mySlide {
    padding-bottom: 1rem;
}
.mySlide:last-child{
    padding-bottom: 5rem;
}

.thumbnail{
    bottom:0;
    position: fixed;
    z-index: 7;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0,0,0,0.7);

    display: none;
}

.thumbnail img{
    height: 3rem;
    margin: 0 0.5rem;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 0.3rem;
    margin-top: -50px;
    color: #FFFFFF;
    font-size: 1.8rem;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid #FFFFFF;
    display: none;
}

/* Position the "next button" to the right */
.next {
    right: 1rem;
    border-radius: 0 3px 3px 0;
    border-left: none;
}
.prev{
    border-right: none;
    border-radius: 3px 0 0 3px;
    left: 1rem;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 1);
    color:#000000;
    text-decoration-line: none;
}
.demo {
    opacity: 0.4;
}
.active,
.demo:hover {
  opacity: 1;
}

h1{
    color:#422810;
    font-size:1.6rem;
    font-family: 'Roboto Slab', serif;
    text-transform:uppercase;
    letter-spacing:1px;
    font-weight: 400;

    padding-bottom: 1.5rem;
    border-bottom: 1px solid #422810;
    margin-bottom:1.5rem;
}

h2{
    font-size:1.4rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    color:#422810;
}

h3{
    color:#422810;
    letter-spacing:1px;
    font: bold 0.9rem/1.1rem "Open Sans", "Verdana";
}


#preview{
    position:absolute;
    display:none;
    height: 200px ;
    width: 200px;
    z-index: 10;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.fa-phone, .fa-fw , .fa-map-marker i{
    color:#422810;
    margin-top: 0;
    margin-right: 2px;
    margin-left: 2px;
    margin-bottom: 0;
}

a, a:visited, a:link{
    text-decoration:none;
    color: #422810;
}

a:hover{
    color: #422810;
    text-decoration: underline;
}

.reverse-link:visited, .reverse-link:link{
	color: #CCCCCC;
}

.reverse-link:hover{
	color: #CCCCCC;
}

/* Contact form */
form{
    padding: 2rem;
    display: flex;
    flex-flow: column wrap;
    color:#fff;
}

input {
    margin-bottom:10px;
    width: 49%;
}

textarea {
    min-height:10rem;
    max-height:20rem;
    margin-bottom: 1rem;
    resize:vertical;
}

input, textarea {
    font-size: 1rem;
    padding: 10px 10px 10px;
    font-family: "Helvetica", "Arial", sans-serif;
    border: 1px solid #666;
    color:#000;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 4px;
    background-color:rgba(255, 255, 255,0.7);   
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
::-webkit-input-placeholder {
    color: #666;
}
:-moz-placeholder {
    color: #666;
}
:-ms-input-placeholder {
    color: #666;
}

button {
    padding: 0.4rem;
    -webkit-transition: .3s;
    transition: .3s;
    display: block;
    cursor: pointer;
    text-transform:uppercase;
    border-radius: 4px;

    background: none;
    font:600 1.2rem 'Source Sans Pro', sans-serif;
    color: rgba(0, 0, 0, 0.9);
    border: rgba(0, 0, 0,0.9) 1px solid;
}
button:hover {
    border-color: #000;
    color: #000;
    box-shadow: rgba(0, 0, 0,0.5) 0 0 20px;
}

.btn_reverse{
    background-color: rgba(0, 0, 0,0.8);
    color: rgba(255, 255, 255,1);
}

.btn_reverse:hover{
    border-color: #fff;
    color: #fff;
    box-shadow: rgba(255, 255, 255,0.5) 0 0 20px;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*Responsive design start here*/
@media (min-width: 480px) {
    .row .column {
        width: 45%;
    }
    .card{
        width: 65%;
    }
	.board{
	width:440px;
	}
}

@media (min-width: 768px) {
    header {
        width: 100%;
        background: url(../img/bckg_img-medium.jpg) no-repeat;
    }
    .navigation_mobile {
        display: none;
    }
    .container{
        max-width: 768px;
    }
    .navigation {
        display: block;
    }
    .header_text{
        margin-bottom: 13rem;
    }
    .header_text p:first-child{
        font-size:1.4rem;
    }
    .header_text i{
        font-size:1.8rem;
    }
    .wrap_box{
        align-items: center;
        display: flex;
        flex-flow: column wrap;
        justify-content: space-around;
    }
    main{
        min-height: 600px;
    }
    .cards .flex{
        display: flex;
        flex-flow: row wrap;
    }
    .cards .flex-center{
        justify-content: center;
        align-items: stretch;
    }
    .card{
        width: 40%;
    }
    .contact_bckg{
        background: url(../img/drevenaZed-medium.jpg) no-repeat;
    }
}

@media (min-width: 1024px) {
    header {
        width: 100%;
        background: url(../img/bckg_img-large.jpg) no-repeat;
    }
    .container{
        max-width: 1024px;
    }
    .header_text i{
        font-size: 2.1rem;
    }
    .wrap_box{
        align-items: stretch;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
        
        display: -ms-flexbox;
        display: -webkit-flex;
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
    }
    .box{
        width: 300px;
    }
    .index .flex{
        display: flex;
        flex-flow: row wrap;
    }
    .img_visibility {
        position: relative;
        background-size: cover;
        background-position: 60%;
        width: 60%;
    }
    .content_text{
        width: calc(40% - 4rem);
        min-height: 500px;
    }
    .img_visibility img{
     display: none;
    }
    .card:hover {
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
        z-index: 2;
        -webkit-transition: all 200ms ease-in;
        -webkit-transform: scale(1.1);
        -ms-transition: all 200ms ease-in;
        -ms-transform: scale(1.1);
        -moz-transition: all 200ms ease-in;
        -moz-transform: scale(1.1);
        transition: all 200ms ease-in;
        transform: scale(1.1);
    }
    .contact_wrap{
        justify-content:space-around;
    }
    .row .column {
        width: 23%;
    }
/*Gallery*/
    .mySlides{
        padding: 0 4rem;
    }
    .mySlide {
        display: none;
    }
    .mySlide img{
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .thumbnail{
        display: block;
    }
    .prev,
    .next {
        display: block;
    }
}

@media (min-width: 1280px) {
    header {
        width: 100%;
        background: url(../img/bckg_img.jpg) no-repeat;
    }
    .container {
        max-width: 1280px;
    }
    .box{
        width: 360px;
    }
    .card{
        width: 30%;
    }
    .contact_bckg{
        background: url(../img/drevenaZed.jpg) no-repeat;
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .box{
        height: 330px
    }
}

@media (max-width: 1023px) {
    .img_visibility {
        background-image: none!important;
    }
}