/* CSS Document */

input[type=range]{
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  width: 100%; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;

  /* Hides the slider so custom styles can be added */
  background: transparent; 
  border-color: transparent;
  color: transparent;
}



/* styling thumb */

/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb, input[type=range]::-webkit-slider-thumb:hover {
  -webkit-appearance: none;
  border: 8px solid #095e82;
  height: 40px;
  width: 40px;
  border-radius: 20px;
  background: #03c04a;
  background: #ffffff;
  
  cursor: pointer;
  margin-top: -14px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
}

input[type=range]::-webkit-slider-thumb:hover{
  background: #03c04a;
  background: #ffffff;
  background: #095e82;
  background: #388eb3;
}


/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb, input[type=range]::-moz-range-thumb {
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  border: 8px solid #095e82;
  height: 25px;
  width: 25px;
  border-radius: 25px;
  background: #03c04a;
  background: #ffffff;
  
  cursor: pointer;
}

input[type=range]::-moz-range-thumb:hover {
  background: #03c04a;
  background: #ffffff;
   background: #388eb3;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb, input[type=range]::-ms-thumb:hover {
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
  border: 8px solid #095e82;
  height: 21px;
  width: 21px;
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  margin-top:3px;
  cursor: pointer;
}

input[type=range]::-ms-thumb:hover {
  background: #03c04a;
  background: #ffffff;
  background: #388eb3;

}


input[type=range]::-ms-track {
  width: 100%;
  height: 14px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 10px 0;
  color: transparent;
}


input[type=range]::-ms-fill-lower {
  background: #308db5;
  border: 0px solid #010101;
  border-radius: 10px;
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
}
input[type=range]:focus::-ms-fill-lower {
  background: #308db5;
  background: #03c04a
}
input[type=range]::-ms-fill-upper {
  background: #308db5;
  border: 0px solid #010101;
  border-radius: 10px;
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
}
input[type=range]:focus::-ms-fill-upper {
  background: #308db5;
}













/* Styling the track */

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 18px;
  cursor: pointer;
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
  background: #308db5;
  border-radius: 10px;
  border: 4px solid #308db5; 
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #308db5;
}



input[type=range]::-moz-range-track {
  width: 100%;
  height: 14px;
  cursor: pointer;
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
  background: #308db5;
  border-radius: 10px;
  border: 2px solid #308db5; 
}

input[type="range"]::-moz-range-progress {
  background-color: #03c04a; 
  height:14px;
  border-radius: 10px;
  border: 2px solid #03c04a;
}







/* everythig else */

#slider_d{
  display:block;
  position:relative;
  width:75%;
  margin-left: auto;
  margin-right: auto;
  margin-top:60px;
}

#your_debt_amount{
  display:block;
  width:100px;
  height:20px;
  position:absolute;
  top:-44px;
  color:#333333;
  text-align: left;
  font-size: 24px;
}

#debt-min, #debt-max{
  display:block;
  width:100%;
  height:20px;
  position:absolute;
  top:28px;
  color:#333333;
  text-align: left;
  font-size: 18px;

}

#debt-max{
  text-align: right;
}

@media only screen and (max-width: 767px) {

#slider_d{
    display:block;
    position:relative;
    /* width:75%;
    margin-left: auto; */
    width: 90%;
    margin-left: 26px;
    margin-right: auto;
    margin-top:50px;
  }

}