section.granex {
    max-width: 100%;
    width: 100%;
    height: 654px;
    position: relative;
    margin-top: 0;
    overflow: hidden;
    align-items: center;
    background-image: url("../assets/granex/granex_main_back.svg");
    background-size: cover;
    background-color: #f9f9f9;
}

.granex-circle {
    width: 854px;
    height: 854px;
    background-color: var(--granex-color);
    position: absolute;
    right: -200px;
    border-radius: 3000px;
}

.granex-arrow {
    width: 126px;
    height: 126px;
    position: absolute;
    left: 44%;
    top: 60px;
}

.granex-arrow img {
    width: 100%;
    height: 100%;
}

section.granex .granex-content {
    max-width: 1490px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}


.granex-content-left {
    max-width: 500px;
    width: 34%;
    margin-right: 30px;
    margin-left: 15px;
    position: relative;
    bottom: 60px;
}

.granex-content-left-text {
    margin-bottom: 30px;
}

.granex-content-left-text h1 {
    font-size: 90px;
}

.granex-content-left-text p {
    font-size: 30px;
}

.granex-content-left-imgs {
    display: flex;
    justify-content: flex-start;
}

.granex-content-left-imgs img {
    margin: 0 15px;
    height: 75px;
    
}

.granex-content-right {
    width: 60%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.granex-content-right img {
    max-width: 602px;
    width: 70%;
    position: relative;
    top: 100px;
}

.granex-hand-texts {
    width: 30%;
    max-width: 268px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* left: 45px; */
    top: 50px;
}


.granex-hand-text-block {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #ffff;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: -3px 3px 50px 0px rgba(158, 158, 158, 0.4);
    z-index: 10;
    margin: 30px 0;
    position: relative;
}

.granex-hand-text-block-icon {
    width: 37px;
    height: 37px;
    background-color: black;
    border-radius: 20px;
    margin-right: 10px;
    position: relative;
}

.granex-hand-text-block-icon img {
    width: 31px;
    height: 31px;
    position: absolute;
    left: 2px;
    top: 5px;
}

.granex-hand-text-block p {
    width: 80%;
}


.granex-content-right .granex-hand-text-block:nth-of-type(2) {
    left: 30px;
}

.granex-content-right .granex-hand-text-block:nth-of-type(3) {
    left: 60px;
}


/* GRANEX WORKS */

section.granex-works {
    flex-direction: column;
}

section.granex-works h1 {
    margin-bottom: 65px;
}

.granex-works-cards-row {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.granex-works-card {
    max-width: 359px;
    width: 33%;
    height: 452px;
    border-radius: 30px;
    padding: 20px;
    box-shadow: -3px 3px 50px 0px rgba(158, 158, 158, 0.4);
    margin: 0 15px;
}

.granex-works-card img {
    width: 100%;
    height: 287px;
    border-radius: 10px;
}

.granex-works-card p {
    text-align: center;
    height: calc(100% - 287px);
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 20px;
}


/* GRANEX COMPONENTS */

section.granex-components {
    max-width: 100%;
    width: 100%;
    padding: 70px 10px;
    background-image: url("../assets/granex/granex_main_back.svg");
    background-color: #f9f9f9;
    background-size: cover;
}

.granex-components-content {
    width: 100%;
}

.granex-components-content h1 {
    margin-top: 0px;
}

.granex-components-main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.granex-components-main img {
    width: 507px;
}

.granex-components-blocks-left-container * {
    text-align: end;
}

.granex-components-blocks-right-container * {
    text-align: start;
    position: relative;
    bottom: 10.5px;
}

.granex-components-blocks-left-container,
.granex-components-blocks-right-container {
    max-width: 550px;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.granex-components-blocks-left-container {
    max-width: 450px;
    width: 40%;
}

.granex-components-block {
    display: flex;
    margin: 15px 0;
    position: relative;

}

.granex-components-block img {
    width: 59px;
    height: 59px;
    margin: 0 10px;
}

.granex-components-block h4 {
    font-size: 21px;
}

.granex-components-block p {
    font-size: 16px;
    color: var(--p-color);
}

.granex-components-blocks-left-container .granex-components-block:nth-of-type(1) {
    left: 125px;
}

.granex-components-blocks-left-container .granex-components-block:nth-of-type(2) {
    left: 65px;
}

.granex-components-blocks-left-container .granex-components-block:nth-of-type(3) {
    left: 65px;
}

.granex-components-blocks-left-container .granex-components-block:nth-of-type(4) {
    left: 105px;
}

.granex-components-blocks-right-container .granex-components-block:nth-of-type(1) {
    right: 125px;
}

.granex-components-blocks-right-container .granex-components-block:nth-of-type(2) {
    right: 55px;
}

.granex-components-blocks-right-container .granex-components-block:nth-of-type(3) {
    right: 55px;
}

.granex-components-blocks-right-container .granex-components-block:nth-of-type(4) {
    right: 105px;
}


/* GRANEX SPRAY */

section.granex-spray {
    justify-content: space-evenly;
    flex-direction: initial;
}


.granex-spray-foam-img:nth-of-type(1) {
    display: none;
}

.granex-spray-texts {
    width: 45%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 40px;
}

.granex-spray-texts h1 {
    font-size: 45px;
    margin-bottom: 20px;
}

.granex-spray-texts p:nth-of-type(1) {
    font-size: 25px;
    margin-bottom: 40px;
}

.granex-spray-imgs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.granex-spray-imgs img:nth-of-type(1) {
    max-width: 296px;
    width: 70%;
}

.granex-spray-imgs img:nth-of-type(2) {
    width: 30%;
    height: 124px;
    position: relative;
    margin-bottom: 70px;
    margin-left: 10px;
}



/* GRANEX SPRAY-FOAM */

section.granex-spray-foam {
    width: 100%;
    max-width: 100%;
    background-image: url("../assets/granex/granex_main_back.svg");
    background-size: cover;
    background-color: #f9f9f9;
    flex-direction: column;
    padding: 65px 0;
}

section.granex-spray-foam h1 {
    margin-top: 0;
    margin-bottom: 50px;
}

.granex-spray-foam-content {
    width: 100%;
    max-width: 1190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.granex-spray-foam-content img {
    width: 320px;
    height: 480px;
}

.granex-spray-foam-blocks-left-container * {
    text-align: end;
}

.granex-spray-foam-blocks-left-container {
    max-width: 280px;
    width: 40%;
    display: flex;
    flex-direction: column;
    position: relative;
    bottom: 65px;
}


.granex-spray-foam-blocks-right-container {
    max-width: 280px;
    width: 40%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.granex-spray-foam-block {
    display: flex;
    margin: 65px 0;
    position: relative;
    align-items: center;
}

.granex-spray-foam-block img {
    width: 70px;
    height: 70px;
    margin: 0 20px;
}

.granex-spray-foam-block-texts p {
    font-size: 21px;
}

.granex-spray-foam-blocks-left-container .granex-spray-foam-block:nth-of-type(1) {
    left: 75px;
}

.granex-spray-foam-blocks-left-container .granex-spray-foam-block:nth-of-type(2) {
    left: 55px;
}

.granex-spray-foam-blocks-right-container .granex-spray-foam-block:nth-of-type(1) {
    right: 55px;
}

.granex-spray-foam-blocks-right-container .granex-spray-foam-block:nth-of-type(2) {
    right: 55px;
}


/* GRANEX HOW TO USE */

.how-to-use-steps-container {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    margin: 45px 0;
}

.how-to-use-step-block {
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-block-num {
    width: 55px;
    height: 55px;
    background-color: var(--granex-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    margin-bottom: 20px;
}

.step-block-num span {
    color: white;
    font-size: 38px;
}

.how-to-use-step-block h1 {
    font-size: 25px;
    margin-bottom: 15px;
    font-weight: 100;
}


.how-to-use-step-block p {
    font-size: 20px;
}


.how-to-use-video {
    width: 100%;
    height: 560px;
}

.how-to-use-video iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 1481px) {
    .granex-content-right > img {
        width: 65%;
    }

    .granex-hand-texts {
        width: 40%;
    }

    .granex-circle {
        right: -400px;
    }
}


@media (max-width: 1281px) {

    section.granex {
        max-width: 1190px;
        height: initial;
    }

    .granex-content {
        flex-direction: column;
    }

    .granex-content-left {
        bottom: initial;
        max-width: 1000px;
        width: 100%;
        margin: 0px 30px;
        margin-bottom: 30px
    }

    .granex-circle {
        bottom: -250px;
    }

    .granex-content-right {
        width: 100%;
        position: relative;
        bottom: 100px;
    }

    .granex-content-right > img {
        width: 60%;
    }

    
    .granex-arrow {
        position: relative;
        left: initial;
        top: initial;
    }
    
}

@media (max-width: 1081px) {
    /* granex-works */

    .granex-components-main {
        flex-direction: column;
    }

    .granex-components-main > img {
        margin: 30px 0;
        width: 90%;
        max-width: 507px;
    }

    .granex-components-block {
        left: initial !important;
        right: initial !important;
        align-items: center;
    }

    

    .granex-components-blocks-left-container .granex-components-block {
        flex-direction: column-reverse;
    }

    .granex-components-blocks-right-container .granex-components-block {
        flex-direction: column;
    }

    .granex-components-block-texts > h4 {
        margin-bottom: 20px;
    }

    .granex-components-block img {
        margin-bottom: 20px;
    }

    .granex-components-blocks-left-container * , .granex-components-blocks-right-container *{
        text-align: center;
        top: initial!important;
        bottom: initial!important;
    }

    .granex-components-blocks-left-container, .granex-components-blocks-right-container {
        max-width: 650px;
        width: 100%;
    }

    .granex-spray-foam-block-texts p{
        text-align: center;
    }

    /* section.granex-spray */

    section.granex-spray {
        flex-direction: column;
    }

    .granex-spray-texts {
        margin-right: 0;
        margin-bottom: 75px;
        width: 100%;
        max-width: 800px;
    }

    .granex-spray-imgs {
        max-width: 430px;
        width: 100%;
    }


    /* granex-spray-foam */

    .granex-spray-foam-content img {
        max-width: 320px;
        width: 90%;
    }

    .granex-spray-foam-img:nth-of-type(1) {
        display: inline-block;
    }

    .granex-spray-foam-img:nth-of-type(2) {
        display: none;
    }


    .granex-spray-foam-content {
        justify-content: center;
        flex-direction: column;
    }

    .granex-spray-foam-block {
        left: initial!important;
        right: initial!important;
        margin: 20px;
    }

    .granex-spray-foam-block img {
        margin-bottom: 15px;
        
    }

    .granex-spray-foam-blocks-left-container .granex-spray-foam-block {
        flex-direction: column-reverse;
    }

    .granex-spray-foam-blocks-right-container .granex-spray-foam-block {
        flex-direction: column;
    }



    .granex-spray-foam-blocks-left-container , .granex-spray-foam-blocks-right-container{
        max-width: 900px;
        width: 95%;
        bottom: initial!important;
        top: initial!important;
    }
    
}


@media (max-width: 981px) {
    .h1-title {
        font-size: 35px;
    }

    /* granex-works */


    .granex-works-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .granex-works-card {
        width: 100%;
        margin: 35px 15px;
    }


    /* how-to-use */


    .how-to-use-steps-container {
        flex-direction: column;
        align-items: center;
    }

    .how-to-use-step-block {
        width: 90%;
        margin-bottom: 45px;
    }

}


@media (max-width: 701px) {
    .h1-title {
        font-size: 29px;
    }

    .granex-content-left-text h1 {
        font-size: 55px;
    }

    .granex-content-left-text p {
        font-size: 23px;
    }

    .granex-content-right {
        bottom: initial;
        flex-direction: column-reverse;
    }

    .granex-circle {
        bottom: 140px;
    }

    .granex-hand-text-block {
        left: initial!important;
    }

    .granex-hand-texts {
        width: 100%;
        max-width: 369px;
        top: initial;
        bottom: 100px;
    }

    .granex-content-right > img {
        width: 100%;
        left: 150px;
    }

    .granex-arrow {
        top: 70px;
        right: 100px;
    }
    
}


@media (max-width: 551px) {
    .granex-circle {
        right: -538px;
    }

    .granex-content-left-imgs {
        flex-direction: column;
        align-items: center;
    }

    

    .granex-content-left-imgs img {
        width: 100%;
        margin: 15px;
    }
  
}

@media (max-width: 451px) {
    .granex-circle {
        right: -635px;
    }

    .granex-spray-foam h1 {
        font-size: 25px;
    }
}


@media (max-width: 391px) {
    .granex-arrow {
        right: 60px;
    }

    .granex-circle {
        right: -701px;
    }

    .granex-spray-texts h1 {
        font-size: 41px;
    }
}