:root {
    --paypal-button-color: #ffc439;
    --tiny-button-color: #3974FF;
    --tiny-button-color-light: #3974FF33;
    --label-color: var(--paypal-button-color);
    --text-neutral-color: #888;
    --text-color: #fff;
    --placeholder-color: #555;
    --background-color: #333;
    --background-color-dark: #1e1e1e;
    --platform-color: #cc2936;
}

@font-face {
    font-family: "ppm";
    src: url("/assets/ppm.woff2") format("woff2");
}

@keyframes hueCycle {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 200%;
    }
}

.no-transform {
    text-transform: none;
}

.ppm {
    font-family: ppm, Arial, sans-serif;
    text-transform: uppercase;
    line-height: 2rem;
}

h1 {
    padding: 2rem;
    font-family: ppm, Arial, sans-serif;
    line-height: 2.5rem;
    font-size: clamp(1rem, 3vw, 2rem);
    background-image: repeating-linear-gradient(
        to top,
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%) 16.66%,
        hsl(120, 100%, 50%) 33.33%,
        hsl(180, 100%, 50%) 50%,
        hsl(240, 100%, 50%) 66.66%,
        hsl(300, 100%, 50%) 83.33%,
        hsl(360, 100%, 50%) 100%
    );
    background-size: 100% 200%;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, .5);
    animation: hueCycle 10s linear infinite;
    user-select: none;
}

h1 span {
    display: inline-block;
}

h2, h3 {
    font-family: ppm, Arial, sans-serif;
    text-transform: uppercase;
    user-select: none;
    line-height: 2rem;
}

a, a:visited, button {
    color: var(--text-color);
    transition: all 1s ease-in-out;
}

a:hover, button:hover {
    filter: brightness(1.6) hue-rotate(90deg);
    transition: all 0.3s ease-in-out;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    margin: 0;
    background: var(--background-color) linear-gradient(120deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
    min-height: 100vh;
}

.content {
    max-width: max-content;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.notes {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--label-color);
    font-style: italic;
    font-weight: bold;
}

main, .centered {
    margin: 0 auto;
}

ul {
    padding: 0 1rem;
}

.mb1 {
    margin-bottom: 1rem;
}

.mb3 {
    margin-bottom: 3rem;
}

.extra {
    color: var(--text-neutral-color);
    font-size: .8rem;
}

.nowrap {
    white-space: nowrap;
}

textarea {
    width: 100%;
    min-width: 90%;
    min-height: 4rem;
}

.footer {
    color: var(--text-neutral-color);
}

#promo, canvas {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-height: 320px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    user-select: none;
}

#promo {
    background: var(--placeholder-color) url("/assets/playpromo.avif") center top/cover no-repeat;
}

canvas {
    position: absolute;
    z-index: 2;
    object-fit: fill;
}

table {
    border-collapse: collapse;
    border: .25rem solid transparent;
}

label {
    font-weight: bold;
    display: block;
}

li.player {
    list-style-type: none;
}

tr.record label {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

tr.record label, tr.record a {
    color: var(--label-color);
}

tr.record td, th {
    border-bottom: 2px solid var(--text-neutral-color);
}

tr.record td {
    height: 6rem;
    background: var(--placeholder-color);
}

th {
    padding: 0.25rem;
    text-align: left;
    vertical-align: bottom;
}

th.right {
    text-align: right;
}

td, select, input {
    padding: 0.25rem;
}

td:nth-child(2) {
    width: 64px;
}

select, input {
    color: black;
    height: 2rem;
    border-radius: 1rem;
    border: .15rem solid black;
    background: var(--placeholder-color) linear-gradient(180deg, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, 0.5) 50%);
}

option {
    background: white;
}

.calc {
    text-align: right;
    white-space: nowrap;
}

tfoot td {
    border-top: 2px solid var(--text-neutral-color);
    color: var(--paypal-button-color);
}

input#note {
    width: calc(100% - 1rem);
}

.error, .success {
    font-size: 1.25rem;
    padding: 0.5rem;
    border-top: 4px solid green;
    border-bottom: 4px solid green;
}

.error {
    border-color: red;
}

.gallery {
    display:flex;
    flex-direction: row;
    border: 2rem solid transparent;
    border-top: 0;
    column-gap: 1rem;
    box-sizing: border-box;
    justify-content: center;
    translate: 0;
    transition: translate .3s ease-in-out;
}

.gallery.hidden {
    transition: translate .3s ease-in-out;
    translate: 100vw;
    height: 0;
    border: 0;
}

.gallery a, .gallery a:hover {
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    font-family: ppm, Arial, sans-serif;
    position: relative;
    filter: none;
    line-height: 2rem;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.gallery a.ai-modified::after {
    content: "PICTURE\A AI MODIFIED";
    position: absolute;
    font-family: ppm, Arial, sans-serif;
    font-weight: bold;
    background: rgba(0, 0, 0, .65);
    font-size: clamp(0.42rem, 0.55vw, 0.6rem);
    line-height: 1.3;
    border-radius: 0.75rem;
    top: 1.65rem;
    left: 0.75rem;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
    padding: 0.25rem 0.5rem;
    white-space: pre-line;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    border: .5rem solid var(--background-color-dark);
    border-radius: 1rem;
    display: block;
    box-sizing: border-box;
    margin: 1rem auto;
    background: var(--background-color-dark);
    transition: all 2s ease-in-out;
}

.gallery img:hover {
    border-color: var(--paypal-button-color);
    transition: all .3s ease-in-out;
}

.player {
    border-radius: 2rem;
    max-width: 640px;
    padding: 2rem;
    margin: 2rem auto;
    background: linear-gradient(90deg, var(--background-color) 0%, var(--placeholder-color) 50%, var(--background-color) 100%);
}

.player .headline {
    margin-bottom: 1rem;
}

.player .title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--label-color);
}

.side {
    font-family: ppm, Arial, sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
    font-style: italic;
    color: var(--text-neutral-color);
}

audio {
    width: 100%;
}

a.button, a.button:visited, input.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: ppm, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background-image: none;
    background-color: var(--paypal-button-color);
    color: black;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a.button:hover, input.button:hover, button:hover {
    background-color: #ffda7f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    filter: none;
}

a.button:active, input.button:active, button:active {
    transform: translateY(0);
}

a.button.tiny, a.button.tiny:visited {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    background-color: var(--tiny-button-color);
    color: var(--text-color);
}

a.button.tiny:hover {
    background-color: #6693ff;
}

span.label {
    display: block;
    width: 64px;
    height: 64px;
    background-image: url("/img/minilabel.webp");
    cursor: pointer;
}

span.label.n4cer02 {
    background-position: -64px 0;
}

@keyframes rotateLabel {
    0%, 25% {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    50%, 75% {
        transform: rotateY(-180deg) rotateZ(720deg);
    }
    100% {
        transform: rotateY(-360deg) rotateZ(1440deg);
    }
}

#labelContainer {
    perspective: 1000px;
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

#labelContainer .label {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateLabel 12s ease-in-out infinite;
}

#labelContainer .front,
#labelContainer .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: 0 0;
}

#labelContainer .back {
    transform: rotateY(-180deg);
    background-position: 100% 0;
}

#labelContainer .n4cer01 {
    background-image: url("/assets/biglabel_n4cer01.webp");
}

#labelContainer .n4cer02 {
    background-image: url("/assets/biglabel_n4cer02.webp");
}

.platform {
    max-width: 940px;
    display: flex;
    gap: 1em;
    flex-flow: wrap;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
}

.platform a, .platform a:visited {
    position: relative;
    display: flex;
    align-items: center;
    width: 10rem;
    height: 40px;
    padding: .5rem .75rem .5rem calc(1.75rem + 40px);
    font-family: ppm, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;
    border-radius: 0.75rem;
    border: 0;
    background-image: linear-gradient(90deg, #fff 0, #fff calc(1rem + 40px), transparent calc(1rem + 40px));
    background-color: var(--platform-color);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.platform a:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    filter: none;
}

.platform a:active {
    transform: translateY(0);
}

.platform a:before {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: url("/img/platforms.webp") no-repeat;
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: .5rem;
}

#spotify:before {
    background-position: 0 0;
}

#podcast:before {
    background-position: -41px 0;
}

#soundcloud:before {
    background-position: -81px 0;
}

#youtube:before {
    background-position: -121px 0;
}

#tiktok:before {
    background-position: -161px 0;
}

#itunes:before {
    background-position: -201px 0;
}

#deezer:before {
    background-position: -241px 0;
}

#tidal:before {
    background-position: -281px 0;
}

#amazon:before {
    background-position: -321px 0;
}

.gallery img, .player, tr.record {
    position: relative;
    box-shadow: .2rem .2rem .2rem #000;
}

.player, tr.record {
    border-radius: .5rem;
    border-style: ridge;
    border-color: rgba(0, 0, 0, .2);
}

#promo:after {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.8), rgba(255,255,255,.1));
    content: "";
    width: 100%;
    height: 54%;
    border-radius: .5rem;
    filter: blur(1px);
}

section {
    padding: 2em;
    background: var(--tiny-button-color-light);
    overflow: hidden;
}

form.nodepond input {
    width: 75%;
    max-width: 640px;
}

@media (max-width: 480px) {
    h1 {
        padding: 1.25rem 0.75rem;
        line-height: 1.8rem;
    }
    section {
        padding: 1.5rem 0.75rem;
    }
    a.button, input.button, button {
        width: 100%;
        box-sizing: border-box;
    }
    .gallery {
        border-width: 0 0.25rem 1rem;
        column-gap: 0.5rem;
    }
    .gallery a, .gallery a:hover {
        font-size: clamp(0.5rem, 2.1vw, 0.62rem);
        line-height: 1.3;
        hyphens: auto;
    }
    .gallery img {
        border-width: 0.25rem;
        margin: 0.5rem auto;
    }
    .gallery a.ai-modified::after {
        top: 0.9rem;
        left: 0.45rem;
        max-width: calc(100% - 0.9rem);
        padding: 0.2rem 0.35rem;
        border-radius: 0.4rem;
    }
    .platform {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    .platform a, .platform a:visited {
        box-sizing: border-box;
        width: calc(50% - 0.25rem);
        height: 56px;
        padding: .5rem .35rem .5rem calc(1.25rem + 40px);
        font-size: clamp(0.5rem, 2.5vw, 0.7rem);
    }
}
