@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  user-select: none;
}

body,
html {
  overflow: hidden;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #111;
  position: relative;
}

.backColor {
  background-color: #ddd;
}

.moon {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.6rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  rotate: 48deg;
}

.stroke {
  color: #111;
}

.piano {
  display: flex;
  flex-direction: column;
  width: 780px;
  background-color: #111;
  padding: 35px 40px;
  border-radius: 20px;
}

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

header h2 {
  font-size: 1.6rem;
}

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

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

.volume-slider input,
.keys-checkbox input {
  cursor: pointer;
}

.keys-checkbox input {
  appearance: none;
  height: 30px;
  width: 60px;
  background-color: #4b4b4b;
  border-radius: 20px;
  position: relative;
}

.keys-checkbox input::before {
  transition: all 0.3s ease;
  content: "";
  height: 24px;
  width: 24px;
  background-color: #8c8c8c;
  position: absolute;
  top: 3px;
  left: 4px;
  border-radius: 50%;
}

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

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

.piano-keys .key {
  list-style: none;
  color: #bbb;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}

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

.piano-keys .black.active {
  background: linear-gradient(to bottom, #000, #434343);
  box-shadow: inset -5px 5px 10px rgba(225, 225, 225, 0.1);
}

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

.piano-keys .white.active {
  background: linear-gradient(to bottom, #fff, #eee);
  box-shadow: inset -5px 5px 20px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 852px) {
  .piano {
    width: 700px;
  }
}

@media (max-width: 768px) {
  .piano {
    transform: rotate(270deg);
  }

  .moon {
    display: none;
  }
}

@media (max-width: 424px) {
  .piano {
    padding: 0;
    background-color: transparent;
    width: 550px;
    height: 313px;
  }

  .container {
    background-color: #ddd;
  }

  .piano-keys {
    background-color: #222;
    padding: 10px;
    border-radius: 20px;
  }

  h2,
  span {
    color: #333;
  }

  li span {
    color: #bbbbbb;
  }
}

.hide {
  color: transparent !important;
}
