.switch {
  background: #bbb;
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  overflow: visible;
  width: 28px;
  height: 11px;
  padding: 0;
  margin: 8px 0;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s ease-out all;
  -webkit-transition: 0.3s ease-out all;
  top: -1px;
}
/*adding a wide width for larger switch text*/
.switch.wide {
  width:80px;
}
.switch small {
  background: #fff;
  border:1px solid #bbb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  border-radius: 100%;
   width: 15px;
  height: 15px;
  position: absolute;
  top: -2px;
  left: 0;
  transition: 0.3s ease-out all;
  -webkit-transition: 0.3s ease-out all;
}
.switch.checked {
  background: #b2dfdb;
  border-color:#b2dfdb;
}
.switch.checked small {
  left: 13px;
  background: #26a69a;
  border:1px solid #009587;
}
/*wider switch text moves small further to the right*/
.switch.wide.checked small {
  left:52px;
}
/*styles for switch-text*/
.switch .switch-text {
  font-family:Arial, Helvetica, sans-serif;
  font-size:13px;
}

.switch .off {
  display:block;
  position: absolute;
  right: 10%;
  top: 25%;
  z-index: 0;
  color:#A9A9A9;
}

.switch .on {
  display:none;
   z-index: 0;
  color:#fff;
  position: absolute;
  top: 25%;
  left: 9%;
}

.switch.checked .off {
  display:none;
}

.switch.checked .on {
  display:block;

}

.switch.disabled {
  opacity: .50;
  cursor: not-allowed;
}
