/* ABOUT */

.about {
    text-align: center;
    background: #FFF;
    width: 80%;
    margin: auto;
    padding: 20px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    transition: 500ms;
    margin-top: 2rem;
}

.about h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    color: rgb(4, 75, 27);
}

.about p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

.about:hover {
    color: rgb(1, 94, 31);
}

/* TITULOS */

h4:not(.titleheader) {
    text-align: center;
    background: rgb(82, 241, 90);
    color: white;
    padding: 17px;
    width: 20rem;
    justify-content: center;
    display: block;
    margin: 20px auto 20px auto;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
    transition: 500ms;
}

h4:not(.titleheader):hover {
    background: #eceff4;
    color: rgb(82, 241, 90);
}

/* QUALIDADES */

.qualidades {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;
}

.box {
    padding: 50px 30px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    transition: all ease-in-out 0.3s;
    background: white;
    width: 15rem;
    max-height: 500px;
    float: left;
    margin-left: 25px;
    margin-right: 25px;
    font-size: 14px;
    line-height: 1.42857143;
    margin: 20px;
}

.box img {
    max-width: 130px;
    height: auto;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-style: none;
}

.box h5 {
    font-size: 1.5vw;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .box h5 {
        font-size: 5vw;
    }
}

.box p {
    text-align: center;
}

.box:hover {
    padding: 30px 30px 70px 30px;
    box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.18);
}

/* STATS */

@media screen and (max-width: 470px) {
    .stats {
        display: none !important;
    }
}

.stats {
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 80%;
    text-align: center;
    background: white;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    overflow: hidden;
    display: grid;
    grid-auto-flow: column;
}

.stats h5 {
    margin: 22px;
}

.stats span {
    font-size: 20px;
    color: rgb(82, 241, 90);
}

.projects {
    display: grid;
    margin-bottom: 20px;
}

.project {
    margin: auto;
    background: #FFF;
    width: 70%;
    display: grid;
    grid-auto-flow: column;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.project .left {
    padding: 5px;
    border: 1px solid rgb(82, 241, 90);
    margin-right: 20px;
    width: fit-content;
    height: fit-content;
    padding-bottom: 1px;
}

.project .left img {
    width: 100px;
    height: 100px;
}

.project .right h5 {
    margin: 0;
    font-size: 1.5rem;
}

.project .right .subtitle {
    font-size: 18px;
    margin-bottom: 8px;
}

.project .right .bottom {
    display: grid;
    grid-auto-flow: column;
}

.project .right .links a {
    font-size: 40px;
    margin-right: 10px;
}

.project .right .links a svg {
    width: 40px;
}

@media screen and (max-width: 700px) {
    .project {
        grid-auto-flow: initial;
        width: 90%;
    }

    .project .left {
        margin: auto;
    }

    .project .right h5 {
        text-align: center;
    }

    .project .right .links {
        text-align: center;
    }

    .project .right .bottom {
        grid-auto-flow: row;
    }

    .project .right .bottom div {
        margin: auto;
    }
}

@media (prefers-color-scheme: dark) {
    h4:not(.titleheader) {
        background: rgb(36, 134, 41);
        color: white;
    }

    h4:not(.titleheader):hover {
        background: rgb(31, 29, 29);
        color: rgb(82, 241, 90);
    }

    .about {
        background: rgb(31, 29, 29);
    }

    .about h2 {
        color: rgb(16, 212, 78);
    }

    .box {
        background: rgb(31, 29, 29);
    }

    .stats {
        background: rgb(31, 29, 29);
    }

    .project {
        background: rgb(31, 29, 29);
    }

    .project .left {
        border-color: rgb(36, 134, 41);
    }

    .project .right h5 {
        color: rgb(82, 241, 90);
    }
}