* {
    text-align: center;
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    font-weight: 400;

    color: #000000;

    font-size: 1.025em;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    margin: 0 -15px;
    background-color: #ffffff;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e;
    }
}

main {
    overflow-x: hidden;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
}

footer {
    height: 50px;
    width: 100%;

    color: #ffffff;
    background: #2a2a2a;

    padding: 20px;
    margin: -20px;
}


gallery {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 633px;
    height: auto;
    flex-wrap: wrap;

    margin: 5px 0 12px 0;
    padding: 14px;

    border: 2px solid rgba(127, 127, 127, 0.28);
    border-radius: 16px;
    background: rgba(127, 127, 127, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gallery-label {
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
    padding: 5px 0;
}

.img-container {
    position: relative;

    display: flex;
    width: 100%;
    height: 357px;
    flex-wrap: nowrap;
    justify-content: center;

    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
}

.gallery-nametag {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 13px;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.02em;

    pointer-events: none;
}

/* Gallery Image */
#focus-image {
    width: 100%;
    height: 100%;

    display: flex;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* transition: 0.15s; */

    cursor: pointer;
}

/* Cinematic letterbox transition: black bars close in, hide the swap, then open */
.img-container::before,
.img-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    background: #000000;
    z-index: 3;
    pointer-events: none;
}

.img-container::before {
    top: 0;
}

.img-container::after {
    bottom: 0;
}

.img-container.letterbox::before,
.img-container.letterbox::after {
    animation: letterbox 0.5s ease;
}

@keyframes letterbox {
    0% {
        height: 0;
    }

    45% {
        height: 50%;
    }

    55% {
        height: 50%;
    }

    100% {
        height: 0;
    }
}

.arrow-container {
    width: inherit;
    height: fit-content;

    display: flex;
    justify-content: left;

    margin-top: 15vw;
    margin-left: 5px;
    margin-right: 5px;
}

/* gallery-arrow icon text */
.arrow-container i {
    font-size: 40px;
    opacity: 0.6;
    cursor: pointer;
    height: 40px;
    width: 40px;
}

.gallery-arrow {
    color: #ffffff;

    padding: 15px;
    border-radius: 25%;

    background: #000000;
}

.thumb-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 5px;
    width: 100%;
    height: auto;

    margin-top: 12px;
    padding: 8px 10px;

    border-radius: 10px;
    border: 2px solid #7f7f7f38;
    background: #e3e8f0;
}

@media (prefers-color-scheme: dark) {
    .thumb-container {
        background: #242830;
    }
}

.thumb-break {
    flex-basis: 100%;
    height: 0;
}

.thumb {
    color: #ffffff;
    border: 3px solid transparent;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    font-size: 2em;

    padding: 1.15vw 1.15vw 1.15vw 1.15vw;

    cursor: pointer;
    overflow: hidden;

    text-align: center;

    width: 0.625vw;
    max-height: 6.25px;

    opacity: 1;
}

.thumb:hover {
    opacity: 0.5;
    transition: 0.1s;
}

.thumb.selected {
    background-color: #ffffff2c;
    border: 3px solid #7c7c7c;
    border-radius: 8px;
    opacity: 1;
}

.logo {
    font-family: Noto Serif;
    /* font-family: Arial, Helvetica, sans-serif; */
    color: #000000;
    /* text-shadow: 2px 2px 2px #611945; */

    margin: auto;
    font-size: 2em;
}

a:hover {
    color: #c3c3c3;
    transition: 0.05s;
}

.home-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;

    margin: 10px 0 8px 28px;
    padding: 8px 16px;

    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.08);

    color: inherit;
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;

    transition: background 0.15s ease;
}

.home-link:hover {
    background: rgba(127, 127, 127, 0.18);
    color: inherit;
}

nav {
    background-color: #ffffff;
    box-shadow: 2px 2px 5px #00000026;

    position: fixed;
    z-index: 5;

    width: 100%;
    height: auto;
    margin: -15px 0 0 0;
    padding: 10px 10px 10px 10px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: #900000;
    font-weight: bold;

    padding-right: 25px;
}

.back-btn {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    padding: 0;
    color: #ffffff;
}

.nav-links {
    flex-basis: 100%;
    height: auto;
    padding: 15px;
    background: white;
    font-size: 18px;

    margin: 10px 0 0 -10px;
    position: relative;
}

.button {
    color: #ffffff;
    font-size: 25px;
    padding: 1vw 2vw 1vw 2vw;
    border-radius: 15px;

    width: 10vw;
    height: auto;

    margin: 20px auto 0 auto;
    min-width: 100px
}

.button:hover {
    font-size: 26px;
    transition: 0.15s;
    cursor: pointer;
}

.project-btn {
    width: clamp(180px, 15vw, 250px);
    height: clamp(120px, 10vw, 170px);
    flex-shrink: 0;

    margin: 0.5em;
    border-radius: 1em;
    padding: 1em;

    display: flex;
    justify-content: center;
    align-items: center;
}

.project-btn:hover {
    background-color: #d1d1d1;
    transition: 0.15s;
}

.project-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*
        Source - https://stackoverflow.com/a/53336754
        Posted by Manish Menaria, modified by community. See post 'Timeline' for change history
        Retrieved 2026-02-05, License - CC BY-SA 4.0
    */
    filter: invert(0%) sepia(0%) saturate(100%) hue-rotate(0) brightness(0) contrast(80%);
}

.project-btn:hover {
    transition: 0.15s;
    cursor: pointer;
}

/* Intro header */
.intro {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5em 20px 2em 20px;
    box-sizing: border-box;
    text-align: left;

    border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.intro-name {
    text-align: left;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin: 0;
}

.intro-role {
    text-align: left;
    margin: 0.45em 0 0 0;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5a9eff;
}

.intro-tech {
    text-align: left;
    margin: 0.3em 0 0 0;
    font-size: 0.78em;
    font-weight: 600;
    opacity: 0.55;
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.intro-bio {
    text-align: left;
    max-width: 560px;
    margin: 1.15em 0 0 0;
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.75;
}

.intro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin: 1.5em 0 0 0;
}

.intro-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s;
}

.intro-links a:hover {
    opacity: 1;
    color: #5a9eff;
}

.intro-links a i {
    margin-right: 0.5em;
    color: inherit;
    opacity: 0.85;
}

.tech-stack {
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Project cards */
.projects {
    display: flex;
    flex-direction: column;
    gap: 2em;

    width: 100%;
    max-width: 760px;
    margin: 2em auto;
    padding: 0 20px;
}

.project-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 1.5em;

    text-decoration: none;
    text-align: left;

    padding: 0.75em;
    border-top: 2px solid rgba(127, 127, 127, 0.4);
    border-bottom: 2px solid rgba(127, 127, 127, 0.4);
    background: rgba(127, 127, 127, 0.1);

    transition: background 0.15s;
}

.project-card .card-link {
    position: absolute;
    top: 0.9em;
    right: 1em;

    font-size: 1em;
    opacity: 0.35;

    transition: opacity 0.15s, transform 0.15s;
}

.project-card:hover .card-link {
    opacity: 0.85;
    transform: translate(2px, -2px);
}

.project-card:hover {
    background: rgba(127, 127, 127, 0.2);
    cursor: pointer;
}

.project-card .media {
    flex-shrink: 0;
    width: 240px;
    height: 150px;

    object-fit: cover;
    background: #000000;

    border: 3px solid #000000;
    border-radius: 4px;
}

.project-card .info {
    text-align: left;
}

.project-card .name {
    margin: 0;
    text-align: left;
    font-size: 1.2em;
    font-weight: 700;
}

.project-card .name .meta {
    display: block;
    margin-top: 0.25em;
    text-align: left;
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.72em;
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card .role {
    margin: 0.3em 0 0 0;
    text-align: left;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-card .desc {
    margin: 0.35em 0 0 0;
    text-align: left;
    opacity: 0.65;
    font-size: 0.95em;
}

/* Per-item description + role (project pages) */
.item-detail {
    width: 100%;
    max-width: 624px;
    margin: 5px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;

    text-align: center;
}

/* Media-left / text-right item, centered as a group */
.item-row {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5em;

    margin: 10px 0;
}

.item-row .item-detail {
    width: auto;
    max-width: 540px;
    margin: 0;

    text-align: left;
}

.item-row .item-detail .role-row {
    display: flex;
    justify-content: center;
}

.item-desc {
    margin: 0 0 1em 0;
    font-size: 1.05em;
    line-height: 1.5;
    opacity: 0.85;

    text-align: left;
}

.role-row {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}

.role-name {
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.container {
    font-family: 'Work Sans', arial, helvetica, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    padding-top: 1.5em;
    padding-bottom: 1.5em;

    flex-basis: 100%;
}

.container-break {
    width: 100vw;
    padding-top: 1em;
    padding-bottom: 1em;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18em;

    font-family: 'Work Sans', arial, helvetica, sans-serif;
    font-weight: 500;
    font-size: 34px;
    line-height: 1.1;
}

.section-title::before {
    content: attr(data-eyebrow);

    font-family: 'Work Sans', arial, helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #7ab8ff;
}

.section-title::after {
    content: "";

    width: 48px;
    height: 3px;
    margin-top: 0.3em;

    border-radius: 2px;
    background: #5a9eff;
}

/* Textbook-style article: body copy with images floated throughout */
.article {
    max-width: 792px;
    margin: 0 auto;
    padding: 0 20px;

    text-align: left;
    line-height: 1.7;
    font-size: 1.02em;
}

.article p {
    margin: 0 0 1.15em 0;
    text-align: left;
}

.article-fig {
    margin: 4px 0 14px 0;
    max-width: 47%;
}

.article-fig.left {
    float: left;
    margin-right: 26px;
}

.article-fig.right {
    float: right;
    margin-left: 26px;
}

.article-fig img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.article-fig figcaption {
    margin-top: 8px;

    text-align: center;
    font-style: italic;
    font-size: 0.85em;
    opacity: 0.65;
    line-height: 1.4;
}

/* Keep the section from collapsing around floated figures */
.article::after {
    content: "";
    display: block;
    clear: both;
}

/* Alternating text / image rows */
.tut-row {
    display: flex;
    align-items: center;
    gap: 36px;

    margin: 0 0 1.6em 0;
}

.tut-row.reverse {
    flex-direction: row-reverse;
}

.tut-text {
    flex: 1 1 0;
    min-width: 0;
}

.tut-text p {
    margin: 0;
    text-align: left;
}

.tut-fig {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.tut-fig img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.tut-fig figcaption {
    margin-top: 8px;

    text-align: center;
    font-style: italic;
    font-size: 0.85em;
    opacity: 0.65;
    line-height: 1.4;
}

/* Floating back-to-top button */
#scroll-top-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;

    border: 1px solid rgba(90, 158, 255, 0.5);
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}

#scroll-top-btn i {
    color: #5a9eff;
    font-size: 18px;
}

.scroll-top-label {
    color: #5a9eff;
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#scroll-top-btn:hover {
    background: rgba(90, 158, 255, 0.18);
    border-color: rgba(90, 158, 255, 0.9);
}

/* Hover tooltip listing the shipped gamemodes */
.gamemode-tip {
    position: relative;

    text-decoration: underline dotted;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: help;
    outline: none;
}

.gamemode-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    z-index: 60;

    display: flex;
    flex-direction: column;
    gap: 5px;
    width: max-content;
    max-width: 220px;
    padding: 12px 16px;

    text-align: left;
    background: #1d1d1f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Invisible bridge over the gap so the hover survives moving up to the bubble */
.gamemode-bubble::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 18px;
}

/* Caret pointing down at the trigger text */
.gamemode-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border: 7px solid transparent;
    border-top-color: #1d1d1f;
}

.gamemode-tip:hover .gamemode-bubble,
.gamemode-tip:focus-visible .gamemode-bubble,
.gamemode-tip:focus-within .gamemode-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Force the bubble closed right after a link inside it is clicked */
.gamemode-tip.is-dismissed .gamemode-bubble {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(6px) !important;
}

.gamemode-bubble-title {
    margin-bottom: 2px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8e;
}

.gamemode-bubble-item {
    font-size: 0.92em;
    font-weight: 500;
    color: #e6e6e6;
    text-decoration: none;
}

a.gamemode-bubble-item {
    color: #5a9eff;
}

a.gamemode-bubble-item:hover {
    color: #8ab9ff;
    text-decoration: underline;
}

/* Site footer with social links */
.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;

    width: 100%;
    height: auto;
    margin: 48px 0 0 0;
    padding: 26px 20px;
    background: transparent;
    color: inherit;

    border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;

    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    opacity: 0.7;

    transition: opacity 0.15s, color 0.15s;
}

.site-footer a:hover {
    opacity: 1;
    color: #5a9eff;
}

.site-footer a i {
    font-size: 1.2em;
    color: inherit;
}

@media only screen and (max-width: 768px) {
    .article {
        text-align: left;
        padding: 0 18px;
    }

    .article-fig.left,
    .article-fig.right {
        float: none;
        max-width: 100%;
        margin: 14px auto;
    }

    .tut-row,
    .tut-row.reverse {
        flex-direction: column;
        gap: 14px;
    }
}

.container video {
    height: auto;
    /* box-shadow: 1px 1px 8px #000000ad; */
}

.container:nth-child(even) {
    background: #f6f6f6ec;
    /* border-style: solid; */
    /* border-color: #900000; */
    /* border-width: 5px; */
}

.feature {
    color: #ffffff;
    background-image: url('img/ex_img0.JPG');
    background-position: center;

    font-size: 2em;

    margin: 15px;
    padding: 90px 10px 90px 10px;

    cursor: pointer;
    overflow: hidden;

    text-align: center;

    width: auto;
    height: auto;
    min-width: 200px;
    max-width: 200px;
}

.feature:hover {
    opacity: 80%;
    font-size: 2.1em;
    transition: 0.15s;
}

.divider {
    background: #dfdfdf;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    flex-basis: 100%;
    font-size: 1.25em;

    align-items: center;

    color: #000000;

    padding: 2vw;
    margin: 0 -20px 0 -20px;
}

.divider img {
    width: 350px;
    height: auto;
    /* filter: invert(0%) sepia(0%) saturate(100%) hue-rotate(0) brightness(0) contrast(80%); */
    /* box-shadow: 1px 1px 8px #000000ad; */
}

.divider video {
    width: 525px;
    height: auto;
    /* box-shadow: 1px 1px 8px #000000ad; */
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.logos img {
    width: 175px;
}

.logo-group .summary {
    margin-top: 1.25em;
    width: min(540px, 100%);
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.55;
}

.logo-group .summary p {
    margin: 0 0 0.85em 0;
}

.logo-group .summary .highlights-block {
    margin: 0.1em 0 1em 0;
    padding: 0.9em 1.1em 1em 1.1em;
    border-top: 2px solid #5a9eff;
    border-bottom: 2px solid #5a9eff;
    background: rgba(0, 0, 0, 0.05);
}

.logo-group .summary .highlights-label {
    margin: 0 0 0.6em 0;
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    font-size: 0.84em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5a9eff;
}

.logo-group .summary ul {
    margin: 0;
    padding-left: 1.2em;
    list-style-position: outside;
}

.logo-group .summary li {
    margin-bottom: 0.45em;
    text-align: left;
}

.logo-group .summary li:last-child {
    margin-bottom: 0;
}

.logo-group .summary .summary-link {
    margin-top: 0;
    text-align: center;
}

.logo-group .summary .summary-link a {
    font-weight: bold;
    text-decoration: none;
}

.logo-group .summary .summary-link i {
    padding-right: 6px;
}

.logo-group .summary .summary-card a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.6em 1.6em 0.6em 0.7em;
    border-radius: 6px;
    line-height: 0;
    background: rgba(127, 127, 127, 0.14);
    border: 1px solid rgba(127, 127, 127, 0.4);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.logo-group .summary .summary-card a:hover {
    background: rgba(127, 127, 127, 0.24);
    border-color: rgba(127, 127, 127, 0.6);
}

.logo-group .summary .summary-card .card-link {
    position: absolute;
    top: 0.45em;
    right: 0.5em;
    font-size: 0.85em;
    opacity: 0.4;
    transition: opacity 0.15s, transform 0.15s;
}

.logo-group .summary .summary-card a:hover .card-link {
    opacity: 0.9;
    transform: translate(2px, -2px);
}

.logo-group .summary .summary-card img {
    display: block;
    flex-shrink: 0;
    width: 150px;
    height: auto;
    border-radius: 4px;
}

.logo-group .summary .summary-card .card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25em;
    text-align: left;
    line-height: 1.2;
    font-family: 'Work Sans', arial, helvetica, sans-serif;
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.25);
}

.logo-group .summary .summary-card .card-title {
    display: flex;
    align-items: center;
    gap: 0.45em;
    font-size: 0.95em;
    font-weight: 700;
}

.logo-group .summary .summary-card .card-title i {
    flex-shrink: 0;
    font-size: 1.5em;
    opacity: 0.85;
}

.logo-group .summary .summary-card .card-sub {
    font-size: 0.8em;
    opacity: 0.75;
}

.logo-group .summary .summary-card .card-accent {
    opacity: 1;
}

.logo-group .summary .summary-steam .card-accent {
    color: #8ed0fa;
}

.logo-group .summary .summary-slippi .card-accent {
    color: #ff6ba6;
}

.logo-group .summary .summary-slippi img {
    width: auto;
    height: 26px;
    padding: 8px 12px;
    background: #1f1f23;
    border-radius: 4px;
}

.logo-group .role {
    text-align: center;
    margin-top: 10px;
    font-size: 1.5em;
    font-weight: 300;
}

.logo-group .site-link {
    margin-top: 8px;
    font-size: 1em;
}

.logo-group .site-link a {
    font-weight: bold;
    text-decoration: none;
}

.logo-group .site-link a:hover {
    transition: 0.05s;
}

.logo-group .site-link i {
    padding-right: 6px;
}

.break {
    flex-basis: 100%;
    height: 50px;
}

.item {
    padding: 10px;
}

.title-container {
    color: #ffffff;
    /* text-shadow: 3px 3px 2px #b92424; */

    z-index: 3;
    position: absolute;

    justify-content: center;
    margin-top: 9vw;

    max-width: 50vw;

    width: auto;
    height: auto;
}

.title {
    /* background-color: #9000006e; */
    border-radius: 15px;
    /* border: solid;
  border-color: #ffffff; */

    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family: "Playfair Display";

    font-size: 3.7vw;
    padding: 15px;

    width: auto;
    height: auto;
}

.subtitle {
    background-color: #700000;

    font-size: 1.5vw;
    padding: 10px;

    width: 75%;
    height: auto;
}

.showcase {
    width: 100%;
    height: 35vw;

    display: flex;
    justify-content: center;

    padding: 20px;
    margin: 5px -20px 0 -20px;

    opacity: 0.65;

    background-size: cover;
    background-position-y: center;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    width: 25vw;
    min-width: 400px;
}

.contact-form p {
    width: auto;
}

.contact-form input {
    padding: 10px 0 10px 10px;
    margin-top: 13px;

    border: solid;
    border-color: #cacaca;
    border-width: 1px;

    text-align: left;

    font-size: 15px;
    font-weight: normal;
}

.contact-form textarea {
    padding: 10px 0 10px 10px;
    margin-top: 13px;

    border: solid;
    border-color: #cacaca;
    border-width: 1px;

    text-align: left;

    font-size: 15px;
    font-weight: normal;
}

.contact-form input:hover {
    border-color: #363636;
    border-width: 1px;
    /* transition: 0.15s; */
}

.contact-form textarea:hover {
    border-color: #363636;
    border-width: 1px;
    /* transition: 0.15s; */
}

@media only screen and (max-width: 1500px) {
    .showcase {
        height: 35vw;
    }
}

@media only screen and (max-width: 1300px) {
    .divider {
        flex-wrap: wrap;
    }

    .divider div {
        flex-basis: 100%;
        width: 350px !important;
        margin: 15px auto !important;
    }
}

@media only screen and (max-width: 750px) {
    .contact-form {
        width: 80vw;
    }

    .button {
        min-width: 150px;
        min-height: 60px;
    }

    .logo {
        margin: auto;
    }

    .nav-links {
        display: none;
    }

    .title-container {
        margin-top: 25vw;
        max-width: 90vw;
    }

    .title {
        font-size: 9vw;
    }

    .subtitle {
        font-size: 1.3em;
    }

    .hamburger-button {
        display: block;
    }

    .divider {
        flex-wrap: wrap;
    }

    .divider div {
        flex-basis: 100%;
        width: 90% !important;
        margin: 0 auto 15px auto !important;
    }

    .container > div:not(.thumb-container):not(.thumb):not(.img-container) {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .showcase {
        height: 75vw;
    }

    .img-container {
        height: 250px;
    }

    #focus-image {
        width: 100%;
        height: 100%;

        display: flex;

        background-size: contain;
    }

    .arrow-container {
        margin-top: 20vw
    }

    .thumb-container {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
        margin: 12px 0 0 0;
        width: 100%;
    }

    .thumb {
        width: 45px;
        height: 45px;
        max-height: 45px;
        padding: 4px;
    }
}

@media only screen and (min-width: 750px) {
    .hamburger-button {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    .project-btn {
        width: 70%;
        height: 120px;
        min-width: unset;
        min-height: unset;
    }

    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }

    .project-card .media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* High-resolution scaling.
   On large monitors at low OS scaling the CSS viewport is very wide (e.g. 3840px),
   so fixed-px media and text look tiny. Scale the whole page up with `zoom` above
   normal desktop widths. Keyed off CSS viewport width, so 4K laptops at 2x OS
   scaling (which report ~1920px) are unaffected. */
@media only screen and (min-width: 2200px) {
    :root {
        zoom: 1.25;
    }

    /* 100vw overflows once the page is zoomed and shoves centered headings
       off to the side; the container already spans full width, so 100% matches. */
    .container-break {
        width: 100%;
    }
}

@media only screen and (min-width: 2880px) {
    :root {
        zoom: 1.5;
    }
}

@media only screen and (min-width: 3600px) {
    :root {
        zoom: 1.9;
    }
}


/* Dark theme styles */
@media (prefers-color-scheme: dark) {
    * {
        color: #ffffff;

    }

    .container {
        background: #131313;
    }

    .container:nth-child(even) {
        background: #141414ec;
    }

    nav {
        background-color: #222222;
        box-shadow: 2px 2px 5px #ffffff26;
    }

    .logo {
        color: #ffffff;
    }

    .divider {
        background: #242424;
    }

    .logo-group .summary .highlights-block {
        background: #1a1a1a;
    }

    .logo-aether {
        filter: invert(0%) sepia(0%) saturate(100%) hue-rotate(0) brightness(100%) contrast(0%);
    }

    .project-btn img {
        filter: invert(0%) sepia(0%) saturate(100%) hue-rotate(0) brightness(100%) contrast(0%);
    }

    .project-card:hover {
        background: rgba(127, 127, 127, 0.2);
    }

    .project-card .media {
        border-color: #ffffff;
    }

    .project-card .role,
    .role-name {
        color: #7ab8ff;
    }
}
