* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html{
    --plot_line_1: rgb(28, 134, 238);
    --plot_line_2: rgb(255, 165, 0);
    --plot_line_3: rgb(102, 205, 0);
    --plot_line_4: rgb(255, 0, 0);
    --plot_line_5: rgb(255, 0, 255);
    --plot_line_6: rgb(0, 255, 255);
}

html.dark {
    --background_color: #3f3e3f;
    --font_color: #9b9d9b;
    --plot_bg_color: var(--background_color);
    --plot_font_color: var(--font_color);
    --plot_grid_color: #6d6b6d;
    --plot_zeroline_color: #9d9b9d;
    --plot_line_1: rgb(28, 134, 238);
    --plot_line_2: rgb(255, 165, 0);
    --plot_line_3: rgb(102, 205, 0);
    --plot_line_4: rgb(255, 0, 0);
    --plot_line_5: rgb(255, 0, 255);
    --plot_line_6: rgb(0, 255, 255);
}

html.dark body {
    color: var(--font_color);
    background: var(--background_color);
}

h1 {
    color: rgb(2, 5, 177);
}

html.dark h1 {
    color: rgb(2, 98, 177);
}

.inputtable {
    font-size: 24px;
}

.userinput {
    font-size: 24px;
    width: 150px;
    text-align: right;
}

html.dark .userinput {
    color: #121212;
    background-color: #888888;
    border-style: solid;
}

.invalid_input {
    outline: none;
    border-color: #ff0000;
}

.invalid_input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.controlcell {
    font-size: 12px;
    text-align: right;
}

.resultbox {
    margin-top: 1em;
    margin-bottom: 1em;
    padding: 1em;
    display: inline-block;
    font-size: 24px;
    border-style: solid;
    border-color: rgb(2, 5, 177);
    border-width: 2px;
}

html.dark .resultbox {
    border-color: rgb(2, 98, 177);
}

.invalidbox {
    border-color: #ff0000;
}

html.dark .invalidbox {
    border-color: #ff0000;
}

.resultbox p:first-child {
    margin-top: 0pt;
}

.resultbox p:last-child {
    margin-bottom: 0pt;
}

.resultbox th {
    font-weight: normal;
    padding-bottom: 0.5em;
    padding-right: 0.75em;
}

.resultbox td {
    padding-right: 0.75em;
}

.color-mode-div {
    display: block;
    float: right;
}

.color-mode-button {
    height: 2.5em;
    width: 2.5em;
    border-radius: 1.25em;
    border-style: solid;
    border-color: black;
    border-width: 1pt;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.dark .color-mode-button {
    background-color: var(--background_color);
    color: var(--font_color);
    border-color: var(--font_color);
}
