/*
 * Custom xess.min.css for Anubis's challenge page by Mitch Donaberger, https://forge.mitch.science
 *
 * Styled to match the board's default dc2 (Daily Cycle 2) theme.
 *
 */

:root {
    --body-sans-font: Verdana, sans-serif;
    --body-preformatted-font: "Iosevka Curly Iaso", monospace;
    --body-title-font: Podkova, serif;
    /* dc2 night phase (default = dark mode) */
    --background: #1d0834;
    --text: #e0e0e0;
    --text-selection: #5a42a7;
    --preformatted-background: #2a0d3e;
    --link-foreground: #ada1d3;
    --link-background: #1d0834;
    --blockquote-border-left: 1px solid #5a42a7;
    --progress-bar-outline: #5a42a7 solid 4px;
    --progress-bar-fill: #5a42a7;
}

/* dc2 day phase — used when the OS exposes a light preference.
   Despite the name, dc2 stays dark; this is the blue daytime hue. */
@media (prefers-color-scheme: light) {
    :root {
        --background: #180747;
        --text: #e0e0e0;
        --text-selection: #3b5ab5;
        --preformatted-background: #001055;
        --link-foreground: #9dadda;
        --link-background: #180747;
        --blockquote-border-left: 1px solid #3b5ab5;
        --progress-bar-outline: #3b5ab5 solid 4px;
        --progress-bar-fill: #3b5ab5;
    }
}

html {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: var(--body-sans-font);
}

a:link {
    color: var(--link-foreground);
    text-decoration: none;
    font-weight: bold;
}

a:visited {
    background-color: var(--link-background);
    color: var(--link-foreground);
}

blockquote {
    border-left: var(--blockquote-border-left);
    margin: .5em 10px;
    padding: .5em 10px;
}

pre {
    background-color: var(--preformatted-background);
    border: 0;
    font-family: var(--body-preformatted-font);
    padding: 1em;
}
