body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-bottom: 20px;
  color: #444;
}

.controls {
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}

label {
  font-size: 14px;
  margin-right: 8px;
}

input[type="range"] {
  width: 150px;
}

input[type="number"] {
  width: 60px;
  padding: 4px;
}

.soundboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

@media screen and (max-width: 798px) {
  .soundboard {
    grid-template-columns: minmax(200px, 1fr);
  }
}

.sound {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s;
  position: relative;
}

.sound:hover {
  transform: translateY(-3px);
}

.sound h3 {
  margin-top: 0.1em;
}

.timer {
  background-color: #666;
  opacity: 0.5;
  position: absolute;
  display: flex;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 2em;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.timer span {
  opacity: 1;
}

.timer.visible {
  display: flex;
}

button {
  background: #4a90e2;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

button:hover {
  background: #357ab8;
}
