* {
  font-family: sans-serif;
  margin: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  height: 100vh;
}

.slider {
  padding: 1rem;
}

input,
output {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.8rem;
}

output {
  padding: 5px 16px;
  border-radius: 3px;
  width: 4rem;
}

input[type="number"] {
  width: 5rem;
  padding: 4px 5px;
  border: 1px solid white;
  border-radius: 3px;
}

input[type="range"]:focus,
input[type="number"]:focus {
  box-shadow: 0 0 3px 1px gray;
  outline: none;
} 

input[type="range"] {
  -webkit-appearance: none;
  margin-right: 15px;
  width: 20vw;
  height: 0.5vw;
  background: black;
  border-radius: 5px;
  background-image: linear-gradient(grey, black);
  background-size: 70% 100%;
  background-repeat: no-repeat;
}

/* Input Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #ff4500;
  cursor: pointer;
  box-shadow: 0 0 2px 0 #555;
  transition: background .2s ease-in-out;
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: red;
  cursor: pointer;
  box-shadow: 0 0 2px 0 #555;
  transition: background .2s ease-in-out;
}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: red;
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;
  transition: background .2s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #a20012;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #a20012;
}

input[type="range"]::-ms-thumb:hover {
  background: #a20012;
}

/* Input Track */
input[type=range]::-webkit-slider-runnable-track  {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type=range]::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type="range"]::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}
