html {
    font-family: "Palatino","Palatino Linotype","Palatino LT STD","Book Antiqua",Georgia,serif;
    overflow-y: scroll;
    background-color: var(--background-color);
    color: var(--text-color);
}

html[data-theme="0"] {
    --background-color: #F9F9F9;
    --text-color: #333;
    --color-background-input: white;
    --color-background-button: #EFEFEF;
    --color-link: #1254a1;
    --color-border: #808080;
    --color-label: black;
    --color-label-placeholder: #777;
    --color-cell-manual: black;
    --color-cell-inferred-grid: #AAA;
    --color-cell-inferred-statements: #ba55d3;
    --color-cell-temp: red;
    --color-cell-marked: blue;
    --color-cell-contradiction: red;
}

html[data-theme="1"] {
    --background-color: #333;
    --text-color: #DBDEE1;
    --color-background-input: #333;
    --color-background-button: #3F3F3F;
    --color-link: #0d7eff;
    --color-border: #707070;
    --color-label: #DBDEE1;
    --color-label-placeholder: #888;
    --color-cell-manual: white;
    --color-cell-inferred-grid: #777;
    --color-cell-inferred-statements: #ba55d3;
    --color-cell-temp: red;
    --color-cell-marked: #87CEEB;
    --color-cell-contradiction: red;
}

textarea, input, select {
    background: var(--color-background-input);
    color: var(--color-label);
    border-radius: 3px;
}

button {
    background: var(--color-background-button);
    color: var(--color-label);
    border-radius: 3px;
}

textarea::placeholder {
    color: var(--color-label-placeholder);
}

input, button, select {
    border: 1px solid var(--color-border);
}

a {
    color: inherit;
    text-decoration: none;
}

table {
    border-collapse: collapse;
}

td {
    width: 30px;
    height: 30px;
    font-size: 22px;
    color: var(--color-cell-inferred-grid);
    font-weight: bold;
    border: 1px solid var(--color-border);
    text-align: center;
    cursor: pointer;
}

td.skip-obj {
    color: var(--color-label) !important;
    border: none !important;
}

td.inferred {
    color: var(--color-cell-inferred-statements) !important;
}

td.manual {
    color: var(--color-cell-manual) !important;
}

td.temp-cell {
    color: var(--color-cell-temp) !important;
}

td.marked {
    color: var(--color-cell-marked) !important;
}

td.contradiction {
    color: var(--color-cell-contradiction) !important;
}

td.contradiction span {
    display: none;
}

td.contradiction::after {
    content: '?';
}

.controls {
    font-size: 20px;
    margin-bottom: 90px;
}

.controls button {
    font-size: 16px;
}

.spacer {
    height: 5px;
    width: 5px;
    padding: 0px;
    margin: 0px;
    border-style: none;
}

.statements, #solution-table, #gpthelperwrapper, #decoder, .plaintext {
    font-size: 20px;
}

.noscript {
    font-size: 18px;
}

.flexed {
    display: flex;
    flex-direction: row;
}

.nametagone {
    flex: 0 0 auto;
}

.nametagone::after {
    content: ":";
    padding-right: 10px;
}

.textarealabel {
    flex: 0 0 auto;
    padding-right: 0.3em;
}

.ltr {
    resize: horizontal;
}

.rtl {
    resize: horizontal;
    direction: rtl;
    text-align: left;
}

.rotated {
    max-width: 1px !important;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

a.normal {
    color: var(--color-link);
    text-decoration: none;
}

/* based off of https://stackoverflow.com/a/57938527 */
.switch {
    position: relative;
    display: inline-block;
    width: 2em;
    height: 1em;
    top: 0.33em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 0.76em;
    width: 0.76em;
    left: 0.15em;
    bottom: 0.15em;
    background-color: white;
    -webkit-transition: inherit;
    transition: inherit;
}

input:checked+.slider {
    background-color: #222222;
}

input:focus+.slider {
    box-shadow: 0 0 1px #222;
}

input:checked+.slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
}

.slider.round {
    border-radius: 1em;
}

.slider.round:before {
    border-radius: 50%;
}
  