input[type="checkbox"]{
    appearance: none;
    position: relative;
    height: 40px;
    width: 70px;
    background-color: rgb(95, 95, 95);
    border-radius: 5rem;
    transition: background-color .2s;
    box-shadow: 0 0 15px #0000001e;

    cursor: pointer;

    margin: 15px 30px 0 30px;
}

input[type="checkbox"]::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    transition: left .2s;
}

input[type="checkbox"]:checked{
    background-color: rgb(252, 219, 219);
}

input[type="checkbox"]:checked::after{
    left: 70%;
}

.darkTheme {
    justify-self: self-start;
}