@media screen and (max-width: 1440px) {

    .main_text {
        font-size: 2.5rem;
        justify-content: center;
    }
    .contact_box {
        font-size: 2rem;
    }

    .skills {
        align-self: flex-start;
        justify-self: flex-start;
    }

}
@media screen and (max-width: 1300px) {

    .main_content {
        column-gap: 6em;
    }

    .my_pic {
        margin-left: 72.5px;
    }

    .skills {
        align-self: flex-start;
        justify-self: flex-start;
    }

}

@media screen and (max-width: 1020px) {
    
    .my_pic {
        width: 320px;
        background-size: auto;
    }
}
@media screen and (max-width: 780px) {

    .langChange i::before {
        font-size: 1.25em;
      }
    .my_pic {
        margin-left: 0;
        background-position-y: 0px ;
        background-position-x: center;
        background-size: 360px;
        min-height: 360px;
        min-width: 360px;
    }
    
    .contact_box {
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0;
    }

    .boxes {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        height: 170vh;
    }

    .img-link {
        padding: 0 0 2em 0;
    }

    .my_pic img {
        height: 240px;
        margin-left: 50px;
        margin-top: 80px;
    }

    .menu {
        display: none;
        text-align: center;
        bottom: 0;
    }       

    .navbar-large {
        display: none;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3em;
        margin: 0;
        color: #000;
        text-align: center;
    }

    .proj-box2 img {
        padding: 15px;
    }

    .langChange {
        display: block;
    }

    a:target~.close-menu {
        display: none;
    }

    .close-menu:checked~html {
        overflow: hidden;
    }

    .proj-box2:first-child{
        font-size: 12px;
    }

    .close-menu-label::after {
        content: '☰';
        background: #f206af;
        color: #fff;
        width: 3rem;
        height: 3rem;
        text-align: center;
        line-height: 3rem;
        font-size: 3rem;
        position: absolute;
        z-index: 2;
        top: 2.35rem;
        left: 3.5rem;
        padding: 0.5rem;
        cursor: pointer;
    }

    .close-menu:checked~.close-menu-label::after{
        content: '✖';
        position: fixed;
    }
    .close-menu:checked~.menu{
        display: block;
    }
    .navbar {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        min-height: 100%;
    }
    .nav_items{
        display: flex;
        color: #000;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        height: 300px;
        font-size: 2rem;
        margin: 0 auto;
        list-style: none;
    }
    .nav_items2{
        display: flex;
        color: #000;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 100%;
        margin: 0 auto;
        list-style: none;
        padding: 0;
    }

    .nav_items a, i { 
        margin-left: 0;
        color: #000;
        font-size: 1.5em;
        margin: 0;
    }
    

    .main_content {
        flex-direction: column;
        column-gap: 0;
        margin: 0 auto;
        padding-top: 4em;
    }

    .projects_content {
        max-width: 1366px;
        min-width: 320px;
        margin: 0 auto;
        display: grid;
        grid-template: repeat(5, 1fr)/1fr 1fr;
        height: 200vh;
        justify-items: center;
        padding-right: 1em;
        padding-top: 20rem;
    }
    .proj-box2 {
        border: 1px solid #000;
        max-height: 180px;
        max-width: 150px;
        gap: 0em;
        border-radius: 10px;
        background-color: #d9d9d9;
        position: relative;
        padding: 0em;
    }

    .proj-box2 img {
        height: 140px;
    }

    .proj-box2 a {
        font-size: 12px;
    }
    .proj-box2 footer {
        padding: 1px;
    }
    .proj-box2:first-child footer {
        text-align: center;
    }
      
    .my_pic {
        margin-left: 0;
        background-position-y: 20px ;
        background-position-x: center;
        background-size: 320px;
        min-height: 340px;
        min-width: 300px;
    }
    
    .my_pic img {
        height: 240px;
        margin-left: 38px;
        margin-top: 45px;
    }
    
    .last_projects a:not(.box_footer a) {
        position: inline-block;
        padding: 0;
        margin: 0;
        text-decoration: none;
        color: #f206af;
        font-size: 2.5rem;
        font-style: italic;
    }
    
    .main_text {
        flex-direction: column;
        text-align: justify;
        column-gap: 1em;
        font-size: 1.6rem;
        padding: 1em 0 1em 0;
    }

    span {
        font-size: 24px !important;
    }

    .contact_box {
        flex-direction: row;
        text-align: start;
        justify-content: space-evenly;
        margin: 0;
    }

    .last_projects h1 {
        padding: 0;
        font-size: 3rem;
    }

    .last_projects {
        height: 180vh;
    }

    .proj-box {
        margin: 0;
        width: 300px;
        text-align: center;
    }

    .proj-box img {
        margin: 0;
        width: 240px;
        padding: 0;
    }
    .proj3 {
        align-self: center;
    }
    .proj2 {
        align-self: center;
    }
    .proj1 {
        align-self: center;
    }


    .boxes {
        flex-direction: column;
        align-items: center;
        justify-content: stretch;
        gap: 2em;
        margin: 0 auto;
        max-height: fit-content;
        min-height: 120vh;
        margin-bottom: 2em;
    }

    .img-link {
        padding: 0 0 1em 0;
    }
    .projLink {
        display: none;
    }
}
@media screen and (max-width: 321px) {

    .my_pic {
        background-size: 0;
    }

    .contact_box {
        width: 300px;
        flex-direction: column;
        padding-bottom: 1.5em;
    }

    .proj-box {
        height: 240px;
        width: 240px;
        position: relative;
        top: 0;
    }
    .proj-box a {
        padding: 0px;
        position: fixed;
    }
    .last_projects a:not(.box_footer a) {
        position: inline-block;
        padding-right: 0;
        text-decoration: none;
        color: #000;
        font-size: 2.5rem;
        font-style: italic;
    }

    .proj-box img {
        margin: 0;
        width: 160px;
        padding: 0;
    }

    .box_footer {
        display: none;
    }

}