@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(165deg, #00c3ff 0%, rgb(0, 119, 255) 100%);
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

h2 {
  position: absolute;
  top: 120px;
  color: #fff;
}

.range-container {
  position: relative;
}

input[type='range'] {
  width: 300px;
  margin: 18px 0;
  -webkit-appearance: none;
  background-color: transparent;
}

input[type='range']:focus {
  outline: none;
}

input[type='range'] + label {
  background-color: #fff;
  position: absolute;
  top: -25px;
  left: 110px;
  width: 80px;
  padding: 5px 2px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Chrome and Safari */
input[type='range']::-webkit-slider-runnable-track {
  background-color: slateblue;
  border-radius: 50px;
  width: 100%;
  height: 10px;
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: radial-gradient(white 0%, slateblue 100%);
  border: 1px solid slateblue;
  border-radius: 50%;
  margin-top: -7px;
}

/* Firefox */
input[type='range']::-moz-range-track {
  background-color: slateblue;
  border-radius: 50px;
  width: 100%;
  height: 10px;
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: radial-gradient(white 0%, slateblue 100%);
  border: 1px solid slateblue;
  border-radius: 50%;
  margin-top: -7px;
  cursor: pointer;
}

/* IE */
input[type='range']::-ms-track {
  background-color: slateblue;
  border-radius: 50px;
  width: 100%;
  height: 10px;
  cursor: pointer;
}

input[type='range']::-ms-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: radial-gradient(white 0%, slateblue 100%);
  border: 1px solid slateblue;
  border-radius: 50%;
  margin-top: -7px;
  cursor: pointer;
}
