* {
  box-sizing: border-box;
  font-family: "Open Sans";
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  position: relative;
}

body{
  width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
}



#loading{
    z-index:2999;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.8;
    position: absolute;
    display: none;
}

#loading:before{
  position: absolute;
  content: "LOADING ...";
  color: #fff;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  width: 100px;
  height: 20px;
}

#loading:after{
  content: "";
  position: absolute;
  border-radius: 50%;
  border: solid 30px gray;
  border-left: none;
  border-top: none;
  width: 30vw;
  height: 30vw;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  -webkit-animation: rotating 5s linear infinite;
  -moz-animation: rotating 5s linear infinite;
  -ms-animation: rotating 5s linear infinite;
  -o-animation: rotating 5s linear infinite;
  animation: rotating 5s linear infinite;
}

.ls-datalist{
  position: absolute;
  display: none;
  max-height: 200px;
  overflow-y: scroll;
  z-index: 999;
  border: solid thin lightblue;
  border-top: none;
  background-color: white;
  padding-left: 3px;
  padding-right: 3px;
}

.ls-datalist:after{
  clear: both;
}

dataset-entry{
  display: block;
  position: relative;
  vertical-align: top;
  padding-right: 2px;
  padding-left: 2px;
}

.ls-datalist dataset-entry{
  margin-top: 2px;
  padding: 2px;
  border-bottom: solid thin lightgray;
}

.ls-chooser-list{
  display: inline-block;
  min-width: 195px;
  height: 23px;
  border: solid thin lightgray;
  cursor: pointer;
  position: relative;
  padding-right: 25px;
}

.ls-chooser-list:after{
  content: "<";
  transform: rotate(-90deg);
  position: absolute;
  right: 12px;
  top: 0px;
  font-weight: bold;
}





.sidebar, .main {
  width: calc(100vw - 20px);
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
  display: block;
}

.menu a{
  display: block;
  margin-left: 3px;
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #4b4b4b;
  line-height: 1.5;
  font-family: adobe-clean,Source Sans Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
  cursor: pointer;
}

.menu a:hover{
  padding-left: 2px;
  color: #6b6b6b;
}

dataset-entry div{
  display: inline-block;
  vertical-align: top;
}

dataset-entry .color{
  width: 16px;
  height: 16px;
  border-radius: 8px;
  margin-right: 10px;
  margin-top: 3px;
  border: solid thin grey;
}

dataset-entry .name{
  text-transform: uppercase;
  font-weight: bold;
  color: #454545;
  margin-right: 25px;
}

dataset-entry .sample{
  width: 50px;
  height: 15px;
  margin-top: 3px;
  position: relative;
  float: right;
  margin-right: 5px;
  border: solid thin grey;
}

.center{
  text-align: center;
}

.light-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  background: linear-gradient(53deg, rgba(0,0,0,1) 0%, rgba(255,255,255,1) 100%);
  border: solid thin lightblue;
  width: 300px;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  outline: none; 
  opacity: 0.7; 
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.light-slider:hover {
  opacity: 1;
}

.light-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 20px;
  background: linear-gradient(90deg, rgba(182,182,182,1) 0%, rgba(223,223,223,1) 50%, rgba(182,182,182,1) 100%);
  border: solid 2px #505050;
  border-radius: 5px;
  cursor: pointer;
}

.light-slider::-moz-range-thumb {
  width: 15px; 
  height: 20px;
  background: linear-gradient(90deg, rgba(182,182,182,1) 0%, rgba(223,223,223,1) 50%, rgba(182,182,182,1) 100%);
  border: solid 2px #505050;
  border-radius: 5px;
  cursor: pointer; 
}

.container {
  border: solid 1px black;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
}

.container .title {
  font-weight: bold;
  position: relative;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  padding: 3px;
  padding-left: 5px;
  color: white;
  background: rgb(121,121,121);
  background: linear-gradient(0deg, rgba(121,121,121,1) 0%, rgba(110,109,109,1) 24%, rgba(158,158,158,1) 47%, rgba(185,185,185,1) 72%, rgba(140,140,140,1) 100%);
}

.container:not(.nocolapse) .title::after{
  position: absolute;
  content: '<';
  right: 20px;
  transform: rotateZ(-90deg);
  cursor: pointer;
}

.container.open:not(.nocolapse) .title::after{
  transform: rotateZ(90deg);
}

.container .body {
  position: relative;
  width: 100%;
  padding: 5px;
}

.container:not(.open) .body:not(.open){
  display: none;
}

.container.lb-red {
  border-color: rgba(240, 0, 0, 0.3);
}

.container.lb-red .title{
  background: rgb(204,67,67);
  background: linear-gradient(0deg, rgba(204,67,67,1) 0%, rgba(198,71,71,1) 24%, rgba(221,121,121,1) 47%, rgba(227,168,168,1) 72%, rgba(238,183,183,1) 100%);
}

.container.lb-blue {
  border-color: rgba(0, 0, 240, 0.3);
}

.container.lb-blue .title{
  background: rgb(67,67,204);
  background: linear-gradient(0deg, rgba(67,67,204,1) 0%, rgba(71,71,198,1) 24%, rgba(121,121,221,1) 47%, rgba(168,168,227,1) 72%, rgba(183,183,238,1) 100%);
}

.container .body .filters {
  position: relative;
  margin-top: 5px;
  margin-bottom: 25px;
  padding-left: 5px;
  padding-right: 5px;
  display: block;
}

.container .body .filters .filter{
  position: relative;
  margin-right: 10px;
  display: inline-block;
  vertical-align: top;
}

.container .body .filters .lable{
  position: relative;
  margin-right: 5px;
  display: inline-block;
  vertical-align: top;
}

.container .body .filters .lable:after{
  position: relative;
  content: ":";
}

.wheelcontainer{
  text-align: center;
  position: relative;
}

.wheelwrapper{
  position: relative;
  display: inline-block;
}

.wheel {
  margin: auto;
  touch-action: none;
}

.marker{
  position: absolute;
  height: 34px;
  min-width: 17px;
  width: 25%;
  top: calc(50% - 17px);
  left: 50%;
  transform-origin: 0 17px;
  z-index: 5;
}

.marker.selector{
  z-index: 6;
}

.marker .head{
  position: absolute;
  width: 34px;
  height: 34px;
  right: -17px;
  border: solid 2px white;
  border-radius: 50%;
  pointer: crosshair;
  background-color: white;
  z-index: 2;
}

.marker.selector .head{
  border: solid 2px black;
}

.marker .line {
  width: 100%;
  height: 2px;
  position: absolute;
  top: 16px;
  left: 0;
  background-color: white;
  z-index: 1;
}

.marker.selector .line {
  background-color: black;
}

.colortable {
  position: relative;
  text-align: center;
  display: block;
}

.colortable .wrapper{
  margin: auto;
  position: relative;
  display: inline-block;
}

.colortable .colorentry{
  width: 200px;
  height: 100px;
  vertical-align: top;
  display: inline-block;
  position: relative;
}

.colortable .colorentry .name{
  position: absolute;
  bottom: 52px;
  left: 10px;
  color: white;
  font-size: 22px;
  text-shadow: 1px 1px 3px #333;
}

.colortable .colorentry .description{
  position: absolute;
  bottom: 9px;
  text-align: left;
  left: 10px;
  color: white;
  font-size: 17px;
  text-shadow: 1px 1px 2px #000;
}

.colortable .colorentry .html{
  position: absolute;
  bottom: 66px;
  left: 106px;
  border: solid thin white;
  width: 84px;
  height: 25px;
  text-shadow: 1px 1px 2px #000;
  color: white;
  text-transform: uppercase;
}

.colorsquares{
  margin-top: 15px;
  text-align: center;
}

.colorsquares .square{
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  width: 150px;
  height: 150px;
  border: solid thin lightblue;
}

.colorsquares .square.original{
  border: solid 3px #689DA9;
}

.colorsquares .square .name{
  position: absolute;
  top: 5px;
  left: 10px;
  color: white;
  font-size: 22px;
  text-shadow: 1px 1px 3px #000;
  z-index: 5;
}

.colorsquares .square .rgb{
  position: absolute;
  top: 35px;
  left: 12px;
  color: white;
  font-size: 12px;
  text-shadow: 1px 1px 3px #000;
  z-index: 5;
}

.colorsquares .square .description{
  position: absolute;
  top: 70px;
  text-align: left;
  left: 10px;
  color: white;
  font-size: 17px;
  text-shadow: 1px 1px 2px #000;
  z-index: 5;
}

.colorsquares .square .html{
  position: absolute;
  top: 53px;
  left: 12px;
  font-size: 13px;
  text-shadow: 1px 1px 2px #000;
  color: white;
  text-transform: uppercase;
  z-index: 5;
}

.colorsquares .square .sample{
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 50px;
  z-index: 3;
}

.colorsquares .square .orgsample{
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 20px;
  z-index: 4;
}

.wheelsetup{
  text-align: center;
  margin-bottom: 15px;
  margin-top: 10px;
}

.marker.showdot .head{
  position: absolute;
  width: 2px;
  height: 2px;
  top: 16px;
  right: -17px;
  background-color: black;
  z-index: 5;
}



@media screen and (orientation:landscape) {

  .sidebar{
    width: 15vw;
    display: inline-block;
    vertical-align: top;
  }

  .main{
    width: 75vw;
    margin-left: calc(5vw - 15px);
    display: inline-block;
    vertical-align: top;
  }
}











@-webkit-keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
