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;
}

/* Hide the corner ticker while a dialog or dust storm is up so it is not
   mistaken for chrome on the overlay. Global so :has() is not rewritten by
   BurnTicker CSS isolation. */
body:has(.app-dialog-overlay) .burn-ticker,
body:has(.dust-storm) .burn-ticker {
    display: none;
}

.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);
    }
}

/* 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);
}

/* Lets the art-colour glow (--art-glow, MainLayout) transition smoothly between songs. */
@property --art-glow {
    syntax: "<color>";
    inherits: true;
    initial-value: transparent;
}

/* Border glow colour, cycled through the palette by palette-glow (MainLayout); registered
   so the steps between keyframes blend instead of jumping. */
@property --pal-glow {
    syntax: "<color>";
    inherits: true;
    initial-value: transparent;
}
