
@import url('https://fonts.googleapis.com/css2?family=Charm:wght@400;700&display=swap');

*   {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Charm', cursive;
}

body {
    display : flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #ffffff;
    background-size: 10px 10px;
    background-image: repeating-linear-gradient(45deg, #ffd8df 0, #ffd8df 1px, #ffffff 0, #ffffff 50%);
}

.wrapper {
    border-radius: 20px;
    padding: 35px 40px;
    background-color: #f2f2f2;
    background-image: linear-gradient(to bottom, #a7c1de, #d6d5e3, #ecc6d9, #d3a6c1, #b495c6);
    box-shadow: 0px 0px 20px #d6d5e3;

}

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

header h2 {
    font-size: 1.6rem;
}

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

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

header input {
    outline: none;
    border-radius: 30px;
}

.volume-slider input {
    accent-color: #fff;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #ecc6d9;
    border-radius: 5px;
    height: 10px;
  }

  input[type="range"]::-webkit-slider-thumb {
    border-radius: 50%;
    margin-top: -1%;
  }

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

.keys-checkbox input::before {
    content: "";
    height: 20px;
    width: 20px;
    top: 50%;
    left: 5px;
    border-radius: inherit;
    position: absolute;
    background: #d3a6c1;
    transform: translatey(-50%);
    transition: all 0.3s ease;
}

.keys-checkbox input:checked::before {
    left: 35px;
    background: #fff;
}

.piano-keys {
    display: flex;
    margin-top: 40px;
    list-style: none;
}

.piano-keys .key {
    cursor: pointer;
    user-select: none;
    position: relative;
    text-transform: uppercarse;
}

.piano-keys .black {
    width: 44px;
    height: 140px;
    z-index: 2;
    margin: 0 -22px 0 -22px;
    border-radius: 0 0 5px 5px;
    background: #b495c6;
    box-shadow:  2px 6px 8px 0px rgba(193,193,193,1);
}

.piano-keys .black.active {
    background: linear-gradient(to bottom, #b495c6, #a7c1de);
}

.piano-keys .white {
    width: 70px;
    height: 230px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    box-shadow: 0px 3px 0px #c1c1c1;
}

.piano-keys .white.active {
    box-shadow: inset -5px 5px 20px #a7c1de;
}

.piano-keys .key span {
    position: absolute;
    bottom: 20px;
    width: 100%;
    color: #a2a2a2;
    text-align: center;
    font-size: 1.13rem;
 }

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

 .piano-keys .key.black span{
    bottom: 13px;
    color: #ffffff;
}


@media screan and (max-width: 815px) {
    .wrapper {
        padding: 25px;
    }

    header {
        flex-direction: colums;
    }

    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;
    }

}
@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;
    }
}

@media screen and (orientation: landscape) and (max-width: 767px) {
    .wrapper {
      width: 100vw;
      height: 100vh;
      padding: 0;
      border-radius: 0;
    }
    header {
      display: none;
    }
    .piano-keys {
      margin-top: 0;
    }
  }
