﻿/* onoff switch CSS is from https://proto.io/freebies/onoff/*/
.onoffswitch {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    position: relative;
    width: 80px;
}

.onoffswitch-checkbox { display: none; }

.onoffswitch-label {
    border: 2px solid #999999;
    border-radius: 20px;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.onoffswitch-inner {
    display: block;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
    width: 200%;
}

.onoffswitch-inner:before, .onoffswitch-inner:after {
    box-sizing: border-box;
    color: white;
    display: block;
    float: left;
    font-family: Trebuchet, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    height: 20px;
    line-height: 20px;
    padding: 0;
    width: 50%;
}

.onoffswitch-inner:before {
    background-color: #34A7C1;
    color: #FFFFFF;
    content: "ON";
    padding-left: 10px;
}

.onoffswitch-inner:after {
    background-color: #EEEEEE;
    color: #999999;
    content: "OFF";
    padding-right: 10px;
    text-align: right;
}

.onoffswitch-switch {
    background: #FFFFFF;
    border: 2px solid #999999;
    border-radius: 20px;
    bottom: 0;
    display: block;
    margin: 6px;
    position: absolute;
    right: 46px;
    top: 0;
    transition: all 0.3s ease-in 0s;
    width: 18px;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { margin-left: 0; }

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { right: 0px; }