/* Part one start */
.part-one {
    background-image: url('../images/green-mountains.jpg');
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
    min-height: 31.25rem;
    position: relative;
}

.part-one h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);

    color: white;
    text-align: center;

    font-family: 'Roboto', sans-serif;
    font-size: 2.625rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
}

@media (min-width: 62.5em) {   /* 1000px */
    .part-one {
        min-height: 25.625rem;
    }
}
/* Part one end */


/* Main part start */
main {
    max-width: 85%;

    display: grid;
    grid-template-columns: 1fr;
    align-items: center;

    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
}

main .links {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
}

main .links .active {
    color: rgb(0, 168, 107);
}

main .links a, main .links p {
    line-height: 1.375rem;

    font-size: 0.875rem;
    font-weight: 400;

    transition: color 0.2s;
}

main .link-one:hover > a,
main .link-two:hover > a,
main .link-three:hover > a {
    color: rgb(26, 188, 156);
}

main .links{
    padding-bottom: 1rem;
}

main .details {
    display: grid;
    grid-template-columns: 1fr;
}

main .details .image {
    display: flex;
    justify-content: center;

    padding-bottom: 1rem;
}

main .details .image img {
    width: 18.75rem;   /* 300px */
    height: 18.75rem;   /* 300px */
}

main .details .info h2 {
    padding-bottom: 1rem;

    color: #2e2e2e;
    letter-spacing: 0.0625rem;

    font-family: 'Roboto', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
}

main .details .info h3 {
    padding-bottom: 0.75rem;

    color: #2e2e2e;
    letter-spacing: normal;
    line-height: 1.375rem;

    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

main .details ul li {
    list-style-type: disc;
    list-style-position: inside;
    line-height: 1.375rem;

    font-size: 0.875rem;
    font-weight: 400
}

main .details .info > ul {
    padding-bottom: 0.75rem;
}

main .details .info .category h4 {
    display: inline-block;

    padding-right: 0.3125rem;

    color: rgb(51, 51, 51);
    line-height: 1.375rem;

    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
}

main .details .info .category a {
    color: grey;
    line-height: 1.375rem;

    font-size: 0.875rem;
    font-weight: 300;

    transition: color 0.2s;
}

main .details .info .category a:hover {
    color: rgb(26, 188, 156);
}

main .description-button {
    background-color: rgb(227, 227, 227);
    max-width: 100%;

    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    margin-top: 1.875rem;
    margin-bottom: 0.3125rem;

    text-align: center;

    cursor: pointer;
    transition: opacity 0.3s;
}

main .description-button h4 {
    color: rgb(48, 48, 48);
    line-height: 1.75rem;
    letter-spacing: 0.0625rem;

    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
}

main .description-button:hover,
main .description-button:active {
    opacity: 0.5;
}

main .description {
    max-height: 0rem;   /* start with 0, onclick, max-height change */
    overflow: hidden;

    padding-left: 1.625rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5625rem;

    transition: all 0.5s;
}

main .show-description {
    max-height: 35rem;
}

main .description h5 {
    margin-bottom: 1.375rem;

    color: #2e2e2e;
    letter-spacing: normal;
    line-height: 1.375rem;

    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

main .details .info .description ul li {
    color: #2e2e2e;
    line-height: 1.375rem;
    list-style-position: outside;

    font-size: 0.875rem;
    font-weight: 400;
}

main .details .info .description ul {
    padding-left: 1rem;
    margin-bottom: 1.375rem;
}

main .details .info .description a {
    line-height: 1.375rem;

    font-size: 1rem;
    font-weight: 400;

    transition: color 0.2s;
}

main .brochure-greater-than {
    background-color: rgb(46, 139, 87);
    color: white;
}

main .details .info .description a:hover {
    color: rgb(0, 168, 107);
}

@media (min-width: 31.25em) {   /* 500px */
    main .details .image img {
        width: 26.25rem;   /* 420px */
        height: 26.25rem;   /* 420px */
    }
}

@media (min-width: 43.75em) {   /* 700px */
    main .details .image img {
        width: 37.5rem;   /* 600px */
        height: 37.5rem;   /* 600px */
    }
}

@media (min-width: 50em) {   /* 800px */
    main .details {
        grid-template-columns: 1fr 1fr;
    }

    main .details .image img {
        width: 23.5625rem;   /* 377px */
        height: 23.5625rem;   /* 377px */
    }
}

@media (min-width: 65.625em) {   /* 1050px */
    main .details .image img {
        width: 29.146875rem;   /* 466.35px */
        height: 29.146875rem;   /* 466.35px */
    }
}

@media (min-width: 78.125em) {   /* 1250px */
    main .details .image img {
        width: 33.75rem;   /* 540px */
        height: 33.75rem;   /* 540px */
    }
}
/* Main part end */


/* Related Products start */
.related-products {
    max-width: 85%;

    display: grid;
    grid-template-columns: 1fr;

    padding-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.related-products-header {
    margin-bottom: 2.125rem;
}

.products {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.product {
    max-width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 2rem;

    text-align: center;
}

.product .image-container {
    width: 100%;
    position: relative;
    height: 18.75rem;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    margin-bottom: 0.5rem;
}

.product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;

    transition: all 0.3s;
}

.products .image-container .button {
    width: 8.2698125rem;
    height: 3.1rem;
    opacity: 0;

    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background-color: transparent;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-left: 1.0625rem;
    padding-right: 1.0625rem;
    border: 0.0625rem solid #2e2e2f;

    transition: all 0.3s;
}


.products .image-container .button p {
    font-size: 0.8125rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 0.125rem;

    transition: all 0.3s
}


.products .product:hover .button{
    opacity: 1;
}

.products .button:hover {
    background-color: #2e2e2f;
}

.products .button:hover p {
    color: white;
}

.products .product:hover img {
    opacity: 0.3;
}

@media (min-width: 30em) {   /* 480px */
    .products {
        grid-template-columns: 1fr 1fr;
    }

    .product .image-container {
        height: 12.696875rem;   /* 203.15px */
    }
}

@media (min-width: 40.625em) {   /* 650px */
    .product .image-container {
        height: 18.1385625rem;   /* 290.217px */
    }
}

@media (min-width: 50em) {   /* 800px */
    .related-products-header h3 {
        font-size: 1.3125rem;
    }

    .products {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .product .image-container {
        height: 11.18125rem;   /* 178.9px */
    }
}

@media (min-width: 62.5em) {   /* 1000px */
    .product .image-container {
        height: 13.83125rem;   /* 221.3px */
    }
}

@media (min-width: 75em) {   /* 1200px */
    .product .image-container {
        height: 16.015625rem;   /* 256.25px */
    }
}
/* Related Products end */