/* http://paletton.com/#uid=34I0u0k3V4WaYgf7Lb1ac80gJaQ
19171A, hue 301, dist 30, triad, add complementary
 */

.warning {
  color: #8f2a2a;
}

.color-primary-0-1 {
  background: #19171a;
  color: #7d598f; /* #4d3a56; */
} /* Main Primary color */
.color-primary-0-2 {
  background: #19171a;
  color: #362d3b;
} /* Main Primary color */
.color-primary-1 {
  background: #4d3a56;
  color: #19171a;
} /* violetti */
.color-primary-2 {
  background: #362d3b;
  color: #4d3a56;
}
.color-primary-3 {
  background: #261e2a;
  color: #4d3a56;
}
.color-primary-4 {
  background: #301d3a;
  color: #4d3a56;
}

.color-secondary-1-0 {
  background: #232520;
  color: #6a784f;
} /* Main Secondary color (1) */
.color-secondary-1-1 {
  background: #6a784f;
  color: #232520;
}
.color-secondary-1-2 {
  background: #4b523e;
  color: #6a784f;
}
.color-secondary-1-3 {
  background: #353b28;
  color: #6a784f;
}
.color-secondary-1-4 {
  background: #425026;
  color: #6a784f;
}

.color-secondary-2-0 {
  background: #272622;
  color: #817a55;
} /* Main Secondary color (2) */
.color-secondary-2-1 {
  background: #817a55;
  color: #272622;
}
.color-secondary-2-2 {
  background: #585443;
  color: #817a55;
}
.color-secondary-2-3 {
  background: #403c2b;
  color: #817a55;
}
.color-secondary-2-4 {
  background: #564f29;
  color: #817a55;
}

* {
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100%;
  /* min-height: 100% !important; */
  font-feature-settings: "liga" 0;
  display: flex;
  overflow: hidden;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body {
  background: #19171a;
  color: #7d598f;
}

.columns {
  overflow: hidden;
}

.scrollable-column {
  height: 100%;
  overflow: auto;
}

.equipment {
  margin-bottom: 2em;
}

body,
html,
button,
input,
select,
textarea,
pre,
.pure-g [class*="pure-u"] {
  font-family: "Fira Mono", Monaco, monospace;
  font-size: 11pt;
}

a,
a:hover,
a:visited {
  color: inherit;
}

/* Markdown pages rendered by Jekyll */
html.markdown-page,
body.markdown-page {
  display: block;
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.markdown-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin: 1.4em 0 0.5em;
  color: #817a55;
  line-height: 1.25;
}

.markdown-content h1 {
  margin-top: 0;
  font-size: 2rem;
}

.markdown-content h2 {
  padding-bottom: 0.2em;
  border-bottom: 1px solid #353b28;
  font-size: 1.5rem;
}

.markdown-content p {
  margin: 0 0 1em;
}

.markdown-content a,
.markdown-content a:hover,
.markdown-content a:visited {
  color: #a995ba;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0 0 1em 1.75em;
}

.markdown-content li {
  margin: 0.2em 0;
}

.markdown-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 1em 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.markdown-content th,
.markdown-content td {
  padding: 0.4em 0.65em;
  border: 1px solid #4b523e;
  text-align: left;
  vertical-align: top;
}

.markdown-content th {
  color: #817a55;
  background: #232520;
}

.markdown-content code,
.markdown-content pre {
  background: #232520;
  color: #c1b5cb;
}

.markdown-content code {
  padding: 0.1em 0.3em;
}

.markdown-content pre {
  margin: 1em 0;
  padding: 1em;
  overflow-x: auto;
  border: 1px solid #353b28;
  white-space: pre;
}

.markdown-content pre code {
  padding: 0;
}

.markdown-content blockquote {
  margin: 1em 0;
  padding: 0.1em 1em;
  border-left: 3px solid #6a784f;
  color: #b4aa9a;
}

.markdown-content hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid #353b28;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 40em) {
  .markdown-content {
    padding: 1.25rem 1rem;
  }

  .markdown-content h1 {
    font-size: 1.6rem;
  }
}

#app {
  position: relative;
  margin: 0 auto;
  margin-left: 2em;
  margin-right: 2em;
}

.header {
  line-height: 1.6em;
  text-align: center;
  background: #19171a;
}

.header h1 {
  font-size: 36pt;
  font-weight: 300;
}

.box p {
  margin: 0.5em 0.5em 1em 0.5em;
}

.box ul {
  margin: -0.5em 0.5em 1em 1.5em;
  list-style-type: "- ";
}

.instructions {
  font-size: 10pt;
  line-height: 1.3em;
}

/* etusivun taggroupit */
h3 {
  text-transform: uppercase;
  font-size: 11pt;
  font-weight: normal;
  margin: 0.5em 0.5em 0 0.5em;
  color: #817a55;
}

.h3-additional {
  text-transform: none;
}

.box {
  /* display: flex; */
  margin: 0.5em;
}

.rune {
  background: #232520;
  color: #6a784f;
  align-items: top;
  /* height: 5.5em; */
  padding: 0.5em;
}

.pure-form-aligned .pure-control-group label {
  width: 33.33%;
}

.pure-form-aligned .two-column .pure-control-group label {
  width: 66.66%;
}

.pure-button {
  padding: 0.25em 0.5em;
}

.empty {
  height: 5.5em;
  padding: 0.5em;
  border: 3px dashed #232520;
}

.left {
  text-align: right;
  padding-right: 0.5em;
}

.right {
  padding-left: 0.5em;
}

.right select {
  margin-top: 1em;
}

.align-right {
  text-align: right;
}

.longname {
  font-size: 10pt;
  font-weight: 300;
  color: #817a55;
}

.zincost,
.slots,
.blueprint {
  color: #817a55;
}

.draggable {
  cursor: move;
  /* border: 1px solid #817a55; */
}

textarea {
  font-size: 10pt;
}

.pure-button,
a.pure-button {
  background: #232520;
  color: #6a784f;
  border: 1px solid #6a784f;
}

input:not([type="submit"]),
textarea,
.pure-form select,
select {
  padding: 0.5em;
  background: #272622;
  color: #817a55;
  border: 1px solid;
  /* width: calc(100% - 1em); */
}

input + button {
  margin-left: 0.5em;
}

/* Lights and Colors Out */
body#lights-colors-out {
  overflow: auto;
}

#lights-colors-out main {
  margin: 0 auto;
  padding: 0 1.5em 2em;
}

.lights-colors-out .toolbar {
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.lights-colors-out .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  align-items: center;
}

.lights-colors-out button,
.lights-colors-out select {
  font: inherit;
  padding: 0.25em 0.5em;
  border: 1px solid #6a784f;
  border-radius: 0;
  background: #232520;
  color: #6a784f;
  margin-left: 0;
}

.lights-colors-out button:hover,
.lights-colors-out select:focus,
.lights-colors-out button:focus {
  color: #817a55;
  border-color: #817a55;
}

.lights-colors-out button:disabled {
  opacity: 0.6;
}

.lights-colors-out .start-layout {
  display: grid;
  grid-template-columns: minmax(25em, 1fr) minmax(25em, 1fr) minmax(25em, 1fr);
  gap: 2em;
  align-items: start;
}

.lights-colors-out #board {
  display: grid;
  grid-template-columns: repeat(5, minmax(2em, 2.5em));
  gap: 0.35em;
}

.lights-colors-out .cell {
  aspect-ratio: 1;
  padding: 0;
  font-size: 1em;
  font-weight: bold;
}

.lights-colors-out .cell.on,
.lights-colors-out .picker-cell.selected {
  background: #817a55;
  color: #272622;
}

.lights-colors-out .cell.off,
.lights-colors-out .picker-cell {
  background: #272622;
  color: #817a55;
}

.lights-colors-out textarea {
  width: 18em;
  box-sizing: border-box;
  min-height: 18em;
  padding: 0.5em;
  background: #272622;
  color: #817a55;
  border: 1px solid #817a55;
}

.lights-colors-out #solution {
  display: block;
  width: 100%;
  min-height: 18em;
  white-space: pre;
  overflow: auto;
}

.lights-colors-out #status {
  flex: 1;
  min-width: 24em;
  margin: 0;
  white-space: pre-wrap;
  color: #817a55;
}

.lights-colors-out #status.solving::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.5em;
  border: 2px solid #4b523e;
  border-top-color: #817a55;
  border-radius: 50%;
  animation: lights-colors-out-spin 0.8s linear infinite;
  vertical-align: -0.1em;
}

@keyframes lights-colors-out-spin {
  to { transform: rotate(360deg); }
}

.lights-colors-out #moves {
  display: grid;
  grid-template-columns: repeat(5, minmax(12em, 1fr));
  gap: 0.75em;
  margin: 1em 0;
}

.lights-colors-out .move-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3em;
  align-items: center;
  padding: 0.7em;
  background: #232520;
}

.lights-colors-out .move-label {
  grid-column: 1 / -1;
  color: #6a784f;
}

.lights-colors-out .move-cell {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45em 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.lights-colors-out .move-row > button {
  grid-column: 1 / -1;
}

.lights-colors-out dialog {
  margin: auto;
  max-width: 22em;
  background: #272622;
  color: #7d598f;
  /* color: #817a55; */
  border: 1px solid #817a55;
  padding: 1em;
}

.lights-colors-out dialog h3 {
    margin: 0;
    padding-bottom: 0.5em;
}

.lights-colors-out dialog::backdrop {
  background: #0008;
}

.lights-colors-out #picker {
  display: grid;
  grid-template-columns: repeat(5, 3em);
  gap: 0.35em;
  margin: 1em 0;
}

.start-layout section {
  margin: 1.5em 0;
}

@media (max-width: 60em) {
  .lights-colors-out .start-layout {
    grid-template-columns: 1fr;
  }

  .lights-colors-out #moves {
    grid-template-columns: repeat(3, minmax(12em, 1fr));
  }
}

@media (max-width: 40em) {
  .lights-colors-out main {
    padding: 0 1em 1em;
  }

  .lights-colors-out h1 {
    font-size: 24pt;
  }

  .lights-colors-out .toolbar {
    flex-direction: column;
  }

  .lights-colors-out #status {
    min-width: 0;
  }

  .lights-colors-out #moves {
    grid-template-columns: 1fr;
  }
}

/* Secret society calculator */
body#ss-calculator {
  min-height: 0;
  overflow: hidden;
}

#ss-calculator #app {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
  max-width: none;
  padding: 0 1em 1em;
  box-sizing: border-box;
}

#ss-calculator main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

#ss-calculator .header {
  flex: 0 0 auto;
}

#ss-calculator .ss-layout {
  display: grid;
  flex: 1;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1em;
  align-items: stretch;
  overflow: hidden;
}

#ss-calculator .ss-scroll-column {
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#ss-calculator .ss-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}

#ss-calculator .ss-field {
  display: grid;
  min-width: 0;
  gap: 0.4em;
  color: #817a55;
}

#ss-calculator .ss-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#ss-calculator .ss-panel-content > p:first-child {
  margin-top: 0;
}

#ss-calculator .ss-description {
  white-space: pre-line;
}

#ss-calculator .ss-joining-abilities {
  margin: 0 0 0.75em 1.5em;
}

#ss-calculator .ss-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.45em 0.6em;
  border-bottom: 1px solid #353b28;
}

#ss-calculator .ss-summary-row:last-child {
  border-bottom: 0;
}

#ss-calculator .ss-cap-note {
  line-height: 1.4;
}

#ss-calculator .ss-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

#ss-calculator .ss-ability-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
}

#ss-calculator .ss-ability-table th,
#ss-calculator .ss-ability-table td {
  padding: 0.45em 0.6em;
  border-bottom: 1px solid #353b28;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

#ss-calculator .ss-ability-table tbody tr {
  height: 3.2em;
}

#ss-calculator .ss-ability-table thead th {
  color: #817a55;
  background: #19171a;
}

#ss-calculator .ss-ability-table .ss-optimize-row th,
#ss-calculator .ss-ability-table .ss-optimize-row td {
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

#ss-calculator .ss-optimize-button,
#ss-calculator .ss-clear-all-button {
  padding: 0.15em 0.4em;
  font-size: 9pt;
}

#ss-calculator .ss-ability-table tbody th {
  color: #817a55;
  font-weight: normal;
}

#ss-calculator .ss-ability-table td.ss-selected-cell {
  background: #4b523e;
  color: #f2efdc;
}

#ss-calculator .ss-ability-table th:first-child,
#ss-calculator .ss-ability-table td:first-child {
  min-width: 3em;
}

#ss-calculator .ss-ability-table th:last-child,
#ss-calculator .ss-ability-table td:last-child {
  min-width: 4.5em;
}

#ss-calculator .ss-table-choice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
}

#ss-calculator .ss-table-choice input {
  margin: 0;
}

#ss-calculator .ss-table-choice.ss-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

#ss-calculator .ss-empty-cell {
  min-width: 3em;
}

#ss-calculator .ss-clear-cell {
  text-align: center;
}

#ss-calculator .ss-empty-row {
  display: inline-block;
  color: #7d598f;
}

#ss-calculator .ss-clear-level {
  padding: 0.2em 0.5em;
}

@media (max-width: 55em) {
  body#ss-calculator {
    display: block;
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  #ss-calculator #app {
    display: block;
    min-height: 100%;
    padding-bottom: 1em;
  }

  #ss-calculator main {
    display: block;
  }

  #ss-calculator .ss-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  #ss-calculator .ss-scroll-column {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 40em) {
  #ss-calculator #app {
    padding: 0 0.5em 1em;
  }

  #ss-calculator .ss-controls {
    grid-template-columns: 1fr;
  }

  #ss-calculator .header h1 {
    font-size: 24pt;
  }
}

/*
white
!   Mountain Peak
?   Scenic Location
%   Special Location
t   Tundra

light black
#   Ruins
+   Crossing
-   Road
=   Bridge
C   Player City
c   City

yellow
,   Trail
y   Fields
z   Shore
b   Beach
d   Desert

green
.   Plains
F   Deep Forest
v   Valley
f   Forest
j   Jungle

red
@   Flowing Lava
L   Lava Lake
V   Volcano
x   Badlands
s   Swamp

magenta
H   Highlands
^   Mountain
h   Hills

blue
R   Deep River
r   River
i   Ice
l   Lake
~   Sea

cyan
S   Shallows
w   Waterfall
*/
