body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #575757;
}

h1 {
  margin: 0px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5em;
  position: relative;
  left: -100%;
  animation: izquierda 1.5s ease-out forwards;
}

h1 a {
  text-decoration: none;
  color: rgb(82, 189, 219);
}

nav p {
  position: relative;
  right: -100%;
  animation: derecha 1.5s ease-out forwards;
}

@keyframes izquierda {
  to {
    left: 0;
  }
}

@keyframes derecha {
  to {
    right: 0;
  }
}

nav {
  background-color: #333;
  color: white;
  padding: 10px;
  text-align: center;
}

nav input {
  padding: 10px;
  width: 300px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
  position: relative;
  left: -100%;
  animation: izquierda 1.5s ease-out forwards;

}

nav button {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background-color: rgb(82, 189, 219);
  color: white;
  cursor: pointer;
  position: relative;
  right: -100%;
  animation: derecha 1.5s ease-out forwards;
}

.inicio {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.carta {
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: rgb(82, 189, 219);
  text-decoration: none;
  position: relative;
  left: -100%;
  animation: izquierda 1.5s ease-out forwards;
}


.carta img {
  width: 200px;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.carta:hover {
  background-color: #444;
  transition: background-color 0.3s ease;
}

.info {
  display: none;
}

.info-container {
  display: flex;
  flex-direction: row;
  padding: 10px;
}

.details {
  margin: 10px;
  padding: 5px;
  color: rgb(82, 189, 219);
}

.details h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5em;
  font-style: italic;
}

.details span {
  color: white;
}

.notaCapitulos {
  overflow-x: auto;
  max-width: 100vw;
  padding: 20px;
}

table {
  border-collapse: separate;
  border-spacing: 5px;
  float: left;
}

th,
td {
  padding: 12px;
  text-align: center;
  font-weight: bold;
  min-width: 50px;
  border-radius: 8px;
  color: white;
}

th {
  color: #ccc;
}

.verde {
  background-color: #28a745;
}

.verdeClaro {
  background-color: #81e291;
  color: #000;
}

.amarillo {
  background-color: #f4c542;
  color: #000;
}

.rojo {
  background-color: #f24e1e;
}

.morado {
  background-color: #6f42c1;
}

.nada {
  background-color: #333;
}

@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    align-items: center;
    /* Centra todo horizontalmente */
  }

  .info-container .poster,
  .info-container .details {
    width: 100%;
    margin: 0 0 10px 0;
  }

  .info-container .poster {
    display: flex;
    /* Para usar flexbox */
    justify-content: center;
    /* Centra horizontalmente */
  }

  .info-container .poster img {
    max-width: 100%;
    /* Que no se pase del contenedor */
    height: auto;
    border-radius: 10px;
    /* Mantén el borde redondeado si quieres */
  }

  .poster img {
    width: 200px;
    height: 300px;
  }
}