body {
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

#drum-machine {
  background: linear-gradient(145deg, #2a2a2a, #1c1c1c);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 30px;
  text-align: center;
  width: 100%;
  max-width: 600px;
  position: relative;
}

#display {
  background: #000;
  border-radius: 10px;
  margin-bottom: 30px;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #00ff00;
  box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.5);
  text-shadow: 0 0 5px #00ff00;
}

.pad-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.drum-pad {
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #2a2a2a);
  border: 4px solid #555;
  border-radius: 50%;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 -5px 15px rgba(0, 0, 0, 0.6),
    inset 0 5px 15px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 18px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  user-select: none;
  position: relative;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.drum-pad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%);
  z-index: 2;
}

.drum-pad::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.drum-pad:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 25px rgba(0, 0, 0, 0.5),
    inset 0 -5px 15px rgba(0, 0, 0, 0.6),
    inset 0 5px 15px rgba(255, 255, 255, 0.1);
}

.drum-pad:active, .drum-pad.active {
  transform: translateY(4px);
  box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.3),
    inset 0 -2px 5px rgba(0, 0, 0, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.drum-pad:active::after, .drum-pad.active::after {
  opacity: 1;
}

/* Specific colors for each drum pad */
.drum-pad:nth-child(1) { background-color: #ff6b6b; }
.drum-pad:nth-child(2) { background-color: #4ecdc4; }
.drum-pad:nth-child(3) { background-color: #45b7d1; }
.drum-pad:nth-child(4) { background-color: #f7b731; }
.drum-pad:nth-child(5) { background-color: #8854d0; }
.drum-pad:nth-child(6) { background-color: #26de81; }
.drum-pad:nth-child(7) { background-color: #fd9644; }
.drum-pad:nth-child(8) { background-color: #a55eea; }
.drum-pad:nth-child(9) { background-color: #20bf6b; }

.clip {
  display: none;
}

@media (max-width: 600px) {
  #drum-machine {
    padding: 20px;
  }
  
  #display {
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
  }
  
  .pad-container {
    gap: 15px;
  }
  
  .drum-pad {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  #drum-machine {
    padding: 15px;
  }
  
  #display {
    font-size: 16px;
    padding: 8px;
    margin-bottom: 15px;
  }
  
  .pad-container {
    gap: 10px;
  }
  
  .drum-pad {
    font-size: 14px;
  }
}