/* Import Google Font- Poppins */
@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;
    min-height: 100vh;
    background-color: #e3f2fd ;
    padding: 0 10px;
}
.wrapper{
    width: 780px;
    border-radius: 20px;
    padding: 35px 40px;
    background: #141414;
}
.wrapper header{
    color: #b2b2b2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header h2{
   font-size: 1.6rem ; 
}
header .column{
    display: flex;
    align-items: center;
}
header .column span {
    font-weight: 500;
    margin-right: 15px;
    font-size: 1.19rem;
}
.volume-slider input{
    accent-color:#fff;
    outline: none;
}
.keys-checkbox input{
    position: relative;
    width: 60px;
    height: 30px;
    cursor: pointer;
    appearance: none;
    border-radius: 30px;
    background: #4b4b4b;
    outline: none;
}
.keys-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;
}
.keys-checkbox input:checked::before{
    left: 35px;
    transition: all 0.3s ease;
    background: #fff;
}
.recording input{
    position: relative;
    border-radius: 50%;
    appearance: none;
    height: 10px;
    width: 10px;
    background: #fff;
    cursor: pointer;
    padding: 5px;
    outline: none;
} 
.recording input:checked::before{
    content: '';
    position: absolute;
    height: 7px;
    width: 7px;
    background-color: red;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}
.hide_play_btn{
    display: none;
}
#play_Btn{
    cursor: pointer;
}

.piano-keys{
    display: flex;
    margin-top: 40px;
}
.piano-keys .key{
    cursor: pointer;
    list-style: none;
    color: #a2a2a2;
    text-transform: uppercase;
    position: relative;
    user-select:none;
} 
.piano-keys .white{
    width: 70px;
    height: 230px;
    border-radius: 8px;
    background: linear-gradient(#fff 96%, #eee 4%);
    border:1px solid #000;
    box-shadow: 5px 5px 7px 0px #000000;
}
.piano-keys .white.active {
    box-shadow: inset -5px 5px 20px rgba(0,0,0,0.2);
    background: linear-gradient(to bottom,#fff 0%, #eee 100%);
}
.piano-keys .black {
    width: 44px;
    height: 140px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(#333, #000);
    z-index: 2;
    margin:0 -22px 0 -22px;
    filter: drop-shadow(2px 4px 6px #1d1d1d);
}
.piano-keys .black.active {
    box-shadow: inset -5px 5px 10px rgba(255, 255 , 255, 0.1);
    background: linear-gradient(to bottom, #000, #434343);
    filter: drop-shadow(1px 2px 5px #1d1d1d);
}
.piano-keys span{
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 20px;
    font-size: 1.13rem;
}
.piano-keys .key.hide span {
    display: none;
}


/* Responsivness */
@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 .keys:where(:nth-child(9), :nth-child(10)){
        display: none;
    }
    .piano-keys .black{
        height: 100px;
        width:40px;
        margin:0 -20px 0 -20px;
    }
    .piano-keys .white{
        height: 180px;
        width: 60px;
    }
}
@media screen and (max-width: 650px) {
    .wrapper {
        transform: rotate(90deg);
        width: 550px;
    }
}
