
   .switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
  }


  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
  }
  
  .switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
  }
  

  .switch input:checked + .slider {
    background-color: black;
  }
  
  .switch input:focus + .slider {
    box-shadow: 0 0 1px #ccc;
  }
  
  .switch input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }

  .switch .slider ~ .on, .slider ~ .off {
    line-height: 30px;
    margin-left: 65px;
    display: inline-block;
    position: absolute;
    width: 150px;
    height: 30px;
    cursor: pointer;
  }

  .switch .slider ~ .on {
    display:none;
  }

  .switch input:checked + .slider ~ .on {
    display: inline-block;
  }

  .switch input:checked + .slider ~ .off {
    display: none;
  }



  