html, body {
  height: 100%;
  background: #808080;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

#pixelfuzz {
  filter: blur(.75vw);
}

.pixel {
  position: absolute;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.border {
  position: fixed;
  border: 1px solid;
  outline: 1.5px solid white;
}

.border:active {
  outline-color: #ff0;
}

.border.selected {
  outline-color: #f0a;
  z-index: 1;
}

#context {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #fff9;
  padding: .5em;
  border: 1px solid #fff;
  border-radius: .5em;
  scale: .75;
  opacity: 0;
  font-size: 16px;
  /* font-size: 1.25vh; */
  visibility: hidden;
  transition: all .1s ease-in-out;
}

#context button, #context select, #context input, #context textarea {
  font-size: 13px !important;
  /* font-size: 1.02vh !important; */
}

#context input[type="checkbox"] {
  width: .9em;
  height: .9em;
  margin: .26em;
}

.c-section {
  margin: .15em 0;
}

#c-value {
  max-height: 10em;
  overflow: auto;
  background-color: #fff9;
  border-radius: min(5px, .5em);
  white-space: nowrap;
  resize: both;
  min-width: 150px;
  width: 15.4em;
  height: 7.7em;
}

#c-value > textarea {
  display: block;
  max-height: 11.45em;
  box-sizing: border-box;
  resize: none;
  width: 100%;
  height: 100%;
}

#c-warnings {
  background-color: #fff6;
  border-radius: min(5px, .5em);
}

.c-warning {
  color: red;
  font-weight: bold;
}

#c-save:not(:disabled) {
  border-color: red;
}

#c-close {
  margin: .75em 0 0;
}