body, input {
  font-size: 18px;
}

input {
  font-family: monospace;
}

#targetpoint, #alphapoint, #saturationpoint {
  position: absolute;
  pointer-events: none;
}

#swatch-container, #alpha-container, #saturation-container, #main-container {
  position: relative;
}

#alpha-backing {
  position: absolute;
  bottom: 1px;
  z-index: -1;
  display: inline;
}

#sample-container {
  position: absolute;
  width: 50px;
  height: 50px;
  margin-top: 6px;
  margin-left: 6px;
}

#sample {
  outline: 1px solid white;
}

#targetpoint {
  left: -7px;
  top: -7px;
}

#saturationpoint {
  left: 11.5px;
  top: -4.5px;
}

#alphapoint {
  top: 14.5px;
  left: -4.5px;
}

#swatch-container {
  width: 256px;
  height: 256px;
}

#alpha-container {
  width: 256px;
  height: 23px;
  margin-top: 256px;
}

#saturation-container {
  width: 23px;
  height: 256px;
  margin-left: 256px;
}

#saturation-container {
  padding-left: 20px;
}

#alpha-container {
  padding-top: 20px;
}

#controls-container {
  left: 320px;
}

#controls-container {
  vertical-align: top;
  padding-left: 10px;
}

#controls-container td {
  font-family: monospace;
}

#argb-hex-row, #rgb-hex-row, #alpha-row, #argb-packed-row {
  width: 100%;
}

#argb-hex-row input {
  margin-left: 75px;
}

#rgb-hex-row input {
  margin-left: 86px;
}

#alpha-row input {
  margin-left: 107px;
}

#rgb-packed-row input {
  margin-left: 11px;
}

#main-container {
  position: relative;
}

#argb-hex-input {
  width: 9ch;
}

#rgb-hex-input {
  width: 7ch;
}

#packed-argb-input, #packed-rgb-input {
  width: 11ch;
}

#history-panel {
  background-color: rgba(5, 5, 5, 1);
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 200px;
  font-size: 24px;
  font-family: monospace;
  border-left: 1px solid #222222;
  text-align: center;
  display: none;
  overflow-y: hidden;
}

#history-panel p {
  user-select: text;
  pointer-events: auto;
}

@media only screen and (max-width: 1150px) {
  #history-panel {
    display: none;
  }
}
