body{
  margin: 10px auto;
  width: 1060px;
  font-family: menlo, Consolas, 'Lucida Console', monospace; 
  min-height: 1200px;
}

input{
  font-family: menlo, Consolas, 'Lucida Console', monospace; 
  padding: 10px;
  font-size: 14px;
}

.tooltip {
  top: -1000px;
  position: fixed;
  padding: 10px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid lightgray;
  pointer-events: none;
}
.tooltip-hidden{
  opacity: 0;
  transition: all .3s;
  transition-delay: .1s;
}

@media (max-width: 590px){
  div.tooltip{
    bottom: -1px;
    width: calc(100%);
    left: -1px !important;
    right: -1px !important;
    top: auto !important;
    width: auto !important;
  }
}

svg{
  overflow: visible;
  user-select: none;
}

.axis text{
  fill: #aaa;
}

.domain{
  display: none;
}

.axis line{
  display: none;
}

text{
  pointer-events: none;
  text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}


.hsv-lines{
  user-select: none;
}

.spaces{
  margin-left: 20px;
  user-select: none;
}

.bands{
  user-select: none;
}

.space{
  margin-bottom: -30px;
}

.space-label{
  transform-origin: center;
  transform: translate(-120px, 100px) rotate(-90deg);
  position: relative;
  z-index: 1000;
  display: inline-block;
  width: 200px !important;
  height: 0px;
  text-align: center;
  margin-bottom: -20px;
}

.bands > div{
  width:  1060px;
}
.space-band{
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.space-band text{
  fill: #333;
}

.space-band.active{
}
.space-band.active text{
  fill: #000;
  font-weight: 900;
  /*text-decoration: underline;*/
}


p{
  max-width: 600px;
  line-height: 1.4em;
}

input[type="color"] {
  border: 0;
  padding: 0;
  border-color: #fff !important;
  background: #fff;
  height: 30px;
}

.output-colors{
  padding: 10px;
  background: #eee;
  font-size: 12px;
  color: #555;
}

a{
  color: #000;
}

.numTicks{
  text-align: center;
}