@font-face{
  src: url('fonts/NationalPark-ExtraBold.otf');
  font-family: "National Park";
  font-weight: 800;
}
@font-face{
  src: url('fonts/NationalPark-Bold.otf');
  font-family: "National Park";
  font-weight: 700;
}
@font-face{
  src: url('fonts/NationalPark-SemiBold.otf');
  font-family: "National Park";
  font-weight: 600;
}
@font-face{
  src: url('fonts/NationalPark-Medium.otf');
  font-family: "National Park";
  font-weight: 500;
}
@font-face{
  src: url('fonts/NationalPark-Regular.otf');
  font-family: "National Park";
  font-weight: 400;
}

b, strong {
  font-weight: bold;
}
i {
  font-style: italic;
}

td, th {
  padding: 4px;
}
table {
  max-width: 100%;
}
th {
  font-weight: bold;
}
td {
  border: 1px solid #eee;
}

body {
  margin: 0;
  padding: 0;
  font-family: "National Park", "Source Sans", "Helvetica", sans-serif;
  line-height: 1.25em;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}
select {

  font-family: inherit;
  line-height: 1.4em;

  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 4px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance:none;

  background-image: url(/img/select-arrows.png) !important;
  background-size: 11px;
  background-repeat: no-repeat !important;
  background-position-x: 100% !important;
  background-position-y: 50% !important;
}
#header {
  width: 100%;
  color: #FFE2A8;
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
  background: #4f2e28;
  padding: 0 10px 0 8px;
  /*background: linear-gradient(90deg, #4A282A, #66373a);*/
  overflow-x: auto;
}
#header a {
  text-decoration: none;
  color: inherit;
}
#header a:hover {
  text-decoration: underline;
}
#header .main-menu {
  display: flex;
  flex-basis: 100%;
  justify-content: end;
}
#header .main-menu li {
  margin-left: 20px;
}
#header img {
  height: 20px;
  width: 20px;
  margin-right: 6px;
}
#header .site-title {
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-direction: row;
  font-size: 15px;
}
#header .site-title a {
  display: inline-flex;
  margin-right: 3px;
}

#body {
  display: flex;
  width: 100%;
  position: absolute;
  bottom: 0;
  top: 30px;
}
#sidebar p {
  margin-bottom: 12px;
}
#map-wrap {
  z-index: 0;
  flex-basis: 100%;
  padding: 10px;
  position: relative;
}
body.sidebar-open #map-wrap {
  padding-right: 0;
}
#map {
  border: 1px solid #ccc;
  height: 100%;
  width: 100%;
}
#map .quickinfo {
  font-family: "National Park", "Source Sans", "Helvetica", sans-serif;
}
#top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: 100%;
}
#nameplate {
  color: #000;/*#331d1a;*/
  line-height: 1.4;
  padding: 0 10px 10px 0;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background: #fff;
  text-align: left;
}
#nameplate select {
  font-size: 16px;
  width: 100%;
}
#nameplate > *:not(:last-child) {
  margin-bottom: 8px;
}
#nameplate .swatch {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 6px;
  border: 1px solid #738C40;
  background: #D8E8B7;
}
#nameplate a {
  color: #aaa;
  text-decoration: none;
  vertical-align: text-bottom;
  padding-left: 8px;
  margin-top: -2px;
}
#nameplate a:hover {
  text-decoration: underline;
}
#nameplate h1 {
  font-size: 20px;
}
#controls {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.area-focused #controls {
  top: 49px;
}
#controls select {
  font-size: 15px;
  width: 200px;
  max-width: 100%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
}
#attribution-logo {
  position: absolute;
  bottom: 10px;
  z-index: 100;
}
#inspect-toggle {
  display: block;
  position: absolute;
  top: calc(50% - 20px);
  right: 10px;
  height: 40px;
  width: 20px;
  background: white;
  border-radius: 20px 0 0 20px;
  border: 1px solid #aaa;
  border-right: 0;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  z-index: 9999;
}
#inspect-toggle:before {
  content: "";
  height: 100%;
  width: 100%;
  position: relative;
  margin-left: 2px;
  display: inline-block;
  background-image: url(/img/arrow-right.png) !important;
  background-size: 8px;
  background-repeat: no-repeat !important;
  background-position-x: 50% !important;
  background-position-y: 50% !important;
}
body.sidebar-open #inspect-toggle {
  right: 0;
}
body:not(.sidebar-open) #inspect-toggle:before {
  rotate: 180deg;
}
#sidebar {
  display: none;
  flex-direction: column;
  background: white;
  height: 100%;
  min-width: 250px;
  width: 33.3333vw;
}
body.sidebar-open #sidebar {
  display: flex;
}
#sidebar .top,
#sidebar .body {
  padding: 10px;
}
#sidebar .top {
  background: white;
  border-top-right-radius: inherit;
  border-top-left-radius: inherit;
  border-bottom: 1px solid #ddd;
  background: #4A282A;
  color: white;
}
#sidebar .body {
  max-height: 100%;
  overflow-y: auto;
}
#sidebar table {
  width: 100%;
}
#sidebar table td {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, -apple-system, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#sidebar #tag-table td {
  width: 50%;
}
#sidebar #relations-table td:not(:first-child) {
  overflow-wrap: normal;
}
#sidebar #meta-table td {
  background: rgba(0, 0, 0, 0.02);
}
#sidebar #meta-table td:first-child {
  font-family: inherit;
  font-weight: 600;
  width: 90px;
}
.link-list a {
  white-space: nowrap;
}

@media only screen and (max-width: 600px) {
  #body {
    flex-direction: column;
  }
  #top-left {
    position: relative;
    left: 0;
    top: 0;
  }
  #nameplate {
    padding: 10px;
    border-right: 0;
  }
  #header .tagline {
    display: none;
  }
  #sidebar {
    width: 100%;
    height: 30%;
    flex: 0 0 auto;
    min-width: 100%;
  }
  #map-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  #map {
    border-width: 0 0 1px 0;
  }
  #controls {
    top: 0 !important;
    left: 0;
  }
  #inspect-toggle {
    top: auto;
    border-radius: 20px 20px 0 0;
    border-right: 1px solid #aaa;;
    border-bottom: none;
    left: calc(50% - 20px);
    bottom: 0;
    height: 20px;
    width: 40px;
  }
  #inspect-toggle:before {
    rotate: 90deg;
    margin-left: auto;
    margin-top: 2px;
  }
  body:not(.sidebar-open) #inspect-toggle:before {
    rotate: 270deg;
  }
}