* {
    margin: 0;
    padding: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

a:hover {
    color: lightseagreen;
    transition: 0.3s;
}

nav {
    display: flex;
    background-color: black;
    height:max-content;
    color: whitesmoke;
    width: 100%;
    justify-content: right;
    align-items: center;
}

nav a {
    color: whitesmoke;
    margin: 1rem;
    font-size: 1.4rem;
    transition: 0.3s;
    text-decoration: none;
    margin-top: 2rem;
}

nav a:hover,
.logo-container:hover {
    color: lightseagreen;
    transition: 0.3s;
}

section,
header {
    height: 40rem;
}

p {
    font-size: 2rem;
}

h1 {
    font-size: 7vh;
    text-align: center;
}

h2 {
    font-size: 5vh;
    display: inline;
}

h3 {
    font-size: 2rem;
}

form {
    margin: 4rem 8rem 0 0;
}

.form-button {
    width: 8rem;
    height: 3rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer {
    display: flex;
    background-color: black;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    color: whitesmoke;
    justify-content: center;
    align-items: center;
}

textarea {
    resize: none;
    word-break: break-all;
    width: 30vw;
    height: 15vh;
    text-align: start;
    font-size: 1.2rem;
    padding: 10px;
}

.section-header {
    
    width: 40%;
    font-size: 3rem;
    margin: 4rem;
}

.section-content {
    width: 60%;
    text-align: left;
}

.section-content h3 {
    text-align: center;
}

.section-content img {
    text-align: center;
}

.form-child {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.form-child input {
    font-size: inherit;
    width: 60%;
    height: 2rem;
    padding: 4px;
}

.lightblue {
    background-color: lightskyblue;
}

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

.flex-box form {
    justify-content: center;
    align-items: center;
}

.flex-box p {
    margin-left: 4rem;
}

.flex-box h2 {
    margin: 0;
    margin-left: 4rem;
    text-align: left;
}

.flex-box-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-box-vertical-right-align {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.flex-box-reverse {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row-reverse;
}

.flex-box-reverse h2 {
    text-align: left;
    margin: 0;
}

.logo {
    width: 4rem;
    margin: 1rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-img {
    width: 20rem;
    border-radius: 0.6rem;
    margin: 1rem;
}

#profile-pic {
    margin: 2rem;
    width: 20rem;
    height: 20rem;
    border-radius: 10rem;
}
.overlay {
    height: 50%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 80%;
    text-align: right;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }
  
  .overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
  }
  
  .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }

  #menu-icon-container {
    display: none;
  }

  #nav-links-container {
    margin: 2rem 0;
  }

@media screen and (max-width: 500px) {
    h2 {
        font-size: 3rem;
        text-align: center;
        display: block;
    }
    #nav-links-container {
        display: none;
    }
    #menu-icon-container {
        display: block;
        margin: 1rem 1rem;
    }
    #menu-icon-container div {
        width: 40px;
        height: 7px;
        background-color: whitesmoke;
        margin: 6px 0;
        border-radius: 3px;
    }

    section {
        height: auto;
        padding: 10vh 1vw 10vh 1vw;
    }

    header {
        margin-bottom: 8vh;
        margin-top: 3vh;
    }

    .flex-box-reverse {
        flex-direction: column;
    }

    .flex-box-reverse h2 {
        text-align: center;
    }

    .flex-box {
        flex-direction: column;
        height: fit-content;
    }

    .flex-box p {
        margin: 0 5px 0 5px;
    }

    .flex-box h2 {
        margin: 0;
        text-align: center;
    }


    .section-header {
        padding-bottom: 5vh;
        width: auto;
    }

    .section-header p {
        text-align: center;
    }

    .section-content {
        width: 90%;
        text-align: center;
    }

    

    .flex-box form {
        margin: 0;
        width: 300px;
    }

    .form-child input,
    textarea {
        width: auto;
    }
}