/* ========================================
   GENERAL
======================================== */

* {
    box-sizing: border-box;
}

html,
body {
    overflow: hidden;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: #fffffe;
    color: #2a2a2a;

    font-family: times, serif;
}

.menu-bar-logo {
    height: 18px;
    width: auto;
    margin-right: 8px;
    margin-left: 8px;
    align-self: center;
}

ul[role="menu"] > [role="menu-item"] > button {
    text-align: left;
    border: none;
    background: transparent;
    padding: 5px 20px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

ul[role="menu"] > [role="menu-item"] > button:disabled {
    opacity: 0.5;
    cursor: default;
}

ul[role="menu"] > [role="menu-item"] > button:not(:disabled):hover,
ul[role="menu"] > [role="menu-item"] > button:not(:disabled):focus {
    background: var(--secondary);
    color: var(--primary);
}

/* ========================================
   PAGE
======================================== */

main {
    width: 100vw;
    height: 100vh;
    max-width: none;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;

    position: relative;
    z-index: 1;
}

.logo-link {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 2000;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 1;
}

.controls-column {
    flex: 1 1 auto;
    height: 100vh;

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

    padding: 20px;
    overflow-y: auto;
}

.controls-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30rem;
    max-width: 100%;
    gap: 16px;
}

.controls-box .window {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.tape-player-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.tape-player-image:hover {
    filter: brightness(1.08);
}

.content-panel {
    flex: 0 0 480px;
    width: 480px;
    max-width: 100%;
    padding-top: 12px;
    text-align: left;
}

h1 {
    margin: 0 0 20px;

    font-size: 13px;
    font-weight: normal;

    letter-spacing: 0.15em;
}

/* ========================================
   CASSETTE WRAPPER
======================================== */

.cassette-wrapper {
    flex: 0 0 auto;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 50px;
    outline: 2px solid #54acac;
}

/* ========================================
   CASSETTE
======================================== */

.cassette {
    position: relative;

    width: 1000px;
    height: 1217px;

    transform-origin: top left;
}


/* ========================================
   CASSETTE TEMPLATE
======================================== */

.cassette-template {
    position: absolute;

    top: 0;
    left: 0;

    width: 1000px;
    height: 1217px;

    z-index: 1;
}

/* ========================================
   ARTWORK AREA
   542 × 863
======================================== */

.artwork-area {
    position: absolute;

    width: 542px;
    height: 863px;

    left: 229px;
    top: 177px;

    overflow: hidden;

    z-index: 2;
}


/* ========================================
   GENERATED LAYOUT
======================================== */

.generated-layout {
    position: absolute;

    width: 542px;
    height: 863px;

    top: 0;
    left: 0;

    overflow: hidden;

    z-index: 1;
}

/* ========================================
   ARTWORK IMAGE
======================================== */

.artwork-image {
    position: absolute;

    display: block;

    object-fit: cover;
}


/* ========================================
   LAYOUT 1
   FULL IMAGE
======================================== */

.layout-full {
    position: absolute;

    width: 542px;
    height: 863px;

    top: 0;
    left: 0;

    overflow: hidden;
}


.layout-full .artwork-image {
    width: 100%;
    height: 100%;

    top: 0;
    left: 0;
}


/* ========================================
   FULL IMAGE TYPOGRAPHY
======================================== */

.layout-full .title,
.layout-full .artist {

    position: absolute;

    z-index: 2;

    color: #f9f9f6;

    text-shadow:
        0 3px 0px rgba(90, 90, 90, 0.402);
}

.word-bar {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90%;
    max-width: 100%;
    height: 32px;
    padding: 0 0px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
}

.word-bar-chrome {
    left: 0;
    right: 0;
    width: auto;
    min-width: 100%;
    max-width: 100%;
    padding: 5 20px;
    box-sizing: border-box;
    transform: none;
    font-weight: 400;
    overflow: visible;
    text-transform: none;
}

.layout-square-border .word-bar {
    top: auto;
    bottom: 18px;
    min-width: 70%;
    max-width: 84%;

}

.layout-square-border .word-bar-chrome {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transform: none;
}

.layout-full.has-top-bar .title,
.layout-full.has-top-bar .artist {
    z-index: 2;
}


/* ========================================
   BOTTOM CENTER
======================================== */

.layout-full.bottom-center .title,
.layout-full.bottom-center .artist {

    left: 30px;
    right: 30px;

    text-align: center;
}


/* ========================================
   TOP CENTER
======================================== */

.layout-full.top-center .title,
.layout-full.top-center .artist {

    left: 30px;
    right: 30px;

    text-align: center;
}


/* ========================================
   BOTTOM LEFT
======================================== */

.layout-full.bottom-left .title,
.layout-full.bottom-left .artist {

    left: 35px;
    right: 40px;

    text-align: left;
}


/* ========================================
   BOTTOM RIGHT
======================================== */

.layout-full.bottom-right .title,
.layout-full.bottom-right .artist {

    left: 40px;
    right: 35px;

    text-align: right;
}


/* ========================================
   MIDDLE LEFT
======================================== */

.layout-full.middle-left .title,
.layout-full.middle-left .artist {

    left: 35px;

    width: 430px;

    text-align: left;
}


/* ========================================
   MIDDLE RIGHT
======================================== */

.layout-full.middle-right .title,
.layout-full.middle-right .artist {

    right: 35px;

    width: 430px;

    text-align: right;
}


/* ========================================
   TOP LEFT
======================================== */

.layout-full.top-left .title,
.layout-full.top-left .artist {

    left: 35px;
    right: 40px;

    text-align: left;
}


/* ========================================
    TOP RIGHT
======================================== */

.layout-full.top-right .title,
.layout-full.top-right .artist {

    left: 40px;
    right: 35px;

    text-align: right;
}


/* ========================================
    ROTATED CENTER ABOVE
======================================== */

.layout-full.rotated-center-above .title,
.layout-full.rotated-center-above .artist {

    left: 30px;
    right: 30px;

    text-align: center;

    transform: rotate(-15deg);
}

.layout-full.rotated-center-above .title {
    top: 340px;

    font-size: 72px;

    line-height: 0.95;
}

.layout-full.rotated-center-above .artist {
    top: 520px;

    font-size: 20px;

    line-height: 1;
}


/* ========================================
    FULL IMAGE — TAGLINE
======================================== */

.layout-full .tagline {
    position: absolute;

    width: 240px;

    left: 30px;
    bottom: 28px;

    text-align: left;

    color: #f9f9f6;

    text-shadow:
        0 3px 0px rgba(90, 90, 90, 0.402);
}


/* ========================================
   LAYOUT 2
   SQUARE + BORDER
======================================== */

.layout-square-border {
    position: absolute;

    width: 542px;
    height: 863px;


    top: 0;
    left: 0;

    background: #eeeae0;

    overflow: hidden;
}

/* ----------------------------------------
   SQUARE ARTWORK
---------------------------------------- */

.layout-square-border .artwork-image {
    position: absolute;

    width: 430px;
    height: 430px;
    border: 4px solid #f9f8f7;
    border-radius: 1px;

    left: 56px;
    top: 125px;

    object-fit: cover;
}


/* ----------------------------------------
   ARTIST ABOVE IMAGE
---------------------------------------- */

.layout-square-border .artist-top {
    position: absolute;

    width: 482px;

    left: 30px;
    top: 82px;

    padding: 0;

    text-align: center;

    font-size: 24px;

    line-height: 1;

    font-weight: 400;
}


/* ----------------------------------------
   TITLE BELOW IMAGE
---------------------------------------- */

.layout-square-border .title-bottom {
    position: absolute;

    width: 482px;

    left: 30px;
    top: 575px;

    padding: 0;

    text-align: center;

    font-size: 38px;

    line-height: 0.95;

    font-weight: 400;
}


/* ----------------------------------------
   TITLE LEFT / ARTIST RIGHT
---------------------------------------- */

.layout-square-border .title-side {
    position: absolute;

    left: 50px;
    top: 575px;

    width: 300px;

    padding: 6px;

    text-align: left;

    font-size: 36px;

    line-height: 0.95;

    font-weight: 400;
}


.layout-square-border .artist-side {
    position: absolute;

    right: 50px;
    top: 583px;

    width: 180px;

    padding: 0;

    text-align: right;

    font-size: 20px;

    line-height: 1;

    font-weight: 400;
}


/* ========================================
    SQUARE + BORDER — TAGLINE
======================================== */

.layout-square-border .tagline {
    position: absolute;

    width: 240px;

    left: 50px;
    bottom: 18px;

    text-align: left;

    color: #6b6459;
}


/* ========================================
    LAYOUT 2.5 — DIAMOND
======================================== */

.layout-diamond {
    position: absolute;

    width: 542px;
    height: 863px;

    top: 0;
    left: 0;

    background: #eeeae0;

    overflow: hidden;
}

.layout-diamond .diamond-image {
    position: absolute;

    width: 430px;
    height: 430px;

    left: 56px;
    top: 216px;

    object-fit: cover;

    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.layout-diamond .artist-top {
    position: absolute;

    width: 482px;

    left: 30px;
    top: 82px;

    padding: 0;

    text-align: center;

    text-transform: uppercase;

    font-size: 24px;

    line-height: 1;

    font-weight: 400;
}

.layout-diamond .title-bottom {
    position: absolute;

    width: 482px;

    left: 30px;
    top: 700px;

    padding: 0;

    text-align: center;

    font-size: 48px;

    line-height: 0.95;

    font-weight: 400;
}

.layout-diamond .tagline {
    position: absolute;

    width: 240px;

    left: 50px;
    bottom: 40px;

    text-align: left;

    color: #6b6459;
}


/* ========================================
    LAYOUT 3
   SQUARE + BOTTOM
======================================== */

.layout-square-bottom {
    position: absolute;

    width: 542px;
    height: 863px;

    top: 0;
    left: 0;

    overflow: hidden;

    background: #e9e9e6;
}


/* ----------------------------------------
   SQUARE ARTWORK
---------------------------------------- */

.layout-square-bottom .artwork-image {
    position: absolute;

    width: 542px;
    height: 542px;

    left: 0;
    top: 0;

    object-fit: cover;
}


/* ----------------------------------------
   BOTTOM PANEL
---------------------------------------- */

.layout-square-bottom .bottom-panel {
    position: absolute;

    width: 542px;
    height: 321px;

    left: 0;
    bottom: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 40px;

    background: #e9e9e6;
}


/* ----------------------------------------
   BOTTOM TITLE
---------------------------------------- */

.layout-square-bottom .title {

    max-width: 462px;

    color: #e9e9e6;

    font-size: 48px;

    line-height: 0.95;

    font-weight: 400;
}


/* ----------------------------------------
   BOTTOM ARTIST
---------------------------------------- */

.layout-square-bottom .artist {

    max-width: 462px;

    margin-top: 12px;

    color: #e9e9e6;

    font-size: 20px;

    line-height: 1;

    font-weight: 400;
}


/* ----------------------------------------
   BOTTOM TAGLINE
---------------------------------------- */

.layout-square-bottom .tagline {

    max-width: 470px;

    margin-top: 50px;
    margin-left: 240px;

    align-self: flex-start;

    text-align: right;

    opacity: 0.7;

    font-size: 20px;

    line-height: 1.25;
}


/* ========================================
   SQUARE BOTTOM — CENTERED
======================================== */

.layout-square-bottom.centered .bottom-panel {

    align-items: center;
}


.layout-square-bottom.centered .title,
.layout-square-bottom.centered .artist {

    text-align: center;
}


/* ========================================
   SQUARE BOTTOM — LEFT ALIGNED
======================================== */

.layout-square-bottom.left-aligned .bottom-panel {

    align-items: flex-start;
}


.layout-square-bottom.left-aligned .title,
.layout-square-bottom.left-aligned .artist {

    text-align: left;
}


/* ========================================
   LAYOUT 4
   PORTRAIT + BORDER
======================================== */

.layout-portrait-border {
    position: absolute;

    width: 542px;
    height: 863px;

    top: 0;
    left: 0;

    overflow: hidden;
}

/* ----------------------------------------
   PORTRAIT ARTWORK
---------------------------------------- */

.layout-portrait-border .artwork-image {
    position: absolute;

    width: 462px;
    height: 590px;

    left: 40px;
    top: 105px;

    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, 0.92);

    object-fit: cover;
}

.layout-portrait-border.stacked-below .artwork-image {
    height: 560px;
}

/* ----------------------------------------
   ARTIST ABOVE / TITLE BELOW (default)
---------------------------------------- */

.layout-portrait-border .artist-top {
    position: absolute;

    width: 482px;

    left: 30px;
    top: 55px;

    padding: 0;

    text-align: center;

    color: #f7f4ec;

    font-size: 22px;

    line-height: 1;

    font-weight: 400;
}

.layout-portrait-border .title-bottom {
    position: absolute;

    width: 482px;

    left: 30px;
    top: 715px;

    padding: 0;

    text-align: center;

    color: #f7f4ec;

    font-size: 34px;

    line-height: 0.95;

    font-weight: 600;
}

/* ----------------------------------------
   TITLE + ARTIST STACKED BELOW
---------------------------------------- */

.layout-portrait-border.stacked-below .title,
.layout-portrait-border.stacked-below .artist {

    position: absolute;

    left: 30px;
    right: 30px;

    text-align: center;

    color: #f7f4ec;
}

.layout-portrait-border.stacked-below .title {

    font-size: 64px;
    line-height: 0.95;
    font-weight: 600;
}

.layout-portrait-border.stacked-below .artist {

    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    opacity: 0.85;
}

/* ----------------------------------------
   WORD BAR — BOTTOM
---------------------------------------- */

.layout-portrait-border .word-bar {
    top: auto;
    bottom: 18px;
    min-width: 90%;
    max-width: 100%;
}

.layout-portrait-border .word-bar-chrome {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transform: none;
}

/* ----------------------------------------
   TAGLINE
---------------------------------------- */

.layout-portrait-border .tagline {
    position: absolute;

    width: 240px;

    left: 50px;
    bottom: 18px;

    text-align: left;

    color: rgba(255, 255, 255, 0.8);
}


/* ========================================
   TAGLINE
   Shared base typography — per-layout rules
   above handle positioning/alignment/colour.
======================================== */

.tagline {
    font-family: "times", serif;
    font-style: italic;
    font-size: 20px;
    opacity: 80%;
    line-height: 1.25;

    letter-spacing: 0.02em;

    font-weight: 400;

    z-index: 2;
}


/* ========================================
   TEXTURES
======================================== */

.texture {
    position: absolute;

    width: 542px;
    height: 863px;

    top: 0;
    left: 0;

    pointer-events: none;
}


/* ----------------------------------------
   SCREEN TEXTURE
---------------------------------------- */

.texture-screen {
    z-index: 10;

    mix-blend-mode: screen;
}


/* ----------------------------------------
   MULTIPLY TEXTURE
---------------------------------------- */

.texture-multiply {
    z-index: 11;

    mix-blend-mode: multiply;
}


/* ========================================
   RANDOM PRICE TAG STICKERS
======================================== */

.random-sticker {
    position: absolute;

    z-index: 16;

    display: block;

    height: auto;

    pointer-events: none;

    filter: none;
    -webkit-filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.294));
    opacity: 1;
}


/* ----------------------------------------
   TOP SCREEN TEXTURE
---------------------------------------- */

.texture-top {
    z-index: 13;

    mix-blend-mode: screen;
}

.cassette.photocopy-active {
    /* Layout filter handles high-contrast grayscale */
}

.cassette.photocopy-active .generated-layout {
    filter:
        grayscale(1)
        contrast(1.55)
        brightness(1)
        saturate(0);

    transform: translate(2px, 0);
}

.cassette.photocopy-active .generated-layout .artwork-image,
.cassette.photocopy-active .generated-layout .title,
.cassette.photocopy-active .generated-layout .artist,
.cassette.photocopy-active .generated-layout .word-bar,
.cassette.photocopy-active .generated-layout .tagline,
.cassette.photocopy-active .generated-layout .layout-element {
    filter: grayscale(1) saturate(0);
}

.cassette.photocopy-active .generated-layout .random-sticker {
    filter: none;
    -webkit-filter: none;
    opacity: 1;
}

.xerox-paper-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: multiply;
    background: transparent;
}

.texture-xerox-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    z-index: 14;
    mix-blend-mode: screen;
}

.cassette.photocopy-active .artwork-area {
    background: transparent;
}

.cassette.photocopy-active .artwork-area::before,
.cassette.photocopy-active .artwork-area::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cassette.photocopy-active .artwork-area::before {
    z-index: 5;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.02) 42%,
            rgba(0, 0, 0, 0.05)
        );

    opacity: 0.90;
    mix-blend-mode: screen;
}

.cassette.photocopy-active .artwork-area::after {
    z-index: 6;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.06) 1px,
            rgba(0, 0, 0, 0.01) 1px,
            rgba(0, 0, 0, 0.01) 3px
        );

    opacity: 0.18;
    mix-blend-mode: multiply;
}


:root {
    --vintage-contrast: 1.00;
    --vintage-saturation: 0.72;
    --vintage-brightness: 1.00;
    --vintage-sepia: 0;
    --vintage-hue: -6deg;
    --xerox-paper-tint: transparent;
}

/* ========================================
   VINTAGE GIF EFFECT
======================================== */

/*
    Applies a stable, easy-to-tune vintage look
    to the ENTIRE cassette using CSS filters.

    This is simpler and more reliable than an
    inline SVG filter definition.
*/

.cassette.vintage-gif-active {

    filter:
        url("#vintage-gif-filter")
        contrast(var(--vintage-contrast))
        saturate(var(--vintage-saturation))
        brightness(var(--vintage-brightness))
        sepia(var(--vintage-sepia))
        hue-rotate(var(--vintage-hue));
}


/* ----------------------------------------
   SUBTLE DITHER / GRAIN
---------------------------------------- */

/*
    The grain is also applied to the
    entire cassette rather than only
    the generated artwork.
*/

.cassette.vintage-gif-active::after {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 20;

    opacity: 0.08;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Ccircle cx='1' cy='1' r='0.5' fill='%23000'/%3E%3Ccircle cx='3' cy='3' r='0.5' fill='%23fff'/%3E%3C/svg%3E");

    background-repeat: repeat;

    mix-blend-mode: overlay;
}


/* ========================================
   CONTROLS
======================================== */

.controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* ----------------------------------------
   ALBUM NAME
---------------------------------------- */

.generated-name {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}


/* ----------------------------------------
   ARTIST NAME
---------------------------------------- */

.generated-artist {
    margin-top: 5px;

    font-size: 14px;

    text-align: left;
}


/* ----------------------------------------
   LAYOUT LABEL
---------------------------------------- */

.layout-name {
    margin-top: 8px;

    font-size: 11px;

    letter-spacing: 0.15em;

    opacity: 0.5;
    text-align: left;
}


/* ----------------------------------------
   GENERATE BUTTON
---------------------------------------- */

/* button {
    margin-top: 20px;

    padding: 14px 30px;

    border: 1px solid #222;

    background: transparent;

    color: #222;

    font-size: 12px;

    letter-spacing: 0.1em;

    cursor: pointer;
}

 button:hover {
    background: #222;

    color: #e8e5dc;
} */


/* ========================================
   AUTO-SCALE CASSETTE
======================================== */

.cassette {
    transform-origin: top left;
}


/* ========================================
   SMALL SCREEN
======================================== */

@media (max-width: 600px) {

    body {
        padding-left: 15px;
        padding-right: 15px;
    }


    h1 {
        font-size: 11px;
    }


    .generated-name {
        font-size: 20px;
    }


    .generated-artist {
        font-size: 15px;
    }

}


/* ========================================
   MODAL / ALERT OVERLAY
======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#quick-guide-overlay {
    background: none;
    pointer-events: none;
}

#quick-guide-overlay.active {
    pointer-events: auto;
}

.quick-guide-window {
    cursor: default;
    transform: translate(0px, 0px);
}

.quick-guide-window .title-bar {
    cursor: move;
    user-select: none;
    position: relative;
}

.quick-guide-window .title-bar .close {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    margin: 0;
}

#how-it-works-overlay {
    background: none;
    pointer-events: none;
}

#how-it-works-overlay.active {
    pointer-events: auto;
}

.how-it-works-window {
    cursor: default;
    transform: translate(0px, 0px);
}

.how-it-works-window .title-bar {
    cursor: move;
    user-select: none;
    position: relative;
}

.how-it-works-window .title-bar .close {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    margin: 0;
}

.how-it-works-window .window-pane {
    max-height: 400px;
}


#credits-overlay {
    background: none;
    pointer-events: none;
}

#credits-overlay.active {
    pointer-events: auto;
}

.credits-window {
    cursor: default;
    transform: translate(0px, 0px);
}

.credits-window .title-bar {
    cursor: move;
    user-select: none;
    position: relative;
}

.credits-window .title-bar .close {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    margin: 0;
}

.credits-window .window-pane {
    max-height: 400px;
}

#about-overlay {
    background: none;
    pointer-events: none;
}

#about-overlay.active {
    pointer-events: auto;
}

.about-window .title-bar {
    cursor: move;
    user-select: none;
    position: relative;
}

.about-window .title-bar .close {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    margin: 0;
}

.about-window .window-pane {
    max-height: 400px;
}

.about-columns {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 0 0 auto;
}

.about-logo {
    width: 80px;
    height: auto;
    margin-top: 1rem;
    margin-left: 3rem;
}
.about-left p {
    margin: 0;
    line-height: 1.4;
}

.about-right {
    flex: 1 1 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
}

.about-right p {
    margin: 0;
    line-height: 1.4;
    
}

#contact-overlay {
    background: none;
    pointer-events: none;
}

#contact-overlay.active {
    pointer-events: auto;
}

.contact-window {
    cursor: default;
    transform: translate(0px, 0px);
}

.contact-window .title-bar {
    cursor: move;
    user-select: none;
    position: relative;
}

.contact-window .title-bar .close {
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    margin: 0;
}

body.audio-playing .audio-visualizer {
    opacity: 1;
    mix-blend-mode: screen;
}

.audio-visualizer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 5s ease-in, opacity 1.5s ease-out;
    filter: saturate(3);
}

.audio-visualizer .bar {
    position: absolute;
    top: -25vh;
    width: 3px;
    height: 150vh;
    transform: rotate(8deg);
    transform-origin: top right;
    filter: blur(18px);
}

.audio-visualizer .bar:nth-child(1) {
    right: 5%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(84, 172, 172, 0.3), 0 0 70px 35px rgba(232, 165, 152, 0.25), 45px 0 60px 30px rgba(138, 180, 217, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.audio-visualizer .bar:nth-child(2) {
    right: 11%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(138, 180, 217, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -2.8s, -0.533s;
}

.audio-visualizer .bar:nth-child(3) {
    right: 17%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(232, 165, 152, 0.3), 0 0 70px 35px rgba(138, 180, 217, 0.25), 45px 0 60px 30px rgba(84, 172, 172, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -5.6s, -1.067s;
}

.audio-visualizer .bar:nth-child(4) {
    right: 23%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(84, 172, 172, 0.3), 0 0 70px 35px rgba(138, 180, 217, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -8.4s, -1.6s;
}

.audio-visualizer .bar:nth-child(5) {
    right: 29%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(138, 180, 217, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -11.2s, -2.133s;
}

.audio-visualizer .bar:nth-child(6) {
    right: 35%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(232, 165, 152, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(138, 180, 217, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -13.6s, -2.667s;
}

.audio-visualizer .bar:nth-child(7) {
    right: 41%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(84, 172, 172, 0.3), 0 0 70px 35px rgba(138, 180, 217, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -16.4s, -3.2s;
}

.audio-visualizer .bar:nth-child(8) {
    right: 47%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(138, 180, 217, 0.3), 0 0 70px 35px rgba(232, 165, 152, 0.25), 45px 0 60px 30px rgba(84, 172, 172, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -19.2s, -3.733s;
}

.audio-visualizer .bar:nth-child(9) {
    right: 53%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(232, 165, 152, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(138, 180, 217, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -22s, -4.267s;
}

.audio-visualizer .bar:nth-child(10) {
    right: 59%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(84, 172, 172, 0.3), 0 0 70px 35px rgba(138, 180, 217, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -24.8s, -4.8s;
}

.audio-visualizer .bar:nth-child(11) {
    right: 65%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(138, 180, 217, 0.3), 0 0 70px 35px rgba(232, 165, 152, 0.25), 45px 0 60px 30px rgba(84, 172, 172, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -27.6s, -5.333s;
}

.audio-visualizer .bar:nth-child(12) {
    right: 71%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(232, 165, 152, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(138, 180, 217, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -30.4s, -5.867s;
}

.audio-visualizer .bar:nth-child(13) {
    right: 77%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(84, 172, 172, 0.3), 0 0 70px 35px rgba(138, 180, 217, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -33.2s, -6.4s;
}

.audio-visualizer .bar:nth-child(14) {
    right: 83%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(138, 180, 217, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(232, 165, 152, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -36s, -6.933s;
}

.audio-visualizer .bar:nth-child(15) {
    right: 89%;
    box-shadow: -120px 0 80px 40px rgba(255, 248, 222, 0.5), -45px 0 60px 30px rgba(232, 165, 152, 0.3), 0 0 70px 35px rgba(84, 172, 172, 0.25), 45px 0 60px 30px rgba(138, 180, 217, 0.25), 120px 0 80px 40px rgba(255, 248, 222, 0.5);
    animation: slide 42s linear infinite, wave 8s ease-in-out infinite;
    animation-delay: -38.8s, -7.467s;
}

@keyframes slide {
    from {
        right: -50vw;
    }
    to {
        right: 150vw;
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(-25deg) translateY(0);
    }
    50% {
        transform: rotate(25deg) translateY(-6vh);
    }
}

.audio-visualizer .bar {
    animation: slide 25s linear infinite, wave 25s ease-in-out infinite;
}

.audio-visualizer .grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}