Sliding Checkbox/style.css
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
    background: linear-gradient(to right, #3f3f3f, #f5f5f5);

}

#text{
    font-size: 1.5rem;
    font-weight: bold;
    color: linear-gradient(to right, #3f3f3f, #f5f5f5);
    margin-bottom: 1rem;
}

label{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 500px;
    height: 60px;

    cursor: pointer;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    transition: .3s;
    user-select: none;
}

label:hover{
    box-shadow: inset 0 1px 2px rgba(73, 0, 0, 0.2);
}

label::before{
    content: "";
    position: absolute;
    width: 25%;
    height: 10px;
    background: rgb(51, 48, 48);
    
    transition: .3s;
}

label input{
    position: absolute;
    appearance: none;
}

.checkmark{
    position: absolute;
    left: 0;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    left: 64%;
    background-color: rgb(122, 122, 122);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    transform: translateX(-50%);
    transition: .5s;

}

label input:checked + .checkmark{
    background-color: #fff;
    left: 36%;

    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    }

label input:checked + .checkmark::before{
    width: 100%;
    background: rgb(73, 0, 0);
    transform: translateX(0);
    transition: .5s;
}
