@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 10px;
    background: #e3f2fd;
}

.songs{
    background-color: rgb(0, 0, 0);
    width: 400px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #000000;
}

.songs header h2{
    color: #000000;
    font-size: larger;
    text-align: center;
    background-color: white;
    border-radius: 2px;
    padding: 8px;
    margin: -1px -1px 0 -1px;
}

.songs header2 {
    text-align: center;
    color: #fff;
}

.wrapper{
    border-radius: 20px; /* Makes the edges rounded */
    padding: 30px 40px; /* Adds an extra layer outside the rectangle */
    background: #141414;
}

.wrapper header{
    color: #b2b2b2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .column{
    display: flex;
    align-items: center;
}

header .column span {
    font-weight: 500;
    margin-right: 15px;
    font-size: 1.19rem;
}

/* Volume slider starts here */
.volume-slider input{
    outline: none;
    accent-color: #fff;
}
/* Volume slider ends here */


/* Show keys checkbox starts here */
.showKeys-checkBox input{
    width: 60px;
    height: 30px;
    cursor: pointer;
    position: relative;
    appearance: none;
    border-radius: 30px;
    background: #4b4b4b;
}
.showKeys-checkBox input:before{
    content: "";
    height: 20px;
    width: 20px;
    top: 50%;
    left: 5px;
    border-radius: inherit;
    position: absolute;
    background: #8c8c8c;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.showKeys-checkBox input:checked::before{
    left: 35px;
    background: #fff
}
/* Show keys checkbox ends here */

.piano-keys{
    display: flex; /* Puts the lettrts in one line instead of in a list */
    margin-top: 40px;
}


.piano-keys .key{
    cursor: pointer; /* Makes the cursor a pointer when hovering over keys*/
    user-select: none;
    list-style: none; /*Removes the bullet points */
    color: #636363; /*Defines the color of the letters on the keys*/
    position: relative;
    text-transform: uppercase; /*Makes the letters on the keys uppercase */
}

.piano-keys .white{
    width: 70px;
    height: 230px;
    background: linear-gradient(#fff ,#b5b5b5 );
    border-radius: 8px;
    border: 1px solid #000;
}

/* Orange white keys */
.piano-keys .white.orange{
    width: 70px;
    height: 230px;
    background: linear-gradient(#ffaa48, #ff5b03 );
    border-radius: 8px;
    border: 1px solid #000;
}


.piano-keys .white.active{ /*Adds clicking effect to the white keys*/
    box-shadow:inset -5px 5px 20px rgba(0,0,0,0.2);
    background: linear-gradient(to bottom, #b5b5b5 , #fff );
}
/* orange white keys active */
.piano-keys .white.orange.active{ 
    box-shadow:inset -5px 5px 20px rgba(0,0,0,0.2);
    background: linear-gradient(to bottom, #ff5b03, #ffaa48);
}

.piano-keys .black{ 
    width: 44px;
    height: 140px;
    z-index: 2;
    margin: 0 -22px 0 -22px;
    background: linear-gradient(#333, #000);
    border-radius: 0 0 5px 5px;
}

.piano-keys .black.active{/*Adds clicking effect to the black keys*/
    box-shadow:inset -5px 5px 20px rgba(255,255,255,0.1);
    background: linear-gradient(to bottom, #000, #434343);
}

.piano-keys span{ /*Adjusts the letters alignment with the keys on the piano*/
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.13rem;
}

.piano-keys .key.hide span {
    display:none;

}

@media screen and (max-width: 815px) {
    .wrapper{
        padding: 25px;
    }
    header {
        flex-direction: column;
    }
    header :where(h2, .column){
        margin-bottom: 13px;
    }
    .volume-slider input {
        max-width: 100px;
    }
    .piano-keys {
        margin-top: 20px;
    }
    .piano-keys .key:where(:nth-child(9), :nth-child(10)) {
        display: none;
    }
    .piano-keys .black {
        height: 100px;
        width: 40px;
        mergin: 0 -20px 0 -20px;
    }
    .piano-keys .white{
        height: 180px;
        width: 60px;
    }
}

@media screen and (max-width: 615px) {
.piano-keys .key:nth-child(13),
.piano-keys .key:nth-child(14),
.piano-keys .key:nth-child(15),
.piano-keys .key:nth-child(16),
.piano-keys .key:nth-child(17)  {
    display: none;
}  
.piano-keys .white {
    width: 50px;
}
}