:root {
    --seagreen: #83DAD3;
    --mediumSeagreen: #31958c;
    --darkSeagreen: #0a504a;
}

body {
    font-family: "Nunito Sans", sans-serif;
    display: grid;
    min-height: 100vh;
    grid-template-columns: 14% 72% 14%;
    grid-template-rows: 70px 1fr 28px;
    margin: 0;
}

header {
    display: grid;
    grid-template-columns: subgrid;
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
    background-color: var(--seagreen);
}


nav, main, footer {
    grid-column-start: 2;
    grid-column-end: 3;
}

nav {
    height: 100%;
    display: grid;
    grid-template-columns: 15% 20% 30% 20% 15%;
}

.mobileMenu {
    display: none;
}

a {
    color: white;
    padding: 12px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    justify-self: center;
    align-self: center;
}

a:hover {
    color: var(--mediumSeagreen);
}

h1 {
    margin: 0;
    color: var(--darkSeagreen);
}

main {
    display: grid;
    grid-row-start: 2;
    grid-row-end: 3;
    grid-template-columns: 30% 70%;
    margin-top: 4%;
    margin-bottom: 4%;
}

#portfolioContent {
    width: 100%;
    justify-self: center;
    text-align: center;
}

#portfolioContent article {
    margin-bottom: 5vh;
}

#portfolioContent h2 {
    text-decoration: underline;
    font-size: 30px;
}

#portfolioContent article p {
    width: 80%;
    margin-top: 2.5%;
    justify-self: center;
}

img {
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
}

.roundedImg {
    border-radius: 2vw;
}

.smallImg {
    width: 30%;
}

.icon {
    display: none;
    width: 32px;
    justify-self: flex-end;
    align-self: center;
    margin-right: 16px;
}

section {
    grid-column-start: 2;
    grid-column-end: 3;
}

#bio {
    padding-left: 5%;
}

form, article {
    grid-column-start: 1;
    grid-column-end: 3;
}

form {
    font-size: 20px;
    font-weight: 500;
    display: grid;
    width: 70%;
    min-height: 400px;
    grid-template-rows: 40px 40px 40px 280px 40px;
    text-align: center;
    justify-self: center;
}

article {
    padding-inline: 5%;
}

label {
    align-self: center;
}

input, textarea, button {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    padding: 12px;
}

input {
    text-align: center;
}

input, textarea {
    border-style: solid;
    border-width: 1.5px;
    border-radius: 5px;
    border-color: var(--seagreen);
}

input:focus, textarea:focus {
    outline: solid var(--mediumSeagreen);
}

button {
    height: 100%;
    margin-top: 40px;
    font-size: 20px;
    display: inline-flex;
    align-self: center;
    justify-content: center;
    align-items: center;
    background-color: var(--seagreen);
    border-width: 0;
    border-radius: 1vw 1vw;
}

button:hover {
    cursor: pointer;
    color: white;
    background-color: var(--mediumSeagreen);
}

.notice {
    grid-column-start: 1;
    grid-column-end: 3;
    justify-self: center;
    text-align: center;
}

p {
    font-size: 18px;
    margin-top: 0;
}

#bio p:first-child, .notice p:first-child {
    font-size: 28px;
    margin-top: 0.5%;
    margin-bottom: 2%;
}

footer {
    grid-row-start: 3;
    grid-row-end: 4;
    justify-self: center;
}

@media (max-width: 1150px) {
    body {
        grid-template-columns: 2.5% 95% 2.5%;
    }

    nav {
        grid-template-columns: 15% 17% 36% 17% 15%;
    }
}

@media (max-width: 725px) {
    .desktopMenu {
        display: none;
    }

    .mobileMenu {
        display: grid;
    }

    .icon {
        display: grid;
    }

    .dropdown {
        grid-column-start: 1;
        grid-column-end: 6;
        height: 70px;
        display: inline-flex;
        font-size: 20px;
        justify-self: center;
        align-items: center;
    }

    .dropdown:hover {
        cursor: pointer;
    }

    .dropdownOptions {
        display: none;
        grid-column-start: 1;
        grid-column-end: 6;
        width: 100%;
        background-color: var(--darkSeagreen);
        z-index: 1;
    }

    .dropdownOptions a {
        width: 95%;
        text-align: center;
        border-bottom-style: solid;
        border-bottom-width: 2px;
        border-bottom-color: var(--seagreen);
    }

    .dropdownOptions a:hover {
        color: white;
        background-color: var(--mediumSeagreen);
    }

    .show {
        display: grid;
    }

    main {
        grid-template-columns: 100%;
        grid-template-rows: 0.25fr 0.25fr;
    }

    section {
        grid-column-start: 1;
        grid-column-end: -1;
    }

    #bio {
        padding-inline: 2.5%;
    }

    .roundedImg {
        max-height: 50vh;
        max-width: 100vw;
        height: auto;
        width: auto;
        grid-row-start: 1;
        grid-row-end: 2;
        justify-self: center;
        margin-bottom: 24px;
    }

    #bio {
        grid-row-start: 2;
        grid-row-end: 3;
    }

    form {
        width: 85%;
    }
}