
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.sliding {
    position: absolute;
    cursor: pointer;
    height: 34px;
    width: 59px !important;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.sliding:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 3px;
  bottom: -2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .sliding {
  background-color: #6c6c6c;
}

input:focus + .sliding {
  box-shadow: 0 0 1px #2196F3;
}

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

/* Rounded sliders */
.sliding.rounder {
  border-radius: 9px;
  height: 17px !important;
  width: 52px !important;
  border: 0.1px solid gray;
}

.sliding.rounder:before {
  border-radius: 956px;
  box-shadow: 3px 1px 8px grey;
}
