@import '../../../root/css/root.css';

.materials-to-home-link_wrapper {
    margin: 0 0 50px 0;
}

/* ___MATERIALS-SECTION___ */
.materials-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 93px 0 110px 0;
}

.materials-main_wrapper {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 1810px;
}

@media all and (max-width: 1810px) {
    .materials-main_wrapper {
        display: flex;
        flex-direction: column;
        align-self: center;
        width: 100%;
    }
}

.materials-item-title {
    font-family: Exo2-Bold, sans-serif;
    font-size: 32px;
    font-weight: 100;
    color: var(--white-color);
}

/* ___materials-items___ */
.materials-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 var(--main-indent) 0 var(--main-indent);
}

.material-item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: calc(var(--main-indent)*0.5) 5px calc(var(--main-indent)*0.5)  5px;
    box-sizing: border-box;
    box-shadow: 1px 4px 30px 0 rgba(0,0,0,0.09);
}

.material-item-covering {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.material-item-text_wrapper {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.material-item-title {
    font-family: Exo2-Bold, sans-serif;
    font-size: 32px;
    font-weight: 100;
    color: var(--dark-text-color);
    align-self: flex-start;
    z-index: 1;
}

.material-item-subtext {
    font-family: Exo2-Light, sans-serif;
    font-size: 28px;
    font-weight: 100;
    color: var(--dark-text-color);
    margin: 5px 0 0 0;
}

.material-item-links_wrapper {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.material-item-download {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    margin: 0 0 20px 0;
}

.material-item-download-text {
    font-family: Inter-Medium, sans-serif;
    font-size: 28px;
    color: var(--blue-color);
    font-weight: 100;
    text-decoration: none;
    margin: 0 0 0 10px;
}

@media all and (max-width: 1610px) {
    .materials-to-home-link_wrapper {
        margin: 0 0 41px 0;
    }

    .materials-section {
        margin: 77px 0 91px 0;
    }

    .material-item-text_wrapper, .material-item-links_wrapper {
        padding: 33px;
    }

    .material-item-title {
        font-size: 26px;
    }

    .material-item-subtext {
        font-size: 23px;
    }

    .material-item-download {
        margin: 0 0 17px 0;
    }

    .material-item-download-image {
        width: 38px;
        height: 38px;
    }

    .material-item-download-text {
        font-size: 23px;
        margin: 0 0 0 8px;
        max-width: 340px;
    }
}

@media all and (max-width: 1450px) {
    .materials-to-home-link_wrapper {
        margin: 0 0 37px 0;
    }

    .materials-section {
        margin: 69px 0 75px 0;
    }

    .material-item-text_wrapper, .material-item-links_wrapper {
        padding: 30px;
    }

    .material-item-title {
        font-size: 23px;
    }

    .material-item-subtext {
        font-size: 21px;
    }

    .material-item-download {
        margin: 0 0 15px 0;
    }

    .material-item-download-image {
        width: 34px;
        height: 34px;
    }

    .material-item-download-text {
        font-size: 21px;
        margin: 0 0 0 7px;
    }
}

@media all and (max-width: 1240px) {
    .materials-to-home-link_wrapper {
        margin: 0 0 31px 0;
    }

    .materials-section {
        margin: 58px 0 64px 0;
    }

    .material-item-text_wrapper, .material-item-links_wrapper {
        padding: 25px;
    }

    .material-item-title {
        font-size: 20px;
    }

    .material-item-subtext {
        font-size: 18px;
    }

    .material-item-download {
        margin: 0 0 13px 0;
    }

    .material-item-download-image {
        width: 29px;
        height: 29px;
    }

    .material-item-download-text {
        font-size: 18px;
        margin: 0 0 0 6px;
    }
}


@media all and (max-width: 600px) {
    .materials-items {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .material-item {
        margin: 0;
    }
}