* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.keys-info {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.keys-info span {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

main {
  width: 100%;
  max-width: 1200px;
}

.s1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  justify-items: center;
  padding: 20px;
}

.drum-pad {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 180px;
  min-height: 200px;
}

.drum-pad:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.drum-pad.active-effect {
  transform: scale(0.95) translateY(2px);
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.2);
}

.drum-pad img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.drum-pad:hover img {
  transform: scale(1.1);
}

.drum-pad.active-effect img {
  transform: scale(0.9) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.key-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.drum-pad.active-effect .key-label {
  background: #ffd700;
  color: #000;
  border-color: #ffed4e;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .s1 {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  
  .drum-pad {
    min-height: 150px;
    padding: 15px;
  }
  
  .drum-pad img {
    max-width: 80px;
  }
  
  .keys-info {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .keys-info span {
    padding: 6px 12px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .s1 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .drum-pad {
    min-height: 120px;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drum-pad {
  animation: fadeIn 0.5s ease-out backwards;
}

.drum-pad:nth-child(1) { animation-delay: 0.1s; }
.drum-pad:nth-child(2) { animation-delay: 0.2s; }
.drum-pad:nth-child(3) { animation-delay: 0.3s; }
.drum-pad:nth-child(4) { animation-delay: 0.4s; }
.drum-pad:nth-child(5) { animation-delay: 0.5s; }
.drum-pad:nth-child(6) { animation-delay: 0.6s; }
.drum-pad:nth-child(7) { animation-delay: 0.7s; }


