/* Switch liga e desliga */

.switch {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    width: 45px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255, 81, 81);
    border: solid black 2px;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 40px;
}

.slider:before {
    border-radius: 50%;
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 4px;
    bottom: 1px;
    border: solid black 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: rgb(139, 255, 123);
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}