body {
  background: #272822;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #f0f0f0;
}

#locations.hide-inaccessible .region.inaccessible:not(.peekable),
#locations.hide-inaccessible .location.inaccessible:not(.peekable),
#locations.hide-inaccessible .item-check.inaccessible:not(.peekable) {
  display: none;
}

#locations.hide-inaccessible .item-check.inaccessible.peekable input,
#locations.hide-inaccessible .item-check.inaccessible.peekable label {
  opacity: 0.6;
}

#locations.hide-inaccessible .item-check.inaccessible.peekable .peek-controls {
  display: inline-block;
}

#locations .peek-controls {
  display: none;
  margin-left: 10px;
}

#locations .peek-controls img {
  display: none;
  height: 15px;
  margin-bottom: -3px;
}

#locations .peek-controls:hover {
  cursor: pointer;
}

.item-check > * {
  display: inline-block;
  vertical-align: middle;
}

#locations.hide-inaccessible .item-check.peek-controls {
  display: none;
  content: " \1F441";
  font-size: 12px;
  display: inline-block;
}

#locations.keysanity .region.inaccessible.has-keys {
  display: inline-block;
}

#locations.keysanity .location.inaccessible.has-keys {
  display: block;
}

#locations.hide-collected *:not(.keys) > .no-animation {
  display: none !important;
  animation: none !important;
  transition: none !important;
}

#locations.hide-collected .region.collected,
#locations.hide-collected .location.collected,
#locations.hide-collected .item-check.collected,
#locations.hide-collected .region.collected > *,
#locations.hide-collected .location.collected > *,
#locations.hide-collected .item-check.collected > * {
  opacity: 0;
  animation: fadeOut 1s forwards;
  z-index: -1;
  pointer-events: none;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    position: absolute;
    z-index: -1;
  }
}

.no-animation, .no-animation * {
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -o-animation: none !important;
  animation: none !important;
}

.region {
  display: inline-block;
  vertical-align: top;
  border: 1px solid black;
  border-radius: 10px;
  width: 250px;
  margin: 10px;
  padding: 5px;
}

.region.the-forest {
  background-color: #138510;
}
.region.hyrule-field {
  background-color: #eeff43;
  color: #2e2e2e;
}
.region.kakariko {
  background-color: #b348d2; /*#ff77aa;*/
}
.region.death-mountain {
  background-color: #a91a05;
}
.region.zoras-river {
  background-color: #3ad7f9;
  color: #2e2e2e;
}
.region.lake-hylia {
  background-color: #0c4e9b;
}
.region.the-desert {
  background-color: #cc7025; /*#ffa500;*/
}
.region.hyrule-castle {
  background-color: #cccccc;
  color: #2e2e2e;
}

.region h2 {
  text-align: center;
  margin-top: 10px;
  border-bottom: 2px solid;
}

.location h3 {
  position: relative;
}

.location h3 .keys {
  position: absolute;
  top: 0;
  right: 0;
}

ul.item-checks {
  padding-left: 0;
}

ul.item-checks li {
  list-style: none;
}

ul.item-checks li input[type=checkbox]:checked + label {
  text-decoration: line-through;
}

#right-side {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  float: right;
  min-height: calc(100vh - 30px);
}

#footer {
  line-height: 20px;
  font-size: 10px;
  padding-top: 20px;
  text-align: right;
  height: 30px;
  opacity: 0.8;
}

#footer .bugs {
  width: 20px;
}

#age-selector {
  margin: 10px;
  text-align: center;
}

#set-buttons {
  margin: 10px;
  text-align: center; 
}

#set-buttons form {
  display: inline-block;
}

button.spawn-location {
  margin: 5px;
}

#settings {
  margin-top: 15px;
  font-size: 10px;
}

#settings select {
  width: 100%;
}

#settings tr td:first-child {
  padding-right: 5px;
}

#settings tr td:last-child {
  text-align: right;
}

.clear {
  clear: both;
}

#inventory table {
  margin: 0 auto;
}

.location .item {
  float: right;
}

.item {
  padding: 0;
  position: relative;
}

.item .subtitle {
  display: inline-block;
  font-size: 10px;
}

.item .count {
  display: none;
  font-size: 12px;
}

.item .subtitle, .item .count {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #ddd;
  padding: 1px 3px;
  background: #000;
  border-radius: 10px;
}

.item .subtitle:empty, .item .count:empty, .item.collected .count:empty {
  display: none;
}

.item.collected .count {
  display: inline-block;
}

.item img, .item .subtitle {
  opacity: 0.5;
}

.item.collected img, .item.collected .subtitle {
  opacity: 1;
}

#overlay {
  display: none;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  background: rgba(0,0,0,0.5);
}

.popup {
  display: none;
  padding: 20px;
  width: 400px;
  background: #272822;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  margin: 100px auto;
  text-align: center;
}

#check-pedestal-popup button {
  width: 200px;
  display: block;
  margin: 10px auto;
}

#peek-item-popup table {
  margin: auto;
}

#peek-item-popup .peek-item {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}