@font-face {
    font-family: "Silkscreen";
    font-weight: 400;
    font-display: swap;
    src: url("/webfonts/silkscreen-400.woff2") format("woff2");
}

@font-face {
    font-family: "Silkscreen";
    font-weight: 700;
    font-display: swap;
    src: url("/webfonts/silkscreen-700.woff2") format("woff2");
}

:root {
    --pixel: "Silkscreen", "Courier New", monospace;
    --hand: "Comic Sans MS", cursive;
    --verdana: Verdana, Geneva, Tahoma, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    --page-bg: #cfc6ee url("/imgs/tile-plaid.svg");
    --ink: #222;
    --link: #0000cc;
    --visited: #551a8b;
    --hl: #a3144f;
    --sec-bg: #fffdf2;
    --sec-border: #7a5cc4;
    --h2-color: #a3144f;
    --title-bg: linear-gradient(#ff9fd0, #c04fd8 55%, #8a2fb5);
    --title-fg: #fff;
    --title-border: #4b1a6e;
    --foot-bg: #efe8ff;
    --foot-ink: #2a1a44;
    --banner-edge: #ffd500;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--verdana);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    background: #cfc6ee url("/imgs/tile-plaid.svg");
}

body:has([data-theme="projects"]) {
    background: #e8f1fb url("/imgs/tile-grid.svg");
}

body:has([data-theme="animations"]) {
    background: #0b0b0b;
}

body:has([data-theme="blogs"]) {
    background: #2a1710 url("/imgs/tile-checker.svg");
}

body:has([data-theme="legal"]),
body:has([data-theme="license"]) {
    background: #efe6cc url("/imgs/tile-paper.svg");
}

body:has([data-theme="404"]) {
    background: #ffd500 url("/imgs/tile-hazard.svg");
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
    padding: 0;
}

p {
    margin-bottom: 10px;
}

a {
    color: var(--link);
    text-decoration: underline;
}

a:visited {
    color: var(--visited);
}

a:hover {
    text-decoration: none;
    background: #ffff66;
    color: #c00000;
}

:focus-visible {
    outline: 2px dashed #ff0066;
    outline-offset: 2px;
}

b,
strong {
    font-weight: bold;
}

b {
    color: var(--hl);
}

.highlight-text {
    font-weight: bold;
    color: var(--hl);
}

.ncap {
    text-transform: none;
}

img {
    image-rendering: auto;
}

pre {
    background: #000;
    color: #c0c0c0;
    padding: 8px;
    border: 2px inset #808080;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 12px;
}

i.fa-external-link-alt,
.fa-solid.fa-external-link-alt {
    display: none;
}

a[target="_blank"]:not(.project-card):not(.animation-card)::after {
    content: " \00bb";
    font-size: 0.9em;
}

.project-card[target="_blank"] .project-title::after,
.animation-card[target="_blank"] .animation-title::after {
    content: " \00bb";
}

.shell {
    color: var(--ink);
    min-height: 100vh;
    padding: 12px 10px 30px 24px;
}

.banner {
    max-width: 900px;
    margin-bottom: 8px;
    padding: 6px 10px 0;
    background: #2a1710 url("/imgs/tile-checker.svg");
    border: 3px ridge var(--banner-edge);
    overflow: hidden;
    height: 80px;
}

.banner-logo,
.banner-logo:visited {
    display: inline-block;
    font-family: var(--pixel);
    font-weight: 700;
    font-size: 54px;
    line-height: 1.05;
    text-decoration: none;
    letter-spacing: 1px;
}

.banner-logo:hover {
    background: none;
}

.banner-x {
    color: #ffd500;
    text-shadow:
        1px 1px 0 #7a4a00,
        2px 2px 0 #7a4a00,
        3px 3px 0 #000;
}

.banner-p {
    color: #ff5fa8;
    text-shadow:
        1px 1px 0 #7a1244,
        2px 2px 0 #7a1244,
        3px 3px 0 #000;
}

.banner-dot {
    font-size: 24px;
    color: #7fd6ff;
    text-shadow: 2px 2px 0 #000;
}

.banner-tag {
    display: inline-block;
    margin: 0 0 0 14px;
    font-family: var(--hand);
    font-size: 26px;
    line-height: 1;
    color: #ffe9a8;
    transform: rotate(-3deg);
}

.banner-ticker {
    margin: 4px -10px 0;
    padding: 2px 0;
    overflow: hidden;
    white-space: nowrap;
    background: #000;
    border-top: 1px dotted #ff8a00;
    color: #39ff14;
    font-family: "Courier New", monospace;
    font-size: 12px;
}

.banner-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 38s linear infinite;
}

.banner-ticker:hover span {
    animation-play-state: paused;
}

@keyframes ticker {
    to {
        transform: translateX(-100%);
    }
}

.page {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr) 168px;
    gap: 10px;
    max-width: 900px;
    align-items: start;
}

.page-wide {
    grid-template-columns: 142px minmax(0, 1fr);
}

.main {
    min-width: 0;
}

.side {
    font-size: 11px;
    line-height: 1.4;
}

.box {
    margin-bottom: 9px;
}

.box h3 {
    font-family: var(--pixel);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
}

.box ul {
    list-style: none;
}

.nav-box {
    background: #3c3c3c;
    border: 2px outset #a0a0a0;
    color: #eee;
}

.nav-box h3 {
    padding: 3px 5px;
    background: #ff8a00;
    color: #000;
}

.nav-box li {
    border-top: 1px solid #5a5a5a;
}

.nav-box li:first-child {
    border-top: 0;
}

.nav-box a,
.nav-box a:visited {
    display: block;
    padding: 3px 6px 3px 12px;
    color: #ffc266;
    text-decoration: none;
}

.nav-box a:hover {
    background-color: #ff8a00;
    color: #000;
}

.affiliate-box {
    padding: 5px 7px 7px;
    background: #fff9b0;
    border: 1px dashed #7a6c3a;
    color: #3a3000;
}

.affiliate-box h3 {
    margin-bottom: 3px;
    border-bottom: 1px dotted #7a6c3a;
}

.affiliate-box li {
    padding: 1px 0;
}

.affiliate-box a {
    color: #6b0f8f;
}

.scrap-box {
    margin-left: 6px;
    padding: 6px 8px;
    background: #ffd2e6;
    border: 1px solid #c0508a;
    transform: rotate(-2.5deg);
}

.scrap-box .scribble {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    color: #7a0a3d;
}

.scribble {
    font-family: var(--hand);
    font-size: 30px;
    line-height: 1;
    color: #c1122f;
    transform: rotate(-2deg);
    transform-origin: left center;
}

.updates-box {
    padding-bottom: 5px;
    background: #eaf2f4;
    border: 1px solid #5f8f9a;
    color: #123;
}

.updates-box h3 {
    margin-bottom: 4px;
    padding: 3px 5px;
    background: linear-gradient(#7fc1cf, #3d8797);
    color: #fff;
    text-shadow: 1px 1px 0 #1a4a56;
}

.updates-box li {
    padding: 2px 6px 4px;
    border-bottom: 1px dotted #8fb2ba;
}

.updates-box li:last-child {
    border-bottom: 0;
}

.updates-box b {
    color: #0b5a6a;
}

.blogroll-box {
    padding: 0 0 4px;
    background: #1f7a1f;
    border: 3px double #fff800;
    color: #fff;
}

.blogroll-box h3 {
    padding: 3px 6px;
    background: #fff800;
    color: #174d17;
}

.blogroll-box li {
    padding: 1px 6px 1px 14px;
    background: url("/imgs/heart.svg") no-repeat 2px 50% / 7px 6px;
}

.blogroll-box a,
.blogroll-box a:visited {
    color: #fff800;
}

.blogroll-box a:hover {
    background: #fff800;
    color: #174d17;
}

.buttons-box {
    padding: 5px;
    background: #000;
    border: 2px ridge #888;
    color: #ddd;
}

.buttons-box h3 {
    margin-bottom: 5px;
    color: #39ff14;
}

.b88 {
    display: block;
    width: 88px;
    height: 31px;
    margin: 0 auto 4px;
    padding-top: 7px;
    border: 1px solid #fff;
    font-family: var(--pixel);
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    box-shadow:
        inset -1px -1px 0 rgba(0, 0, 0, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.b88-next {
    background: #000;
    color: #fff;
    border-color: #888;
}

.b88-bun {
    background: #fbf0df;
    color: #3a2a12;
    border-color: #3a2a12;
}

.b88-flash {
    background: linear-gradient(#ff5a5a, #a00000);
    color: #fff;
}

.b88-any {
    background: linear-gradient(#a0d8ff, #2f6fc0);
    color: #fff;
}

.titlebar {
    margin: 0 0 10px;
    padding: 6px 10px;
    background: var(--title-bg);
    border: 2px outset var(--title-border);
    color: var(--title-fg);
}

.titlebar h1 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 27px;
    line-height: 1.15;
    color: var(--title-fg);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.content-wrapper {
    margin-bottom: 14px;
}

.section {
    margin-bottom: 12px;
    padding: 8px 12px 6px;
    background: var(--sec-bg);
    border: 1px solid var(--sec-border);
}

.section h2 {
    margin-bottom: 6px;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.2;
    color: var(--h2-color);
}

.section p,
.section li {
    font-size: 13px;
}

.section ul {
    margin: 0 0 10px;
    padding-left: 22px;
    list-style: square;
}

.section li {
    margin-bottom: 4px;
}

.section p:last-child {
    margin-bottom: 4px;
}

[data-theme="home"] .content-wrapper > .section:nth-child(even) {
    margin-left: 14px;
}

[data-theme="home"] .content-wrapper > .section:nth-child(3n) {
    margin-right: 10px;
}

.s-about {
    position: relative;
    padding: 10px 14px 8px;
    background: #fffdf2 url("/imgs/tile-paper.svg");
    border: 1px solid #a89a73;
    box-shadow: 3px 3px 0 #9d8fc9;
    overflow: hidden;
}

.s-about h2 {
    font-family: var(--pixel);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px dotted #c04fd8;
}

.s-about .scribble {
    margin-bottom: 8px;
}

.polaroid {
    float: left;
    margin: 4px 14px 6px 2px;
    padding: 5px 5px 20px;
    background: #fff;
    border: 1px solid #999;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
    transform: rotate(-4deg);
    position: relative;
}

.polaroid::before {
    content: "";
}

.s-projects {
    background: #0a140d url("/imgs/tile-weave.svg");
    border: 3px inset #4fa568;
    color: #7dff8a;
    font-family: "Courier New", Courier, monospace;
    --link: #7ffff0;
    --visited: #d3a6ff;
    --hl: #ffec3d;
}

.s-projects h2 {
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: #c8ff3d;
}

.s-projects h2::before {
    content: "C:\\xdpxi\\projects> ";
    color: #7dff8a;
}

.s-projects h2::after {
    content: "_";
    animation: blink 1.1s steps(1) infinite;
}

.s-projects p,
.s-projects li {
    font-size: 13px;
}

.s-projects a:hover {
    background: #7ffff0;
    color: #000;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.s-commish {
    background: #ffd6ec url("/imgs/tile-dots.svg");
    border: 3px dotted #d6338d;
    color: #3f0a2a;
    --link: #8f0057;
    --visited: #5a2a9a;
    --hl: #8f0057;
}

.s-commish h2 {
    font-family: "Comic Sans MS", "Chalkboard SE", var(--verdana);
    font-size: 18px;
    color: #7a0a8f;
    text-shadow: 1px 1px 0 #fff;
}

.s-commish p {
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.55);
}

.s-commish a:hover {
    background: #fff;
    color: #c00060;
}

.privatised-project {
    display: inline-block;
    opacity: 0.6;
    cursor: help;
    text-decoration: line-through;
}

.contact-note {
    margin-top: 10px;
}

.s-anim {
    background: #c9bf8f url("/imgs/tile-stripe.svg");
    border: 2px solid #4a4220;
    color: #1d1a08;
    --link: #5a1a00;
    --visited: #3f2a6a;
    --hl: #8c2a00;
}

.s-anim h2 {
    display: inline-block;
    margin: -8px 0 8px -12px;
    padding: 2px 12px 2px 12px;
    background: #b83b05;
    color: #fff;
    font-family: var(--pixel);
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid #4a4220;
    border-right: 2px solid #4a4220;
}

.s-anim a:hover {
    background: #1d1a08;
    color: #ffd24d;
}

.s-blog {
    max-width: 480px;
    background: #2a1710;
    border: 0;
    border-left: 5px solid #ff8a00;
    color: #f0dfc2;
    --link: #ffb066;
    --visited: #d9a6ff;
}

.s-blog h2 {
    margin-bottom: 2px;
    font-family: var(--pixel);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #ff8a00;
}

.entry-title {
    font-family: var(--serif);
    font-size: 17px;
}

.entry-title::after {
    content: " \00bb";
}

.s-blog a:hover {
    background: #ff8a00;
    color: #000;
}


.button {
    margin: 0 8px 8px 0;
    padding: 4px 14px;
    background: #d4d0c8;
    color: #000;
    font-family: Tahoma, var(--verdana);
    font-size: 12px;
    border: 2px outset #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    border-radius: 0;
    cursor: pointer;
}

.button:hover {
    background: #e6e2da;
}

.button:active {
    border-style: inset;
    padding: 5px 13px 3px 15px;
}

.button:disabled {
    color: #808080;
    text-shadow: 1px 1px 0 #fff;
    cursor: not-allowed;
}

form {
    max-width: 500px;
    padding: 10px 12px 12px;
    background: #d4d0c8;
    color: #000;
    border: 2px outset #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
}

label {
    display: block;
    margin-bottom: 3px;
    font-family: Tahoma, var(--verdana);
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 3px 4px;
    background: #fff;
    color: #000;
    font-family: "Courier New", monospace;
    font-size: 13px;
    border: 2px inset #808080;
    border-radius: 0;
}

form p {
    color: #000;
}


[data-theme="projects"] {
    --ink: #0b2a4a;
    --link: #0645ad;
    --visited: #6b2a9a;
    --hl: #0a4a9e;
    --sec-bg: #fff;
    --sec-border: #2f6fc0;
    --h2-color: #0a4a9e;
    --title-bg: linear-gradient(#5aa0ee, #1d5fb8 60%, #0f3f86);
    --title-fg: #fff;
    --title-border: #0a2a5a;
    --foot-bg: #dbe9fb;
    --foot-ink: #0b2a4a;
    --banner-edge: #5aa0ee;
}

[data-theme="projects"] .titlebar h1 {
    font-family: "Courier New", monospace;
    font-style: normal;
    font-weight: bold;
}

[data-theme="projects"] .section {
    border-width: 2px;
    border-style: solid;
    border-radius: 0;
}

[data-theme="projects"] .section h2 {
    font-family: "Courier New", monospace;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.projects-grid,
.animations-grid {
    margin: -2px -4px;
}

.project-card,
.animation-card {
    display: block;
    padding: 5px 8px 4px;
    border-bottom: 1px dashed #7f9fc9;
    text-decoration: none;
    color: inherit;
}

.project-card:nth-child(odd) {
    background: #eef5ff;
}

.project-card:hover,
.animation-card:hover {
    background: #ffff99;
    color: inherit;
}

.project-title,
.animation-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: var(--link);
    text-decoration: underline;
}

.project-title::before {
    content: "\25A0  ";
    font-size: 9px;
    color: #e0a000;
    text-decoration: none;
    display: inline-block;
}

.section .project-description,
.section .animation-description {
    margin: 0 0 2px;
    padding-left: 15px;
    font-size: 12px;
    color: #405a78;
}

[data-theme="animations"] {
    --ink: #f4f4f4;
    --link: #ffd500;
    --visited: #ffb3f0;
    --hl: #ffd500;
    --sec-bg: #111;
    --sec-border: #ffd500;
    --h2-color: #fff;
    --title-bg: #e10600;
    --title-fg: #fff;
    --title-border: #ffd500;
    --foot-bg: #111;
    --foot-ink: #f4f4f4;
    --banner-edge: #e10600;
}

.shell[data-theme="animations"] {
    background: radial-gradient(
            circle,
            #5c4b00 1.5px,
            transparent 2px
        )
        0 0 / 9px 9px;
}

[data-theme="animations"] .titlebar {
    border-style: solid;
    border-width: 3px;
    transform: rotate(-0.6deg);
}

[data-theme="animations"] .titlebar h1 {
    font-family: Impact, "Arial Narrow Bold", sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000;
}

[data-theme="animations"] .section {
    border-width: 3px;
    border-style: solid;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0 10px,
        #333 10px 12px
    );
    background-size: 100% 6px;
    background-repeat: repeat-x;
    background-position: 0 0;
}

[data-theme="animations"] .section h2 {
    display: inline-block;
    padding: 1px 8px;
    background: #e10600;
    font-family: Impact, "Arial Narrow Bold", sans-serif;
    font-weight: normal;
    font-size: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.animation-card {
    border-left: 12px solid #333;
    border-bottom: 2px solid #333;
    margin-bottom: 6px;
    padding: 6px 10px;
    background: #1d1d1d;
}

.animation-card:hover {
    background: #3a0000;
    border-left-color: #e10600;
}

[data-theme="animations"] .animation-title {
    font-family: Impact, "Arial Narrow Bold", sans-serif;
    font-weight: normal;
    font-size: 19px;
    letter-spacing: 1px;
}

[data-theme="animations"] .section .animation-description {
    color: #d8d8d8;
    font-size: 12px;
}

.video-frame {
    margin-bottom: 14px;
    aspect-ratio: 16 / 9;
    padding: 6px;
    background: #000;
    border: 3px ridge #888;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
}

[data-theme="animations"] a:hover {
    background: #ffd500;
    color: #000;
}

[data-theme="blogs"] {
    --ink: #f0dfc2;
    --link: #ffb066;
    --visited: #d9a6ff;
    --hl: #ffb066;
    --sec-bg: #1c1109;
    --sec-border: #5a3320;
    --h2-color: #ff8a00;
    --title-bg: #1c1109;
    --title-fg: #ffb066;
    --title-border: #ff8a00;
    --foot-bg: #1c1109;
    --foot-ink: #f0dfc2;
    --banner-edge: #ff8a00;
}

[data-theme="blogs"] .titlebar {
    max-width: 520px;
    border-style: solid;
    border-width: 0 0 3px 0;
    padding: 8px 6px 4px;
}

[data-theme="blogs"] .titlebar h1 {
    font-family: var(--pixel);
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    text-transform: lowercase;
    text-shadow: 2px 2px 0 #000;
}

[data-theme="blogs"] .content-wrapper {
    max-width: 520px;
}

[data-theme="blogs"] .section {
    padding: 8px 12px;
    border-width: 0 0 1px;
    border-bottom: 1px dotted #7a4a30;
}

[data-theme="blogs"] .section p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 8px;
}

[data-theme="blogs"] a:hover {
    background: #ff8a00;
    color: #000;
}

[data-theme="legal"],
[data-theme="license"] {
    --ink: #111;
    --link: #0000cc;
    --visited: #551a8b;
    --hl: #7a0000;
    --sec-bg: transparent;
    --sec-border: transparent;
    --h2-color: #000;
    --title-bg: #ddd3b4;
    --title-fg: #000;
    --title-border: #8a7f5a;
    --foot-bg: #ddd3b4;
    --foot-ink: #111;
    --banner-edge: #8a7f5a;
}

[data-theme="legal"] .titlebar,
[data-theme="license"] .titlebar {
    border: 1px solid #8a7f5a;
    padding: 4px 8px;
}

[data-theme="legal"] .titlebar h1,
[data-theme="license"] .titlebar h1 {
    font-family: "Times New Roman", serif;
    font-style: normal;
    font-size: 24px;
    text-shadow: none;
}

[data-theme="legal"] .content-wrapper,
[data-theme="license"] .content-wrapper {
    padding: 8px 14px;
    background: #fbf6e6;
    border: 1px solid #8a7f5a;
}

[data-theme="legal"] .section,
[data-theme="license"] .section {
    margin-bottom: 4px;
    padding: 0 0 2px;
    border: 0;
    font-family: "Times New Roman", Times, serif;
}

[data-theme="legal"] .section h2,
[data-theme="license"] .section h2 {
    margin: 10px 0 4px;
    font-family: "Times New Roman", Times, serif;
    font-size: 17px;
    border-bottom: 1px solid #000;
}

[data-theme="legal"] .section p,
[data-theme="legal"] .section li,
[data-theme="license"] .section p,
[data-theme="license"] .section li {
    font-size: 15px;
    line-height: 1.45;
}

[data-theme="404"] {
    --sec-border: #000;
}

.s-404,
.s-redirect {
    text-align: center;
    padding: 18px 12px 12px;
    border: 4px double #000;
    background: #fffbd0;
}

.s-redirect h2 {
    font-family: var(--pixel);
    font-size: 14px;
    text-transform: uppercase;
}

.footer {
    max-width: 900px;
    margin-top: 12px;
    padding: 6px 10px 8px;
    background: var(--foot-bg);
    color: var(--foot-ink);
    border: 1px solid var(--sec-border);
    border-top: 3px double var(--sec-border);
    font-size: 11px;
}

.footer h3 {
    margin-bottom: 4px;
    font-family: var(--pixel);
    font-size: 10px;
    text-transform: lowercase;
}

.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    list-style: none;
}

.footer a,
.footer a:visited {
    color: var(--link);
}

.footer a:hover {
    background: #ffff66;
    color: #c00000;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed currentColor;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom img:first-child {
    border: 1px solid #000;
}

.heart-icon {
    vertical-align: baseline;
}

.colorBarsContainer {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 10px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 0;
    opacity: 1;
}

.colorBarsContainer.left {
    left: 0;
    right: auto;
}

.colorBarsContainer.right {
    right: 0;
    left: auto;
}

.colorBarsContainer.expanded {
    width: 100vw;
}

.colorBarsContainer.collapsing {
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.colorBarsContainer.hovering {
    width: 30px;
    cursor: pointer;
}

.colorBarsContainer.disabled {
    opacity: 0.5;
}

.colorBar {
    flex: 1;
    width: 100%;
    height: calc(100vh / 6);
    transition: background-color 0.5s ease;
}

.colorBarsText {
    position: fixed;
    top: 50%;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.colorBarsText.visible {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.colorBarsContainer.left .colorBarsText {
    left: 15px;
    transform: translateY(-50%) translateX(-50%) rotate(-90deg);
    transform-origin: center center;
}

.colorBarsContainer.right .colorBarsText {
    right: 15px;
    transform: translateY(-50%) translateX(50%) rotate(90deg);
    transform-origin: center center;
}

@media (max-width: 780px) {
    .shell {
        padding: 8px 6px 20px 16px;
    }

    .page,
    .page-wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-left {
        order: -1;
    }

    .side-left .nav-box ul {
        display: flex;
        flex-wrap: wrap;
    }

    .side-left .nav-box li {
        border: 0;
        border-right: 1px solid #5a5a5a;
    }

    .side-left .scrap-box,
    .banner-tag {
        display: none;
    }

    .banner-logo {
        font-size: 38px;
    }

    .side-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }

    [data-theme="home"] .content-wrapper > .section:nth-child(even),
    [data-theme="home"] .content-wrapper > .section:nth-child(3n) {
        margin-left: 0;
        margin-right: 0;
    }

    .titlebar h1 {
        font-size: 22px;
    }

    [data-theme="animations"] .titlebar h1 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-ticker span {
        animation: none;
        padding-left: 10px;
        white-space: normal;
    }

    .banner-ticker {
        white-space: normal;
    }

    .s-projects h2::after {
        animation: none;
    }

    .colorBarsContainer,
    .colorBar {
        transition: none;
    }
}

.design-picker {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(40, 20, 70, 0.35);
}

.design-picker-panel {
    width: 100%;
    max-width: 400px;
    background: #fffdf2 url("/imgs/tile-paper.svg");
    border: 3px ridge #7a5cc4;
    box-shadow: 4px 4px 0 #4b1a6e;
    text-align: center;
}

.design-picker-title {
    margin: 0;
    padding: 6px 10px;
    background: linear-gradient(#ff9fd0, #c04fd8 55%, #8a2fb5);
    border-bottom: 2px solid #4b1a6e;
    color: #fff;
    font-family: var(--pixel);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 0 #4b1a6e;
}

.design-picker-hint {
    margin: 12px 12px 10px;
    font-family: var(--hand);
    font-size: 14px;
    color: #a3144f;
}

.design-picker-choices {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 12px 16px;
}

.design-picker-choice {
    min-width: 110px;
    padding: 6px 14px;
    background: #d4d0c8;
    color: #000;
    font-family: Tahoma, var(--verdana);
    font-size: 13px;
    border: 2px outset #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    border-radius: 0;
    cursor: pointer;
}

.design-picker-choice:hover,
.design-picker-choice:focus-visible {
    background: #ff8a00;
    outline: 1px dotted #000;
    outline-offset: -5px;
}

.design-picker-choice:active {
    border-style: inset;
}

@keyframes design-picker-flash {
    0%,
    49% {
        background: #d4d0c8;
    }
    50%,
    100% {
        background: #ff8a00;
    }
}

.design-picker-choice-old {
    animation: design-picker-flash 1.2s step-end infinite;
}

.design-picker-choice-old:hover,
.design-picker-choice-old:focus-visible {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .design-picker-choice-old {
        animation: none;
    }
}

.footer-modern {
    display: none;
}

.banner {
    height: auto;
}

.banner-ticker {
    margin-top: 6px;
}

.stats-box {
    padding: 0 0 4px;
    background: #fff3c4;
    border: 2px dashed #b8860b;
    color: #3a2a00;
}

.stats-box h3 {
    padding: 3px 6px;
    background: #b8860b;
    color: #fff3c4;
}

.stats-box dl {
    margin: 0;
    padding: 0 6px;
}

.stats-box dt {
    font-weight: bold;
    color: #7a4a00;
}

.stats-box dd {
    margin: 0 0 3px;
    font-family: "Courier New", monospace;
}

.s-card {
    margin-right: 30px;
    padding: 10px 14px 8px;
    background: #fffdf2 url("/imgs/tile-paper.svg");
    border: 1px solid #a89a73;
    box-shadow: 3px 3px 0 #9d8fc9;
    transform: rotate(0.6deg);
}

.s-card h2 {
    margin-bottom: 6px;
    font-family: var(--pixel);
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px dotted #c04fd8;
}

.facts {
    width: 100%;
    border-collapse: collapse;
}

.facts th,
.facts td {
    padding: 3px 4px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    border-bottom: 1px dotted #c9b98f;
}

.facts th {
    width: 96px;
    font-family: var(--serif);
    font-style: italic;
    color: var(--hl);
    white-space: nowrap;
}

.facts th::after {
    content: ":";
}

.facts tr:last-child th,
.facts tr:last-child td {
    border-bottom: 0;
}

.s-now {
    margin-left: 14px;
    padding: 0 0 6px;
    background: #f3ecff;
    border: 2px solid var(--sec-border);
    box-shadow: 3px 3px 0 #4b1a6e;
}

.s-now h2 {
    margin: 0 0 6px;
    padding: 3px 12px;
    background: var(--title-bg);
    border-bottom: 2px solid var(--title-border);
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    color: #fff;
    text-shadow: 1px 1px 0 #4b1a6e;
}

.s-now ul {
    margin: 0;
    padding: 0 12px;
    list-style: none;
}

.s-now li {
    margin: 0;
    padding: 2px 0 2px 18px;
    background: url("/imgs/heart.svg") no-repeat 2px 7px / 11px 10px;
    border-bottom: 1px dotted #b7a3e6;
}

.s-now li:last-child {
    border-bottom: 0;
}

.s-mods {
    margin-right: 12px;
    padding: 0 0 8px;
    background: #05050f;
    border: 4px ridge #ff2fa0;
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
    color: #fff;
    font-family: var(--pixel);
    --link: #ffe600;
    --visited: #ff9fd0;
    --hl: #00e5ff;
}

.s-mods h2 {
    margin: 0 0 6px;
    padding: 6px 8px;
    background: repeating-linear-gradient(90deg, #ff2fa0 0 12px, #7a1a9a 12px 24px);
    font-family: var(--pixel);
    font-size: 16px;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.s-mods p {
    margin: 0 10px 6px;
    font-size: 10px;
    text-align: center;
    color: #00e5ff;
}

.s-mods ol {
    margin: 0 10px;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}

.s-mods li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 3px 0;
    border-bottom: 1px dotted #3a3a6a;
    font-size: 11px;
    counter-increment: rank;
}

.s-mods li::before {
    content: counter(rank) ".";
    min-width: 18px;
    color: #fff;
}

.s-mods li:nth-child(1)::before { color: #ffd500; }
.s-mods li:nth-child(2)::before { color: #c8d0d8; }
.s-mods li:nth-child(3)::before { color: #e08a3c; }

.s-mods a:hover {
    background: #ffe600;
    color: #000;
}

.s-mods .mods-all {
    display: block;
    margin: 10px 10px 2px;
    padding: 6px 8px;
    border: 2px solid #00e5ff;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    color: #00e5ff;
}

.s-mods .mods-all:hover,
.s-mods .mods-all:focus-visible {
    background: #ffe600;
    border-color: #ffe600;
    color: #000;
}

.dl {
    margin-left: auto;
    color: #39ff14;
    font-size: 10px;
    white-space: nowrap;
}


@media (prefers-reduced-motion: reduce) {
    .banner-ticker span {
        animation: none;
    }
}
