﻿/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block !important;
  width: 50px;
  height: 26px;
  margin-top:4px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: black;
  -webkit-transition: .4s;
  transition: .4s;
}


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

input:checked + .slider {
  background-color: #FFBD22;
}

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

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

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

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

.toggleText:before
{ 
  position:absolute;
  display:inline-block;
  font-size:12px;
  font-family:Arial, sans-serif;
  color:white;
  top:7px;
  left:26px;
  content:"Off";
}

.toggleText.Checked:before
{
    top:7px;
    left:7px;
    content:"On";
}