﻿.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 25px;
    margin-bottom: 2px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.switch-user-profile {
    float: right;
    margin-top: 7px;
}

.switch-inelegible {
    width: 140px;
    height: 30px;
    margin-top: 10px;
}

.switch-eligible {
    width: 140px;
    height: 30px;
    margin-top: 10px;
}

.switch-yes {
    width: 120px;
    height: 30px;
    margin-top: 10px;
}

.switch-no {
    width: 120px;
    height: 30px;
    margin-top: 10px;
}

.switch-na {
    width: 120px;
    height: 30px;
    margin-top: 10px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dcdcdc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 21px;
        width: 21px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }

.switch-inelegible .slider:before {
    height: 28px;
    width: 28px;
    bottom: 1px;
}

.switch-eligible .slider:before {
    height: 28px;
    width: 28px;
    bottom: 1px;
}

.switch-yes .slider:before {
    height: 28px;
    width: 28px;
    bottom: 1px;
}

.switch-no .slider:before {
    height: 28px;
    width: 28px;
    bottom: 1px;
}

.switch-na .slider:before {
    height: 28px;
    width: 28px;
    bottom: 1px;
}

input:checked + .slider:before {
    -webkit-transform: translateX(55px);
    -ms-transform: translateX(55px);
    transform: translateX(55px);
}

input:checked + .slider-eligible:before {
    -webkit-transform: translateX(109px);
    -ms-transform: translateX(109px);
    transform: translateX(109px);
}

input:checked + .slider-inelegible:before {
    -webkit-transform: translateX(109px);
    -ms-transform: translateX(109px);
    transform: translateX(109px);
}

input:checked + .slider-yes:before {
    -webkit-transform: translateX(89px);
    -ms-transform: translateX(89px);
    transform: translateX(89px);
}

input:checked + .slider-no:before {
    -webkit-transform: translateX(89px);
    -ms-transform: translateX(89px);
    transform: translateX(89px);
}

input:checked + .slider-na:before {
    -webkit-transform: translateX(89px);
    -ms-transform: translateX(89px);
    transform: translateX(89px);
}

input:checked + .slider {
    background-color: #9dbb61;
}

input:focus + .slider {
    box-shadow: 0 0 1px #9dbb61;
}

input:checked + .slider-eligible {
    background-color: #9dbb61;
}

input:checked + .slider-inelegible {
    background-color: #c05046;
}

input:checked + .slider-yes {
    background-color: #9dbb61;
}

input:checked + .slider-no {
    background-color: #c05046;
}

input:checked + .slider-na {
    background-color: #e68003;
}

.on {
    display: none;
}

.on, .off {
    color: white;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 35%;
    font-size: 12px;
    font-family: Verdana, sans-serif;
}

.off {
    left: 65%;
    color: #898989;
}

.slider-inelegible .off {
    left: 50%;
}

input:checked + .slider .on {
    display: block;
}

input:checked + .slider .off {
    display: none;
}

@media (max-width: 1682px) {
    .switch-yes {
        width: 90px;
        height: 30px;
        margin-top: 10px;
    }

    .switch-no {
        width: 90px;
        height: 30px;
        margin-top: 10px;
    }

    .switch-na {
        width: 90px;
        height: 30px;
        margin-top: 10px;
    }

    input:checked + .slider-yes:before {
        -webkit-transform: translateX(59px);
        -ms-transform: translateX(59px);
        transform: translateX(59px);
    }

    input:checked + .slider-no:before {
        -webkit-transform: translateX(59px);
        -ms-transform: translateX(59px);
        transform: translateX(59px);
    }

    input:checked + .slider-na:before {
        -webkit-transform: translateX(59px);
        -ms-transform: translateX(59px);
        transform: translateX(59px);
    }
}

@media (max-width: 1322px) {
    .switch-yes {
        width: 70px;
        height: 25px;
        margin-top: 10px;
    }

    .switch-no {
        width: 70px;
        height: 25px;
        margin-top: 10px;
    }

    .switch-na {
        width: 70px;
        height: 25px;
        margin-top: 10px;
    }

    input:checked + .slider-yes:before {
        -webkit-transform: translateX(44px);
        -ms-transform: translateX(44px);
        transform: translateX(44px);
    }

    input:checked + .slider-no:before {
        -webkit-transform: translateX(44px);
        -ms-transform: translateX(44px);
        transform: translateX(44px);
    }

    input:checked + .slider-na:before {
        -webkit-transform: translateX(44px);
        -ms-transform: translateX(44px);
        transform: translateX(44px);
    }

    .switch-yes .slider:before {
        height: 23px;
        width: 23px;
        bottom: 1px;
    }

    .switch-no .slider:before {
        height: 23px;
        width: 23px;
        bottom: 1px;
    }

    .switch-na .slider:before {
        height: 23px;
        width: 23px;
        bottom: 1px;
    }
}

@media (max-width: 1082px) {
    .switch {
        display: block;
        margin: 0 auto;
        margin-bottom: 5px;
    }
}
