:root {
  --primary-color: #58a4b0;
  --secondary-color: #ffcc5c;
  --accent-color: #4caf50;
  --background-color: #f0f8ff;
  --text-color: #2f4858;
}


#main-content #contenedor1, #contenedor2 {
  display: none;
}

body {

  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0.41rem;
}

.container {
  max-width: 90%;
  margin: 6rem auto 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: background 0.3s ease;
}

.container:hover {
  background: linear-gradient(to right, #00c6ff, #0072ff, #7c00ff);
  background-size: 200% 200%;
  animation: gradientAnimation 10s ease infinite;
  color: #fff;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0.5rem;
}

nav a {
  display: block;
  padding: 0.5rem 1rem;
  background-color: #4b0082;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

nav a:hover {
  transform: scale(1.1);
  background-color: #8b008b;
}

nav a i {
  margin-right: 0.5rem;
}

main {
  padding: 1rem;
  flex: 1;
  color: #333;
}

main h2 {
  color: #4b0082;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

main p:nth-child(odd) {
  background-color: #f0f0f0;
  padding: 0.5rem;
}

main p:hover {
  transform: scale(1.02);
}

footer {
  background-color: #4b0082;
  color: #fff;
  padding: 0.31rem;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.recompensas-lista,
.juegos-lista,
.videos-lista,
.misiones-lista,
.evaluaciones-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.recompensa,
.juego,
.video,
.mision,
.evaluacion {
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem;
  text-align: center;
  flex: 0 0 200px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.recompensa:hover,
.juego:hover,
.video:hover,
.mision:hover,
.evaluacion:hover {
  transform: scale(1.05);
  background-color: #e0e0e0;
}

.recompensa h3,
.juego h3,
.video h3,
.mision h3,
.evaluacion h3 {
  color: #4b0082;
  margin-bottom: 0.5rem;
}
/*
button {
  background-color: #4b0082;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #8b008b;
}
*/
textarea {
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  margin-top: 10px;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s, transform 0.3s;
}

button:hover {
  background-color: #45a049;
  transform: scale(1.1);
}

:root {
  --primary-color: #58a4b0;
  --secondary-color: #ffcc5c;
  --accent-color: #4caf50;
  --background-color: #f0f8ff;
  --text-color: #2f4858;
}

body {

  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

#diaSelector {
  font-size: 1.2em;
  padding: 10px;
  border: 2px solid #ff6666;
  border-radius: 10px;
  background-color: #ffcc70;
  color: #ff6666;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

#diaSelector:hover {
  background-color: #ff6666;
  color: #ffcc70;
  border-color: #ffcc70;
  transform: scale(1.05);
}

#diaSelector:focus {
  box-shadow: 0 0 10px #ff6666;
}

option {
  background-color: #ffcc70;
  color: #ff6666;
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  padding: 20px;
  border-radius: 5px;
  max-width: 500px;
  width: 80%;
}

.modal-content label {
  display: block;
  margin: 10px 0;
}

.modal-content button {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .container {
    max-width: 95%;
    margin: 4rem auto 2rem;
    padding: 1rem;
  }

  nav a {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }

  main h2 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  .recompensa,
  .juego,
  .video,
  .mision,
  .evaluacion {
    flex: 0 0 150px;
    margin: 0.5rem;
  }

  #diaSelector {
    width: 30%;
    font-size: 0.8em;
  }
}
