@media screen and (min-width: 321px) and (max-width: 399px) {
    main {
        display: flex;
        flex-direction: column-reverse;
    }

    div#ladoesquerdo {
        height: 57%;
        z-index: 3;
    }

    div#titulo {
        margin: 4vh 12.5% 2vh 12.5%;
        line-height: 5vh;
    }

    div#ladoesquerdo h1 {
        text-align: center;
        font-size: 1.4em;
    }

    div#descricao {
        margin: 4vh 12.5% 3vh 12.5%;
        line-height: 3vh;
    }
    
    div#ladoesquerdo h2 {
        text-align: center;
        font-size: 1.2em;
        letter-spacing: 0.02em;
    }

    div#chamadaparaacao {
        display: flex;
        margin: auto;
        height: 6vh;
        width: 50%;
        justify-content: center;
        align-items: center;
        margin-top: 5vh;
        margin-bottom: 5vh;
    }
    
    div#redessociais {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 6vh;
    }

    a.botaoparaacao {
        font-size: 1.7vh;
    }
    
    div#redessociais img {
        width: 3em;
        height: 3em;
        margin-left: 1vw;
        margin-right: 1vw;
    }

    div#linkedin {
        margin-bottom: 1vh;
    }

    div#github {
        scale: 0.9;
        margin-bottom: 1vh
    }

    div#instagram {
        scale: 1;
        margin-left: 1vw;
    }

    div#youtube {
        scale: 1.1;
        margin-left: 1.4vw;
    }

    div#tiktok {
        scale: 1.1;
        margin-left: -1vw;
    }
    
    div#ladodireito {
        display: flex;
        text-align: center;
        justify-content: center;
        width: 100%;
        height: 43vh;
    }

    div#imagemdev {
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    picture#ricardoimg {
        position: relative;
        transition: transform 0.3s ease;
        animation: showimg 2.5s ease;
    }
    
    picture#ricardoimg img {
        border-radius: 50vh;
        width: 70%;
        height: 70%;
    }

    div#sobremim-esquerdo {
        height: 35vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    picture#imgsobremim img{
        width: 80%;
        margin:5vh 10% 0vh 10%;
        border-radius: 5%;
    }

    video#catdev {
        height: 95%;
        margin-top: 3vh;
        border-radius: 1vh;
    }

    div#sobremim-direito {
        padding: 7.5vh 6vw;        
    }

    div#sobremim-direito h2 {
        font-size: 1em;
        letter-spacing: 0.01em;
        line-height: 2.5vh;
        color: #57008e;
    }

    div#sobremim-direito h3 {
        font-size: 0.8em;
        letter-spacing: 0.02em;
        line-height: 2.2vh;
    }

    section#projetos {
        margin: 0vh;
        text-align: center;
        padding: 3vh 0vw;
    }

    section#projetos h3 {
        font-size: 1.5em;
        margin: 2vh 10vw;
    }

    section#projetos h4 {
        margin: 2vh 10vw;
        font-size: 1.1em;
        text-align: justify;
    }

    div#cabraproducoes {
        display: flex;
        margin: 2vh 0vh 3vh 0vh;
        flex-direction: column-reverse;
    }

    div#cabraproducoes-esquerdo {
        text-align: center;
        justify-content: center;
    }       
/*
    div#cabraproducoes-direito {
        display: flex;
        text-align: center;
        justify-content: center;
    }

    div#cabraproducoes-direito video {
        width: 80%;
        border-radius: 1em;
    }*/

    div#cabraproducoes-direito {
        display: flex;
        overflow: hidden;
        width: 65vw!important;
        margin-left: 17.5vw;
    }

    div#cabraproducoes-direito img {
        transition: transform 0.5s ease-in-out;
        width: 100%;
    }

    section#contato {
        margin: 0vh 2vh 0vh 2vh;
    }

    section#contato h2 {
        font-family: Mulish;
        text-align: center;
        color: #57008e;
        padding-bottom: 3vh;
        padding-top: 3vh;
        font-size: 1.3em;
    }

    section#contato h3 {
        font-family: Mulish;
        text-align: center;
        padding-bottom: 3vh;
        font-size: 1.1em;
    }

    section#contato h4 {
        font-family: Mulish;
        font-size: 0.8em;
        padding-top: 3vh;
        padding-bottom: 4vh;
    }

    form {
        font-family: Mulish;
    }

    .form-row {
        display: flex;
        padding-bottom: 1vh;
        justify-content: flex-end;
    }

    label {
        flex: 1;
        text-align: left;
        font-size: 0.8em;
        line-height: 3;
    }
    
    input[type=text], input[type=email]{
        font-family: Mulish;
        border-top: none;
        border-left: none;
        border-right: none;
        background-color: #fafafa;
        border-color: #57008e;
        width: 65vw;
        font-size: 0.8em;
        border-width: 0.5vh;
        border-radius: 1vh;
    }

    input[type=button] {
        margin: auto;
        color: #fafafa;
        background: #57008e;
        border: none;
        padding: 1em 3em;
        border-radius: 50vh;
        font-family: Mulish;
        font-size: 2vh;
        display: block;
    }

    textarea {
        font-family: Mulish;
        font-size: 0.8em;
        width: 100%;
        height: 32vh;
        border-top: none;
        border-left: none;
        border-right: none;
        border-color: #57008e;
        border-width: 0.5vh;
        border-radius: 1vh;
    }

    textarea::-webkit-scrollbar-thumb {
        height: 5vh;
    }

    div#retorno {
        font-family: Mulish;
        text-align: center;
        padding-top: 3vh;
        font-size: 0.9em;
    }

    footer#footer h3 {
        font-size: 0.8em;
    }
}