*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    height: 100vh;
    background-color: azure;
    display: flex;   
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}

.container{
    /* border: 1px solid red; */
    width: 600px;
    aspect-ratio: 16/9;
    padding: 15px;
}
.piano-container{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #1b1b1b;
    border-radius: 10px;
    color: white;
    padding: 20px;
}

.piano-header{
    width: 100%;
    /* border: 1px solid red; */
    display: flex;
    justify-content: space-between;
    padding: 7px;
}
.volume-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.volume-container span{
    display: inline-block;
    margin: 0 15px;
}
.volume-container input{
    cursor: pointer;
}

.keys-container{
    position: relative;
    display: flex;
    width: 100%;
    height: 80%;
    /* border: 1px solid red; */
}
.keys-white{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 0 15px;
    cursor: pointer;
    height: 100%;
    flex-grow: 1;
    background-color: white;
    color: grey;
    margin: 0 1px;
    border-radius: 7px;
    box-shadow: 0 -4px 0 0 inset;
}
.keys-white:active{
    box-shadow: none;
    background:linear-gradient(to bottom, white,rgb(220, 220, 220));
}

.keys-black{
    position: absolute;
    width: 34px;
    height: 100px;
    background-color: black;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 15px;
    border-radius: 0 0 7px 7px;
    color: grey;
    box-shadow: 0 -4px 0 0 grey inset;
}

.keys-black:active{
    box-shadow: none;
    background:linear-gradient(to bottom, black,rgb(45, 45, 45));
}
.active-black{
    box-shadow: none;
    background:linear-gradient(to bottom, black,rgb(45, 45, 45));
}
.active-white{
    box-shadow: none;
    background:linear-gradient(to bottom, white,rgb(220, 220, 220)); 
}

#w{
    left: 7.5%;
}
#e{
    left: 17.5%;
}
#t{
    left: 37.5%;
}
#y{
    left: 48%;
}
#u{
    right: 36%;
}
#o{
    right: 16%;
}
#p{
    right: 6%;
}


@media  screen and (max-width:500px) {
    .container{
        rotate: 90deg;
        flex-shrink: 0;
        width: 450px;
    }
    #w{
        left: 6.5%;
    }
    #e{
        left: 16.5%;
    }
    #t{
        left: 36.5%;
    }
    #y{
        left: 47%;
    }
    #u{
        right: 34%;
    }
    #o{
        right: 14.5%;
    }
    #p{
        right: 5%;
    }
    
}