﻿/* The switch - the box around the switch-slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-left: 0px;
}

    /* Hide default HTML checkbox */
    .switch input {
        display: none;
    }

/* Rounded switch-sliders */
.switch-slider.round {
    border-radius: 24px;
}

    .switch-slider.round:before {
        border-radius: 50%;
    }

/* The switch-slider */
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .switch-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .switch-slider {
    background-color: rgb(24, 188, 156);
}

input:focus + .switch-slider {
    box-shadow: 0 0 1px rgb(24, 188, 156);
}

input:checked + .switch-slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

input:disabled + .switch-slider {
    cursor: not-allowed;
}
