* {
    padding: 0;
    margin: 0;
}

/*CONTAINER THAT HOLDS EVERYTHING
  AND ALLOWS THE BUTTON TO EXPAND AND FIT*/
.container-checkbox {
    margin-top: 50px;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
}

/*CREATES THE BACKGROUND FOR THE BUTTON*/
.button {
    background: linear-gradient(#9198e5, #ABDCFB);
    width: 200px;
    height: 100px;
    border-radius: 200px;
    cursor: pointer;
    position: relative;
    /*SMOOTH TRANSITION TO CHANGE THE COLOR FROM GREY TO BLUE WHEN CLICKED*/
    transition: 0.2s;
}

/*CREATES THE BUTTON'S INNER CIRCLE*/
.soleil-button {
    position: absolute;
    top: 50%;
    bottom: 50%;
    width: 180px;
    height: 80px;
    border-radius: 200px;
    margin: auto;
}

/*CREATES THE BUTTON --> THE ROUND CIRCLE*/
.button::before {
    position: absolute;
    content: '';
    background-color: #ffffff;
    width: 90px;
    height: 90px;
    border-radius: 200px;
    margin: 5px;
    /*SMOOTHLY MOVES THE CIRCLE AFTER CLICKING*/
    transition: 0.2s;
}

/*CHANGES THE BUTTON TO BLUE WHEN THE INPUT IS CHECKED*/
input:checked + .button {
    transition: 0.2s;
}

/*MOVES THE BUTTON TO THE RIGHT WHEN CHECKED
  AND BACK TO LEFT WHEN UNCHECKED*/
input:checked + .button::before {
    transform: translateX(100px);
}

input:checked + .soleil-button::before {
    transform: translateX(100px);
}

/* HIDES THE CHECKBOX */
input {
    display: none;
}

/*STYLE FOR THE TEXT DISPLAYED NEXT TO THE BUTTON*/
span {
    font-family: system-ui;
    font-weight: bolder;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    word-spacing: 80px;
}
