/* a minimalist set of CSS resets */

:root {
  --bkg: #fbfafd;
  --highlight-full: #660099;
  --highlight-mid: #dcc3ef;
  --highlight-low: #f1e8f8;
  --highlight-null: #ffffff;
  --contrast-bkg: #6e6180;
  --contrast-full: #ffffff;
  --contrast-mid: #3e0061;
  --contrast-low: #4b0071;
  --contrast-null: #55495f;
  --border-full: #660099;
  --border-mid: #cba9e6;
  --border-low: #e2d2f0;
  --border-null: #cfc3dc;
  --border-selected: #1e0029;
  --glow-selected: #ffcc33;
  --glow-active: #ffe699;
  --table-border: #e8e1ef;
  --tr-border: #f1ecf6;
  --header: #1e0029;
  --text: #2b2135;
}

/* default to border-box */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.barelist {
  list-style-type: none;
  margin: 1em;
  padding: 0em;
}

header {
  background-color: var(--border-full);
  width: 100%;
  color: var(--contrast-full);
  margin: 0px auto;
  text-align: center;
  padding: 0px;
}

body {
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  /*background-color: #fff0eb !important;*/
  background-color: var(--bkg) !important;
  margin: 0 auto !important;
}

.centred {
  max-width: 720px;
  margin: 0 auto !important;
  float: none !important;
  padding: 1em;
}

table {
  table-layout: auto;
  width: 100%;
  border: 1px solid var(--table-border);
  border-radius: 1rem;
  padding: 1em;
  margin-bottom: 1rem;
}

/* images and videos max out at full width */
img,
video {
  height: auto;
  max-width: 100%;
}

footer {
  border-top: 0.2em solid #facbc7;
  margin-top: 3em;
}

textarea {
  width: 100%;
  min-height: 10em;
}

tr td,
tr th {
  margin: 0px;
}

tr:not(:first-child) td {
  border-top: 1px solid var(--tr-border);
}

tr th {
  border-bottom: 2px solid var(--tr-border);
}

tr td:first-child {
  padding-right: 1.5rem;
}

td,
th {
  padding: 1em 0em;
  text-align: left;
}

select {
  width: 100%;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: scroll;
}

.controls {
  background-color: #ccc;
  padding: 1em;
}

#debugContainer {
  margin-top: 5em;
  padding-top: 5em;
  border-top: 1px dotted #666;
}

#debugContainer textarea {
  font-family: monospace;
  padding: 0.5em;
}

pre {
  line-height: 1.15; /* ascii art */
}

.preTxt,
.pTxt,
.divTxt {
  line-height: 1.1; /* ascii art */
  height: auto;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
}

.preTxt,
.pTxt {
  display: table-cell;
  border-spacing: 0px;
}

.divTxt {
  display: table;
}

p.outcome {
  padding-bottom: 1em;
}

.pTxt {
  font-size: 90% !important;
}

.divTxt h3 {
  font-size: 90% !important;
}

.preTxt {
  font-family: monospace;
  background-color: #ffe0d6;
  color: #999999;
}

.preTxt.stretch {
  transform: scaleY(10);
  transform-origin: 0 0;
}

.preHighlight {
  background-color: #00ffff;
}

pre pre {
  margin: 0px;
  display: inline-block;
}
pre code {
  white-space: pre-wrap; /* Since CSS 2.1 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
  width: 80em;
}

textarea#debugTree {
  height: 310em;
}
textarea#debugGlossary {
  height: 20em;
}
textarea#debugLinks {
  height: 35em;
}
#debugTree {
  background-color: #ffe0d6;
}
#debugGlossary {
  background-color: #a0dee8;
}
#debugLinks {
  background-color: #facbc7;
}

button,
.fakeButton {
  background-color: var(--contrast-full);
  padding: 0.7em;
  border-radius: 2em;
  margin: 0.5em;
  line-height: 1em;
  display: inline-block;
}
.integrated {
  background-color: var(--highlight-full);
  color: var(--contrast-full);
  border: 2px solid var(--border-full);
}
.permitted {
  background-color: var(--highlight-mid);
  color: var(--contrast-mid);
  border: 2px solid var(--border-mid);
}
.minimal {
  background-color: var(--highlight-low);
  color: var(--contrast-low);
  border: 2px solid var(--border-mid);
}
.prohibited {
  background-color: var(--highlight-null);
  color: var(--contrast-null);
  border: 2px dashed var(--border-mid);
}
.irrelevant {
  background-color: var(--highlight-null);
  color: var(--contrast-null);
  border: 2px solid var(--border-mid);
}
p button {
  margin: 0em 0.3em 0.5em 0.1em;
}

button.selected {
  border: 2px solid var(--border-selected);
  box-shadow: 0 0 0 0.3em var(--glow-selected);
}

.backButton {
  float: right;
  opacity: 0.7;
  margin-top: 1.5em;
  box-shadow: 0.1em 0.1em;
}

button:active {
  /*border: 2px solid var(--border-selected);*/
  box-shadow: 0 0 0 0.3em var(--glow-active);
}

.lineDiv {
  padding: 0.5em 1em 2em 1em;
  margin: 1em 0em;
  border-radius: 0.5em;
}

#pageNav {
  padding: 0em 1em;
}

/*.current {
  background-color: #a0dee8;
}*/

.licross:before {
  content: '❌';
  position: relative;
  left: -1em;
}

.litick:before {
  content: '✅';
  position: relative;
  left: -1em;
}

.fine {
  background-color: #a6e8a0;
}

.notfine {
  background-color: #efbdbd;
}

.neutral {
  background-color: #f4e8c1;
}

.hidden {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--header);
}

h2 {
  border-left: 0.2em solid var(--border-full);
  padding-left: 0.5em;
}

@media only screen and (min-width: 1280px) {
  #toast {
    min-width: 10em;
    background-color: #333;
    color: #eee;
    text-align: center;
    border-radius: 0.5em;
    padding: 0.5em;
    position: fixed;
    z-index: 1;
    right: 2em;
    bottom: 2em;
  }
}
@media only screen and (max-width: 1279px) {
  #toast {
    visibility: hidden;
  }
}
