*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    /* background-color: aliceblue; */
    /* background-color: gray; */
    height: 100vh;
    width: 90vw;
    margin: auto;
    /* display: flex; */
    justify-content: center;
}

img, i, button, li{
    cursor: pointer;
}

/* Toggle Switch */
.toggle-mode {
    width: 2rem;
    height: 1rem;
    border-radius: 10px;
    background-color: rgba(128, 128, 128, 0.289);
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    position: fixed;
    top: 10px;
    right: 10px;
}

.toggle-knob {
    width: 0.8rem;
    height: 0.8rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

/* Active State (Dark Mode) */
.toggle-mode.active {
    background-color: #4caf50;
    justify-content: end;
}

.toggle-mode.active .toggle-knob {
    transform: translateX(0.05rem);
}

/* Dark Mode */
.dark-mode {
    background-color: #121212;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

.music-card-dark{
    background-color: gray;
}




.music-container{
    display: grid;
    grid-template-columns: 3fr 4fr 3fr;
    gap: 1rem;
}

.music-left-div, .music-center-div, .music-right-div{
    height: auto;
    width: 100%;
    background-color: rgb(127, 195, 255);
    margin-bottom: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.input-songs{
    margin-bottom: 0.75rem;
    /* padding: 0.75rem; */
    width: 100%;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 1rem;

    input{
        width: 60%;
        padding: 0.55rem 0.85rem;
    }

    button{
        padding: 0.55rem 1rem;
        border: none;
        outline: none;
        background-color: rgb(65, 65, 182);
        border-radius: 6px;
        color: white;
    }
}

select{
    padding: 0.5rem 1rem;
    margin-left: 0.75rem;
}

ul{
    width: 100%;
    list-style: none;

    li{
        padding: 0.75rem;
        margin: 0.75rem 0;
        background-color: rgb(12, 142, 255);
        color: white;
        border-radius: 4px;
    }
}

.music-center-div{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.music-card{
    width: 100%;
    height: 400px;
    background-color: rgb(65, 65, 182);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

img{
    width: 100%;
    height: 80%;
}

.music-duration-display{
    width: 90%;
    height: 3rem;
    background-color: white;
    border-radius: 40px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    i{
        font-size: 1.4rem;
    }
}

/* .toggle-mode {
    width: 2rem;
    height: 1rem;
    border-radius: 10px;
    background-color: rgba(128, 128, 128, 0.289);
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    position: fixed;
    top: 10px;
    right: 10px;
}

.toggle-knob {
    width: 0.8rem;
    height: 0.8rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
} */

.distance-covered {
    width: 40%;
    height: 0.1rem;
    border-radius: 10px;
    background-color: rgba(128, 128, 128, 0.289);
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2px 0;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.distance-knob {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: blue;
    transition: left 0.2s ease-in-out;
}

.distance-knob.active{
    transform: translateX(10rem);
}

.display-plalists{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.change-songs{
    width: 100%;;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    i{
        font-size: 3rem;
    }

    .previous-song, .next-song{
        border: none;
        background-color: transparent;    
    }
}

.addToPlaylist-btn, .newPlaylist{
    padding: 0.65rem 1rem;
        border: none;
        outline: none;
        background-color: rgb(65, 65, 182);
        border-radius: 6px;
        color: white;
}


