#global-loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

#main-content {
    -webkit-overflow-scrolling: touch;
}

#global-loader.htmx-request {
    opacity: 1;
    visibility: visible;
}

.prose code::before,
.prose code::after {
    content: none !important;
}

.marquee-container {
    container-type: inline-size;
}

.marquee-text {
    animation: pan-text 4s ease-in-out infinite alternate;
    animation-play-state: running;
}

@keyframes pan-text {
    0%,
    10% {
        transform: translateX(0);
    }
    90%,
    100% {
        transform: translateX(min(0px, calc(100cqw - 100%)));
    }
}

@keyframes scroll-ping-pong {
    0%,
    15% {
        transform: translateX(0);
    }
    85%,
    100% {
        transform: translateX(var(--scroll-dist));
    }
}

.animate-ping-pong {
    animation: scroll-ping-pong var(--scroll-duration, 4s) ease-in-out infinite alternate;
    text-align: left !important;
}

html {
    color-scheme: light;
}

html.dark {
    color-scheme: dark;
}
