body {
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: background-color 0.5s ease;
}

label {
    background-color: white;
    width: 300px;
    height: 100px;
    position: relative;
   
    border-radius: 50px;
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

label::after {
    content: "";
    height: 90px;
    width: 90px;
    position: absolute;
    top: 5px; 
    left: 5px; 
    background: linear-gradient(180deg, #ffcc89, #d8860b);
    border-radius: 50%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
    transition: left 0.3s ease, background 0.3s ease;
}

input {
    width: 0;
    height: 0;
    visibility: hidden;
}

input:checked + label {
    background-color: black; 
}

input:checked + label::after {
    left: 200px; 
    background: linear-gradient(180deg, #b9a3a357, #333); 
}


