﻿.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}
 
    .switch input {
        opacity: 0;
    }
 
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #595959;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
}
 
    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: #fff;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }
 
input:checked + .slider {
    background-color: #2196f3;
}
 
input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}
 
input:checked + .slider:before {
    -webkit-transform: translateX(36px);
    -ms-transform: translateX(36px);
    transform: translateX(36px);
}
 
.slider:after {
    content: "\0020 \0020 \0020 \0020 Off";
    white-space: pre;
    color: #fff;
    display: block;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    font-size: 16px;
    font-family: Verdana,sans-serif;
}
 
input:checked + .slider:after {
    content: "On \0020 \0020 \0020 ";
    white-space: pre;
}
 
.switch-title label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 1.5em;
    color: #005eb8;
    margin-right: 10px;
}
.slidertext {
    margin-left: 80px;
    display: inline-block;
    min-width: 400px;
}
.switch:focus-within {
    border-style:solid;
    border: 3px solid yellow;
    outline: #000 solid 4px;
    border-radius:22px;
}

@media screen and (max-width: 550px) {
.slidertext {
    min-width: auto;
}
}


