@import "src/assets/variables";

$slider-color: $primary-color !default;
$slider-thumb-color: $secondary-color !default;
.muncher-slider {
  margin: 5%;
  position: relative;
  display: inline-block;
  width: 90%;
  font-size: .8rem;
  height: 4rem;
  .muncher-range {
    position: absolute;
    width: 100%;
    height: 2rem;
    cursor: pointer;
    outline: none;
    top:.8rem;
  }

  .muncher-range,
  .muncher-range::-webkit-slider-runnable-track,
  .muncher-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: none;
  }

  .muncher-range::-webkit-slider-runnable-track {
    width: 100%;
    height: .05rem;
    background: $slider-color;
  }

  .muncher-range::-webkit-slider-thumb {
    position: relative;
    z-index: 1;
    height: 1rem;
    width: 1rem;
    margin-top: -.5rem;
    background: $slider-thumb-color;
    border-radius: 2rem;
  }

  .slider-values {
    position: absolute;
    top: 2.3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: .7rem;
  }

  .slider-header {
    text-align: center;
    position: absolute;
    top: 0;
    width: 100%;
  }

}