@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Black.ttf) format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Black\ Italic.ttf) format("truetype");
    font-weight: 800;
    font-style: italic;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Bold.ttf) format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Bold\ Italic.ttf) format("truetype");
    font-weight: 600;
    font-style: italic;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Medium.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Medium\ Italic.ttf) format("truetype");
    font-weight: 500;
    font-style: italic;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Book.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face{
    font-family: CircularStd;
    src: url(/CircularStd/Circular\ Std\ Book\ Italic.ttf) format("truetype");
    font-weight: 400;
    font-style: italic;
}

body {
    box-sizing: border-box;
    background-color: peachpuff;
    font-family: CircularStd, sans-serif;
    overflow-y: auto;
    margin-bottom: 4rem;
}

#fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: white;
    border-bottom-color: black;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    z-index: 1;
}

#navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    line-height: 3rem;
    margin-left: -0.2rem;
    margin-right: 1.2rem;
}

@media (min-width: 1278px) {
    #navbar {
        width: 1150px;
    }
}

.nav-left {
    float: left;
}

.nav-right {
    float: right;
}

.nav-item {
    display: inline-block;
    margin: 0.5rem 1.5rem;
    color: black;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.hamburger-button {
    height: 2rem;
    margin-top: 0.9rem;
    margin-right: 1.27rem;
    cursor: pointer;
}

.hamburger-menu-close-button {
    position: fixed;
    top: 1.2rem;
    right: 1rem;
    width: 1.5rem;
    filter: invert(99%) sepia(99%) saturate(0%) hue-rotate(138deg) brightness(110%) contrast(100%);
    cursor: pointer;
    z-index: 3;
    transition: 0.2s ease-in-out all;
}

.hamburger-menu-close-button:hover {
    filter: invert(86%) sepia(16%) saturate(443%) hue-rotate(138deg) brightness(99%) contrast(88%);
}

.hamburger-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.hamburger-menu-item{
    margin: 1rem 0rem;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: underline solid transparent;
    transition: 0.2s ease-in-out all;
}

.hamburger-menu-item:hover {
    color: powderblue;
    text-decoration: underline solid powderblue;
}

.hamburger-menu-shadow {
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

main {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
}

@media (min-width: 1278px) {
    main {
        width: 1150px;
    }
}

#title {
    max-width: 30rem;
    margin-top: 25vh;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 2.6rem;
}

#bio-main {
    max-width: 40rem;
    margin-right: 2rem;
    font-size: 1.17rem;
    line-height: 1.75rem;
}

#bio-email {
    width: auto;
    margin-top: 1.2rem;
    margin-left: -0.1rem;
    padding: 0rem 0.1rem;
    display: inline-block;
    color: black;
    font-size: 1.17rem;
    text-decoration: none;
    line-height: 1.75rem;
    border-bottom: 1px solid black;
    transition: 0.2s ease-in-out all;
}

#bio-email:hover {
    color: white;
    background-color: black;
}

#project-header {
    margin-top: 25vh;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

@media (max-height: 550px) {
    #title, #project-header {
        margin-top: 137.5px;
    }
}

#project-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2rem; 
    grid-row-gap: 1rem;
    grid-auto-rows: 1fr;
}

@media (max-width: 1000px) {
    #project-cards {
        grid-template-columns: auto;
    }
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    background-color: rgb(247, 247, 247);
    cursor: pointer;
}

.card-image {
    position: relative;
    padding: 4rem 0rem;
    max-width: 70%;
    max-height: 300px;
}

.card-overlay {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(187, 52%, 70%, 0.7);
    transition: 0.2s ease-in-out all;
}

.card-overlay:hover {
    opacity: 1;
}

.card-overlay-text {
    position: relative;
    top: 2rem;
    left: 2.5rem;
    max-width: 85%;
    color: white;
}

.card-name {
    font-size: 1.9rem;
    font-weight: 900;
}

.detailed-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 900px;
    max-height: 85vh;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    overflow-y: auto;
    z-index: 3;
}

@media (max-width: 1000px) {
    .detailed-card {
        width: 90vw;
    }
}

.detailed-card-shadow {
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.detailed-card-close-button {
    display: block;
    position: absolute;
    top: 1.4rem;
    right: 1.7rem;
    width: 12px;
    cursor: pointer;
}

.detailed-card-top {
    width: 100%;
    background-color: rgb(238, 238, 238);
    overflow: hidden;
}

.detailed-card-image {
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 70%;
    max-height: 300px;
    margin: 3.75rem 0rem;
}

.detailed-card-bottom {
    width: 100%;
    padding: 1.5rem 3rem 2rem 3rem;
    background-color: white;
    box-sizing: border-box;
    overflow: hidden;
}

.detailed-card-name {
    margin-bottom: 1rem;
    font-size: 1.7rem;
    font-weight: 900;
}

.detailed-card-description {
    color: rgb(37, 37, 37);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.35rem;
}

.detailed-card-description a {
    display: inline-block;
    padding: 0rem 0.1rem;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid black;
    transition: 0.2s ease-in-out all;
}

.detailed-card-description a:hover {
    color: white;
    background-color: black;
}