@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

@import 'lightbox.min.css';

/*
*   Globální nastavení
*/

* {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-size: 100%;
    padding-left: 15%;
}

a {
    text-decoration: none;
    color: #E4CDA3;
}

ul li, ul {
    list-style-type: none;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.col25 {
    width: 25%;
}

.col33 {
    width: 33%;
}

.col50 {
    width: 50%;
}

.full {
    width: 100%;
}

.wrap {
    display: flex;
    flex-wrap: wrap;
}

.nowrap {
    display: flex;
    flex-wrap: nowrap;
}

/*
*   Hlavní menu
*/

#main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    overflow: hidden;
    width: 15%;
    z-index: 100;
    left: 0;
    top: 0;
    height: 100%;
    /*background-color: #23170e;*/
    background: rgb(25,16,8);
    background: linear-gradient(90deg, rgba(25,16,8,1) 0%, rgba(35,23,14,1) 100%);
}

#main-menu a {
    width: 100%;
    padding: 1.5rem;
    color: #E4CDA3;
    text-align: center;
    position: relative;
    font-weight: 600;
}

#main-menu a img {
    padding-bottom: 0.5rem;
}

#main-menu a::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #E4CDA3;
    transition: 0.5s ease;
    opacity: 0;
    top: 0;
    left: 0;
}

#main-menu a:hover::after, #main-menu a.active {
    opacity: 0.1;
}

.menu-button {
    display: none;
    padding: 1rem;
    background-color: rgb(35 23 14);
    position: absolute;
    left: 100%;
    top: 10%;
    z-index: 101;
    cursor: pointer;
}

.menu-button .line {
    width: 30px;
    height: 5px;
    background-color: #E4CDA3;
    margin: 8px 0;
    transition: 0.5s ease;
}


/*
*   Úvodní blok
*/

#introblock {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    background-image: url('../img/introblock.jpg');
    background-size: cover;
    background-position: 0 25%;
    color: white;
    text-shadow: 2px 2px 4px #000000;
}

#introblock h1, #introblock h2 {
    margin-bottom: 0;
}

#introblock p {
    line-height: 2rem;
    font-size: 1.1rem;
}

.cover {
    position: absolute;
    opacity: 0.45;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgb(25,16,8);
}

/*
*   Ceník základ
*/

#pricelist {
    display: flex;
    width: 100%;
    height: 65vh;

    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#222222+0,333333+100 */
    background: rgb(34,34,34); /* Old browsers */
    background: -moz-linear-gradient(-45deg,  rgba(34,34,34,1) 0%, rgba(51,51,51,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg,  rgba(34,34,34,1) 0%,rgba(51,51,51,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg,  rgba(34,34,34,1) 0%,rgba(51,51,51,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#222222', endColorstr='#333333',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

#pricelist h2 {
    color: white;
    margin-bottom:2rem;
}

.prices {
    position: relative;
    height: 100%;
    padding: 3rem 0;
}

.prices h2 .validity {
    font-size: 0.9rem;
}

.info {
    padding: 3rem 0 2rem 1rem;
    width: 50%;
    color: white;
}

#pricelist button {
    outline: none;
    color: white;
    background-color: transparent;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 1px solid white;
    margin-bottom: 1rem;
    font-weight: 400;
    transition: 0.5s ease;
}

#pricelist table {
    width: 100%;
    margin-bottom: 2rem;
    border-spacing: 0 0.25rem;
}

#pricelist table td {
    padding: 1rem;
    border: 1px solid #E4CDA3;

}

#pricelist table td:first-of-type {
    background-color: #E4CDA3;
    color: black;
    width: 60%;
    font-weight: 600;
}

#pricelist table td:last-of-type {
    text-align: right;
    color: #E4CDA3;
    width: 40%;
}

.info ul li {
    list-style-type: circle;
    list-style-position: outside;
    color: white;
    padding: 1rem 0;
}

.info ul li:first-of-type {
    padding-top: 0;
}

.info ul {
    padding-left: 1.25rem;
}

/*
*   Ceník + JS
*/

.js .prices {
    overflow: hidden;
}

#pricelist button.active {
    background-color: #E4CDA3;
    color: black;
    border-color: #E4CDA3;
}

.js .soft-cont, .js .birch-cont, .js .hard-cont, .js .other-cont {
    position: absolute;
    width: 95%;
    top: 11.5rem;
    transition: 0.5s ease;
}

.js .soft-cont, .js .hard-cont {
    left: -100%;
    opacity: 0;
}

.js .birch-cont, .js .other-cont {
    left: 100%;
    opacity: 0;
}

.js .soft.active ~ .soft-cont, .js .hard.active ~ .hard-cont, .js .birch.active ~ .birch-cont, .js .other.active ~ .other-cont {
    left: 0;
    right: 0;
    opacity: 1;
}

.announcement {
    font-weight: bold;
    font-size: 1.25rem;
}

/*
*   Galerie
*/

#gallery {
    height: 65vh;
    display: grid;
    grid-template-columns: repeat(8, 12.5%);
    grid-template-rows: repeat(5, 20%);
    grid-gap: 0;
}

#gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#gallery a {
    transition: 0.5s ease;
    filter: brightness(0.8);
}

#gallery a:hover {
    filter: brightness(1.1);
}

#gallery a:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 4;
}

#gallery a:nth-child(2) {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 4;
    grid-row-end: 6;
}

#gallery a:nth-child(3) {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 4;
    grid-row-end: 6;
}

#gallery a:nth-child(4) {
    grid-column-start: 4;
    grid-column-end: 6;
    grid-row-start: 1;
    grid-row-end: 6;
}

#gallery a:nth-child(5) {
    grid-column-start: 6;
    grid-column-end: 7;
    grid-row-start: 1;
    grid-row-end: 3;
}

#gallery a:nth-child(6) {
    grid-column-start: 7;
    grid-column-end: 9;
    grid-row-start: 1;
    grid-row-end: 2;
}

#gallery a:nth-child(7) {
    grid-column-start: 7;
    grid-column-end: 9;
    grid-row-start: 2;
    grid-row-end: 3;
}

#gallery a:nth-child(8) {
    grid-column-start: 6;
    grid-column-end: 9;
    grid-row-start: 3;
    grid-row-end: 6;
}

/*
*   Kontakt
*/

#contact {
    display: flex;
    justify-content: space-between;
    height: 55vh;
    overflow: hidden;
    color: white;
    
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#222222+0,333333+100 */
    background: rgb(34,34,34); /* Old browsers */
    background: -moz-linear-gradient(-45deg,  rgba(34,34,34,1) 0%, rgba(51,51,51,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg,  rgba(34,34,34,1) 0%,rgba(51,51,51,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg,  rgba(34,34,34,1) 0%,rgba(51,51,51,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#222222', endColorstr='#333333',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

}

.contact-info {
    padding: 3rem 0;
    font-size: 1.1rem;
}

.map {
    position: relative;
}

.map iframe {
    position: absolute;
    border: none;
    top:0;
    left: 0;
    height: 100%;
    width: 150%;
}

/*
*   Footer
*/

#footer {
    width: 100%;
    background-color: #1d120a;
    padding: 1rem 0;
}

.copy, .attribution {
    text-align: center;
    color: white;
    opacity: 0.5;
}

.attribution {
    font-size: 0.75rem;
    margin-top: 0.5em;
}

/*
*   Responziv
*/

@media screen and (max-width: 1000px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .col50 {
        width: 100%;
    }

    .nowrap {
        flex-wrap: wrap;
    }

    #pricelist {
        height: auto;
        padding-bottom: 2rem;
    }

    .prices {
        height: 55vh;
    }

    #contact {
        height: auto;
    }

    .map iframe {
        position: relative;
        width: 105%;
        margin-left: -1rem;
        height: 300px;
    }

    .contact-info .col50:last-of-type {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 800px) {

    body {
        padding-left: 0;
    }

    .menu-button {
        display: block;
    }

    #gallery {
        height: auto;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(4, 25vh);
    }

    #gallery a:nth-child(1) {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    #gallery a:nth-child(2) {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    #gallery a:nth-child(3) {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    #gallery a:nth-child(4) {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 3;
        grid-row-end: 2;
    }

    #gallery a:nth-child(5) {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 3;
        grid-row-end: 4;
    }

    #gallery a:nth-child(6) {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 3;
        grid-row-end: 4;
    }

    #gallery a:nth-child(7) {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 4;
        grid-row-end: 5;
    }

    #gallery a:nth-child(8) {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 4;
        grid-row-end: 5;
    }

}

@media screen and (max-width: 500px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #introblock p {
        font-size: 1rem; 
    }

    .prices {
        height: 100vh;
    }

    .js .soft-cont, .js .birch-cont, .js .hard-cont, .js .other-cont {
        top: 15.5rem;
    }

    #pricelist button {
        width: 45%;
    }

    #main-menu a img {
        width: 40px;
    }

    #main-menu a {
        font-size: 0.8rem;
    }

    #main-menu.open {
        transform: translateX(0rem);
    }

    #main-menu {
        overflow: visible;
        transition: 0.5s ease;
        transform: translateX(-8rem);
        max-width: 50%;
        width: auto;
    }

    #main-menu.open .line:first-of-type {
        transform: rotate(45deg)translateY(5px)translateX(5px);
    }

    #main-menu.open .line:last-of-type {
        transform: rotate(-45deg)translateY(-5px)translateX(4px);
    }
}

@media screen and (min-width: 500px) {

    #main-menu {
        overflow: visible;
        transition: 0.5s ease;
        transform: translateX(-9.5rem);
        max-width: 50%;
        width: auto;
    }

    #main-menu:hover {
        transform: translateX(0);
    }
    
    #main-menu:hover .line:first-of-type {
        transform: rotate(45deg)translateY(5px)translateX(5px);
    }

    #main-menu:hover .line:last-of-type {
        transform: rotate(-45deg)translateY(-5px)translateX(4px);
    }
}

@media screen and (min-width: 800px) {
    #main-menu {
        transform: translateX(0);
        width: 15%;
    }
}