/* This is a free layout for anyone to use!
All I ask is that you keep this credit in-tact, or that you put my website link
(https://nonkiru.art) somewhere on your site. 

Otherwise, edit this as much as you'd like! 

Last Updated: 4th August 2023 */

/* These are the default colour codes for the layout.
Changing the colour code here will update it for any element that uses it. */

:root {
    /* Default: Pink */
    --primary: #85ab69;

    /* Default: Light Pink */
    --primary_light: #accf9d;

    /* Default: Dark Pink */
    --primary_dark: #9cc48b;

    /* Default: White */
    --secondary: #f3f5e9;

    /* Default: Brown */
    --tertiary: #73756a;

    /* Default: Blue */
    --link: #3269db;
}

body {
    background-color: #24352b;
    background-image: url('img/bg/dithered_fhd.webp');
    background-image: image-set(
        url('img/bg/dithered_fhd.webp') 1x,
        url('img/bg/dithered.webp') 2x
    );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--tertiary);
    word-break: inherit;
    font-family: 'basiic', sans-serif;
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
}

/* Link Styling */
a {
    color: var(--link);
    /* Adds a smooth effect to link hover. */
    transition: 0.1s all ease-in-out;
}

a:hover {
    color: var(--primary_dark);
}

/* Header Styling */
h1 {
    display: block;
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h2 {
    display: block;
    font-size: 17px;
    margin-top: 3px;
    margin-bottom: 7px;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h3 {
    display: block;
    font-size: 16px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 0;
    margin-right: 0;
    font-weight: 900;
}

.container {
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    border-radius: 2px;
    width: max-content;
    overflow: hidden;
    box-shadow: 2px 2px 0px var(--primary);
    margin: 5px;
    cursor: move;
}

.containercommunity {
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    border-radius: 2px;
    width: 600px;
    overflow-y: auto;
    box-shadow: 2px 2px 0px var(--primary);
    margin: 5px;
    cursor: move; 
}

.custom-dynamic-card {
    background: var(--secondary);
    border: 1px solid var(--tertiary);
    border-radius: 2px;
    box-shadow: 2px 2px 0px var(--primary);
    margin: 5px;
    cursor: move;
    max-width: 96vw;
}

.custom-card-content {
    color: var(--tertiary);
    font-size: 0.95em;
    line-height: 1.45;
}

.box {
    border: 1px solid var(--primary);
    padding: 10px;
    overflow: auto;
    max-height: 500px;
    scrollbar-color: #c3dbb8 #f9faf2;
}

.minibox {
    border: 2px dotted #c3dbb8;
    background-color: #f9faf2;
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
    width: fit-content;
    max-height: 200px;
    overflow: auto;
    scrollbar-color: #c3dbb8 #f9faf2;
    scrollbar-width: thin;
    text-align: left;
}

/* Styling the scrollbar in Chrome and Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #c3dbb8; /* Set thumb color for Chrome and Safari */
}

::-webkit-scrollbar-track {
  background-color: #f9faf2; /* Set track color for Chrome and Safari */
}

.box_header {
    border: 1px solid var(--primary);
    background-color: var(--primary_light);
    height: 20px;
    padding: 5px;
    /* This centers the text vertically. */
    line-height: 20px;
}

.box_header header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.window-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.skin-shuffle {
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 1px outset #a6d3fa;
    background: #4d80b9;
    color: #fff;
    padding: 0;
    font: bold 11px/1 Arial, sans-serif;
    cursor: pointer;
}

.skin-shuffle:not([hidden]) {
    display: inline-grid;
    place-items: center;
}

.skin-shuffle:active {
    background: #235baf;
    border-style: inset;
}

.skin-shuffle:disabled {
    opacity: 0.6;
    cursor: default;
}

.music-local-controls:not([hidden]),
.music-transport {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.music-transport {
    margin-right: 2px;
    padding-right: 3px;
    border-right: 1px solid var(--primary);
}

.music-control:not([hidden]) {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 17px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #30442b;
    font: bold 10px/1 Arial, sans-serif;
    cursor: pointer;
}

.music-control span {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 1px outset #d5e6bc;
    background: #edf3e3;
}

.music-control.skin-shuffle span {
    background: #4d80b9;
    border-color: #a6d3fa;
    color: #fff;
}

.music-control.win-btn-solo span {
    background: #3e6f42;
    border-color: #b8dba4;
    color: #fff;
}

.music-control.win-btn-solo[aria-pressed="true"] span {
    background: #234c2a;
    border-style: inset;
}

.music-control.music-minimize span {
    background: #f8efbd;
    border-color: #fff6cd;
}

.music-control:not(:disabled):hover span {
    filter: brightness(1.1);
}

.music-control:active span {
    border-style: inset;
}

.music-control:disabled {
    opacity: 0.5;
    cursor: default;
}

.window-controls .win-btn {
    width: auto;
    height: 14px;
    cursor: pointer;
    display: inline-block;
    transition: filter 0.1s ease;
}

.window-controls .win-btn-cog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    margin-right: 2px;
}

.window-controls .win-btn-cog-link:hover .win-btn-admin {
    filter: brightness(115%);
    transform: rotate(30deg);
}

.window-controls .win-btn-admin {
    width: auto;
    height: 14px;
    cursor: pointer;
    display: inline-block;
    transition: filter 0.1s ease, transform 0.2s ease;
    user-select: none;
}

/* Changes the brightness of the fake buttons on hover. Also changes the cursor. */
.box_header img:hover, .window-controls .win-btn:hover {
    filter: brightness(103%);
    cursor: pointer;
}

/* Darkens and saturates the buttons on click. Also changes the cursor. */
.box_header img:active, .window-controls .win-btn:active {
    filter: brightness(97%) saturate(125%);
    cursor: pointer;
}

#para {
  display: block;
}
.collapsed {
  display: none;
}

::selection {
  background-color: peachpuff;
}

.animation--off {
  animation: none !important;
}

a .ff-container.ff-active .ff-image,
a .ff-container.ff-inactive .ff-canvas.ff-canvas-ready {
  transition: none !important;
  -o-transition: none !important;
  -moz-transition: none !important;
  -webkit-transition: none !important;
}
.ff-container.ff-responsive {
  width: 88px !important;
  height: 31px;
}
.ff-container.ff-responsive .ff-image,.ff-container.ff-responsive .ff-canvas {
  width: 88px !important;
  height: 31px;
}
a:hover img,
a:hover .ff-container.ff-active .ff-image,
a:hover .ff-container.ff-inactive .ff-canvas.ff-canvas-ready {
  opacity: 90% !important;
}

a:hover .ff-container.ff-inactive .ff-image {
  opacity: 0 !important;
}

/* Draggable Interactive Cat Mascots (Mila, Milo & Timo) */
.cat-pagedoll {
    position: fixed;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    cursor: grab;
    z-index: 900;
    will-change: transform;
    transform-origin: center center;
    /* Clean tactile vinyl sticker drop shadow */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: filter 0.18s ease;
}

.cat-pagedoll:hover {
    filter: drop-shadow(0 0 12px rgba(255, 230, 140, 0.9)) 
            drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.cat-pagedoll.grabbing {
    cursor: grabbing !important;
    filter: drop-shadow(0 0 16px rgba(255, 240, 180, 0.95)) 
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) !important;
}

/* Sparkle particles on Timo transfer */
.cat-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 18px;
    user-select: none;
    animation: sparkle-fade 0.55s ease-out forwards;
}

@keyframes sparkle-fade {
    0% { opacity: 1; transform: translate(0, 0) scale(1.3); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* Floating Love Hearts on Milo & Mila Interaction */
.cat-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 22px;
    user-select: none;
    -webkit-user-select: none;
    animation: heart-float 0.85s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
    filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.6));
}

@keyframes heart-float {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    18% {
        opacity: 1;
        transform: translate(calc(var(--hdx) * 0.3), calc(var(--hdy) * 0.3)) scale(1.3) rotate(var(--hrot, 0deg));
    }
    100% {
        opacity: 0;
        transform: translate(var(--hdx), var(--hdy)) scale(1.6) rotate(calc(var(--hrot, 0deg) * 1.8));
    }
}

summary:hover {
  cursor: pointer;
}

.pfp {
  position: relative;
  float: left;
  margin-right: 14px;
  margin-bottom: 8px;
  width: 200px;
}

.about-card-box {
    max-height: none;
    overflow: visible;
}

.about-flex-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.about-pfp-column {
    flex: 0 0 200px;
    max-width: 200px;
}

.about-pfp-column .pfp {
    position: relative;
    width: 200px;
    margin: 0;
    float: none;
}

#profile-picture,
.press-portrait {
    outline: 1px solid #45633b;
    outline-offset: -1px;
}

.press-portrait {
    width: min(200px, 100%);
}

#profile-picture[hidden] {
    display: none;
}

.about-pfp-column:has(#profile-picture[hidden]) {
    flex-basis: 42px;
    width: 42px;
}

.pfp:has(#profile-picture[hidden]) {
    width: 42px;
    min-height: 42px;
}

#profile-img:not([src]) {
    visibility: hidden;
}

.about-details-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.about-bio-box {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
}

.about-contact-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.about-links-row,
#profile-socials-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.profile-action:not([hidden]) {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border: 1px solid #41613c;
    border-radius: 50%;
    background: #426c47;
    color: #f7faef;
}

.profile-action[href]:hover {
    background: #284d2e;
}

.profile-action[aria-disabled="true"] {
    background: #e5eddb;
    border-color: #b8c8a9;
    color: #596954;
}

.profile-mail-icon {
    position: relative;
    width: 16px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    overflow: hidden;
}

.profile-mail-icon::after {
    position: absolute;
    top: -7px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    content: '';
}

.profile-resume-icon {
    width: 12px;
    height: 16px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 3px) center / 7px 7px no-repeat;
}

/* Bell uses the same square edges and gold accents as the window controls. */
.cat-bell-btn {
  position: absolute;
  bottom: 1px;
  right: 1px;
  background: #acc895;
  border: 1px solid #45633b;
  border-radius: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 1px 1px #e4efcd, inset -1px -1px #729361;
  user-select: none;
  padding: 0;
  z-index: 10;
}

.cat-bell-btn:hover {
  background: #c0d6aa;
}

.cat-bell-btn:focus-visible {
  outline: 2px solid #fffde9;
  outline-offset: 2px;
}

.cat-bell-btn:active, .cat-bell-btn.ringing {
  background: #98b584;
  box-shadow: inset 1px 1px #729361, inset -1px -1px #e4efcd;
}

.bell-icon {
  position: relative;
  width: 16px;
  height: 16px;
  background: #45633b;
  clip-path: polygon(7px 1px, 9px 1px, 9px 3px, 11px 3px, 11px 4px, 12px 4px, 12px 9px, 13px 9px, 13px 11px, 14px 11px, 14px 13px, 10px 13px, 10px 15px, 6px 15px, 6px 13px, 2px 13px, 2px 11px, 3px 11px, 3px 9px, 4px 9px, 4px 4px, 5px 4px, 5px 3px, 7px 3px);
}

.bell-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f1e88a;
  clip-path: polygon(6px 4px, 10px 4px, 10px 5px, 11px 5px, 11px 10px, 12px 10px, 12px 12px, 4px 12px, 4px 10px, 5px 10px, 5px 5px, 6px 5px);
}

@media (prefers-reduced-motion: no-preference) {
  .cat-bell-btn.ringing .bell-icon {
    animation: bell-ring-anim 0.45s step-end;
  }

  @keyframes bell-ring-anim {
    20%, 60% { transform: translateX(-1px); }
    40%, 80% { transform: translateX(1px); }
  }
}

/* Sound notes on bell ring */
.bell-note {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 16px;
  user-select: none;
  animation: bell-note-float 0.75s ease-out forwards;
}

@keyframes bell-note-float {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--ndx), var(--ndy)) scale(1.3); }
}

.hmh {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.hmh img {
  max-width: 100%;
  height: auto;
}

/* Social & Contact Icons: Snew/Cheesecake 32px badge row */
.social-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px 0;
}

.social-icons-row a img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    transition: transform 0.15s ease, filter 0.15s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.social-icons-row a img:hover {
    transform: scale(1.15) translateY(-2px);
    filter: brightness(110%) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

/* Webamp Dock Container (Default Classic Winamp 2) */
#drag5:has(#webamp-container) {
    box-sizing: border-box;
    width: min(100%, calc(var(--webamp-width, 275px) + 10px)) !important;
}

#drag5 .box {
    width: 100%;
    box-sizing: border-box;
    padding: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondary);
    min-height: auto;
    height: auto;
    overflow: visible;
}

#webamp-container {
    width: 100%;
    height: var(--webamp-height, auto);
    position: relative;
    flex-shrink: 0;
}

.desktop-home #webamp-container {
    overflow: clip;
}

#webamp-container #webamp {
    transform-origin: top left;
    transform: translate(var(--webamp-x, 0px), var(--webamp-y, 0px)) scale(var(--webamp-scale, 1));
}

/* Suppress Equalizer window and button */
#webamp #equalizer-window,
#webamp #equalizer-button {
    display: none !important;
    pointer-events: none !important;
}

/* Winamp Playlist Window: display full authentic bottom bar to complete skin frame and eliminate black voids */
#webamp #playlist-window .playlist-bottom {
    display: block !important;
    pointer-events: auto !important;
    height: 38px !important;
}

#webamp #playlist-window .playlist-middle {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Prevent accidental closing or minimizing of player and playlist */
#webamp #main-window #close,
#webamp #main-window #minimize,
#webamp #playlist-window #playlist-close-button,
#webamp #playlist-window #playlist-shade-button {
    display: none !important;
    pointer-events: none !important;
}

/* Fullscreen Background MilkDrop Visualizer */
#milkdrop-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#milkdrop-canvas.active {
    opacity: 1;
}

/* MilkDrop Preset HUD Toast */
#milkdrop-hud {
    position: fixed;
    bottom: 14px;
    right: 16px;
    z-index: 8500;
    background: rgba(24, 40, 30, 0.88);
    backdrop-filter: blur(4px);
    border: 1px solid var(--primary);
    border-radius: 3px;
    padding: 5px 12px;
    font-family: 'basiic', sans-serif;
    font-size: 11px;
    color: #eaf2e5;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#milkdrop-hud.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Top Minimized Tray
   ========================================================================= */
#minimized-tray {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(172, 207, 157, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: 'basiic', sans-serif;
    box-sizing: border-box;
    min-height: 34px;
}

#minimized-tray.has-items {
    display: flex;
}

.tray-tabs-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tray-preset-controller {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(24, 40, 30, 0.88);
    border: 1px solid var(--primary);
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: auto;
    user-select: none;
}

.preset-arrow-btn {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: 2px;
    color: var(--tertiary);
    font-size: 11px;
    font-family: 'basiic', sans-serif;
    font-weight: bold;
    padding: 2px 7px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.1s ease;
}

.preset-arrow-btn:hover {
    background: #ffffff;
    color: var(--primary_dark);
}

.preset-arrow-btn:active {
    transform: translateY(1px);
}

.tray-preset-name {
    font-size: 11px;
    font-weight: bold;
    color: #eaf2e5;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.5px;
    padding: 0 4px;
    cursor: pointer;
}

.tray-preset-name:hover {
    color: #ffffff;
    text-decoration: underline;
}

.preset-mode-badge {
    font-size: 10px;
    cursor: pointer;
    opacity: 0.85;
    padding: 0 2px;
}

.preset-mode-badge:hover {
    opacity: 1;
}

#minimized-tray.has-items {
    display: flex;
}

.wrapper .container.is-docked {
    visibility: hidden;
}

#sitemap-content .site-map-group + .site-map-group {
    margin-top: 0.85em;
}

#sitemap-content .minibox {
    max-height: none;
    overflow: visible;
    width: auto;
}

#drag10 > .box {
    max-height: none;
}

.site-map-section > summary,
.bench-log-older > summary {
    box-sizing: border-box;
    min-height: 36px;
    padding: 7px;
    color: var(--link);
    cursor: pointer;
}

.site-map-section {
    scroll-margin-block-start: 48px;
}

.site-map-section > summary {
    margin: 2px 0;
    border: 1px solid #c3dbb8;
    background: #edf3e3;
}

.site-map-section[open] > summary {
    background: #dceacc;
}

.site-map-content {
    padding: 0 7px 7px;
    overflow-wrap: anywhere;
}

.site-map-content > h2 {
    margin: 8px 0;
}

.site-section-entries {
    margin: 8px 0;
    padding-left: 1.5em;
}

.site-section-entries li {
    margin-bottom: 0.45em;
}

.site-section-entries p {
    margin: 0.2em 0 0.5em;
}

.site-section-nav {
    padding-top: 8px;
}

.site-route-button {
    border: 0;
    padding: 0;
    background: none;
    color: var(--link);
    font: inherit;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.site-route-button:hover {
    color: var(--primary_dark);
}

.standalone-page {
    box-sizing: border-box;
    min-height: 100dvh;
    padding: clamp(14px, 5vw, 54px) 12px;
}

.standalone-page .container {
    width: min(100%, 740px);
    max-width: 100% !important;
    margin: 0 !important;
    cursor: auto;
}

.standalone-page .standalone-content {
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    padding: clamp(16px, 4vw, 30px);
    line-height: 1.5;
}

.standalone-content h1 {
    font-size: clamp(22px, 5vw, 30px);
}

.standalone-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.standalone-list > li {
    padding: 10px 0;
    border-top: 1px dotted var(--primary);
}

.standalone-list p {
    margin: 3px 0 0;
}

.desktop-home #drag9 > .box,
.desktop-home #updates-feed {
    max-height: none;
    overflow: visible;
}

.desktop-home #updates-feed {
    width: auto;
    margin: 0;
    overflow-wrap: anywhere;
}

.bench-log-post + .bench-log-post,
.bench-log-older {
    margin-top: 0.8em;
}

.update-category {
    color: #5f884a;
    font-size: 10px;
}

.wrapper.music-solo .container.is-docked {
    display: none;
}

.tray-tab {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: 2px;
    padding: 3px 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    color: var(--tertiary);
    cursor: pointer;
    box-shadow: 1px 1px 0px var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.1s ease-in-out;
    user-select: none;
}

.tray-tab:hover {
    background: #ffffff;
    color: var(--primary_dark);
}

/* font stuff! */
@font-face {
    font-family: 'basiic';
    src: url('fonts/basiic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'basiic';
    src: url('fonts/basiic.ttf') format('truetype');
    font-weight: bolder;
    font-display: swap;
}

@font-face {
    font-family: 'basiic';
    src: url('fonts/basiic.ttf') format('truetype');
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'basiic';
    src: url('fonts/basiic.ttf') format('truetype');
    font-style: italic;
    font-weight: bold;
    font-display: swap;
}

b {
    font-weight: bolder;
}

/* =========================================================================
   COMPREHENSIVE MULTI-VIEWPORT RESPONSIVE SYSTEM
   ========================================================================= */

/* Prevent any image from overflowing its container */
.box img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

#featured-project {
    text-align: center;
    margin-bottom: 12px;
}

#featured-project-img {
    display: block;
    width: 400px;
    max-width: 100%;
    height: auto;
    border: 4px solid #ffffff;
    border-radius: 10px;
    margin: 4px auto;
    box-sizing: border-box;
}

/* Wrapper Layout */
.wrapper {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    max-width: 100%;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    gap: 12px;
}

.desktop-home {
    display: grid;
    width: min(100%, 1200px);
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 16px;
}

body:has(.desktop-home) {
    box-sizing: border-box;
    min-height: 100dvh;
}

.desktop-home .about-flex-container {
    align-items: center;
}

.desktop-home .about-bio-box {
    max-width: 78ch;
}

.desktop-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 16px;
}

.desktop-sidebar {
    grid-area: 1 / 1;
}

.desktop-main {
    grid-area: 1 / 2;
}

.desktop-home #drag1,
.desktop-home #drag9,
.desktop-home #drag10 {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.desktop-home #drag5 {
    align-self: center;
    margin: 0;
}

.desktop-home #custom-cards-container > .container {
    grid-column: 1 / -1;
}

.desktop-home.music-solo {
    display: flex;
}

@media (min-width: 891px) {
    .desktop-home:not(.music-solo, :has(.desktop-column > .maximized)) .desktop-sidebar:has(#webamp) {
        --site-map-min-height: 116px;
        max-height: calc(100dvh - 76px);
    }

    .desktop-sidebar:has(#webamp) > #drag10 {
        display: flex;
        flex-direction: column;
        min-height: var(--site-map-min-height, auto);
    }

    .desktop-sidebar:has(#webamp) > #drag10 > .box_header,
    .desktop-sidebar > #drag5 {
        flex-shrink: 0;
    }

    .desktop-sidebar:has(#webamp) > #drag10 > .box {
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
    }
}

@media (min-width: 891px) and (max-height: 950px) {
    .desktop-sidebar:has(#webamp) #sitemap-content .site-map-group + .site-map-group {
        margin-top: 5px;
    }

    .desktop-sidebar:has(#webamp) #sitemap-content .minibox {
        padding: 5px;
    }

    .desktop-sidebar:has(#webamp) .site-map-section > summary {
        min-height: 30px;
        padding-block: 4px;
    }
}

@media (min-width: 891px) {
    .desktop-home:has(.desktop-column > .maximized):not(.music-solo) .desktop-column {
        display: contents;
    }

    .desktop-home:has(.desktop-column > .maximized):not(.music-solo) .desktop-main > .container {
        grid-column: 2;
    }

    .desktop-home:has(.desktop-column > .maximized):not(.music-solo) .desktop-sidebar > .container {
        grid-column: 1;
    }

    .desktop-home:has(.desktop-column > .maximized):not(.music-solo) .desktop-column > .maximized {
        grid-column: 1 / -1;
        order: -1;
    }
}

/* Base Container Sizing & Flex Ordering (Desktop) */
#drag10 {
    width: 300px;
    max-width: 100%;
    order: 1;
}

#drag1 {
    width: calc(100% - 346px);
    max-width: 100%;
    order: 2;
}

#drag1.maximized {
    width: calc(100% - 12px);
    order: 0;
}

#drag5 {
    width: 300px;
    max-width: 100%;
    height: fit-content;
    order: 3;
}

#drag9 {
    width: calc(100% - 346px);
    max-width: 100%;
    order: 4;
}

/* Ensure minimized tray wraps on very narrow viewports */
#minimized-tray {
    flex-wrap: wrap;
    max-width: 100%;
}

/* Stack About above the other windows on narrow screens. */
@media only screen and (max-width: 890px) {
    .wrapper {
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .container {
        position: static;
        width: min(600px, 96vw) !important;
        max-width: 96vw !important;
        margin: 6px auto !important;
    }

    #drag10, #drag1, #drag9, #drag5 {
        width: min(600px, 96vw) !important;
        max-width: 96vw !important;
    }

    #drag1 {
        order: 0;
    }

    .desktop-home {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .desktop-home .desktop-column {
        display: contents;
    }

    .desktop-home #drag10 {
        order: 2;
    }

    .desktop-home #drag9 {
        order: 1;
    }

    .cat-pagedoll {
        width: 80px;
        height: 80px;
    }
}

/* =========================================================================
   BREAKPOINT 3: Mobile Portrait / Small Screens (max-width: 600px)
   ========================================================================= */
@media only screen and (max-width: 600px) {
    body {
        padding: 6px 4px;
    }

    .container {
        width: 96vw !important;
        max-width: 96vw !important;
        margin: 5px auto !important;
    }

    #drag10, #drag1, #drag9, #drag5 {
        width: 96vw !important;
        max-width: 96vw !important;
    }

    #drag9 .box {
        max-height: 520px;
    }

    .about-flex-container {
        flex-direction: column;
        align-items: center;
    }

    .about-pfp-column,
    .about-pfp-column:has(#profile-picture[hidden]) {
        flex: 0 0 auto;
        margin: 0 auto;
    }

    .about-pfp-column .pfp:has(#profile-picture:not([hidden])) {
        width: min(34vw, 160px);
    }

    .about-details-column {
        width: 100%;
    }

    .minibox:not(.about-bio-box) {
        width: auto;
        max-width: 100%;
        margin: 6px auto;
        box-sizing: border-box;
    }

    .tray-tab {
        padding: 2px 7px;
        font-size: 10px;
    }

    .desktop-home #drag1,
    .desktop-home #drag9,
    .desktop-home #drag10 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .site-map-section > summary,
    .bench-log-older > summary {
        min-height: 44px;
        padding-block: 10px;
    }

    .desktop-home #drag5 .box_header {
        height: 24px;
    }

    .music-control:not([hidden]) {
        width: 22px;
        height: 24px;
    }
}
