* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    min-height: 100vh;
}
label {
    position: relative;
    width: 150px;
    height: 50px;
    background: #212121;
    border-radius: 10px;
    top: -150px;
}
label input {
    appearance: none;
}
label input:checked~span {
    left: 75px;
}
label span {
    position: absolute;
    top: 0;
    left: 0;
    width: 75px;
    height: 75px;
    background: #333;
    border: 6px solid #212121;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

label span ion-icon {
    color: rgb(255, 0, 0);
    font-size: 2rem;
    transition: 0.5s;
}

label input:checked~span ion-icon {
    color: rgb(255, 255, 255);
    filter: drop-shadow(0 0 5px #ffffff) 
    drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 15px #ffffff);
}
label input:checked~span ion-icon:hover {
    color: rgb(255, 0, 0);
    font-size: 2rem;
    transition: 0.5s;
    filter: drop-shadow(0 0 5px #ff0000) 
    drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 15px #ff0000);
}
label span ion-icon:hover {
    color: rgb(255, 255, 255);
    filter: drop-shadow(0 0 5px #ffffff) 
    drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 15px #ffffff);
}
.bulb {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    background: url(bulb_off.jpg);
    transition: 0.5s;
    width: 348px;
    height: 408px;


}
label input:checked ~ .bulb{
    background: url(bulb_on.jpg);
}