.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 15px;
  margin: auto !important;
  margin-top: 5px !important;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d9534f;
  border: 3px solid white;
  /* background-image: linear-gradient(70deg, #f89967 0, #f78f66 12.5%, #f18061 25%, #e76c59 37.5%, #d9534e 50%, #ca3745 62.5%, #bf1841 75%, #b50042 87.5%, #af0046 100%); */
  /* border: 1px solid #a9a9a9;*/
  -webkit-transition: .2s;
  transition: .2s;
  /*border: 1px solid #585858;*/
}

.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: -3px;
  bottom: -3px;
  background-color: white;
  -webkit-transition: .2s;
  transition: .2s;
  border: 3px solid #F3F3F3;
}

input:checked + .slider {
  /* background-color: #00ff00; */
  background-color: #5cb85c;
  /* background-image: linear-gradient(70deg, #f89967 0, #f78f66 12.5%, #f18061 25%, #e76c59 37.5%, #d9534e 50%, #ca3745 62.5%, #bf1841 75%, #b50042 87.5%, #af0046 100%); */
}

input:focus + .slider {
  box-shadow: 0 0 1px #00ff00;
}

input:checked + .slider:before {
  -webkit-transform: translateX(35px);
  -ms-transform: translateX(35px);
  transform: translateX(35px);
}

input:disabled + .slider:before {
  background-color: #a6a5a5;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
