#kapakana {
  font-family: "Kapakana", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  color: #333;
  padding: 20px;
  line-height: 1.6;
  min-height: 100vh;
}

#contador {
  background: #102a43;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 15px 20px;
  border-radius: 10px;
  width: fit-content;
  margin: 0 auto 40px;
  box-shadow: 0 8px 15px rgba(16, 42, 67, 0.3);
  text-align: center;
}

h1,
h2,
h3,
h4 {
  color: #334e68;
  margin-bottom: 10px;
  font-weight: 800;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-top: 30px;
}

h3 {
  font-size: 1.5rem;
  margin-top: 25px;
}

h4 {
  font-size: 1.2rem;
  margin-top: 25px;
  font-weight: 700;
}

p {
  max-width: 700px;
  margin: 0 auto 25px;
  padding: 0 10px;
  font-size: 1.1rem;
  color: #475569;
  text-align: justify;
  line-height: 1.7;
}

.carousel {
  position: relative;
  width: 90%;
  max-width: 700px;
  height: 420px;
  margin: 50px auto 60px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  background: #f8fafc;
  border: 2px solid #bcccdc;
}

.carousel-images {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
  border-radius: 20px;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 75, 110, 0.8);
  border: none;
  color: #f1f5f9;
  font-size: 2.5rem;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(51, 75, 110, 0.4);
  transition: background-color 0.3s ease;
  user-select: none;
  z-index: 10;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(51, 75, 110, 1);
}

button.prev {
  left: 15px;
}

button.next {
  right: 15px;
}

@media (max-width: 768px) {
  #kapakana {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  #contador {
    font-size: 1.3rem;
    padding: 12px 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  p {
    font-size: 1rem;
  }

  .carousel {
    height: 280px;
  }
}
