* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.main-content {
  padding: 20px;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  margin-bottom: 20px;
}

.search-section {
  margin-bottom: 30px;
  text-align: center;
}

#searchInput {
  width: 70%;
  padding: 15px 20px;
  border: 2px solid #8bc34a;
  border-radius: 50px;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s;
}

#searchInput:focus {
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.sound-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  color: #444;
  position: relative;
  overflow: hidden;
}

.sound-btn:hover {
  background: #e8f5e9;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.sound-btn:active {
  transform: translateY(1px);
}

.sound-btn.playing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(76, 175, 80, 0.2);
  animation: pulse 1.5s infinite;
  border-radius: 12px;
  z-index: 0;
}

.sound-btn .emoji {
  font-size: 1.8rem;
  margin-right: 15px;
  z-index: 1;
}

.sound-btn .text {
  z-index: 1;
}

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

footer {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 15px;
}

.footer-content {
  width: 100%;
  margin: 0 auto;
}

.footer-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.footer-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: left;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
}

.usage {
  text-align: left;
  margin-top: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
}

.usage h3 {
  font-size: 1.2rem;
}

.usage ul {
  list-style-type: none;
}

.usage li {
  margin-top: 10px;
  font-size: 1rem;
  position: relative;
  padding-left: 30px;
}

.usage li::before {
  content: "💨";
  position: absolute;
  left: 0;
  top: 1px;
}

.copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.sound-btn:nth-child(3n+1) .emoji { color: #4caf50; }
.sound-btn:nth-child(3n+2) .emoji { color: #ff9800; }
.sound-btn:nth-child(3n+3) .emoji { color: #f44336; }

.volume-control {
  margin: 20px auto;
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

#volumeSlider {
  width: 500px;
  accent-color: #4caf50;
}

.volume-emoji {
  font-size: 1.5rem;
}

.instructions {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 15px;
  border-left: 5px solid #4caf50;
}

.instructions h3 {
  color: #2e7d32;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
