#piano-keyboard {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  perspective: 1000px;
}

.piano-key {
  width: 40px;
  height: 120px;
  background-color: #e0e0e0;
  margin: 0 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  color: #121212;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  position: relative;
}

.target-key {
  border-bottom-style: ridge !important;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.piano-key:hover {
  transform: rotateX(10deg);
  background-color: #f5f5f5;
}

.piano-key.black {
  background-color: #2a2a2a;
  color: #e0e0e0;
  height: 80px;
  width: 30px;
  margin-left: -15px;
  margin-right: -15px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.piano-key.black:hover {
  background-color: #3a3a3a;
}

.piano-key.correct {
  background-color: #2ecc71;
}

.piano-key.incorrect {
  background-color: #e74c3c;
}

.piano-key.riff-key {
  border: none;
  border-bottom: 10px inset #2ecc71;
}

/* Adjust the height for black keys */
.piano-key.black.riff-key {
  height: 80px;
}

/* Note label styling */
.note-label {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

/* Keyboard hint styling */
.keyboard-hint {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: normal;
  background-color: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  text-align: center;
  min-width: 14px;
  height: 16px;
  line-height: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
}

/* Black key adjustments */
.piano-key.black {
  padding: 3px;
}

.piano-key.black .keyboard-hint {
  background-color: rgba(46, 204, 113, 0.9);
  font-size: 8px;
  top: 1px;
  min-width: 12px;
  height: 14px;
  line-height: 12px;
}

.piano-key.black .note-label {
  font-size: 10px;
}
