

body {
    margin: 0;
    font-family: roboto;
    font-weight: 300;
    background-color: #BAC7CA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

h1 {
    font-family: 'DM Serif Display';
    text-align: center;
    font-weight: 400;
    font-size: 5.5em;
    color: #424B54;
    margin: 0;
}
header h2 {
    text-align: center;
    margin: 0;
    font-weight: 100;
    font-size: 1.25em;
    letter-spacing: 0.85em;
}
header{
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
}

h1 a {
    text-decoration: none;
    color: #424B54;
    transition: 0.3s;
}

h3 a {
    font-family: 'DM Serif Display';
    text-decoration: none;
    text-align: center;
    font-weight: 400;
    font-size: 2.5em;
    color: #424B54;
    margin: 0;
    transition: 0.3s;
}

h3 a:hover {
    color: #A53F2B;
    transform: translateX(-1em);
}

nav ul {
    text-align: center;
    padding: 0;
    margin: 0;
}

nav {
    position: sticky;
    top: 0px;
    background-color: white;
    padding: 2em 0 2em 0;
}

nav li {
    display: inline;
}

nav li a {
    text-decoration: none;
    font-weight: 300;
    font-size: 1.5em;
    color: #424B54;
    margin: 1.5em 2em 1.5em 2em;
}

header a:hover {
    color: #A53F2B;
    transform: translateX(-1em);
}

button {
    border: none;
    background: none;
    transition: 0.25s;
}

button:hover {
    transform: translateY(-0.1em);
}

#photo {
    max-width: 100%;
    height: auto;
}
.portion h2 {
    display: inline-block;
    flex-basis: 800px;
    font-family: "DM Serif Display";
    text-align: center;
    font-weight: 400;
    font-size: 8em;
    color: #424B54;
    margin: 0 0 0.4em 0;
}

.portion {
    margin: 3em auto 0 auto;
    width: 90%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: space-between;
}
.portion section {
    text-align: center;
    margin: 0 1em ;
    flex-basis: 800px;
    padding: 1em;
}

.portion p {
    margin: 0 auto;
    font-size: 1.4em;
    color: #424B54;
}

.portion li {
    margin: 0 auto;
}

.icon {
    width: 125px;
    height: 125px;
}

#projects {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 90%;
}

.project {
    width: 20em;
    height: 20em;

}
#languages {
    color: white;
    letter-spacing: 1em;
    line-height: 5em;
    text-align: center;
}

.fab {
    transition: 0.3s;
    text-decoration: none;
    font-family: "Roboto";
}
.fab:hover {
    color: #A53F2B;
}

.fas {
    transition: 0.3s;
    text-decoration: none;
    font-family: "Roboto";
}

.fas:hover {
    color: #A53F2B;
}


footer {
    width: 90%;
    height: 100px;
    margin: 6em auto;
}

#contact p {
    text-align: center;
    list-style-type: none;
    line-height: 4em;
}

#contact p a {
    font-family: "Roboto";
    text-decoration: none;
    color: white;
    margin: 0 auto;
    font-size: 2em;
    font-weight: 100;
}

#contact a:hover {
    color: #A53F2B;
}

#contactlink {
    transition: 0s;
}

.subheading {
    margin: 0;
    flex-basis: 100%;
    font-size: 1.2em
}

#projects h2 {
    margin: 0;
}

@media (max-width: 1300px) {
    #contact p a {
        font-size: 1.5em;    
    }
    .portion {
        margin: 1.75em auto 0 auto;
    }
}

@media (max-width: 768px) {
    #bio {
        font-size: 1.2em;
    }
    #contact p a {
        font-size: 1em;    
    }

    .portion h2 {
        font-size: 6em;
    }
    h1 {
        font-size: 4em;
    }
    header h2 {
        font-size: 1.3em;
        letter-spacing: 0.5em;
    }
    h3 a {
        font-size: 2.5em;
    }
    .project {
        height: 18em;
        font-size: 0.8em;
    }
    .portion {
        margin: 0 auto 0 auto;
    }
    #languages {
        font-size: 1em;
    }
    #contact p {
        line-height: 3em;
    }
    footer {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .subheading {
        margin: 0;
        flex-basis: 100%;
        font-size: 0.9em;
        font-weight: 300;
        margin-bottom: 1.5em
    }
    #bio {
        font-size: 1.1em;
        line-height: 150%;
    }
    .portion section {
        width: 100%;
        margin: 0;
    }
    #contact p a {
        font-size: 0.7em;
        font-weight: 300;    
    }
    .portion h2 {
        font-size: 3em;
        margin: 0 0 0.3em 0;
    }
    .portion {
        margin: 0 auto 0 auto;
    }
    h1 {
        font-size: 2.8em;
    }
    nav {
        padding: 0.5em 0 0.5em 0;
    }
    header h2 {
        font-size: 0.9em;
        font-weight: 300;
        letter-spacing: 0.5em;
        margin: 0.1em 0 0.6em 0;
    }
    h3 {
        margin: 0.7em;
    }
    h3 a {
        font-size: 1.9em;
        margin: 0;
    }
    .project {
        height: auto;
        font-size: 0.8em;
        line-height: 200%;
    }
    nav ul li {
        font-size: 0.7em;
    }
    #languages {
        font-size: 0.7em;
    }
    #contact p {
        line-height: 1.5em;
    }
}

@media (max-width: 340px) {
    .portion h2 {
        font-size: 2.5em;
    }
}