body {
  margin: 0;
  background-color: rgb(70, 70, 70);
}

.piano-wrapper {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
}

.button-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
}

button {
  border: 2px solid black;
  border-radius: 5px;
  padding: 10px;
  background-color: black;
  color: white;
  transition: ease 0.2s;
  cursor: pointer;
  margin: 10px;
}

button:hover {
  transform: scale(1.1);
  box-shadow: 2px 3px 2px rgb(61, 61, 61);
}

button:active {
  transform: scale(1);
}

.piano {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
}

.keys {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.key {
  width: 3rem;
  height: 12rem;
  border: 1px solid black;
  position: relative;
  display: flex;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: transform 0.05s;
}

.white:hover {
  background-color: rgb(239, 239, 239);
}

.white:active {
  transform: scaleY(1.02);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
  background-color: rgb(184, 184, 184);
}

.white {
  background-color: white;
  transform-origin: top;
}

.C,.B {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.black {
  width: 2rem;
  margin-left: -1rem;
  margin-right: -1rem;
  height: 7rem;
  background: black;
  z-index: 2;
  transform-origin: top;
  box-shadow: 0 4px 3px rgba(0,0,0,0.3);
}

.black:hover {
  background-color: rgb(58, 58, 58);
}

.black:active {
  transform: scaleY(0.98);
  box-shadow: 0 0 0;
  background-color: rgb(129, 129, 129);
}