body{
    background: linear-gradient(to right, #333333, #a8a8a8);
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.mainDiv{
    display: flex;
    justify-content: space-between;
    padding-bottom: 15em;
}

.transition {
    background: linear-gradient(45deg, white 50%, transparent 50%) left calc(50% + 0px) bottom no-repeat, linear-gradient(-45deg, white 50%, transparent 50%) left calc(50% - 0px) bottom no-repeat, url(../img/01.jpg);
    height: 5em; 
    width: 100%;
}
  

.titleHeader{
    margin-left: 7.5em;
    margin-top: 7.5em;
    color: white;
    display: inline-block;
    width: 40%;
}

.titleHeader #title1{
    font-size: 2em;
    margin-bottom: 0.5em;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    text-transform: uppercase;
}

.titleHeader #title2{
    font-size: 4em;
    margin: 0;
    text-transform: uppercase;
    
}

.titleHeader #title3{
    font-size: 4em;
    margin: 0;
    text-transform: uppercase;
}

.titleHeader #title4{
    font-size: 4em;
    margin-bottom: 0.5em;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    text-transform: uppercase;
}

.titleHeader #p1{
    margin: 0;
    width: 50%;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75em;
}

.lastLine{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lastLine a img{
    width: 4em;
    height: 4em;
    filter: contrast(40%);
    transition: 0.2s;
}

.lastLine a:hover img, .lastLine a:focus img {
    filter: contrast(100%);
}


.menu {
    margin-top: 5em;
    color: white;
    margin-left: auto; 
    margin-right: 10em;
    border-left: 2px solid white;
}

ul p{
    text-transform: uppercase;
}

li{
    list-style-type: none;
    margin-bottom: 0.5em;
}

li a{
    text-decoration: none;
    text-transform: uppercase;
    color: black;
    filter: contrast(25%);
}

li a:hover, li a:focus{
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    filter: contrast(100%);
}

.portfolio{
    background: white;
    width: 100%;
    padding: 2em;
    padding: 0;
    padding-bottom: 5em;
    display: flex;
    flex-direction: column;
}

.portfolio .portfolioProjects{
    display: flex;
    justify-content: space-between;
    padding-bottom: 5em;
    padding-bottom: 0;
}

.portfolioProjects > div, .portfolioGames > div{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1em;
}

.portfolioProjects img{
    width: 100%;
    height: auto;
}

.portfolio .portfolioGames {
    display: flex;
    justify-content: space-between; 
}

.portfolioGames img{
    width: 100%;
    height: auto;
}

.portfolio a{
    text-decoration:underline;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: gray;
    border: solid transparent 2em;
    margin-left: 3em;
    text-align: center;
}

.portfolio a:hover, .portfolio a:focus{
    color: black;
}

footer {
    background-color: #333333; 
    color: white; 
    padding: 1em 0; 
    display: flex;
    justify-content: center;
    align-items: center;
}

footer div {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    margin: 0; 
}

/* Media Query para telas menores que 910px */
@media (max-width: 910px) {
    .mainDiv {
        flex-direction: column;
        align-items: center;
    }

    .titleHeader{
        margin: 4em 0 0 0;
    }

    .titleHeader #title1{
        text-align: center;
        font-size: 1.25em;
        padding-bottom: 2em;
    }

    .titleHeader #title2{
        text-align: center;
        font-size: 2em;
        
    }

    .titleHeader #title3{
        text-align: center;
        font-size: 2em;
    }

    .titleHeader #title4{
        text-align: center;
        font-size: 2em;
    }

    .titleHeader .lastLine{
        padding-top: 2em;
        text-align: center;
        display: block;
    }

    .titleHeader .lastLine #p1{
        padding-bottom: 3em;
        width: 100%;
    }

    .menu {
        margin-top: 2em;
        margin-left: 0;
        margin-right: 0;
        border-left: none;
        border-top: 2px solid white;
        padding-top: 1em;
        text-align: center;
        justify-content: ce;
    }

    .menu ul{
        padding: 0;
    }

    .menu a{
        color: white;
    }

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

    .portfolio .portfolioGames {
        flex-direction: column;
        margin-top: 2em;
        align-items: center;
    }

    .portfolioProjects > div,
    .portfolioGames > div {
        margin-bottom: 2em;
    }

    .portfolioProjects img,
    .portfolioGames img {
        width: 100%;
    }
}