.onoffswitch {
    margin-top: 20px;
    position: relative;
    width: 118px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 0px solid black;
    border-radius: 50px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 24px;
    padding: 0;
    line-height: 21px;
    font-size: 14px;
    color: white;
    font-weight: normal;
    box-sizing: border-box;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.onoffswitch-inner:before {
    content: "Static";
    padding-left: 24px;
    background-color: #FFFFFF;
    color: #000000;
}

.onoffswitch-inner:after {
    content: "Dynamic";
    padding-right: 24px;
    background-color: white;
    color: #000000;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    width: 23px;
    margin: 0px;
    background: #A8FEA8;
    border: solid 2px transparent;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 95px;
    transition: all 0.3s ease-in 0s;
    border-radius: 50px;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px;
}
