body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background-color: #333;
  color: white;
  padding: 10px 0;
}

header h1 {
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 20px;
  margin-bottom: 60px;
}

/* Inicio */
.inicio-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.text {
  margin-right: 20px;
}

.escudo {
  width: 150px;
  margin-top: 60px;
  margin-right: 60px;
}

/* Galeria */
section h2 {
  text-align: center;
}

.gallery-container {
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.slides {
  display: flex;
  overflow: hidden;
  position: relative;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide img {
  width: 100%;
  max-height: 300px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.caption {
  color: black;
}

.caption h3 {
  margin: 0;
}

.caption p {
  margin: 5px 0;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Juego */
#juegos {
  text-align: center;
}

.quiz-game {
  margin-top: 20px;
}

#quiz-container {
  margin-top: 20px;
  text-align: center;
}

#question-container {
  margin-bottom: 20px;
}

#start-quiz {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#start-quiz:hover {
  background-color: #1976D2;
}

.btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.correct {
  background-color: #4caf50;
}

.wrong {
  background-color: #f44336;
}

#next-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#next-button,
#restart-button {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

#next-button:hover,
#restart-button:hover {
  background-color: #1976D2;
}

/* Recursos */
section#recursos {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

section#recursos h2 {
  margin-bottom: 20px;
}

.resources {
  margin-bottom: 20px;
}

.resources ul {
  list-style-type: none;
  padding: 0;
}

.resources ul li {
  margin-bottom: 10px;
}

#contribution-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contribution {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
}

#contribution-form button {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contribution-form button:hover {
  background-color: #0056b3;
}

#contribution-message.success {
  color: green;
}

#contribution-message.error {
  color: red;
}

/* Hechos históricos */
#hechos-historicos {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#events-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

#events-table th,
#events-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

#events-table th {
  background-color: #f4f4f4;
}

#events-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
}

/* Media Queries */
@media (max-width: 768px) {
  .gallery img {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .gallery img {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 10px 0;
  }
}
