/* 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 */


/* Part two start */
main {
    max-width: 90%;

    display: grid;
    grid-template-columns: 1fr;

    margin-left: auto;
    margin-right: auto;
    margin-top: 6.25rem;
    margin-bottom: 6.25rem;
}

main .products {
    max-width: 100%;

    display: grid;
    grid-template-columns: 1fr;

    margin-top: 3.125rem;
}

main .product {
    max-width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 2rem;

    text-align: center;
}

main .image-container {
    width: 100%;
    position: relative;
}

main .product img {
    width: 18.75rem;   /* 300px */
    height: 18.75rem;   /* 300px */

    transition: all 0.3s;
}

main .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;
}

main .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
}


main .product:hover .button{
    opacity: 1;
}

main .button:hover {
    background-color: #2e2e2f;
}

main .button:hover p {
    color: white;
}

main .product:hover img {
    opacity: 0.3;
}

@media (min-width: 43.75em) {   /* 700px */
    main { 
        max-width: 75%;
    }

    main .products {
        grid-template-columns: 1fr 1fr;
    }
}
 
@media (min-width: 62.5em) {   /* 1000px */
    main {
        max-width: 85%;

        grid-template-columns: 1fr 3fr;
    }

    main .products {
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 1%;
    }

    main .products img {
        width: 14.02rem;
        height: 14.02rem;
    }
}

@media (min-width: 75em) {   /* 1200px */
    main {
        max-width: 90%;
    }

    main .products img {
        width: 16.25rem;
        height: 16.25rem;
    }
}
/* Part two end */