input[type=range].rickterscale {
  width: 100%;
  margin: 10.5px 0;
  background-color: transparent;
  -webkit-appearance: none;
}
input[type=range].rickterscale:focus {
  outline: none;
}
input[type=range].rickterscale::-webkit-slider-runnable-track {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 10.1px;
  width: 100%;
  height: 15px;
  cursor: pointer;
}
input[type=range].rickterscale::-webkit-slider-thumb {
  margin-top: -10.7px;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 5px solid #367EBD;
  border-radius: 18px;
  cursor: pointer;
  -webkit-appearance: none;
}
input[type=range].rickterscale:focus::-webkit-slider-runnable-track {
  background: #367ebd;
}
input[type=range].rickterscale::-moz-range-track {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 10.1px;
  width: 100%;
  height: 15px;
  cursor: pointer;
}
input[type=range].rickterscale::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 5px solid #367EBD;
  border-radius: 50%;
  cursor: pointer;
}
input[type=range].rickterscale::-ms-track {
  background: transparent;
  border-color: transparent;
  border-width: 11.5px 0;
  color: transparent;
  width: 100%;
  height: 15px;
  cursor: pointer;
}
input[type=range].rickterscale::-ms-fill-lower {
  background: #2a6495;
  border: 0.2px solid #010101;
  border-radius: 20.2px;
}
input[type=range].rickterscale::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 20.2px;
}
input[type=range].rickterscale::-ms-thumb {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 5px solid #367EBD;
  border-radius: 18px;
  cursor: pointer;
  margin-top: 0px;
  /*Needed to keep the Edge thumb centred*/
}
input[type=range].rickterscale:focus::-ms-fill-lower {
  background: #3071a9;
}
input[type=range].rickterscale:focus::-ms-fill-upper {
  background: #367ebd;
}

datalist, div.datalist {
  display: flex;
  justify-content: space-between;
  margin-left: 18px;
}

.scaleselvalue {font-weight:bold; color: #218837; text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #218837;
  text-decoration-thickness: 3px;}

/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out
how to remove the virtical space around the range input in IE*/
@supports (-ms-ime-align:auto) {
  /* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
  input[type=range].rickterscale {
    margin: 0;
    /*Edge starts the margin from the thumb, not the track as other browsers do*/
  }
}