/* Set dark background and center content */
body {
  margin: 0;
  padding: 0;
  background-color: #2e2e2e; /* Dark gray */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  color: white; /* Text color */
}

/* Piano container is now centered */
.piano {
  position: relative;
  display: flex;
  justify-content: center;
  height: 400px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Keep white keys stacked side by side */
.key.white {
  width: 80px;
  height: 100%;
  background: white;
  border: 1px solid black;
  box-sizing: border-box;
  z-index: 1;
}

/* Black keys overlaid at specific positions */
.key.black {
  width: 45px;
  height: 220px;
  background: black;
  position: absolute;
  margin-left: -22.5px;
  z-index: 2;
}

/* Active key styles */
.key.white:active {
  background-color: #ccc;
}
.key.black:active {
  background-color: #555;
}

/* Style for buttons and other controls */
button, input[type="range"] {
  margin: 10px;
  padding: 10px;
  font-size: 16px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 4px;
}

button:hover, input[type="range"]:hover {
  background-color: #555;
}

#tempo-slider-value {
  font-weight: bold;
  margin-left: 5px;
}

#recorded-notes {
  margin-top: 20px;
  text-align: center;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#melody-input {
  margin-left: 30px;
}