.middle {
  position: relative;
  width: 50%;
  max-width: 500px;
}

.slider {
  position: relative;
  z-index: 1;
  height: 10px;
  margin: 0 15px;
}
.slider > .track {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background-color: #6c757d; /* Bootstrap Secondary color */
}
.slider > .range {
  position: absolute;
  z-index: 2;
  left: 25%;
  right: 25%;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background-color: #0d6efd; /* Bootstrap Primary color */
}
.slider > .thumb {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 30px;
  background-color: #0d6efd; /* Bootstrap Primary color */
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}
.slider > .thumb.left {
  left: 25%;
  transform: translate(0px, -10px);
}
.slider > .thumb.right {
  right: 25%;
  transform: translate(10px, -10px);
}
.slider > .thumb.hover {
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.1); /* Bootstrap Primary color (with alpha opacity) */
}
.slider > .thumb.active {
  box-shadow: 0 0 0 15px rgba(13, 110, 253, 0.2); /* Bootstrap Primary color (with alpha opacity) */
}

input[type="range"] {
  position: absolute;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 2;
  height: 10px;
  width: 100%;
  opacity: 0;
}
input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: 0 none;
  background-color: red;
  -webkit-appearance: none;
}

.slider-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40%);
  font-size: 0.75rem;
  color: gray;
}
