body {
  background: #988c8c;
  font-family: "Comic Sans MS", cursive, sans-serif;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  overflow-x: hidden;
}

h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 2.5rem;
}

.navigation {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.nav-button {
  color: black;
  text-decoration: none;
  font-size: 24px;
}

.nav-button:hover {
  text-decoration: underline;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.sound-buttons-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-wrapper {
  position: relative;
  width: 200px;
  height: 190px;
  cursor: pointer;
}

.circle {
  border-radius: 50%;
}

.button-background {
  width: 188px;
  height: 174px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.sound-button {
  font-family: "Comic Sans MS", cursive, sans-serif;
  width: 200px;
  height: 190px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url("transparent_button_sprite.png") no-repeat;
  background-position: -5px -5px;
  border: 0;
  display: block;
  -webkit-tap-highlight-color: transparent;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.sound-button:focus {
  background-position: -5px -5px;
}

.sound-button:active {
  background-position: -215px -5px;
}

/* Colores específicos para cada botón */
.button-wrapper[data-sound="keny"] .button-background {
  background-color: #ff6b6b;
}

.button-wrapper[data-sound="bichillo"] .button-background {
  background-color: #4ecdc4;
}

.carousel-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 20%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.carousel-nav {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.carousel-arrow {
  position: absolute;
  background: transparent;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 15px;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-arrow.prev {
  left: 15px;
}

.carousel-arrow.next {
  right: 15px;
}

/* Estilos para la página 2 */
.buttons-container-page2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.button-wrapper[data-sound="sonido1"] .button-background {
  background-color: red;
}

.button-wrapper[data-sound="sonido2"] .button-background {
  background-color: #83f52c;
}

.button-wrapper[data-sound="sonido3"] .button-background {
  background-color: blue;
}

.button-wrapper[data-sound="sonido4"] .button-background {
  background-color: yellow;
}

.button-wrapper[data-sound="sonido5"] .button-background {
  background-color: fuchsia;
}

.button-wrapper[data-sound="sonido6"] .button-background {
  background-color: black;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .sound-buttons-container {
    gap: 20px;
  }

  .carousel {
    height: 200px;
  }

  .slide {
    font-size: 1.5rem;
  }

  .buttons-container-page2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 600px) {
  body {
    overflow: auto;
    margin: 0 5px;
  }

  .buttons-container-page2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .buttons-container-page2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
