*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

p a:visited {
    color: inherit;
}

p a:active {
    color: inherit;
}

body{
    background-color: #ECECEC;
    padding-top: 60px;
    font-size: 20px;
}

nav{
    position: fixed;
    display: inline-block;
    top: 0;
    left: 0;
    right: 0;
    transition: top 0.3s;
    background-color: #3B8BEB;
    border-bottom: white solid 3px;
}

nav a{
    float: left;
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 20px;
    -webkit-transition: color 1s;
}

nav a:hover {
    color: #88bdff;
    -webkit-transition: color 1s;
}

#myLinks{
    flex-direction: row;
}

nav a.icon {
    display: inline-block;
    right: 0;
    top: 0;
}

#intro {
    display: inline-block;
    width: 95%;
    text-align: center;
    padding: 2% 2% 3%;
    color: #418eec;
    font-size: 25px;
}

#intro p{
    padding: 0% 25%;
    width: 50%;
}

.projects {
    display: inline-block;
    width: 95%;
    text-align: center;
    padding: 2% 2% 3%;
    color: white;
}

#projects-2 {
    display: inline-block;
    width: 95%;
    text-align: center;
    padding: 2% 2% 3%;
    color: white;
    grid-column: 1 / span 2;
}

.projects h2 {
    color: #3B8BEB;
}

.grid {
    display: grid;
    justify-content: justify;
    grid-gap: 20px;
    grid-template-columns: 50% 50%;
    padding: 10px;
}

.project {
    text-align: justify;
    background-color: #418eec;
    padding: 20px;
    font-size: 25px;
}

.project a {
    color: white;
    display: inline-block;
    text-align: center;
    width: 50%;
    background-color: #5d9be7;
    border-radius: 5px;
    margin: 5px 0;
    -webkit-transition: background 1s;
}

.project a:hover {
    color: white;
    display: inline-block;
    text-align: center;
    background-color: #8dbaf1;
    border-radius: 5px;
    margin: 5px 0;
    -webkit-transition: background 1s;
}

.project h3 {
    padding: 5px;
}

.project p {
    padding: 5px;
}

.project img {
    padding: 5px;
}

#about {
    display: inline-block;
    width: 95%;
    text-align: center;
    padding: 2% 2% 3%;
    color: #3B8BEB;
}

#lang {
    display: inline-block;
    width: 95%;
    text-align: center;
    padding: 2% 2% 3%;
    color: #3B8BEB;
}

#lang p {
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact {
    display: inline-block;
    width: 95%;
    text-align: center;
    padding: 2% 2% 3%;
    color: #3B8BEB;
}

#contact p {
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact p a {
    color: white;
    display: inline-block;
    text-align: center;
    padding: 5px;
    width: 50%;
    background-color: #5d9be7;
    border-radius: 5px;
    margin: 5px 0;
    -webkit-transition: background 1s;
    font-size: 23px;
}

#contact p a:hover {
    background-color: #8dbaf1;
    -webkit-transition: background 1s;
}

#contact p span {
    color: white;
    display: inline-block;
    text-align: center;
    padding: 5px;
    width: 50%;
    background-color: #5d9be7;
    border-radius: 5px;
    margin: 5px 0;
    -webkit-transition: background 1s;
    font-size: 23px;
}

#contact p span:hover {
    background-color: #8dbaf1;
    -webkit-transition: background 1s;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3B8BEB;
    color: white;
    height: 35px;
    width: 100%;
    font-size: 18px;
}

@media screen and (max-width: 670px) {
    nav a.home{
        display: inline;
        float: left;
    }

    nav a.icon{
        display: inline;
        float: right;
    }

    #myLinks{
        flex-direction: column;
        flex-basis: 100%;
        width: 100%;
    }

    #intro {
        font-size: 20px;
        padding: 3% 0%;
        width: 100%;
    }

    #intro p {
        padding: 0;
        width: 100%;
    }

    .projects {
        font-size: 20px;
        padding: 3% 0%;
        width: 100%;
    }

    .grid {
        grid-template-columns: auto;
        padding: 10px;
    }

    .project {
        padding: 5px;
        font-size: 20px;
    }

    .project a {
        width: 100%;
    }

    #about {
        font-size: 20px;
        padding: 3% 0%;
        width: 100%;
    }

    #about p {
        padding: 5px;
    }

    #lang {
        font-size: 20px;
        padding: 3% 0%;
        width: 100%;
    }

    #contact {
        font-size: 20px;
        padding: 3% 0%;
        width: 100%;
    }

    #contact p a {
        width: 80%;
    }

    #contact p span {
        width: 80%;
    }
}
