.switch {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 25px;
}


.switch input[type="checkbox"] { 
  width: 0;
  height: 0;
  opacity: 0;
}


.slider-round {
  position: absolute;
  width: 50px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  cursor: pointer;
  -webkit-transition: .4s;
  transition: .4s;
}


.slider-round:before {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  content: "";
  background-color: white;
  -webkit-transition: .4s;
  -moz-transition: .4s;
  -ms-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
}


input[type="checkbox"]:checked + .slider-round {
  background-color: #2196F3;
}


input[type="checkbox"]:focus + .slider-round {
  box-shadow: 0 0 1px #2196F3;
}


input[type="checkbox"]:checked + .slider-round:before {
  -webkit-transform: translateX(26px);
  -moz-transform: translateX(26px);
  -ms-transform: translateX(26px);
  -o-transform: translateX(26px);
  transform: translateX(26px);
}


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


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


/* On/Off Switch */

.switch-on {
  padding-left: 5px;
  font-style: normal;
  font-size: 1.2em;
  color: #fff;
  opacity: 0;
}

.switch-off {
  margin-left: -2px;
  font-style: normal;
  font-size: 1.2em;
  color: #000;
  opacity: 1;
}

#switcher:checked + span i.switch-on {
  opacity: 1;
}

#switcher:checked + span i.switch-off {
  opacity: 0;
}