body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: #f0f0f0;
}

#main-container {
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 20px;
}

.keyboard {
  background: #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.key-row {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}

.key {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 2px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s;
  border: 1px solid #999;
}

.row-white .key {
  background: white;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.row-black .key {
  background: #333;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Row offsets for staggered keyboard layout */
.row-numbers { transform: translateX(0); }
.row-qwerty { transform: translateX(25px); }
.row-asdf { transform: translateX(45px); }
.row-zxcv { transform: translateX(65px); }

.key.active {
  transform: translateY(2px);
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
  background: #4caf50 !important;  /* green color, !important to override white/black keys */
  color: white;
}

/* Special keys */
.key[data-key="Tab"] {
  width: 80px;
}

.key.unmapped {
  background: #ffcdd2;
  color: #b71c1c;
  opacity: 0.7;
  cursor: not-allowed;
}

.row-black .key.unmapped {
  background: #cf6679;
  color: #ffcdd2;
  opacity: 0.7;
}

#percussion-name {
  font-size: 24px;
  margin: 20px;
  height: 32px;
  color: #333;
  font-family: Arial, sans-serif;
}