/* Browsers: last 4 version  */

.hero {
    background-image: url('../../img/2149449765.jpg');
    background-size: cover;
    height: calc(100vh - 250px);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.hero-text {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 0 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.hero-text h2 {
    font-size: 2.5rem;
}

.materials {
    width: 80vw;
    max-width: 80vw;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1rem;
    padding: 50px 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.material {
    width: 200px;
    height: 250px;
    min-width: 200px;
    min-height: 250px;
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    -webkit-transform: translateY(-5%);
    -ms-transform: translateY(-5%);
    transform: translateY(-5%);
}

.show-material {
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: translateY(0) !important;
    -ms-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

.material img {
    width: 100%;
    height: 80%;
    -o-object-fit: cover;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
}

.material h4 {
    text-align: center;
    font-size: 1.2rem;
    padding: 5px 0;
    color: var(--primary-color);
}

.material img:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

@media (max-width: 760px) {
    .hero-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 650px) {
    .hero-text {
        padding: 0 50px;
    }
}

@media (max-width: 500px) {
    .hero-text {
        padding: 0 25px;
    }

    .material h4 {
        font-size: 1rem;
    }
}

@media (max-width: 300px) {
    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text {
        padding: 0 15px;
    }
}