html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-image: url(../img/background/background.jpg);
    background-size: cover;
}

a {
    background-color: transparent;
  }

b,
strong {
  font-weight: bolder;
}

.hidden {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

header {
    margin: 10px 0 20px 0;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header, main {
    max-width: 1200px;
}

#logo-wrapper {
    width: 60%;
    max-width: 320px;
}

#logo-wrapper a {
    display: flex;
    width: 100%;
    min-width: 177px;
}

#logo-wrapper a img {
    width: 100%;
}

#header-menu {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    background-color: #CBFACA;
}

.menu-button {
    min-width: 60px;
    height: 60px;
    margin-right: 10px;
    border: 1px solid #336633;
    border-radius: 4px;
    background-color: #CBFACA;
    fill: #336633;
    cursor: pointer;
}

.menu-icon-opened {
    width: 25px;
}

#menu-list {
    display: none;
    background-color: #CBFACA;
    width: 100%;
    padding: 10px;
}

#menu-list ul {
    background-color: #ffffff;
    border: 1px solid #336633;
}

#menu-list ul li {
    display: block;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 800;
}

#menu-list ul li a {
    display: block;
    text-decoration: none;
    color: #336633;
    text-align: center;
}

#menu-list ul li a:hover {
    text-decoration: underline;
}

#header-menu.menu-opened #menu-list {
    position: absolute;
    top: 100%;
    display: block;
    list-style: none;
}

main {
    display: block;
    padding-bottom: 10px;
}

#hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/banner/conifer-dawn-daylight-evergreen-640.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 250px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-banner h1 {
    color: #ffffff;
    font-size: 40px;
    text-align: center;
}

.section-general h2 {
    color: #336633;
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.section-general {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px 0;
    margin: 0 10px 30px 10px;
}

.section-general:last-of-type {
    margin-bottom: 0;
}

#product-card-container {
    position: relative;
    width: 70%;
    max-width: 300px;
    margin: 0 auto;
}

#product-card-container .btn {
    position: absolute;
    top: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: #336633;
}

#product-card-container .previous {
    transform: translateX(-100%);
    left: -5px;
}

#product-card-container .next {
    right: -5px;
    transform: translateX(100%);
}

#product-card-container .btn svg {
    width: 24px;
}

.product-card {
    display: none;
    text-align: center;
}

.product-card.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h3 {
    font-size: 20px;
}

.product-card .image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.product-card .image-wrapper img {
    width: 100%;
}

.product-details-card {
    display: none;
}

.product-details-card.active {
    display: block;
}

.tech-spec {
    list-style: none;
    padding: 0 20px;
}

.tech-spec li {
    display: block;
    margin-bottom: 30px;
}

.tech-spec li:last-of-type {
    margin-bottom: 0;
}

.tech-spec li p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery {
    display: none;
}

.slideshow-container {
    margin: 30px 0;
    padding: 0 20px;
}

.slideshow-image {
    display: none;
}

/* Animacja */
.product-details-card.active .slideshow-image:first-of-type {
    display: block;
}

/* .slideshow-image.active {
    display: block;
} */

.slideshow-container img {
    width: 100%;
    display: block;
}

#product-details article {
    padding: 0 20px;
    line-height: 22px;
    width: 100%;
}

.standard-text p {
    text-align: justify;
    margin: 15px 0 5px 0;
}

#product-details article ul {
    list-style-position: inside;
}

#product-details article li {
    margin-bottom: 5px;
}


@media (min-width: 460px) {

    #product-card-container .previous {
        left: -20px;
    }

    #product-card-container .next {
        right: -20px;
    }
}


@media (min-width: 640px) {

    header {
        padding: 0 30px;
    }
    
    #menu-list ul li {
        font-size: 26px;
    }

    #hero-banner {
        height: 300px;
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/banner/conifer-dawn-daylight-evergreen-1280.jpg);
    }

    #hero-banner h1 {
        font-size: 64px;
    }

    .section-general {
        margin-left: 30px;
        margin-right: 30px;
    }

    .section-general h2 {
        font-size: 34px;
    }
    
    #product-card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        max-width: none;
    }

    #product-card-container .btn {
        display: none;
    }

    .product-card {
        /* display: block; */
        align-self: stretch; /* each box to be same height */
        display: flex; /* start of mechanizm of same position of elements inside boxes */
        flex-direction: column;
        justify-content: space-between; /* end */
        /* flex-basis: 25%; */
        width: 260px;
        margin-bottom: 30px;
        padding: 15px;
        border: 1px solid #A6A6A6;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .product-card.active {
        border: 6px solid #336633;
        padding: 10px 15px; /* start of mechanizm of same position of elements inside boxes */
        justify-content: space-between; /* end */
    }

    .section-general {
        padding: 40px 20px 20px 20px;
    }

    .product-details-container {
        margin-bottom: 30px;
    }

    .tech-spec {
        padding: 0;
        font-size: 20px;
    }

    .tech-spec li p {
        width: 30%;
        float: left;
    }

    .image-container {
        display: flex;
        justify-content: space-evenly;
    }

    .gallery {
        width: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 30px;
    }

    .gallery-item {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
        margin-bottom: 10px;
    }

    .gallery-item:last-of-type {
        margin-bottom: 0;
    }

    .gallery-item.active {
        border: 3px solid #336633;
    }

    .gallery-item img {
        width: 100%;
    }

    .slideshow-container {
        margin: 0;
        padding: 0;
    }

    #product-details article {
        padding: 0;
        /* max-width: 600px; */
    }

}

@media (min-width: 974px) {

    header {
        margin: 10px auto 20px auto;
        position: static;
    }

    main {
        margin: 0 auto;
        padding: 0 30px 20px 30px;
    }

    #header-menu {
        padding: 5px 20px;
    }

    .menu-button {
        display: none;
    }

    #menu-list {
        display: block;
        max-width: 600px;
        margin-left: 50px;
    }

    #menu-list ul {
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
    }

    #menu-list ul li {
        font-size: 18px;
    }

    #hero-banner {
        height: 400px;
    }

    #products {
        margin: 0 auto;
    }

    .section-general {
        margin: 0 0 50px 0;
    }

    .product-card {
        width: 320px;
    }

    .section-general h2 {
        margin-bottom: 50px;
    }

    .product-details-card.active{
        display: flex;
        flex-wrap: wrap;
    }

    .tech-spec, #product-details article {
        order: 1;
    }

    .tech-spec {
        padding: 0 0 0 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .tech-spec li {
        display: block;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .tech-spec li:last-of-type {
        border: none;
        padding-bottom: 0;
    }

    .tech-spec li p {
        width: 100%;
        float: none;
    }

    .product-details-container {
        width: 50%;
        margin-bottom: 0;
    }

    #product-details article {
        margin-top: 50px;
    }

}

@media (min-width: 1060px) {
    
    .product-card {
        width: 320px;
    }
}