body {
    color: white;
    background-color: black;
}

/* Dialog: lock the page so only the dialog body scrolls. Global so :has()
   is not eaten by Blazor CSS isolation on a child component. */
html:has(.app-dialog-overlay),
body:has(.app-dialog-overlay) {
    overflow: hidden;
}

.app-dialog-overlay {
    overflow: hidden;
}

@media only screen and (max-width: 700px) {
    :root {
        font-size: 14px;
    }
}

app {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.marquee {
    animation: marquee 15s linear infinite;
    white-space: nowrap;
    min-width: fit-content;
    width: 100%;
}

@keyframes marquee {
    0% {
        transform: translate(100%, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* ---- Art spin on every new picture (ArtSpin in site.js) ---- */
#art > div.art-spin {
    animation: artspin 1.1s cubic-bezier(.45,.05,.3,1) both;
    will-change: transform;
}

@keyframes artspin {
    0% { transform: perspective(900px) rotateY(0deg) scale(1); }
    50% { transform: perspective(900px) rotateY(180deg) scale(.92); }
    100% { transform: perspective(900px) rotateY(360deg) scale(1); }
}

/* Drag-and-drop song request zone (SongDrop in site.js): dusty dashed frame on the chat. */
body.song-drop section[type="Chat"] {
    outline: 3px dashed #d9a441;
    outline-offset: -6px;
    background-color: rgba(194, 150, 90, .18);
    box-shadow: inset 0 0 40px rgba(217, 164, 65, .35);
}
