html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(8, 8, 8);
    color: white;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    max-width: 1920px;
}

a:link {
    color: rgb(197, 212, 255);
}

a:visited {
    color: rgb(202, 179, 255);
}

a:focus,
a:hover {
    color: rgb(200, 201, 255);
}

a:active {
    color: rgb(176, 171, 255);
}

h2 {
    font-size: 2.5rem;
    text-decoration: underline;
    text-align: center;
}

ul {
    list-style-position: inside;
    padding-left: 0;
}

header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    font-size: 2rem;
    height: 2em;
}

#my-skills-panel,
#about-me-panel,
#contact-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(26, 26, 26);
    border-left: 2px solid rgb(17, 17, 17);
    border-right: 2px solid rgb(17, 17, 17);
    border-bottom: 4px solid rgb(17, 17, 17);
    height: 2em;
}

#my-skills-dropdown,
#about-me-dropdown,
#contact-dropdown {
    position: relative;
    display: inline-block;
}

#my-skills-dropdown,
#contact-dropdown {
    width: 20vw;
}

#about-me-dropdown {
    width: 60vw;
}

#my-skills-content,
#about-me-content,
#contact-content {
    display: none;
    position: absolute;
    background-color: rgb(39, 39, 39);
    z-index: 1;
    padding: .5em;
    font-size: .5em;
    box-sizing: border-box;
    width: 100%;
}

#my-skills-dropdown:hover #my-skills-content,
#about-me-dropdown:hover #about-me-content,
#contact-dropdown:hover #contact-content {
    display: block;
}

#my-skills-panel:hover,
#about-me-panel:hover,
#contact-panel:hover,
#my-skills-dropdown:hover #my-skills-panel,
#about-me-dropdown:hover #about-me-panel,
#contact-dropdown:hover #contact-panel {
    background-color: rgb(39, 39, 39);
    border-bottom: 4px solid rgb(39, 39, 39);
}

#my-skills-content ul,
#contact-content ul,
#my-skills-content h3,
#contact-content h3 {
    text-align: center;
}

div#introduction {
    display: grid;
    grid-template-areas:
        "selfdescription imageofme";
    grid: 649px / auto 50vw;
    overflow: hidden;
    font-size: 2rem;
    text-align: center;
    margin: 50px;
}

#introduction h1 {
    font-size: 4em;
    font-weight: 580;
    margin: 1rem 1rem .25em 1rem;
    line-height: 1.1em;
}

#intro-text {
    margin: auto auto;
}

#intro-text p {
    margin: auto 0;
}

#image-of-me {
    object-fit: contain;
    height: 100%;
    margin: 0 auto;
}

#project-header {
    height: 1.5em;
    margin: 50px 15px 40px;
    border: 4px solid gray;
    text-align: center;
    font-size: 4rem;
    font-weight: 650;
}

#project-header p {
    height: 1.5em;
    margin: auto 0;
    text-decoration: underline;
}

span.portfolio-header-arrow {
    font-size: 3em;
    font-weight: 800;
}

#port-type-buttons {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    margin: 30px 23vw 15px;
}

.type-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 550;
    margin: 0 50px;
    width: 0;
}

.type-button:hover {
    font-weight: 650;
}

#project-list {
    display: flex;
    flex-flow: wrap;
    justify-content: space-around;
    margin: 0 5vw;
}

.project {
    flex: 0 0 400px;
    margin: 10px 5px;
    font-size: 1rem;
    border: 8px solid rgb(22, 22, 22);
    background-color: rgb(22, 22, 22);
}

.project img {
    width: 100%;
}

.piece-title {
    font-size: 1.5em;
    margin: .3em;
}

.piece-description {
    margin: .3em;
}

hr.gallery {
    margin: 30px 3vw;
}

footer {
    text-align: center;
    background-color: rgb(26, 26, 26);
    font-size: 1rem;
    height: 3em;
    display: flex;
    justify-content: center;
    border-top: 4px solid rgb(17, 17, 17);
    margin-top: 30px;
    padding-bottom: 1rem;
}

footer p {
    height: 1rem;
    margin: auto 0;
    line-height: 1rem;
}

@media screen and (max-width: 1650px) {
    div#introduction {
        display: grid;
        grid-template-areas:
            "selfdescription"
            "imageofme";
        grid: auto auto / auto;
        overflow: hidden;
        font-size: 1.5rem;
        margin: 0 20px;
    }

    #image-of-me {
        width: 700px;
    }

    #intro-text {
        margin: 0 auto 10px;
    }

    #intro-text h1 {
        font-size: 2.5em;
    }

    #project-header {
        font-size: 3rem;
    }

    .type-button {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 1038px) {

    #my-skills-panel,
    #about-me-panel,
    #contact-panel {
        font-size: 1.7rem;
    }

    #my-skills-content,
    #about-me-content,
    #contact-content {
        font-size: .5em;
    }
}

@media screen and (max-width: 900px) {

    #my-skills-panel,
    #about-me-panel,
    #contact-panel {
        font-size: 1.4rem;
    }

    #my-skills-content,
    #about-me-content,
    #contact-content {
        font-size: .45em;
    }

    div#introduction {
        display: grid;
        grid-template-areas:
            "selfdescription"
            "imageofme";
        grid: auto auto / auto;
        overflow: hidden;
        font-size: 1.25rem;
        margin: 0 20px;
    }

    #image-of-me {
        width: 83%;
    }

    #intro-text {
        text-align: center;
    }

    #intro-text h1 {
        font-size: 2em;
    }

    #intro-text p {
        margin: auto 0;
    }

    #project-header {
        font-size: 2.5rem;
        margin: 20px;
    }

    #port-type-buttons {
        margin: .5em;
    }

    .type-button {
        margin: 20px;
        font-size: 2.25rem;
    }

    footer p {
        height: 1rem;
    }
}

@media screen and (max-width: 580px) {

    #my-skills-panel,
    #about-me-panel,
    #contact-panel {
        font-size: 1.2rem;
    }

    #my-skills-content,
    #about-me-content,
    #contact-content {
        font-size: .35em;
    }

    #intro-text {
        font-size: .9em;
        text-align: center;
    }

    #intro-text h1 {
        font-size: 2em;
    }

    .type-button {
        font-size: 1.75rem;
    }

    footer {
        font-size: .85rem;
    }
}