.onoffswitch {
    position: relative;
	width: 9em;
	margin-left: 2em;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block;
	overflow: hidden;
	cursor: pointer;
    border: 2px solid #d5d5d5;
	border-radius: 0.4em;
}
.onoffswitch-inner {
    display: block;
	width: 200%;
	margin-left: -100%;
    
	-moz-transition: margin 0.2s;
	-webkit-transition: margin 0.2s;
    -o-transition: margin 0.2s;
	transition: margin 0.2s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block;
	float: left;
	width: 50%;
	height: 30px;
	padding: 0;
	line-height: 1.65em;
    font-size: 1em; color: white;
	font-weight: 700;
	
    -moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "YES";
    padding-left: 6%;
    background-color: #E50C75;
	color: white;
}
.onoffswitch-inner:after {
    content: "NO";
    padding-right: 10%;
    background-color: white;
	color: #E50C75;
    text-align: right;
}
.onoffswitch-switch {
    display: block;
	width: 2em;
	margin: 0px;
    background: white;
    border: 2px solid #d5d5d5;
	border-radius: 0.4em;
    position: absolute;
	top: 0;
	bottom: 0;
	right: 4em;
	
    -moz-transition: all 0.2s;
	-webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
	transition: all 0.2s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}