* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* webkit-tap-highlight-color: transparent; */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 172px; /*offset navigation to account for height of navbar*/
}

.navbar {
    position: fixed;
    width: 100%;
    height: 120px;
    background-color: #274060;
    z-index: 2;
}

.mobile-nav {
    position: fixed;
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 120px;
    background-color: #274060;
    z-index: 2;
    text-align: center;
}

.nav-container {
    max-width: 2000px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-button {
    margin-top: 40px;
    display: none;
    order: 2;
    flex-direction: column;
    justify-content: space-between;
    align-self: center;
    width: 75px;
    height: 55px;
    border-radius: 25px;
}

.bar {
    height: 8px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}

.logo {
    order: 1;
    margin-top: 50px;
}

.logo a {
    display: flex;
}

.logo img {
    max-width: 130px;
}

.logo span {
    font-size: 40px;
    margin: auto .5rem auto 1rem;
}

.nav-menu {
    margin-top: 50px;
    order: 2;
}

.navbar ul li {
    list-style: none;
}

.navbar a,
.mobile-nav a {
    font-family: Arial;
    font-size: 40px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 20px;
    padding: .5rem 1rem;
    transition: 0.2s ease 0s;
}

.mobile-nav a {
    display: block;
    border-radius: 0;
}

.nav-menu a:hover,
.toggle-button:hover,
.mobile-nav a:hover {
    background-color: #304c70;
    cursor: pointer;
}

.nav-menu a:active,
.toggle-button:active,
.mobile-nav a:active {
    background-color: #274060;
}

.nav-offset {
    position: absolute;
    margin-top: 120px;
    width: 100%;
}

.background {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #335c81;
}

.container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 1360px;
    text-align: center;
    background-color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

h1,
p {
    font-family: "EB Garamond", Times;
}

h1 {
    font-size: 44px;
}

h2 {
    font-family: Arial;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1rem;
}

p {
    font-size: 22px;
    margin: 2rem;
    text-align: left;
}

.header-is-inline {
    display: flex;
    flex-direction: row;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: -4.7rem;
}

.icon-container {
    display: flex;
    height: 150px;
    width: 150px;
    background-color: #e9e9e9;
    border-radius: 50%;
    z-index: 1;
    justify-content: center;
    align-content: center;
}

.icon-container img {
    width: 90px;
    align-self: center;
}

.header-container {
    background-color: #e9e9e9;
    height: 100px;
    align-self: center;
    /* Move text towards the right and offset the element to the left to overlap with circular icon container */
    position: relative;
    left: -2rem;
    padding-left: 2rem;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}   

.header-container h1 {
    margin: 1rem 2rem 1rem 1rem;
}

.aboutme-container {
    background-color: #e9e9e9;
    margin: 1rem 5rem;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}

/* two projects per row */
.two-project-container {
    display: flex;
    margin: 1rem 5rem;
    flex-direction: row;
    justify-content: space-between;
}

.project-container {
    display: flex;
    flex-direction: column;
    width: 45%;
    margin-bottom: 1rem; 
}

.project-title {
    background-color: #4b4b4b;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}

.project-title p {
    font-family: Arial;
    text-align: center;
    font-size: 24px;
    color: white;
}

.project-preview {
    width: 100%;
    max-width: 100%;
    height: 300px;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}

.project-description {
    background-color: #e9e9e9;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}

.tools-container,
.skills-container {
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin-bottom: 1rem;
}

.tools-container div:nth-child(2),
.tools-container div:nth-child(3)
.tools-container div:nth-child(4),
.skills-container div:nth-child(2),
.skills-container div:nth-child(3),
.skills-container div:nth-child(4) {
    margin-left: 1rem;
}

.tool-used {
    background-color: #335c81;
    color: white;
    font-weight: bold;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}

.skill-learned {
    background-color: #ffe599ff;
    color: black;
    font-weight: bold;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    border-radius: 5px;
}

.tool-used p,
.skill-learned p {
    font-family: arial;
    text-align: center;
    font-size: 18px;
    margin: 1.5rem;
}

.github-link-container {
    display: flex;
    flex-direction: row;
    background-color: #e9e9e9;
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
}

.github-link-container img {
    width: 50px;
    height: 50px;
    margin: 1rem 1rem 1rem 2rem;
}

.github-link-container p {
    font-family: arial;
    font-size: 20px;
    margin-left: 0;
}

.github-link-container a {
    color: #4a86e8;
    font-weight: bold;
}

.resume-container {
    margin: 1rem 0;
}

.resume-container img {
    box-shadow: 4px 4px 4px rgb(179, 179, 179);
    max-width: 90vw;
}

.contact-container {
    text-align: left;
    margin: 1rem 5rem 3rem 5rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    font-family: "EB Garamond", Times;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial;
    font-size: 20px;
    margin-bottom: 1rem;
}

input[type="submit"] {
    background-color: #335c81;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial;
    font-size: 18px;
}

input[type="submit"]:hover {
    background-color: #517da3;
}

.footer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    background-color: #000000;
}

.footer p,
.footer p2 {
    font-family: Arial;
    font-size: 14px;
    color: white;
    text-align: center;
}

.footer p,
.image-space {
    margin: 1rem 0rem;
    align-self: center; 
}

.footer a {
    margin: 0rem 1rem;
}

.footer a img {
    max-width: 50px;
}

@media (max-width: 1400px) {

    html {
        scroll-padding-top: 145px; 
    }

    .mobile-nav.active {
        display: flex;
    }

    .nav-menu {
        display: none;
        order: 2;
    }

    .toggle-button {
        display: flex;
        order: 3;
    }

    .nav-container ul {
        width: 100%;
    }

    .logo a img {
        display: none;
    }

    .logo span {
        font-size: 28px;
    }

    .mobile-nav a {
        font-size: 24px;
    }

    .header-is-inline {
        margin-left: 0rem;
        justify-content: center;
    }

    .icon-container {
        display: none;
    }

    .header-container {
        align-self: center;
        left: 0rem;
        padding-left: 0rem;
    }

    .header-container h1 {
        margin: 1rem 2rem;
    }

    .aboutme-container {
        background-color: #e9e9e9;
        margin: 1rem;
        box-shadow: 4px 4px 4px rgb(179, 179, 179);
    }

    .two-project-container {
        flex-direction: column;
        margin: 1rem;
    }

    .project-container {
        width: auto;
    }

    .project-preview {
        width: 100vw;
        height: 100%;
    }

    .github-link-container img {
        margin-top: 2rem;
    }

    .contact-container {
        margin: 1rem;
    }
}