:root {
    /* Strawberry */
    --strawberry-000: #fff0ed;
    --strawberry-100: #ffc8c2;
    --strawberry-300: #ed5353;
    --strawberry-500: #c6262e;
    --strawberry-700: #a10705;
    --strawberry-900: #7a0000;

    /* Orange */
    --orange-000: #fff5e6;
    --orange-100: #ffc27d;
    --orange-300: #ffa154;
    --orange-500: #f37329;
    --orange-700: #cc3b02;
    --orange-900: #a62100;

    /* Banana */
    --banana-000: #fffbe5;
    --banana-100: #fff394;
    --banana-300: #ffe16b;
    --banana-500: #f9c440;
    --banana-700: #d48e15;
    --banana-900: #ad5f00;

    /* Lime */
    --lime-000: #f6ffe8;
    --lime-100: #d1ff82;
    --lime-300: #9bdb4d;
    --lime-500: #68b723;
    --lime-700: #3a9104;
    --lime-900: #206b00;

    /* Mint */
    --mint-000: #eafff7;
    --mint-100: #89ffdd;
    --mint-300: #43d6b5;
    --mint-500: #28bca3;
    --mint-700: #0e9a83;
    --mint-900: #007367;

    /* Blueberry */
    --blueberry-000: #eaf6ff;
    --blueberry-100: #8cd5ff;
    --blueberry-300: #64baff;
    --blueberry-500: #3689e6;
    --blueberry-700: #0d52bf;
    --blueberry-900: #002e99;

    /* Grape */
    --grape-000: #f7f0fd;
    --grape-100: #e4c4fa;
    --grape-300: #cd9ef7;
    --grape-500: #a56de2;
    --grape-700: #7239b3;
    --grape-900: #452981;

    /* Bubblegum */
    --bubblegum-000: #fff0f7;
    --bubblegum-100: #fe9ab8;
    --bubblegum-300: #f4679d;
    --bubblegum-500: #de3e80;
    --bubblegum-700: #bc245d;
    --bubblegum-900: ;

    /* Cocoa */
    --cocoa-000: #f7f4f1;
    --cocoa-100: #a3907c;
    --cocoa-300: #8a715e;
    --cocoa-500: #715344;
    --cocoa-700: #57392d;
    --cocoa-900: #3d211b;

    /* Silver */
    --silver-100: #fafafa;
    --silver-150: #f1f1f1;
    --silver-200: #eeeeee;
    --silver-300: #d4d4d4;
    --silver-500: #abacae;
    --silver-700: #7e8087;
    --silver-900: #555761;

    /* Slate */
    --slate-100: #95a3ab;
    --slate-300: #667885;
    --slate-500: #485a6c;
    --slate-700: #273445;
    --slate-900: #0e141f;

    /* Black */
    --black-100: #666666;
    --black-300: #4d4d4d;
    --black-500: #333333;
    --black-700: #1a1a1a;
    --black-900: #000000;
}

html {
    background-color: var(--silver-100);
}

body {
    display: flex;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--black-300);
}

h1 {
    font-weight: 400;
}

p {
    font-family: 'Inter', sans-serif;
    margin: 0;
    margin-top: 12px;
    color: var(--silver-700) !important;
}

#body-content {
    display: flex;
    max-width: 100vw;
    min-width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    overflow-y: scroll;
}

#primary-display-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: flex-start;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.section-content {
    margin-top: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    justify-content: flex-start;
    width: 100%;
    max-width: 900px;
    /* Set a max width for content */
    box-sizing: border-box;
    padding-left: 72px;
    padding-right: 72px;
    overflow: visible;
    margin-bottom: 64px;
    /* Animation */
    animation: fly-in 0.3s cubic-bezier(.23, 1.02, .47, .98) both;
}

@keyframes fly-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fly-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

.section-content.fly-out {
    animation: fly-out 0.3s cubic-bezier(.23, 1.02, .47, .98) both;
}

@media screen and (max-width: 800px) {
    .section-content {
        margin-top: 86px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

#navigation-rail {
    min-width: 15%;
    min-height: 100vh;
    background-color: var(--silver-200);
    border-right: 1px solid var(--silver-300);
}

#navigation-rail .navrail-item {
    align-items: center;
    display: flex;
    padding: 12px 16px;
    transition: all 0.1s ease;
    color: var(--black-100);
    cursor: pointer;
}

#navigation-rail .navrail-item.active {
    display: flex;
    background-color: var(--silver-300);
    font-weight: 600;
}

#navigation-rail .navrail-item:hover {
    background-color: var(--silver-100);
}

#navigation-rail .navrail-item p {
    margin-left: 12px;
    margin-top: 0;
    color: var(--black-300) !important;
}

#navigation-rail .navrail-item img {
    width: 28px;
    height: 28px;
}

#navrail-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1099;
    /* BELOW navrail, ABOVE content */
    display: none;
}

@media (min-width: 1249px) {
    #expandNavigationRail {
        display: none !important;
    }

    #navrail-backdrop {
        display: none !important;
    }
}

@media (max-width: 1248px) {
    #expandNavigationRail {
        z-index: 1200;
        /* Above navrail and backdrop */
    }

    #navigation-rail.active {
        z-index: 1100;
    }
}

/* Hide navigation rail and show expand button on small screens */
@media (max-width: 1248px) {
    #navigation-rail {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 70vw;
        max-width: 320px;
        min-width: 0;
        background: var(--silver-200);
        z-index: 1000;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(.17, .67, .12, .99);
        display: block;
    }

    #navigation-rail.active {
        transform: translateX(0);
    }

    #expandNavigationRail {
        display: block !important;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1100;
        background: none;
        box-shadow: none;
        border: none;
        padding: 12px;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    }

    #body-content {
        padding-left: 0 !important;
    }
}

@media (max-width: 800px) {

    /* Hide nav rail by default on mobile */
    #navigation-rail {
        display: block;
    }
}

.flexbox {
    justify-content: center;
    align-content: center;
    flex-direction: column;
    display: flex;
    gap: 16px;
    overflow-y: scroll;
    overflow: visible;
}

.grid-container {
    column-count: 2;
    column-gap: 12px;
}

.grid-container>* {
    break-inside: avoid;
    margin-bottom: 12px;
}

.chiplet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.chiplet-grid>* {
    margin-bottom: 0;
    break-inside: auto;
}

/* Mobile-friendly single column for both grid-container and chiplet-grid */
@media (max-width: 800px) {
    .grid-container {
        column-count: 1;
    }

    .chiplet-grid {
        grid-template-columns: 1fr;
    }
}

.general-box-container {
    padding: 23px;
    background-color: white;
    border: 1px solid var(--silver-300);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

button,
input[type="button"] {
    padding: 6px 23px;
    font-family: 'Inter', 'sans-serif';
    border-radius: 3px;
    background: var(--silver-100);
    border: 0.8px solid var(--silver-300);
    color: var(--black-300);
    cursor: pointer;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

button.blueberry,
input[type="button"].blueberry {
    background: linear-gradient(to bottom, var(--blueberry-300), var(--blueberry-500));
    color: var(--silver-100);
    border: 0.8px solid var(--blueberry-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
    fill: var(--silver-100);
}

/* Strawberry */
button.strawberry,
input[type="button"].strawberry {
    background: linear-gradient(to bottom, var(--strawberry-300), var(--strawberry-500));
    color: var(--silver-100);
    border: 0.8px solid var(--strawberry-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Orange */
button.orange,
input[type="button"].orange {
    background: linear-gradient(to bottom, var(--orange-300), var(--orange-500));
    color: var(--silver-100);
    border: 0.8px solid var(--orange-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Banana */
button.banana,
input[type="button"].banana {
    background: linear-gradient(to bottom, var(--banana-300), var(--banana-500));
    color: var(--silver-100);
    border: 0.8px solid var(--banana-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Lime */
button.lime,
input[type="button"].lime {
    background: linear-gradient(to bottom, var(--lime-300), var(--lime-500));
    color: var(--silver-100);
    border: 0.8px solid var(--lime-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Mint */
button.mint,
input[type="button"].mint {
    background: linear-gradient(to bottom, var(--mint-300), var(--mint-500));
    color: var(--silver-100);
    border: 0.8px solid var(--mint-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Grape */
button.grape,
input[type="button"].grape {
    background: linear-gradient(to bottom, var(--grape-300), var(--grape-500));
    color: var(--silver-100);
    border: 0.8px solid var(--grape-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Bubblegum */
button.bubblegum,
input[type="button"].bubblegum {
    background: linear-gradient(to bottom, var(--bubblegum-300), var(--bubblegum-500));
    color: var(--silver-100);
    border: 0.8px solid var(--bubblegum-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Slate */
button.slate,
input[type="button"].slate {
    background: linear-gradient(to bottom, var(--slate-300), var(--slate-500));
    color: var(--silver-100);
    border: 0.8px solid var(--slate-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Black */
button.black,
input[type="button"].black {
    background: linear-gradient(to bottom, var(--black-300), var(--black-500));
    color: var(--silver-100);
    border: 0.8px solid var(--black-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Cocoa */
button.cocoa,
input[type="button"].cocoa {
    background: linear-gradient(to bottom, var(--cocoa-300), var(--cocoa-500));
    color: var(--silver-100);
    border: 0.8px solid var(--cocoa-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}

/* Silver */
button.silver,
input[type="button"].silver {
    background: linear-gradient(to bottom, var(--silver-300), var(--silver-500));
    color: var(--silver-100);
    border: 0.8px solid var(--silver-500);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 0 2px 1px rgba(0, 0, 0, 0.1);
}


button:hover,
input[type="button"]:hover {
    filter: brightness(1.1);
}

.tab-container-parent {
    display: flex;
    align-items: center;
    padding: 0;
    width: fit-content;
}

.tab-container-parent button {
    margin-left: -1px;
    border: 1px solid var(--silver-500);
    background-color: var(--silver-100);
    box-shadow: none;
    border-radius: 0px;
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
}

.tab-container-parent button.first {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.tab-container-parent button.last {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}

.tab-container-parent button:active {
    font-weight: 500;
    color: var(--blueberry-700);
    background-color: var(--silver-300);
    text-shadow: 0 1px 0 var(--silver-100);
    box-shadow: inset 0 0 0 0.8px rgba(0, 0, 0, 0.1);
}

.notice-container {
    background: var(--banana-300);
    padding: 24px;
    border: 1px solid var(--banana-500);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.notice-container h2 {
    color: var(--banana-900);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.notice-container p {
    color: var(--banana-900) !important;
}

#versionNotice {
    background: var(--lime-300);
    border: 1px solid var(--lime-500);
}

#versionNotice h2 {
    color: var(--lime-900);
    text-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.5);
}

#versionNotice p {
    color: var(--lime-900) !important;
}

.joint-divider-parent {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

.joint-divider-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--silver-300);
    border-top: none;
    /* Remove top border by default */
    background-color: var(--silver-000);
    margin: 0;
    /* Remove negative margin */
    cursor: pointer;
}

.joint-divider-container:hover {
    background-color: var(--silver-100);
}

.joint-divider-container p {
    margin: 0;
    color: var(--black-300);
}

.joint-divider-container.first {
    border-top: 1px solid var(--silver-300);
    /* Only first gets top border */
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.joint-divider-container.last {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.joint-divider-container img {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
}

a {
    text-decoration: none;
    color: var(--blueberry-700);
}

a:hover {
    text-decoration: underline;
}

.chiplet {
    margin-bottom: 24px;
    margin-right: 24px;
    display: inline-block;
}

#helloMessage {
    animation: helloAnim 1s ease-in-out;
}

@keyframes helloAnim {
    0% {
        font-weight: 400;
        transform: scale(1);
        transform-origin: left center;
        color: var(--black-300);
    }

    50% {
        font-weight: 800;
        transform: scale(1.05);
        transform-origin: left center;
        color: var(--mint-700);
    }

    100% {
        font-weight: 400;
        transform: scale(1);
        transform-origin: left center;
        color: var(--black-300);
    }
}

#musicSpotlight {
    background: linear-gradient(to bottom, var(--slate-100), var(--slate-300));
    color: var(--silver-100) !important;
    border: 1px solid var(--slate-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 2px 3px rgba(0, 0, 0, 0.1);
}

#start-playback:hover {
    transform: scale(1.2);
    margin: 0 16px;
    transition: all 0.2s ease;
}

#roboSpotlight {
    display: flex;
    background: linear-gradient(to bottom, var(--grape-300), var(--grape-500));
    border: 1px solid var(--grape-700);
    justify-content: space-between;
    gap: 24px;
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 2px 3px rgba(0, 0, 0, 0.1);
}

#roboSpotlight>div {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--silver-100) !important;
}

#roboSpotlight h3,
h2,
h1 {
    margin: 0;
    text-shadow: 0 1.5px 0px rgba(255, 255, 255, 0.5);
}

#singleSongSpotlightTitle h2 {
    text-shadow: 0 1.5px 0px rgba(255, 255, 255, 0.8);
}

#roboSpotlightImage {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    border-radius: 6px;
    border: 1px solid var(--grape-700);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#shuffleRoboSpotlight {
    width: 24px;
    height: 24px;
    cursor: pointer;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

#shuffleRoboSpotlight:hover {
    transform: scale(1.2);
    transition: all 0.2s ease;
}

#webMasterClockContainer {
    text-align: center;
    background: linear-gradient(to bottom, var(--blueberry-300), var(--blueberry-500));
    border: 1px solid var(--blueberry-700);
    box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.3), 0 2px 3px rgba(0, 0, 0, 0.1);
}

#webMasterClock {
    font-feature-settings: "tnum";
}

#singleSongSpotlight {
    border: 1px solid var(--lime-500);
    background: linear-gradient(to bottom, var(--lime-100), var(--lime-300));
}

input[type="text"] {
    padding: 8px 8px;
    font-family: 'Inter', 'sans-serif';
    border-radius: 3px;
    background: var(--silver-100);
    border: 0.8px solid var(--silver-300);
    box-shadow: inset 0 0 2px 0.1px rgba(0, 0, 0, 0.2);
}

.color-mark {
    width: 12px;
    height: 12px;
    border-radius: 8px;
    border: 1px solid var(--orange-700);
    background: linear-gradient(to bottom, var(--orange-300), var(--orange-500));
}

.color-mark.strawberry {
    border: 1px solid var(--strawberry-700);
    background: linear-gradient(to bottom, var(--strawberry-300), var(--strawberry-500));
}

.color-mark.banana {
    border: 1px solid var(--banana-700);
    background: linear-gradient(to bottom, var(--banana-300), var(--banana-500));
}

.color-mark.lime {
    border: 1px solid var(--lime-700);
    background: linear-gradient(to bottom, var(--lime-300), var(--lime-500));
}

.color-mark.mint {
    border: 1px solid var(--mint-700);
    background: linear-gradient(to bottom, var(--mint-300), var(--mint-500));
}

.color-mark.blueberry {
    border: 1px solid var(--blueberry-700);
    background: linear-gradient(to bottom, var(--blueberry-300), var(--blueberry-500));
}

.color-mark.grape {
    border: 1px solid var(--grape-700);
    background: linear-gradient(to bottom, var(--grape-300), var(--grape-500));
}

.color-mark.bubblegum {
    border: 1px solid var(--bubblegum-700);
    background: linear-gradient(to bottom, var(--bubblegum-300), var(--bubblegum-500));
}

.color-mark.cocoa {
    border: 1px solid var(--cocoa-700);
    background: linear-gradient(to bottom, var(--cocoa-300), var(--cocoa-500));
}

.color-mark.silver {
    border: 1px solid var(--silver-700);
    background: linear-gradient(to bottom, var(--silver-300), var(--silver-500));
}

.color-mark.slate {
    border: 1px solid var(--slate-700);
    background: linear-gradient(to bottom, var(--slate-300), var(--slate-500));
}

.color-mark.black {
    border: 1px solid var(--black-700);
    background: linear-gradient(to bottom, var(--black-300), var(--black-500));
}

.folder-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-entry:hover img {
    filter: brightness(1.1);
}

hr {
    border: none;
    border-top: 1px solid var(--silver-300);
    margin: 24px 0;
}

