/*** ------------- RESPONSIVIDADE PARA MOBILE -----------------***/

:root{
    --primary-color: #5d1164; 
    --second-color: #210230;
}


/** IPHONE SE **/
@media screen and (max-width: 500px) {

    * title{
        margin-top: 2em;
    }

    header, section {
        padding: 0px 40px;
    }

    section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding-bottom: 20%;
    }


    nav {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    nav .bx-code-alt {
        display: none;
    }

    nav .bxs-sun {
        display: none;
    }

    nav .bxs-moon {
        display: none;
    }

    nav #mobile-menu {
        display: inline-flex;
        justify-content: end;
        width: 100%;
        z-index: 10;
    }

    nav #mobile-menu .bx-menu {
        display: block;
        font-size: 40px;
        cursor: pointer;
        color: #fff;
    }

    nav #mobile-menu .bx-x {
        display: block;
        font-size: 40px;
        cursor: pointer;
        color: #fff;
    }


    nav a {
        position: absolute;
        display: none;
        text-align: center;
        width: 100%;
        height: auto;
        padding: 8px;
        transform: none !important;
        transition: all ease-out .2s;
        opacity: 0;
    }

    .hover:hover{
        background-color: var(--second-color);
    }

    .secondHover:hover {
        background-color: var(--primary-color);
    }

    nav a.showMenu {
        position: static;
        display: block;
        transition: all ease-out .2s;
        opacity: 1;
    }

    .home {
        padding-top: 4em;
        height: 100%;
    }

    .home .me{
        width: 100%;
    }

    .home .me .social-media{
        justify-content: center;
    }

    .home .info-me .dados {
        height: 18em;
    }

    .home .info-me .image {
        display: flex;
        justify-content: center;
    }

    .home .info-me .computer {
        width: 20em;
    }

    .textAboutMe {
        width: 100%;
    }

    .sobre-mim {
        display: flex;
        flex-direction: column;
        padding: 0 2px;
        width: 100%;
    }

    .sobre-mim .texto {
        width: 100%;
    }

    .sobre-mim .texto p {
        margin: 30px 10px 0;
    }

    .historico .title {
        margin-top: 2em;
    }

    .historico .conteudo {
        grid-template-columns: repeat(1, 1fr);
        justify-content: baseline;
        column-gap: 6px;
    }


    .historico .info-modal-historico {
        margin: 0 40px;
    }

    .portfolio .info {
        margin-bottom: 6px;
    }

    .portfolio .fade {
        justify-content: center;
        align-items: center;
    }
    
    .portfolio .modal-fade {
        display: none;
    }

    .portfolio .info-fade {
        margin: 0 20px;
        border-radius: 4px;
        padding-bottom: 2rem;
        padding-top: 1rem;
        height: auto;
    }

}

@media screen and (max-width: 800px){
    .portfolio .content{
        display: flex;
        flex-direction: column;
        height: 100%;
      }
}

@media screen and (max-width: 930px) {
    nav {
        flex-wrap: wrap;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .sobre-mim {
        width: 100%;
    }

    .historico .conteudo {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-me {
        height: 100vh;
    }

}


@media screen and (max-width: 1100px) {
    .historico .conteudo {
        justify-content: baseline;
    }

    .me .info-me {

        height: 100vh;
    
    }
}