/* Default Theme */
:root {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #f5f5f5;
    --text-border: #ccc;
    --table-header: #777;
    --header-bg: #dbdbdb;
    --table-border: #999;
    --box-bg: #f9f9f9;
    --ui-bg: #dfe6ed;
    --ui-button: #007bff;
    --ui-button-disabled: #1a487a;
    --link-colour: #2042a1;
    --text: #260c13;
    --title-text-heavy: #666;
    --title-text-light: #aaa;
    --pure-black: #000;
    --pure-white: #fff;
    --background: #fff;
    --inverted: #000;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    padding: 20px;
}

@media (max-width: 840px) {
    .main-content {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

        .main-content > * {
            width: 100%;
            order: 3;
            font-size: clamp(0.75rem, 2vw, 1.2rem);
        }

        .main-content > .editable-content {
            order: 1;
        }

        .main-content > .pageview-container {
            order: 2;
        }
}

@media (max-width: 840px) {
    .configurable-ui-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .button-container {
        justify-content: flex-start;
    }

    .search-bar {
        width: 100%;
    }
}

.main-content > * {
    min-width: 0;
}

.editable-content {
    width: 100%;
    box-sizing: border-box;
}

.content-box {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/*main stuff ends*/

a.wiki-link-broken {
    color: #c33;
}


/*table*/

.wiki-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.wiki-table {
    display: inline-table;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--text-border);
    border-collapse: collapse;
    table-layout: auto;
}

    .wiki-table th,
    .wiki-table td {
        padding: 4px;
        border: 1px solid var(--table-border);
        vertical-align: top;
    }

    .wiki-table th {
        border-color: var(--table-header);
        background: var(--header-bg);
        text-align: center;
        font-weight: 700;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .wiki-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

@media (max-width: 840px) {
    .wiki-table-wrap {
        max-width: 100%;
        overflow-x: hidden;
    }

    .wiki-table {
        display: inline-table;
        table-layout: auto;
        max-width: 100%;
    }

    @supports (width: fit-content) {
        .wiki-table {
            width: fit-content;
        }
    }

    @supports not (width: fit-content) {
        .wiki-table {
            width: max-content;
        }
    }

    .wiki-table th {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .wiki-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-break: anywhere;
    }
}





/*header*/
.plugin-h2-header, .plugin-h3-header {
    background: var(--com-header-bg);
    margin: 1em 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plugin-h2-header {
    border-bottom: 1px solid var(--table-border);
    border-left: 12px solid var(--text);
    background: var(--header-bg);
}

.plugin-h3-header {
    border: 1px solid var(--table-border);
    border-left: 12px solid var(--table-header);
}

    .plugin-h2-header h2,
    .plugin-h3-header h3,
    .plugin-h4-header h4 {
        margin: 0;
        padding: 0.2em 0.5em;
        margin-top: 0.1em;
        font-weight: normal;
        color: var(--text);
        font-family: Baskerville, serif;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
        width: 100%;
    }

.plugin-h4-header {
    margin: 1em 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 24px solid var(--text);
}

.header-text {
    display: inline-block;
    flex-grow: 1;
}

.header-anchor {
    text-decoration: none;
    color: var(--title-text-light);
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 0.9em;
    margin-left: auto;
    padding-right: 0.2em;
}

    .header-anchor:hover {
        opacity: 1;
        color: var(--text);
    }


@media (max-width: 840px) {
    .plugin-h2-header h2,
    .plugin-h3-header h3,
    .plugin-h4-header h4 {
        font-size: 16px;
    }
    .header-anchor {
        font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, "Apple Symbols", "Segoe UI Symbol", sans-serif;
        font-variant-emoji: text;
    }
}

    .header-anchor::before {
        content: "\FE0E"; 
    }




/*TOC*/
.plugin-content-toc {
    padding: 0.5em;
    border: 1px solid var(--text-border);
    background: var(--box-bg);
    font-size: 16px;
}

    .plugin-content-toc ul {
        padding-left: 1.2em;
        margin: 0;
        list-style-type: disc;
    }

        .plugin-content-toc ul ul {
            list-style-type: circle;
        }

            .plugin-content-toc ul ul ul {
                list-style-type: square;
            }




.toc-link {
    text-decoration: none;
    color: var(--text);
    text-decoration: underline var(--table-border);
    transition: color 0.2s;
}

    .toc-link:hover {
        text-decoration: underline;
        color: var(--title-text-heavy);
    }

/*lists*/

ul.list1, ul.list2, ul.list3, ul.list4 {
    margin: .2rem 0;
    padding-left: 1.4rem;
}

ul.list1 {
    list-style-type: disc;
}

ul.list2 {
    list-style-type: circle;
}

ul.list3 {
    list-style-type: square;
}

ul.list4 {
    list-style: none;
    margin: .2rem 0;
    padding-left: 0.5rem;
}

    ul.list4 > li {
        position: relative;
        padding-left: 0.9rem;
    }

        ul.list4 > li::before {
            content: "\25FB";
            position: absolute;
            left: 0;
            top: 1em; /* nudge here */
            font-size: 0.55em;
            line-height: 1;
        }

/*tab header*/

.tab-header-container {
    margin: 1em 0;
    display: flex;
    flex-direction: column;
}

.tab-header-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
}

.tab-header-container.plugin-h2-header .tab-header-bar button,
.tab-header-container.plugin-h3-header .tab-header-bar button,
.tab-header-container.plugin-h4-header .tab-header-bar button {
    flex: 0 0 auto;
    padding: 0.3em 0.8em;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    font-family: Baskerville, serif;
    font-size: inherit;
    font-weight: normal;
    color: inherit;
    transition: background-color 0.2s;
}

/* Active tab looks like selected header */
.tab-header-bar button.active {
    font-weight: bold;
    text-decoration: underline;
}

.tab-header-container.justify .tab-header-bar {
    justify-content: stretch;
}

    .tab-header-container.justify .tab-header-bar button {
        flex: 1 1 0;
        text-align: center;
    }




/*tabs*/

.tab-container {
    margin-bottom: 1em;
}

.tab-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

    .tab-bar::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        height: 1px;
        width: 100%;
        background-color: var(--table-border);
        z-index: 0;
    }

    /* Each tab button */
    .tab-bar button {
        flex: 0 0 auto;
        padding: 8px 16px;
        margin: 0;
        border: 1px solid var(--text-border);
        border-bottom: none;
        color: var(--text);
        font-weight: bold;
        cursor: pointer;
        white-space: nowrap;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        position: relative;
        z-index: 1;
        background-color: var(--box-bg);
    }

        .tab-bar button:not(:first-child) {
            margin-left: -1px;
        }

        .tab-bar button::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: -1px;
            width: calc(100% + 2px);
            height: 1px;
            background-color: var(--table-border);
            z-index: 2;
            pointer-events: none;
            border-radius: 0;
        }

        .tab-bar button.active {
            z-index: 3;
            border-color: var(--table-border);
            border-bottom: none;
        }

            .tab-bar button.active::after {
                display: none;
            }

    .tab-bar::-webkit-scrollbar {
        bottom: 2px;
        height: 4px;
    }

    .tab-bar::-webkit-scrollbar-track {
        background: transparent;
    }

    .tab-bar::-webkit-scrollbar-thumb {
        background-color: var(--text-border);
        border-radius: 2px;
    }

.tab-container.justify .tab-bar {
    justify-content: stretch;
}

    .tab-container.justify .tab-bar button {
        flex: 1 1 0;
        text-align: center;
    }

.tab-contents {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.tab-content {
    display: none;
    background-color: transparent;
}

    .tab-content.active {
        display: block;
    }

/*charts*/

.graph-container {
    border: 1px solid var(--table-header);
    padding: 10px;
    max-width: 400px;
}

    .graph-container h4 {
        margin: 0 0 10px 0;
        text-align: center;
        color: var(--title-text-heavy);
    }

.chart-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
    position: relative;
}

.y-axis-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 0.85rem;
    color: var(--title-text-heavy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 6px;
    flex-shrink: 0;
    transform: translateY(-1.5em);
}

.graph-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.graph {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    position: relative;
}

.graph-container h4 {
    text-align: center;
    color: var(--title-text-heavy);
    padding-bottom: 0.5em;
}

.bar {
    flex: 1;
    background-color: var(--ui-button);
    border: 1px solid var(--text-border);
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    transition: background-color 0.2s;
}

    .bar:hover {
        background-color: var(--ui-button-disabled);
    }

.bar-label {
    position: absolute;
    bottom: 100%;
    margin-bottom: 2px;
    font-size: 0.8rem;
    color: var(--title-text-heavy);
    text-align: center;
    width: 100%;
}

/* X-axis labels directly below bars */
.x-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

    .x-labels span {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        color: var(--title-text-heavy);
    }

/* X-axis name below x labels */
.x-axis-name {
    text-align: center;
    font-size: 0.85rem;
    color: var(--title-text-heavy);
    margin-top: 2px;
}

.axis-labels {
    display: flex;
    justify-content: flex-start;
    font-size: 0.85rem;
    color: var(--title-text-heavy);
    margin-top: 4px;
}

    .axis-labels span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        display: inline-block;
    }




/*plugins above*/

html, body {
    font-family: var(--font-primary);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}



.page {
    background-color: var(--background);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.siteheader {
    background-color: var(--com-header-bg);
    border-bottom: 1px solid #d6d5d5;
    color: var(--text);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.comheader {
    background-color: var(--com-header-bg);
    padding: 10px 15px;
}


a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/*krest*/

.theme-switcher {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

    .theme-switcher .btn {
        padding: 5px 10px;
        border: 1px solid var(--border-color);
        background: var(--header-bg);
        color: var(--text-color);
        cursor: pointer;
    }

        .theme-switcher .btn:hover {
            background: var(--text-color);
            color: var(--bg-color);
        }

/*fonts*/

@font-face {
    font-family: 'FontKaiwai';
    src: url('fonts/misaki_gothic_2nd.ttf') format('truetype');
}

.font-kaiwai {
    font-family: 'FontKaiwai', sans-serif;
}

@font-face {
    font-family: 'FontInmu';
    src: url('fonts/tyfloa.ttf') format('truetype');
}

.font-Inmu {
    font-family: 'FontInmu', sans-serif;
}

@font-face {
    font-family: 'FontReisho';
    src: url('fonts/Reisho.otf') format('opentype');
}

.font-Reisho {
    font-family: 'FontReisho', sans-serif;
}

@font-face {
    font-family: 'FontRaptor';
    src: url('fonts/raptor.ttf') format('truetype');
}

.font-Raptor {
    font-family: 'FontRaptor', Helvetica;
}

@font-face {
    font-family: 'FontRaptorSquare';
    src: url('fonts/raptorSquare.ttf') format('truetype');
}

.font-RaptorSquare {
    font-family: 'FontRaptorSquare', Helvetica;
}

@font-face {
    font-family: 'FontTaisyo';
    src: url('fonts/taisyoRyakuji.ttf') format('truetype');
}

.font-Taisyo {
    font-family: 'FontTaisyo', Helvetica;
}

@font-face {
    font-family: 'FontThicc';
    src: url('fonts/PNKImitateSans-Bk.ttf') format('truetype');
}

.font-Thicc {
    font-family: 'FontThicc', Arial;
}


/* Other fonts, Dark Theme once had 61dafb */
:root.dark-theme {
    --font-primary: 'Roboto', sans-serif;
    --com-header-bg: #222;
    --text-border: #444;
    --table-header: #999;
    --header-bg: #333;
    --table-border: #666;
    --box-bg: #1e1e1e;
    --ui-bg: #282c34;
    --ui-button: #43afcc;
    --ui-button-disabled: #5a32a8;
    --link-colour: #4a90e2;
    --text: #eee;
    --title-text-heavy: #ccc;
    --title-text-light: #999;
    --pure-black: #000;
    --pure-white: #fff;
    --background: #121212;
    --inverted: #fff;
}

:root.kawaii-theme {
    --font-primary: 'FontInmu';
    --com-header-bg: #fceefb;
    --text-border: #e1ccec;
    --table-header: #af9ab2;
    --header-bg: #f5e1f5;
    --table-border: #dec4e2;
    --box-bg: #fff3f7;
    --ui-bg: #ffe4ec;
    --ui-button: #f8a5c2;
    --ui-button-disabled: #caa6bf;
    --link-colour: #b26aa4;
    --text: #5c3c5c;
    --title-text-heavy: #8e5a8a;
    --title-text-light: #c3a0c3;
    --pure-black: #000;
    --pure-white: #fff;
    --background: #fef9fb;
    --inverted: #3b2c3b;
}

:root.kaiwai-theme {
    --font-primary: 'FontKaiwai';
    --com-header-bg: #000000;
    --text-border: #666;
    --table-header: #cccccc;
    --header-bg: #000000;
    --table-border: #888888;
    --box-bg: #111111;
    --ui-bg: #bf5336;
    --ui-button: #3b2d23;
    --ui-button-disabled: #cc6600;
    --link-colour: #703939;
    --text: #ffffff;
    --title-text-heavy: #ffffff;
    --title-text-light: #cccccc;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #000000;
    --inverted: #ffffff;
}

:root.radium-theme {
    --font-primary: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    --com-header-bg: rgba(0, 0, 0, 0.7);
    --text-border: #4caf50 --table-header: #80c080;
    --header-bg: #1a1a1a;
    --table-border: #3a3a3a;
    --box-bg: rgba(0, 0, 0, 0.85);
    --ui-bg: #123d2d;
    --ui-button: #a8d188;
    --ui-button-disabled: #6f7d04;
    --link-colour: #7ee787;
    --text: #9fdf9f;
    --title-text-heavy: #d6ffd6;
    --title-text-light: #88bb88;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #0d0d0d;
    --inverted: #00ff00;
}

:root.light-red-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #f3d6d6;
    --text-border: #d49595;
    --table-header: #e5a8a8;
    --header-bg: #f2bcbc;
    --table-border: #e9b3b3;
    --box-bg: #fceeee;
    --ui-bg: #fff6f6;
    --ui-button: #e57373;
    --ui-button-disabled: #c06060;
    --link-colour: #b64d4d;
    --text: #913030;
    --title-text-heavy: #7b2525;
    --title-text-light: #e57373;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #fff6f6;
    --inverted: #ffffff;
}

:root.dark-red-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #2c1919;
    --text-border: #8b4c4c;
    --table-header: #a35e5e;
    --header-bg: #3d1e1e;
    --table-border: #733e3e;
    --box-bg: #2a2020;
    --ui-bg: #3c2b2b;
    --ui-button: #a64e4e;
    --ui-button-disabled: #5e3535;
    --link-colour: #d97a7a;
    --text: #e8a3a3;
    --title-text-heavy: #f8d3d3;
    --title-text-light: #dc6f6f;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #181212;
    --inverted: #ffffff;
}


:root.light-green-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #dbe3d8;
    --text-border: #98a97e;
    --table-header: #a1b279;
    --header-bg: #d8dfcb;
    --table-border: #b1c59b;
    --box-bg: #f0f4e8;
    --ui-bg: #f9fdf4;
    --ui-button: #90ad50;
    --ui-button-disabled: #7a8b54;
    --link-colour: #71894e;
    --text: #49652e;
    --title-text-heavy: #3d5525;
    --title-text-light: #90ad50;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #f9fdf4;
    --inverted: #ffffff;
}

:root.dark-green-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #192619;
    --text-border: #587b3a;
    --table-header: #6a8c48;
    --header-bg: #2a2f24;
    --table-border: #4f6732;
    --box-bg: #232a1d;
    --ui-bg: #303c21;
    --ui-button: #5c7745;
    --ui-button-disabled: #3c4b27;
    --link-colour: #7fa243;
    --text: #a1bf6e;
    --title-text-heavy: #d1e49a;
    --title-text-light: #839e44;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #121810;
    --inverted: #ffffff;
}

:root.light-blue-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #d8e6f0;
    --text-border: #87a5bf;
    --table-header: #a5c6de;
    --header-bg: #c9ddeb;
    --table-border: #b3cee4;
    --box-bg: #eaf3fa;
    --ui-bg: #f3f9fe;
    --ui-button: #6ca6d1;
    --ui-button-disabled: #5a8fb3;
    --link-colour: #477da0;
    --text: #365a7c;
    --title-text-heavy: #2b4c66;
    --title-text-light: #6ca6d1;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #f3f9fe;
    --inverted: #ffffff;
}

:root.dark-blue-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #18222f;
    --text-border: #4c6e8b;
    --table-header: #5e82a3;
    --header-bg: #1e2d3d;
    --table-border: #3e5873;
    --box-bg: #202b3a;
    --ui-bg: #28384c;
    --ui-button: #4e7aa6;
    --ui-button-disabled: #354a5e;
    --link-colour: #7aaed9;
    --text: #a3c2e8;
    --title-text-heavy: #d3e5f8;
    --title-text-light: #6fa8dc;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #121820;
    --inverted: #ffffff;
}

:root.light-yellow-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #fdf7dc;
    --text-border: #d6c17d;
    --table-header: #f0dc91;
    --header-bg: #f9eeb6;
    --table-border: #e4cc84;
    --box-bg: #fffbe7;
    --ui-bg: #fffcf0;
    --ui-button: #e8c944;
    --ui-button-disabled: #c1a837;
    --link-colour: #ad9a3a;
    --text: #83732a;
    --title-text-heavy: #6f5f1e;
    --title-text-light: #e8c944;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #fffcf0;
    --inverted: #ffffff;
}

:root.dark-yellow-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #2e2a1a;
    --text-border: #8a783a;
    --table-header: #a7904e;
    --header-bg: #3b361c;
    --table-border: #6e5e31;
    --box-bg: #282412;
    --ui-bg: #3c381b;
    --ui-button: #c7a931;
    --ui-button-disabled: #7d6c2a;
    --link-colour: #f2cf44;
    --text: #ebd68e;
    --title-text-heavy: #f9e8aa;
    --title-text-light: #d6b930;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #1c1a0e;
    --inverted: #ffffff;
}

:root.light-orange-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #fbe3cd;
    --text-border: #d29b68;
    --table-header: #f0b377;
    --header-bg: #fcd7aa;
    --table-border: #e3a96f;
    --box-bg: #fff3e3;
    --ui-bg: #fff9f1;
    --ui-button: #f2953c;
    --ui-button-disabled: #cc7a31;
    --link-colour: #b8631c;
    --text: #824b17;
    --title-text-heavy: #6c3c12;
    --title-text-light: #f2953c;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #fff9f1;
    --inverted: #ffffff;
}

:root.dark-orange-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #2e1e11;
    --text-border: #a96d3c;
    --table-header: #c8824b;
    --header-bg: #3f2c1a;
    --table-border: #804e27;
    --box-bg: #2a1f15;
    --ui-bg: #3a291a;
    --ui-button: #ea7f2d;
    --ui-button-disabled: #9e5522;
    --link-colour: #f7a45d;
    --text: #f2c18d;
    --title-text-heavy: #fdd5aa;
    --title-text-light: #f2953c;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #1a130a;
    --inverted: #ffffff;
}

:root.light-purple-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #eee1f5;
    --text-border: #c0a1d9;
    --table-header: #d4b5ec;
    --header-bg: #e8cef5;
    --table-border: #cba8e2;
    --box-bg: #f9f1fd;
    --ui-bg: #fefaff;
    --ui-button: #c279eb;
    --ui-button-disabled: #9b5ec4;
    --link-colour: #874bb3;
    --text: #5f3086;
    --title-text-heavy: #4d266f;
    --title-text-light: #c279eb;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #fefaff;
    --inverted: #ffffff;
}

:root.dark-purple-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #22152b;
    --text-border: #855b9b;
    --table-header: #9b6cb7;
    --header-bg: #2c1a3a;
    --table-border: #6f438f;
    --box-bg: #271d33;
    --ui-bg: #341f47;
    --ui-button: #b469dc;
    --ui-button-disabled: #7c3fa2;
    --link-colour: #d9a2f2;
    --text: #e0bdf7;
    --title-text-heavy: #f0d9fb;
    --title-text-light: #c279eb;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #130a1c;
    --inverted: #ffffff;
}

:root.light-magenta-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #fbe1ee;
    --text-border: #d28ab5;
    --table-header: #ec9fcb;
    --header-bg: #f5c2dc;
    --table-border: #e5a3c9;
    --box-bg: #fff1f8;
    --ui-bg: #fff8fb;
    --ui-button: #e663a9;
    --ui-button-disabled: #bd5390;
    --link-colour: #a13b76;
    --text: #702554;
    --title-text-heavy: #5e1c45;
    --title-text-light: #e663a9;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #fff8fb;
    --inverted: #ffffff;
}

:root.dark-magenta-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #2b1524;
    --text-border: #9b4c84;
    --table-header: #b35e9c;
    --header-bg: #3a1a31;
    --table-border: #733466;
    --box-bg: #331d2c;
    --ui-bg: #471f3a;
    --ui-button: #dc69b4;
    --ui-button-disabled: #9e3a7f;
    --link-colour: #f27ac7;
    --text: #f0bde0;
    --title-text-heavy: #fad9f0;
    --title-text-light: #e663a9;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #1c0a15;
    --inverted: #ffffff;
}

:root.light-cyan-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #d4f4f5;
    --text-border: #8fcfd3;
    --table-header: #a2e2e6;
    --header-bg: #c0f0f2;
    --table-border: #9adfe2;
    --box-bg: #eafcfd;
    --ui-bg: #f5fefe;
    --ui-button: #56c5cc;
    --ui-button-disabled: #4aa4aa;
    --link-colour: #368c91;
    --text: #246468;
    --title-text-heavy: #1e4e52;
    --title-text-light: #56c5cc;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #f5fefe;
    --inverted: #ffffff;
}

:root.dark-cyan-theme {
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --com-header-bg: #142829;
    --text-border: #3b8c91;
    --table-header: #4fa5aa;
    --header-bg: #1c3a3b;
    --table-border: #2e6e73;
    --box-bg: #1d2f30;
    --ui-bg: #214245;
    --ui-button: #3fc3c9;
    --ui-button-disabled: #2f999e;
    --link-colour: #70e3e9;
    --text: #b2f0f2;
    --title-text-heavy: #dcf8f9;
    --title-text-light: #56c5cc;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --background: #0f1e1f;
    --inverted: #ffffff;
}
/*themes end*/

/*@media stuff*/

@media (max-width: 840px) {
    .configurable-ui-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-tools {
        justify-content: flex-start;
    }

    .search-bar {
        width: 100%;
    }

    .community-search .search-bottom-input {
        width: 100%;
    }
}