:root {
    --card-background: lightgray;
    --main-text-color: black;
    --secondary-text-color: #707070;
    --main-background: white;
    --crypto-color: powderblue;
    --math-color: lightgreen;
    --software-color: darkseagreen;
    --datasci-color: #c8c8f0;
    --soft-color: pink;
    --crypto-display: inline-block;
    --software-display: inline-block;
    --datasci-display: inline-block;
    --math-display: inline-block;
    --soft-display: inline-block;
    color-scheme: light;
    --course-display: inline-block;
    --more-course-display: var(--course-display);
    --cv-icon: url(media/pdf-icon-fa-light.svg);
    --linkedin-icon: url(media/linkedin-light.png);
    --linkedin-width: calc(1em * 635 / 540);
}
@media (prefers-color-scheme: dark) {
    :root {
        --card-background: #404858;
        --main-text-color: white;
        --secondary-text-color: #8090a0;
        --main-background: #202020;
        --crypto-color: royalblue;
        --software-color: lightseagreen;
        --datasci-color: rebeccapurple;
        --math-color: seagreen;
        --soft-color: darkmagenta;
        color-scheme: dark;
        --cv-icon: url(media/pdf-icon-fa-dark.svg);
        --linkedin-icon: url(media/linkedin-dark.png);
        --linkedin-width: calc(1em * 840 / 779);
    }
}
body {
    font-family: Arial, Helvetica, sans-serif;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color: var(--main-text-color);
    background-color: var(--main-background);
    padding-bottom: 0.5em;
}
main {
    max-width: 60em;
    margin: 0 auto;
}
h1 {
    text-align: center;
}
.contact {
    text-align: center;
    font-size: 1em;
}
.contact img {
    height: 1em;
    transform: translateY(0.15em);
}
.contact a {
    color: var(--main-text-color)!important;
    text-decoration: none;
    display: inline-block;
}
.contact a::before {
    display: inline-block;
    height: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    position: relative;
    top: 0.15em;
}
#linkedin::before {
    width: var(--linkedin-width);
    background-image: var(--linkedin-icon);
}
#orcid::before {
    background-image: url(media/orcid-logo.svg);
    width: 1em;
}
#cv::before {
    background-image: var(--cv-icon);
    width: 0.75em;
}
h2 .link {
    opacity: 0;
    text-decoration: none;
}
h2:hover .link, h2 .link:focus-visible {
    color: var(--main-text-color);
    opacity: 0.5;
}
h2 .link:hover {
    opacity: 1;
}
.education, .job, .project {
    padding: 0.75em;
    border-radius: 1em;
    background-color: var(--card-background);
    color: var(--main-text-color);
}
.education, .job {
    margin-bottom: 0.5em;
}
.job:last-child {
    margin-bottom: 0;
}
.headline {
    display: inline-block;
    width: 100%;
}
.institution {
    font-weight: bold;
    display: inline-block;
}
.degree {
    font-style: italic;
    display: inline-block;
}
.graduation {
    float: right;
    text-align: right;
    margin-left: 0.5em;
}
.gpa {
    display: inline-block;
    font-style: normal;
}
.courses {
    padding-left: 0.5in;
    text-indent: -0.5in;
    display: flow-root;
}
.course-leader {
    font-style: italic;
}
.course {
    display: var(--course-display);
    text-indent: 0;
}
@media (width < 33.5em) {
    :root {
        --course-display: inline;
    }
}
.skill {
    padding: 0.5em;
    border-radius: 1em;
    margin: 0.125em;
    color: var(--main-text-color);
}
#skill-toggles .skill {
    font-size: 1em;
    font-weight: bold;
    display: inline-block;
    padding: calc(0.5em + 1px);
    border: none;
}
#skill-toggles {
    margin-bottom: 0.5em;
}
#skill-toggles, #skill-area {
    display: flex;
    flex-wrap: wrap;
}
.crypto-skill {
    background-color: var(--crypto-color);
    display: var(--crypto-display);
}
.software-skill {
    background-color: var(--software-color);
    display: var(--software-display);
}
.datasci-skill {
    background-color: var(--datasci-color);
    display: var(--datasci-display);
}
.math-skill {
    background-color: var(--math-color);
    display: var(--math-display);
}
.soft-skill {
    background-color: var(--soft-color);
    display: var(--soft-display);
}
.job .title {
    font-weight: bold;
    display: inline;
}
.dates {
    float: right;
    text-align: right;
    margin-left: 0.5em;
}
.job .affiliation {
    font-style: italic;
}
.job .location {
    float: right;
    text-align: right;
    margin-left: 0.5em;
}
.job ul {
    margin-bottom: 0;
}
.publication {
    padding-left: 0.5in;
    text-indent: -0.5in;
}
.job .publication {
    margin-top: 0.5em;
}
.self-author {
    font-weight: bold;
}
.projects {
    display: flex;
    justify-content: space-between;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-bottom: 0.5em;
}
.project {
    flex-basis: 27em;
    flex-grow: 1;
}
.project .title {
    font-weight: bold;
}
.project .subtitle {
    display: inline-block
}
.wide-project {
    flex-basis: 34em;
}
.honor-info {
    display: inline-block;
}
.show-more {
    text-align: center;
    padding: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--main-background);
    box-shadow: var(--main-background) 0 0 0.75em 0.75em;
}
.show-more button {
    color: var(--secondary-text-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
    display: inline;
}
.show-more button:hover {
    color: var(--main-text-color);
}
.more-wrapper {
    min-height: 3.5em;
    position: relative;
}
.more-content {
    overflow: hidden;
    height: calc(100% - 2.65em);
    padding-bottom: 2.65em;
}
#skill-area {
    overflow-y: auto;
}
#skill-wrapper {
    min-height: 14.65em;
}
#color-toggle {
    position: fixed;
    z-index: 1;
    font-size: 1em;
    bottom: 1em;
    right: 1em;
    height: 2em;
    width: 2em;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--main-text-color);
    background-color: transparent;
    background-image: url(media/light-mode.svg);
    background-position: center;
    background-size: 1.25em;
    background-repeat: no-repeat;
    cursor: pointer;
}
@media (prefers-color-scheme: dark) {
    #color-toggle {
        background-image: url(media/dark-mode.svg);
    }
}
#color-toggle:hover {
    background-color: var(--card-background);
}
#more-courses {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
    display: inline-block;
    text-indent: 0;
    color: var(--main-text-color);
}
#more-courses:hover {
    color: var(--secondary-text-color);
}
.more-course {
    display: var(--more-course-display);
}
