body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #f1f1f1;
  text-align: center;
  padding: 30px;
  background: #1e1e2f; /* base color to revert after flash */
  transition: background-color 0.3s ease;


}

#drum-machine {
  background: #0f3460;
  border-radius: 15px;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h2 {
  margin-bottom: 10px;
}

#display {
  background: #1a1a2e;
  padding: 10px;
  margin: 10px auto;
  border-radius: 8px;
  font-size: 18px;
  width: 80%;
  font-weight: bold;
}

.controls {
  margin: 20px auto;
}

button {
  margin: 5px;
  padding: 10px 20px;
  background: #e94560;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #ff3e6c;
}

input[type="range"] {
  width: 60%;
  margin: 10px 0;
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  justify-items: center;
  margin-top: 20px;
}

.drum-pad {
  background: #53354a;
  border-radius: 10px;
  padding: 30px;
  width: 100px;
  height: 100px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.drum-pad:active {
  transform: scale(0.95);
  background: #903749;
}
