@keyframes amoeba {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes text-flow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

:root {
    --cursor-regular: url('mouse(es)/regularmouse-cursor.png') 2 2, auto;
    --cursor-click: url('mouse(es)/mouseclicker-cursor.png') 2 2, auto;
}

html,
body,
body * {
    cursor: var(--cursor-regular) !important;
}

a,
button,
input,
label,
select,
textarea,
[role="button"],
[tabindex],
.nav-button,
.home-button,
.track-button,
.player-btn,
.release-download-btn,
.art-card__link,
.art-card__dl,
.listening-links a {
    cursor: var(--cursor-click) !important;
}

body {
    background: linear-gradient(90deg, 
        greenyellow 0%, 
        greenyellow 15%,
        lightyellow 28%,
        lightcoral 42%,
        lightsalmon 55%,
        #d3d3d3 68%,
        whitesmoke 85%,
        greenyellow 100%);
    background-size: 200% 100%;
    animation: amoeba 8s ease-in-out infinite;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    --title-gif-y: -80px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.56) 100%);
    pointer-events: none;
    z-index: 500;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/overlay.gif') repeat;
    background-size: 220px 220px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 550;
}

#border-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('images/border.png') repeat-x;
    background-size: contain;
    z-index: 999;
}

#border-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('images/border.png') repeat-x;
    background-size: contain;
    z-index: 999;
}

#border-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: url('images/border.png') repeat-y;
    background-size: contain;
    z-index: 999;
}

#border-right {
    position: fixed;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: url('images/border.png') repeat-y;
    background-size: contain;
    z-index: 999;
}
/* Title image and paragraph styling */
.title-gif {
    display: block;
    width: clamp(360px, 52vw, 760px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    transform: translateY(var(--title-gif-y));
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 22px rgba(0, 0, 0, 0.38))
            drop-shadow(0 0 36px rgba(0, 0, 0, 0.28));
    position: relative;
    z-index: 600;
}

h1:not(.release-title) {
    margin: 0.4rem auto 0.15rem;
    text-align: center;
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.04;
    background: linear-gradient(180deg, #f3fbff 0%, #6fbfff 48%, #1f5f9f 100%);
    background-size: 360% 360%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.95px #0f3554;
    text-shadow: 0 0 8px rgba(225, 245, 255, 0.82),
                 0 0 16px rgba(97, 185, 255, 0.55),
                 0 0 24px rgba(24, 92, 156, 0.3),
                 -2px -2px 0 rgba(18, 54, 74, 0.9),
                 2px -2px 0 rgba(18, 54, 74, 0.9),
                 -2px 2px 0 rgba(18, 54, 74, 0.9),
                 2px 2px 0 rgba(18, 54, 74, 0.9);
    animation: text-flow 4.4s linear infinite;
    position: relative;
    z-index: 600;
}

.about-page h1:not(.release-title) {
    display: block;
    text-align: left;
    margin: 0;
    transform: none;
    white-space: nowrap;
}

.about-page {
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 60px;
}

.about-page p:not(.release-subtitle):not(.now-playing) {
    transform: none;
    width: auto;
    max-width: none;
    text-align: left;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-page p:not(.release-subtitle):not(.now-playing) + p:not(.release-subtitle):not(.now-playing) {
    margin-top: 1rem;
}

.about-copy {
    position: relative;
    z-index: 600;
    display: inline-block;
    width: fit-content;
    max-width: calc(100vw - 80px);
    margin: 3.8rem 0 0 198px;
    transform: none;
}

.about-paragraphs {
    position: static;
    margin-top: 0.9rem;
    width: 0;
    min-width: 100%;
}

.about-paragraphs p:not(.release-subtitle):not(.now-playing) {
    width: 100%;
}

p:not(.release-subtitle):not(.now-playing) {
    margin: 1rem auto 0;
    max-width: 72ch;
    text-align: center;
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: clamp(1.12rem, 1.65vw, 1.28rem);
    line-height: 1.6;
    letter-spacing: 0.03em;
    background: linear-gradient(180deg, #f0faff 0%, #7ec3ff 56%, #2b69a9 100%);
    background-size: 380% 380%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.45px rgba(20, 49, 74, 0.85);
    text-shadow: 0 0 6px rgba(227, 246, 255, 0.75),
                 0 0 12px rgba(108, 188, 255, 0.35),
                 -1px -1px 0 rgba(25, 47, 66, 0.85),
                 1px -1px 0 rgba(25, 47, 66, 0.85),
                 -1px 1px 0 rgba(25, 47, 66, 0.85),
                 1px 1px 0 rgba(25, 47, 66, 0.85);
    animation: text-flow 4.8s linear infinite;
    position: relative;
    z-index: 600;
}

.buttons-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    z-index: 601;
}

.listening-links {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 620;
    display: flex;
    align-items: center;
    gap: 6px;
    isolation: isolate;
}

.listening-links::before {
    content: "";
    position: absolute;
    left: -34px;
    right: -34px;
    top: -12px;
    bottom: -12px;
    background:
        radial-gradient(ellipse 42% 78% at 0% 50%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0) 72%),
        radial-gradient(ellipse 42% 78% at 100% 50%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0) 72%);
    filter: blur(3px);
    pointer-events: none;
    z-index: -1;
}

.listening-links a {
    display: inline-block;
    line-height: 0;
}

.listening-links img {
    display: block;
    width: auto;
    height: auto;
    max-height: 32px;
    transition: transform 0.15s ease;
}

.listening-links a:hover img,
.listening-links a:focus-visible img {
    transform: translateY(-1px);
}

.nav-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-button img {
    width: 88px;
    height: 31px;
    display: block;
    box-shadow: -10px 0 14px rgba(0, 0, 0, 0.28), 10px 0 14px rgba(0, 0, 0, 0.28);
}

.nav-button:hover img {
    transform: scale(1.1);
}

.home-button {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 700;
    display: inline-block;
    text-decoration: none;
}

.home-button img {
    width: 88px;
    height: 31px;
    display: block;
}

.music-page {
    overflow: auto;
    padding: 56px 52px 40px;
}

.music-release-wrap {
    position: relative;
    z-index: 620;
    max-width: 1100px;
    margin: 60px auto 0;
    display: grid;
    gap: 22px;
}

body.music-page p.music-page-note {
    margin: -6px auto 6px;
    max-width: min(760px, calc(100vw - 180px));
    text-align: center;
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: clamp(0.76rem, 0.98vw, 0.9rem);
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: rgba(16, 28, 8, 0.72);
    opacity: 0.68;
    background: none;
    -webkit-text-fill-color: rgba(16, 28, 8, 0.72);
    -webkit-text-stroke: 0;
    text-shadow: none;
    animation: none;
}

.release-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 26px;
    padding: 18px 18px 56px;
    border: 2px solid rgba(22, 33, 12, 0.8);
    background: linear-gradient(145deg, rgba(248, 255, 224, 0.82), rgba(223, 232, 219, 0.74));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 20px 32px rgba(0, 0, 0, 0.28);
}

.release-download-btn {
    position: absolute;
    right: 18px;
    bottom: 14px;
    border: 1px solid rgba(36, 55, 19, 0.82);
    background: linear-gradient(180deg, rgba(244, 255, 213, 0.95), rgba(214, 230, 189, 0.95));
    color: #1a2a0f;
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.release-download-btn:hover,
.release-download-btn:focus-visible {
    outline: none;
    background: linear-gradient(180deg, rgba(176, 204, 128, 0.98), rgba(148, 186, 102, 0.98));
}

.release-cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid rgba(18, 28, 10, 0.85);
    box-shadow: 0 0 0 3px rgba(246, 255, 209, 0.75), 0 10px 16px rgba(0, 0, 0, 0.24);
}

.release-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.release-title {
    margin: 0;
    color: #274815;
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.release-subtitle {
    margin: 0.35rem 0 1.1rem;
    color: #58664d;
    font-size: 0.95rem;
    text-align: left;
    text-shadow: none;
}

.track-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #223118;
}

.track-list li + li {
    margin-top: 0.4rem;
}

.track-button {
    width: 100%;
    border: 1px solid rgba(37, 54, 22, 0.75);
    background: linear-gradient(180deg, rgba(243, 254, 204, 0.96), rgba(218, 232, 198, 0.96));
    color: #1a2a0f;
    text-align: left;
    padding: 0.55rem 0.65rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.track-button:hover,
.track-button:focus-visible {
    outline: none;
    border-color: #141e0c;
    background: linear-gradient(180deg, rgba(238, 252, 188, 0.98), rgba(202, 222, 178, 0.98));
}

.track-button.is-active {
    background: linear-gradient(180deg, rgba(176, 204, 128, 0.98), rgba(148, 186, 102, 0.98));
    color: #112008;
    font-weight: 700;
}

.player-controls {
    margin-top: 1rem;
    border-top: 1px dashed rgba(36, 52, 21, 0.55);
    padding-top: 1rem;
}

.player-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-btn {
    border: 1px solid rgba(36, 55, 19, 0.8);
    background: linear-gradient(180deg, rgba(244, 255, 213, 0.95), rgba(214, 230, 189, 0.95));
    color: #1a2a0f;
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.player-btn:hover,
.player-btn:focus-visible {
    outline: none;
    background: linear-gradient(180deg, rgba(237, 251, 193, 0.98), rgba(203, 224, 174, 0.98));
}

.player-btn.is-on {
    background: linear-gradient(180deg, rgba(171, 201, 123, 0.98), rgba(143, 177, 99, 0.98));
    font-weight: 700;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.8rem;
    color: #26361a;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.volume-slider {
    width: min(320px, 65vw);
    accent-color: #456b1f;
}

.now-playing {
    margin: 0.8rem 0 0;
    font-size: 0.92rem;
    color: #1b2b10;
    text-align: left;
    text-shadow: none;
}

@media (max-width: 820px) {
    .music-page {
        padding: 52px 30px 34px;
    }

    body.music-page p.music-page-note {
        max-width: calc(100vw - 92px);
    }

    .music-release-wrap {
        margin-top: 70px;
    }

    .release-card {
        grid-template-columns: 1fr;
        padding-bottom: 54px;
    }
}

/* ===================== ABOUT PORTRAIT CARD ===================== */

.portrait-card {
    position: fixed;
    top: 36px;
    right: 36px;
    z-index: 620;
    width: 260px;
    border: 2px solid rgba(22, 33, 12, 0.8);
    background: linear-gradient(145deg, rgba(248, 255, 224, 0.82), rgba(223, 232, 219, 0.74));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45),
                0 10px 22px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}

.portrait-card img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(36, 52, 21, 0.45);
}

.portrait-caption {
    margin: 0 !important;
    padding: 7px 9px 8px;
    font-family: "Trebuchet MS", "Verdana", sans-serif !important;
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
    color: #1e300f !important;
    text-align: left !important;
    letter-spacing: 0.01em !important;
    background: none !important;
    -webkit-text-fill-color: #1e300f !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    animation: none !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* ===================== ART GALLERY ===================== */

.art-page {
    overflow: auto;
    padding: 56px 40px 60px;
}

.art-gallery {
    position: relative;
    z-index: 620;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto 0;
    justify-content: flex-start;
    align-items: flex-start;
}

/*
  Each card is a fixed 240px wide.
  The image inside fills that width and keeps its natural ratio.
  All cards therefore look the same size regardless of the image shape.
*/
.art-card {
    width: 240px;
    flex-shrink: 0;
    border: 2px solid rgba(22, 33, 12, 0.8);
    background: linear-gradient(145deg, rgba(248, 255, 224, 0.82), rgba(223, 232, 219, 0.74));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45),
                0 10px 22px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
}

.art-card__link {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.art-card__link img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.art-card__link:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.art-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 7px;
    border-top: 1px solid rgba(36, 52, 21, 0.45);
    background: linear-gradient(180deg, rgba(232, 246, 210, 0.96), rgba(212, 228, 192, 0.96));
    gap: 6px;
}

.art-card__label {
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: 0.74rem;
    color: #1e300f;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.art-card__dl {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(36, 55, 19, 0.8);
    background: linear-gradient(180deg, rgba(244, 255, 213, 0.95), rgba(214, 230, 189, 0.95));
    color: #1a2a0f;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s ease;
}

.art-card__dl:hover {
    background: linear-gradient(180deg, rgba(168, 200, 120, 0.98), rgba(140, 175, 96, 0.98));
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }

    #border-top,
    #border-bottom {
        height: 14px;
    }

    #border-left,
    #border-right {
        width: 14px;
    }

    .home-button {
        top: 22px;
        left: 22px;
    }

    .music-page,
    .art-page {
        padding: 52px 24px 34px;
    }

    .music-release-wrap,
    .art-gallery {
        margin-top: 72px;
    }
}

@media (max-width: 700px) {
    body {
        --title-gif-y: -24px;
    }

    .title-gif {
        width: min(92vw, 520px);
    }

    .buttons-container {
        top: 62%;
        width: min(260px, 90vw);
        flex-direction: column;
        gap: 14px;
    }

    .about-page {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .about-page h1:not(.release-title) {
        white-space: normal;
    }

    .about-copy {
        display: block;
        width: calc(100vw - 46px);
        max-width: none;
        margin: 92px auto 0;
    }

    .about-paragraphs {
        width: 100%;
        min-width: 0;
    }

    .portrait-card {
        position: static;
        width: min(280px, calc(100vw - 46px));
        margin: 84px auto 0;
    }

    .music-page {
        padding: 52px 20px 30px;
    }

    .music-release-wrap {
        margin-top: 72px;
        gap: 16px;
    }

    .release-card {
        gap: 14px;
        padding: 14px 14px 54px;
    }

    .volume-slider {
        width: min(240px, 56vw);
    }

    .art-page {
        padding: 52px 20px 32px;
    }

    .art-gallery {
        margin-top: 72px;
        justify-content: center;
        gap: 14px;
    }

    .art-card {
        width: min(250px, calc(100vw - 56px));
    }

    .listening-links {
        bottom: 20px;
        gap: 5px;
    }

    .listening-links img {
        max-height: 26px;
    }
}

@media (max-width: 600px) {
    .art-gallery {
        justify-content: center;
        margin-top: 80px;
    }

    .art-card {
        width: calc(100vw - 56px);
    }

    .volume-wrap {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .volume-slider {
        width: 100%;
    }

    .player-btn {
        font-size: 0.8rem;
        padding: 0.42rem 0.58rem;
    }

    .now-playing {
        font-size: 0.86rem;
    }

    .release-download-btn {
        right: 14px;
        bottom: 12px;
        font-size: 0.7rem;
        padding: 0.38rem 0.56rem;
    }
}