@import "../base.css";

.about {
    width: 100%;
}

.about.hide {
    display: none;
}

.about .background {
    background: linear-gradient(
            rgba(41, 40, 39, 0.4),
            rgba(58, 57, 56, 0.3),
            rgba(49, 48, 47, 0.2),
            rgba(48, 46, 45, 0.1)
        ),
        url("../../images/about/about_background.webp") no-repeat;
    background-size: cover;
    height: 44vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .background h1 {
    color: var(--bg);
    font-size: 4vw;
    font-weight: 500;
}

.about .about-container {
    width: 100%;
    height: 40vw;

    display: flex;

    margin-top: 5%;
}

.about .about-container .text,
.about .about-container .image {
    width: 50%;
    height: 100%;
    padding: 5% 3%;
}

.about .about-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about .about-container .text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about .about-container .text h1 {
    text-align: center;
    margin-bottom: 10%;
    color: var(--main);
    font-weight: 600;
    font-size: 3vw;
}

.about .about-container .text .points {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.about .items {
    width: 100%;
    height: 35vw;

    margin-top: 5%;

    display: flex;
    justify-content: space-evenly;
}

.about .items .item {
    width: 30%;
    height: 100%;
}

.about .items .item .image {
    width: 100%;
    height: 50%;
}

.about .items .item .text {
    width: 100%;
    height: 50%;

    padding: 3% 1% 25% 1%;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;

    text-align: center;
}

.about .items .item .text h1 {
    font-weight: 500;
    font-size: 1.5vw;
    color: var(--main);
}

.about .items .item .text p {
    font-weight: 300;
    font-size: 1.2vw;
    color: var(--main);
}

.about .items .item .image img {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 900px) {
    .about .background {
        height: 60vw;
    }

    .about .background h1 {
        font-size: 8vw;
    }

    .about .about-container {
        flex-direction: column;
        height: 100%;
    }

    .about .about-container .text,
    .about .about-container .image {
        width: 100%;
        height: 50%;
    }

    .about .about-container .text h1 {
        font-size: 6vw;
    }

    .about .about-container .text p {
        font-size: 2.5vw;
    }

    .about .items {
        flex-direction: column;
        height: 100%;
        margin-top: 10%;
    }

    .about .items .item {
        width: 100%;
        height: 50%;
        margin: 10% 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about .items .item .image {
        width: 70%;
        height: 100%;
    }

    .about .items .item .image img {
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    }

    .about .items .item .text {
        height: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about .items .item .text h1 {
        font-size: 4vw;
        margin: 2% 0;
    }

    .about .items .item .text p {
        font-size: 3vw;
        width: 70%;
    }
}
