/* src/styles/keyboard.css */
.keyboard {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  user-select: none;
  flex-direction: column;
  align-items:  center;
  gap: 6px;
  padding: 20px;
}

.row {
  display: flex;
  gap: 5px;
}

.row:nth-child(2) {
  margin-left: 20px;
}

.row:nth-child(3) {
  margin-left: 35px;
}

.row:nth-child(4) {
  margin-left: 55px;
}

.key {
  display: flex;
  font-family: var(--font-mono);
  position: relative;
  text-transform: uppercase;
  border: 2px solid #0000;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  width: 44px;
  height: 44px;
  transition: all .15s;
  font-size: 14px;
  font-weight: 600;
}

.key:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.space {
  width: 280px;
}

.active {
  animation: pulse 1s ease-in-out infinite;
  filter: brightness(1.3);
  z-index: 1;
  transform: translateY(-2px);
}

.pressed {
  transition: all 50ms;
  filter: brightness(.8) !important;
  transform: translateY(2px) !important;
}

.fingerLabel {
  position: absolute;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  font-size: 9px;
  bottom: -18px;
}

.key:hover .fingerLabel {
  opacity: 1;
}
