
/* Globals */

:root {
    --sidebar-target-width: 300px;
    --sidebar-width: min(var(--sidebar-target-width), 80vw);
    --sidebar-resize-indicator-width: 8px;
    --sidebar-resize-indicator-space: 2px;
    --page-padding: 15px;
    --content-max-width: 900px;
    --menu-bar-height: 50px;
    --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
    --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
    --searchbar-margin-block-start: 5px;
}

/* Themes */

.clamav {
    --bg: #222222;
    --fg: #ffffff;

    --sidebar-bg: #1c1c1c;
    --sidebar-fg: #c5c5c5;
    --sidebar-non-existant: #5c6773;
    --sidebar-active: #ff4646;
    --sidebar-spacer: #2d334f;

    --icons: #fff;
    --icons-hover: #b7b9cc;

    --links: #0096cf;

    --inline-code-color: #383017;

    --theme-popup-bg: #14191f;
    --theme-popup-border: #5c6773;
    --theme-hover: #1c1c1c;

    --quote-bg: #292c2f;
    --quote-border: hsl(226, 15%, 22%);

    --warning-border: #ff8e00;

    --table-border-color: #35393d;
    --table-header-bg: hsl(195, 7%, 21%);
    --table-alternate-bg: #292c2f;

    --searchbar-border-color: #848484;
    --searchbar-bg: #424242;
    --searchbar-fg: #fff;
    --searchbar-shadow-color: #d4c89f;
    --searchresults-header-fg: #666;
    --searchresults-border-color: #888;
    --searchresults-li-bg: #252932;
    --search-mark-bg: #ff4646;

    --color-scheme: dark;

    /* Same as `--icons` */
    --copy-button-filter: invert(45%) sepia(6%) saturate(621%) hue-rotate(198deg) brightness(99%) contrast(85%);
    /* Same as `--sidebar-active` */
    --copy-button-filter-hover: invert(68%) sepia(55%) saturate(531%) hue-rotate(341deg) brightness(104%) contrast(101%);

    --footnote-highlight: #2668a6;

    --overlay-bg: rgba(33, 40, 48, 0.4);

    --blockquote-note-color: #74b9ff;
    --blockquote-tip-color: #09ca09;
    --blockquote-important-color: #d3abff;
    --blockquote-warning-color: #f0b72f;
    --blockquote-caution-color: #f21424;

    --sidebar-header-border-color: #8F8F8F;
}

.clamav_light {
    --bg: #fafafa;
    --fg: #262625;

    --sidebar-bg: #1c1c1c;
    --sidebar-fg: #c5c5c5;
    --sidebar-non-existant: #505254;
    --sidebar-active: #ff4646;
    --sidebar-spacer: #45373a;

    --scrollbar: var(--sidebar-fg);

    --icons: #737480;
    --icons-hover: #262625;

    --links: #2b79a2;

    --inline-code-color: #6e6b5e;

    --theme-popup-bg: #e1e1db;
    --theme-popup-border: #b38f6b;
    --theme-hover: #c5c5c5;

    --quote-bg: hsl(60, 5%, 75%);
    --quote-border: hsl(60, 5%, 70%);

    --table-border-color: hsl(60, 9%, 82%);
    --table-header-bg: #b3a497;
    --table-alternate-bg: hsl(60, 9%, 84%);

    --searchbar-border-color: #aaa;
    --searchbar-bg: #fafafa;
    --searchbar-fg: #000;
    --searchbar-shadow-color: #aaa;
    --searchresults-header-fg: #666;
    --searchresults-border-color: #888;
    --searchresults-li-bg: #dec2a2;
    --search-mark-bg: #ff4646;

    --color-scheme: light;
    /* Same as `--icons` */
    --copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%);
    /* Same as `--sidebar-active` */
    --copy-button-filter-hover: invert(77%) sepia(16%) saturate(1798%) hue-rotate(328deg) brightness(98%) contrast(83%);

    --footnote-highlight: #d3a17a;

    --overlay-bg: rgba(150, 150, 150, 0.25);

    --blockquote-note-color: #023b95;
    --blockquote-tip-color: #007700;
    --blockquote-important-color: #8250df;
    --blockquote-warning-color: #603700;
    --blockquote-caution-color: #aa1721;

    --sidebar-header-border-color: #8c391f;
}

@media (prefers-color-scheme: dark) {
    html:not(.js) {
        --bg: #222222;
        --fg: #ffffff;

        --sidebar-bg: #1c1c1c;
        --sidebar-fg: #c5c5c5;
        --sidebar-non-existant: #5c6773;
        --sidebar-active: #ff4646;
        --sidebar-spacer: #2d334f;

        --scrollbar: var(--sidebar-fg);

        --icons: #fff;
        --icons-hover: #b7b9cc;

        --links: #0096cf;

        --inline-code-color: #383017;

        --theme-popup-bg: #14191f;
        --theme-popup-border: #5c6773;
        --theme-hover: #1c1c1c;

        --quote-bg: #292c2f;
        --quote-border: hsl(226, 15%, 22%);

        --warning-border: #ff8e00;

        --table-border-color: #35393d;
        --table-header-bg: hsl(195, 7%, 21%);
        --table-alternate-bg: #292c2f;

        --searchbar-border-color: #848484;
        --searchbar-bg: #424242;
        --searchbar-fg: #fff;
        --searchbar-shadow-color: #d4c89f;
        --searchresults-header-fg: #666;
        --searchresults-border-color: #888;
        --searchresults-li-bg: #252932;
        --search-mark-bg: #ff4646;

        --color-scheme: dark;

        /* Same as `--icons` */
        --copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%);
        /* Same as `--sidebar-active` */
        --copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%);

        --footnote-highlight: #4079ae;

        --overlay-bg: rgba(33, 40, 48, 0.4);

        --blockquote-note-color: #4493f8;
        --blockquote-tip-color: #08ae08;
        --blockquote-important-color: #ab7df8;
        --blockquote-warning-color: #d29922;
        --blockquote-caution-color: #d91b29;

        --sidebar-header-border-color: #3473ad;
    }
}
