:root {
    --link-row-hover-bg: rgba(64, 102, 151, 0.1);
    --a-color: rgb(120, 151, 223);
    --details-background: rgba(64, 89, 151, 0.15);
    --details-hover-background: rgba(57, 68, 136, 0.2);
}

@font-face {
    font-family: 'IBM Plex Sans Site';
    src: url('/fonts/site/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Site';
    src: url('/fonts/site/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: black;
    color: white;
    font-family: 'IBM Plex Sans Site', 'Courier New', Courier, monospace;
    max-width: 650px;
    margin: auto;
    padding: 10px;
    overflow-y: scroll;
}

.background-focus-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    transition: opacity 0.55s ease;
}

body.background-focus-active .background-focus-overlay {
    opacity: 1;
}

body.static-high-contrast {
    --link-row-hover-bg: rgba(255, 255, 255, 0.16);
    --a-color: rgb(166, 202, 255);
    --details-background: rgba(64, 64, 64, 0.34);
    --details-hover-background: rgba(80, 80, 80, 0.44);
}

h1 {
    text-align: center;
}

.site-nav {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.site-nav-current {
    color: gray;
}

.page-action-nav {
    margin-bottom: 0;
    text-align: center;
    font-size: 18px;
    line-height: normal;
}

.page-action-nav a {
    text-decoration: none;
}

a {
    color: var(--a-color);
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease;
}

a:hover {
    filter: brightness(1.2);
    transition: none;
}

.buttons img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
    transition: transform 0.2s ease-in-out;
}

.buttons img:hover {
    transform: scale(1.1);
    outline: 1px solid white;
    transition: none;
}

.webring {
    text-align: center;
    margin-top: 20px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.link-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    /* cursor: pointer; */
    padding: 2px 0;
    transition: background-color 0.2s ease;
}

.link-row:hover {
    background-color: var(--link-row-hover-bg);
    transition: none;
}

.links .label {
    display: inline-block;
    width: 80px;
    text-align: right;
    color: white;
    text-decoration: none;
}

.now-info-links {
    gap: 3px;
}

.now-info-links .link-row {
    align-items: baseline;
    gap: 12px;
}

.now-info-links .label {
    flex: 0 0 96px;
    width: 96px;
    text-align: left;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
}

.now-info-text {
    color: rgba(255, 255, 255, 0.78);
}

.now-info-text b {
    color: white;
}

.now-info-text a b {
    color: inherit;
}

.section-title {
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    font-size: 1.2em;
}

details {
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--details-background);
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

details:not([open]):hover {
    background-color: var(--details-hover-background);
    transition: none;
}

summary {
    cursor: pointer;
}

details[open] summary {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#radioImage {
    max-width: 55%;
    height: auto;
    margin-top: 10px;
    border-radius: 12px;
    display: block;
}

.project-section {
    margin-bottom: 15px;
    padding: 8px;
    background-color: var(--details-background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.project-section:hover {
    background-color: var(--details-hover-background);
    transition: none;
}

.project-content {
    flex: 1;
}

.project-section img {
    max-width: 80px;
    height: 80px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-right: 15px;
}

.project-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.project-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-icon img.smaller-icon {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

details .project-section {
    padding: 6px;
    margin-bottom: 8px;
}

details .project-section img,
details .project-section .project-icon {
    max-width: 50px;
    height: 50px;
    margin-right: 12px;
}

details .project-section p {
    font-size: 0.9em;
}

details .project-links {
    font-size: 0.85em;
}

details .project-subsection {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.project-section p {
    margin: 0 0 5px 0;
    font-size: 0.95em;
}

.project-links {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.blog-now-link {
    font-size: 0.78em;
    opacity: 0.65;
    text-align: right;
}

.blog-page main {
    padding-top: 0;
}

.separator {
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-badges {
    margin: 24px 0 0;
}

.blog-badges .separator {
    margin-bottom: 16px;
}

.blog-badges .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 10px;
    margin-bottom: 16px;
}

.blog-badges .buttons a {
    display: inline-flex;
    line-height: 0;
}

.blog-page footer {
    margin-top: 0 !important;
}

.blog-post-item {
    margin: 28px 0;
}

.blog-post-link {
    display: block;
    text-decoration: none;
}

.blog-post-link:focus-visible {
    outline: 2px solid var(--a-color);
    outline-offset: 4px;
}

.blog-post-title {
    display: block;
    color: white;
    font-size: 1.45em;
    font-weight: 700;
    line-height: 1.18;
    text-decoration: none;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.blog-post-description {
    display: block;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98em;
    line-height: 1.42;
}

.blog-post-meta {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82em;
    line-height: 1.3;
}

.blog-post-link:hover {
    filter: none;
    text-decoration: none;
}

.blog-post-link:hover .blog-post-title {
    color: var(--a-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.subtext {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.center {
    text-align: center;
}

.video-background-controls {
    display: none;
}

body.video-controls-ready .video-background-controls {
    display: block;
}

body.video-background-disabled .video-background-swap-control,
body.video-background-disabled #background-swap {
    display: none;
}

footer {
    font-weight: 700;
}

.site-footer .subtext {
    margin: 4px 0;
}

.site-footer a {
    text-decoration: none;
}

.site-footer-main,
.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 7px;
}

.site-footer-main {
    font-size: 0.95em;
}

.site-footer-meta {
    font-size: 0.85em;
    opacity: 0.66;
}

#games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.game {
    text-decoration: none;
    color: white;
    background-color: rgb(128, 128, 128, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 8px;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.game:hover {
    background-color: rgb(128, 128, 128, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    transition: none;
}

.game p {
    margin: 0;
}

.game img {
    width: 16px;
    flex-shrink: 0;
}

.games-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 650px) {
    body {
        padding: 15px;
        max-width: 100%;
    }

    .links {
        gap: 5px;
    }

    .social-links {
        gap: 1px;
    }

    #radioImage {
        max-width: 100%;
        margin: 15px auto;
    }

    details {
        padding: 12px;
    }
}
