@media (max-width: 900px) {

    #mainSection,
    #s1,
    #s2,
    #s3,
    #s4 {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .texto,
    .img {
        width: 100%;
        text-align: center;
    }

    .img img {
        max-width: 80vw;
        height: auto;
    }

    #s1 h1 {
        margin-top: 1.5rem;
    }

    #s1 img {
        margin: 0;
    }

    .projetos {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #projeto2 .descricao {
        flex-direction: column-reverse;
    }

    .descricao {
        flex-direction: column;
        align-items: center;
    }

    #projeto1 .image {
        margin: 2rem 0;
        transform: none;
    }

    #projeto1 .image:hover {
        transform: none;
        box-shadow: -20px 20px 20px #000;
    }

    #projeto2 .image {
        margin: 2rem 0;
        transform: none;
    }

    #projeto2 .image:hover {
        transform: none;
        box-shadow: -20px 20px 20px #000;
    }

    #skills {
        flex-wrap: wrap;
        justify-content: center;
    }

    .skills-items {
        margin: 10px;
        min-width: 80px;
    }

    header #title {
        font-size: 1.5em;
        padding: 10px 0;
    }
}

@media (max-width: 600px) {
    #title {
        animation: animTitulo2 10s;
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        color: #fff;
        text-align: center;
        font-family: Lato;
        letter-spacing: 10px;
        padding-left: 10px;
        top: 0;
        font-weight: 300;
        font-size: 40px;
        margin-top: 0px;
        z-index: 100;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1em;
    }

    .img img {
        max-width: 100vw;
    }

    .descricao img {
        width: 95%;
    }

    footer {
        font-size: 0.9em;
        padding: 10px;
    }
}

@media (max-width: 750px) {
    .skills-items {
        font-size: 1rem;
    }
}

@media (max-width: 470px) {
    #skills {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .skills-items {
        width: 90%;
        max-width: 350px;
    }
}

@keyframes animTitulo2 {
    0% {
        opacity: 0;
        top: 60%;
        font-weight: 300;
        font-size: 40px;
        margin-top: -40px;
    }

    10% {
        opacity: 25%;
        top: 60%;
        font-weight: 300;
        font-size: 40px;
        margin-top: -40px;
    }

    20% {
        opacity: 50%;
        top: 60%;
        font-weight: 300;
        font-size: 40px;
        margin-top: -40px;
    }

    30% {
        opacity: 75%;
        top: 60%;
        font-weight: 300;
        font-size: 40px;
        margin-top: -40px;
    }

    40% {
        opacity: 100%;
        top: 60%;
        font-weight: 300;
        font-size: 40px;
        margin-top: -40px;
    }

    100% {
        top: 0;
        font-weight: 300;
        font-size: 30px;
        margin-top: 0px;
    }
}