@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;
    padding: 0 10px;
    background: rgb(136, 153, 169);
}
button {
    padding:10px;
    margin-left: 0px;
    margin-top: 19px;
    /* border-radius: 10px; */
    font-size: 1.2rem;
    cursor: pointer;
    
}

 div#displaytune {
    display: none;
    padding: 10px;
    min-height: 30vh;
    max-height: 30vh;
    position: relative;
    top: 40px; left: 40px;
    border-radius: 10px;
    background-color: #141414;
    color: #fff;
    font-size: 1.2vw;
}
.wrapper {
    border-radius: 20px;
    padding: 35px 40px;
    background-color: #141414
}

.wrapper header {
    color: whitesmoke;
    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.2rem;
}
.volumn-slider input{
    accent-color:white;
    outline: none;
}

.keys-checkbox input{
    appearance: none;
    width: 60px;
    height: 30px;
    outline: none;
    background: #4b4b44;
    border-radius: 30px;
    position: relative;
    cursor:pointer ;
}  

.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;
    background: #fff;
}

.piano-keys  {
    display: flex;
    margin-top: 40px;
    
}
.piano-keys .key{
    list-style: none;
    cursor: pointer;
    color: #6d6969;
    position: relative;
    user-select: none;
    list-style: none;
    text-transform:uppercase;
}
 




.piano-keys .white {
    width: 70px;
    height: 230px;
    border-radius: 8px;
    border: 1px solid black;
    background: linear-gradient(#fff 96%, #eee 4%);
}
.piano-keys .white.active{
    box-shadow: inset -5px 5px 20px rgb(6, 5, 11);
    background: linear-gradient(to bottom,#fff 0% , #eee 100%);

}

.piano-keys .black {
    width: 44px;
    height: 140px;
    z-index: 2;
    margin: 0 -22px 0 -22px;
    border-radius:0 0 5px 5px;
    background: linear-gradient(#333 , #000);
}
.piano-keys .black.active{
    box-shadow: inset -5px 5px 10px rgb(196, 194, 209);
    background: linear-gradient(to bottom,rgb(5, 5, 5) 0% , rgb(87, 82, 82) );

}

.piano-keys span {
    position: absolute;
    bottom: 20px;
    width: 100%;
    font-size: 1.13rem;
    text-align: center;
}
.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;
      margin: 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;
    }
  }
