table{
    border: 2px solid;
    padding: 5px;
}
td{
    border: 1px solid;
    padding: 30px;
}

/* side to side 1 */
.side-to-side-1:hover{
    cursor: pointer;
}
.side-to-side-1 label{
    background-color: red;
    width: 100px;
    height: 50px;
    display: block;
    transition: all 0.25s linear;
    position: relative;
    padding: 5px;
    border-radius: 25px;
}
.side-to-side-1 input{
    display: none;
}
.side-to-side-1 input:checked + label{
    background-color: rgb(109, 255, 47);
}
.side-to-side-1 label::before{
    font-family: 'Comic Neue', cursive;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(206, 206, 206);
    position: absolute;
    left: 5px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    content: "OFF";
    transition: all 0.25s linear;
}
.side-to-side-1 input:checked+label::before{
    left: 55px;
    content: "ON";
}
/* ------------------------ */
/* side to side 2 */
.side-to-side-2:hover{
    cursor: pointer;
}
.side-to-side-2 label{
    background-color: red;
    width: 80px;
    height: 15px;
    display: block;
    position: relative;
    border-radius: 25px;
}
.side-to-side-2 input{
    display: none;
}
.side-to-side-2 label::before{
    display: flex;
    background-color: rgb(206, 206, 206);
    position: absolute;
    left: -5px;
    top: -6px;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    content: "";
    transition: all 0.25s linear;
}
.side-to-side-2 input:checked+label::before{
    left: 60px;
    content: "";
}
.side-to-side-2 label::after{
    content: "";
    background-color: rgb(109, 255, 47);
    width: 0%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    transition: width 0.25s linear;
}
.side-to-side-2 input:checked+label::after{
    width: 100%;
}
/* ------------------------ */
/* push-1 */
.push-1 input{
    display: none;
}
.push-1 label{
    background-color: rgb(197, 197, 197);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:  0px 0px 5px 2px rgba(0,0,0,0.40);
    transition: all 0.25s linear;
}
.push-1 label::before{
    content: "OFF";
    font-family: 'Comic Neue', cursive;
    color: grey;
}
.push-1 input:checked+label::before{
    content: "ON";
    color: green;
}
.push-1 input:checked+label{
    background-color: rgb(109, 255, 47);
}
.push-1 label:active{
    box-shadow:  0px 0px 5px 2px rgba(0,0,0,0.40) inset;
}
/* ------------------ */