@charset "UTF-8";

:root {
  --background: #2e2c3a;
  --muted: #262431;
  --primary: #e9dfc4;
}

html {
  background-color: var(--background);
  color: var(--primary);
  font-family: sans;
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

a {
  color: inherit;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #196d9b, #413e65);
  margin: 1em 6em 1em;
  padding: 1em;
  border-width: medium;
  border-color: #3c394c;
  border-style: solid;
  border-radius: 1em;
}

nav a {
  text-decoration-line: none;
  margin: 0em 2em 0em;
  font-size: x-large;
}

main {
  height: 100%;
}

div#map.pointing {
  cursor: crosshair;
}

main#map_and_controls {
  display: flex;
}

main#map_and_controls aside {
  background-color: var(--background);
  width: 20%;
  padding: 1em;
}

main#map_and_controls aside nav {
  display: block;
  margin: 0.25em 1em 0.25em;
  text-align: center;
}

main#map_and_controls div#map {
  background-color: var(--background);
  width: 80%;
}

.sortable thead th:not(.no-sort) {
  cursor: pointer;
}

.sortable thead th:not(.no-sort)::after,
.sortable thead th:not(.no-sort)::before {
  transition: color 0.1s ease-in-out;
  font-size: 1.2em;
  color: transparent;
}

.sortable thead th:not(.no-sort)::after {
  margin-left: 3px;
  content: "▸";
}

.sortable thead th:not(.no-sort):hover::after {
  color: inherit;
}

.sortable thead th:not(.no-sort)[aria-sort=descending]::after {
  color: inherit;
  content: "▾";
}

.sortable thead th:not(.no-sort)[aria-sort=ascending]::after {
  color: inherit;
  content: "▴";
}

.sortable thead th:not(.no-sort).indicator-left::after {
  content: "";
}

.sortable thead th:not(.no-sort).indicator-left::before {
  margin-right: 3px;
  content: "▸";
}

.sortable thead th:not(.no-sort).indicator-left:hover::before {
  color: inherit;
}

.sortable thead th:not(.no-sort).indicator-left[aria-sort=descending]::before {
  color: inherit;
  content: "▾";
}

.sortable thead th:not(.no-sort).indicator-left[aria-sort=ascending]::before {
  color: inherit;
  content: "▴";
}

.sortable {
  --stripe-color: var(--muted);
  --th-color: var(--background);
  --th-bg: var(--primary);
  --td-color: var(--primary);
  --td-on-stripe-color: red;
  border-spacing: 0;
}

.sortable.sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sortable tbody tr:nth-child(odd) {
  background-color: var(--stripe-color);
  color: var(--td-on-stripe-color);
}

.sortable thead th {
  background: var(--th-bg);
  color: var(--th-color);
  font-weight: normal;
  text-align: left;
  text-transform: capitalize;
  vertical-align: baseline;
  white-space: nowrap;
}

.sortable td {
  color: var(--td-color);
}

.sortable td,
.sortable th {
  padding: 10px;
}

.sortable td:first-child,
.sortable th:first-child {
  border-top-left-radius: 4px;
}

.sortable td:last-child,
.sortable th:last-child {
  border-top-right-radius: 4px;
}