:root[color-mode="dark"] {
    --fg: #ffffff;
    --bg: #1f1f1f;
    --c1: #ffffff;
    --c2: #ffffff;
    --c3: #ffffff;
    --c4: #ffffff;
    --thin-line: 0.5px solid #ffffff;
    --line: 1px solid #ffffff;
}

:root[color-mode="microfiche"] {
    --fg: #d1e389;
    --bg: #162047;
    --c1: #d1e389;
    --c2: #d1e389;
    --c3: #d1e389;
    --c4: #d1e389;
    --c5: #d1e389;
    --thin-line: 0.5px solid #d1e389;
    --line: 1px solid #d1e389;
}

:root[color-mode="dracula"] {
    --fg: #bd93f9;
    --bg: #282a36;
    --c1: #8be9fd;
    --c2: #50fa7b;
    --c3: #ffb86c;
    --c4: #ff79c6;
    --c5: #bd93f9;
    --thin-line: 0.5px solid #f1fa8c;
    --line: 1px solid #ff5555;
}

:root[color-mode="light"] {
    --fg: #1f1f1f;
    --bg: #ffffff;
    --c1: #1f1f1f;
    --c2: #1f1f1f;
    --c3: #1f1f1f;
    --c4: #1f1f1f;
    --c5: #1f1f1f;
    --thin-line: 0.5px solid #1f1f1f;
    --line: 1px solid #1f1f1f;
}

:root[font-mode="serif"] {
    --font: Georgia, serif;
    --title-font: "OldEnglish", Georgia, serif;
    --title-justify: flex-start;
    --thin-line: 0px solid #d1e389;
    --line: 0px solid #d1e389;
}

:root[font-mode="sans"] {
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --title-font: "OldEnglish", Georgia, serif;
    --title-justify: flex-start;
    --thin-line: 0px solid #d1e389;
    --line: 0px solid #d1e389;
}

:root[font-size="regular"] {
    --font-size: 0.8rem;
    --big-font-size: 1.2rem;
}

:root[font-size="big"] {
    --font-size: 1rem;
    --big-font-size: 1.6rem;
}

.sans {
    font-family: Helvetica, sans-serif;
    margin-bottom: 0.5rem;
}

.serif {
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}

.regular {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

.big {
    font-size: 1rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

:root[color-mode="dark"]  .dark-invert {
    filter: invert(100%);
}

:root[color-mode="light"] .light--hidden {
    display: none;
}

:root[color-mode="dark"]  .dark--hidden {
    display: none;
}

:root[font-mode="sans"] .sans-hidden {
    display: none;
}

:root[font-mode="serif"] .serif-hidden {
    display: none;
}

.color-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem);
    padding: 1rem 0.5rem;
    margin: 0;
}

.color-mode__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--fg, #111111);
    cursor: pointer;
    background: none;
    border: none;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.style-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--fg, #111111);
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
}

.style-config {
    position: absolute;
    top: 3rem;
    float: right;
    width: 5rem;
    border: 1px solid var(--fg);
    border-radius: 3px;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
    align-items: center;
    transform: translate(-1.5rem, 0);
}

.color-mode__btn svg {
    width: 20px;
    height: 20px;
    margin: 0.2rem;
    fill: none;
    stroke: var(--fg, #222222);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5px;
    padding: 0px;
}

.color-mode__btn:hover svg,
.color-mode__btn:focus svg, .color-mode__btn:focus {
    outline: none;
    fill: var(--fg, #fff7d6);
}

body,html {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font);
}

p {
    font-size: 1rem;
}

a {
    color: var(--c1);
}

a:hover {
    color: var(--c3);
}

@font-face {
    font-display: swap;
    font-family: "OldEnglish";
    src: url("/static/fonts/OldEnglishFive-axyVg.woff");
}

.title-container {
    display: flex;
    justify-content: var(--title-justify);
}

:root[font-mode="sans"] .title-container {
    margin-bottom: 0px;
}


h1 {
    font-size: 3.5rem !important;
    font-family: var(--title-font);
    font-weight: 900;
    margin: 0rem !important;
    color: var(--fg);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    word-wrap: break-spaces !important;
    color: var(--fg);
}

strong {
    color: var(--fg);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg);
}

h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg);
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: var(--fg);
}

.bar {
    border-top: var(--thin-line);
    border-bottom: var(--thin-line);
    padding: 0.1rem;
    font-size: 1.2rem;
    width: 100%;
    border-style: solid;
    border-right: none;
    border-left: none;
}

.bar {
    border-top: var(--thin-line);
    border-bottom: var(--thin-line);
    padding: 0.1rem;
    font-size: 1.2rem;
    width: 100%;
    border-style: solid;
    border-right: none;
    border-left: none;
    margin-bottom: 1rem;
}

.sidebox-left {
    border: var(--thin-line);
    font-size: 1.2rem;
    width: 180px;
    margin-top: 1rem;
    padding: 1rem;
}

.sidebox-right {
    padding: 0.1rem;
    font-size: 1.2rem;
    width: 180px;
    margin-top: 1rem;
    font-family: Arial, sans-serif;
    font-weight: 600;
    align-items: flex-start;
}

.article {
    margin-bottom: 1rem;
    padding-top: 0;
    border-bottom: none;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    font-size: var(--font-size);
    overflow-x: hidden;
    overflow-y: hidden !important;
    border-right: var(--thin-line);
    max-height: inherit;
}

.article-page {
    border: none;
    max-width: 50em;
    margin-left: auto;
    margin-right: auto;
}


.divider {
    border-bottom: var(--line);
    width: 100%;
    height: 10px;
    margin-top: 0.9rem;
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.subcol {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    column-count: auto;
    column-width: 10rem;
    hyphens: auto;
}

.subcol-hasimage {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    column-count: auto;
    column-width: 10rem;
    hyphens: auto;
}

.overline {
    border-bottom: var(--thin-line);
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 0.7rem;
}

.underline {
    margin-bottom: 1rem;
    border-bottom: var(--thin-line);
    margin-left: 30%;
    margin-right: 30%;
}

.article-content {
	font-size: 1.5rem;
}

.tile {
    flex-basis: inherit !important;
    flex-grow: initial !important;
}

.source-link {
    color: var(--c4);
}

.read-more {
    color: var(--c2);
}

.h100 {max-height: 100px !important;}
.h150 {max-height: 150px !important;}
.h200 {max-height: 200px !important;}
.h250 {max-height: 250px !important;}
.h300 {max-height: 300px !important;}
.h350 {max-height: 350px !important;}
.h400 {max-height: 400px !important;}
.h450 {max-height: 450px !important;}
.h500 {max-height: 500px !important;}
.h550 {max-height: 550px !important;}
.h600 {max-height: 600px !important;}
.h650 {max-height: 650px !important;}
.h700 {max-height: 700px !important;}
.h750 {max-height: 750px !important;}
.h800 {max-height: 800px !important;}
.h850 {max-height: 850px !important;}
.h900 {max-height: 900px !important;}
.h950 {max-height: 950px !important;}
.h1000 {max-height: 1000px !important;}
.h1050 {max-height: 1050px !important;}
.h1100 {max-height: 1100px !important;}
.h1150 {max-height: 1150px !important;}
.h1200 {max-height: 1200px !important;}

.text-input {
    width: 100%;
    height: 2rem;
    border: none;
    margin-top: 1rem;
    font-family: var(--font);
    font-size: 16pt;
    color: var(--fg);
    border-radius: 0;
    background-color: var(--bg);
    border-bottom: 2px solid var(--fg);
}

.submit {
    width: 15rem;
    line-height: 2rem;
    border: 2px solid var(--fg);
    border-radius: 10px;
    background-color: var(--bg);
    font-family: var(--font);
    font-size: 16pt;;
    color: var(--fg);
}

.error-box {
    width: 50%;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--bg);
    color: #be1517;
    border: 2px solid #be1517;
    padding: 1.5rem;
    border-radius: 1rem;
}

.article-content {
    margin-bottom: 20rem;
}

.article-content h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.article-content h2 {
    font-size: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.article-content h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.article-content h4 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.article-content h5 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.article-content p,em {
    font-size: var(--big-font-size);
    margin-top: 1rem;
}

.article-content img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    margin-top: 1rem;
}

.article-content a {
    text-decoration: underline;
}

.article-content figcaption,time,figure {
    font-size: var(--font-size);
}

figcaption p {
    font-size: var(--font-size) !important;
}

.article-content svg {
    display: none;
}

.article-content code {
    background-color: var(--bg);
    color: var(--fg);
    font-size: var(--font-size) !important;
}

.article-content pre {
    background-color: var(--bg);
    color: var(--fg);
    font-size: var(--font-size) !important;
    filter: brightness(0.8);
    margin-top: 1rem;
    border-radius: 20px;
}

