@import url("https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&family=Borel&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Savate:ital,wght@0,200..900;1,200..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Capriola&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.titulo {
  font-family: "Capriola", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 60px;
  color: #4f085cd2;
  text-align: center; /* Centra el texto horizontalmente */
  margin-top: 30px; /* Opcional: agrega espacio superior */
}

body {
  background-color: #f0edfc;
}

.boton {
  font-family: helvetica;
  font-size: 22px;
  padding: 12px 24px;
  margin: 10px;
  background-color: #a454b3;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: #ffffff;
}

.boton:hover {
  background-color: #fa66a1;
  transform: scale(1.05);
}

.cajita {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cuentos {
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 700px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  font-family: "Edu VIC WA NT Hand", cursive;
  color: #444;
  line-height: 1.5;
}

.title {
  font-family: "Comfortaa", cursive;
  font-size: 28px;
  color: #fa66a1;
  margin-top: 10px;
  margin-bottom: 0px;
  text-align: left;
}

.story {
  font-family: "helvetica", cursive;
  font-size: 16px;
  white-space: pre-line; /* preserva los saltos de línea */
}

.age_group {
  font-family: "Comfortaa", cursive;
  font-size: 16.5px;
  font-weight: 600;
  color: #4f085cd2;
  margin-top: 20px;
  margin-bottom: 4px;
  margin-right: 20px;
  padding: 0px 0px;
  text-align: left;
}
.tiposDeTexto {
  font-family: "Comfortaa", cursive;
  font-size: 16.5px;
  font-weight: 600;
  color: #4f085cd2;
  margin-top: 0px;
  margin-bottom: 19px;
  margin-right: 20px;
  padding: 0px 0px;
  text-align: left;
}

.warningText {
  font-size: 16.5px;
  font-weight: 0;
  color: #fa66a1;
  margin-top: 20px;
  margin-bottom: 0px;
  margin-right: 20px;
  padding: 0px 0px;
  text-align: left;
}

.botonMeGusta {
  font-family: helvetica;
  font-size: 20px;
  padding: 10px 10px;
  margin: 10px;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: #8b4997;
  border: none;
  border-radius: 1000px;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: #ffffff;
}
.botonMeGusta:hover {
  background-color: #fa66a1;
  transform: scale(1.05);
}
.botonNoMeGusta {
  font-family: helvetica;
  font-size: 20px;
  padding: 10px 10px;
  margin: 10px;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: #8b4997;
  border: none;
  border-radius: 1000px;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: #ffffff;
}
.botonNoMeGusta:hover {
  background-color: #fa66a1;
  transform: scale(1.05);
}

.numeroContador {
  font-family: helvetica;
  font-weight: 200;
  font-size: 20px;
  padding: 0px 0px;
  color: #a454b3;
}

.cajaBotonesHorizontal {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 1px; /* Espacio entre los botones */
  margin-top: 60px;
}

.estiloLibro {
  display: block;
  margin: 30px auto;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
  .titulo {
    font-size: 28px;
    text-align: center;
  }
  .boton {
    font-size: 16px;
    padding: 6px 6px;
    margin: 5px;
    display: inline;
  }
  .title {
    font-size: 22px;
  }
  .cuentos {
    font-size: 20px;
  }
  .estiloLibro {
    border: 15px;
    padding: 15px;
    width: 350px;
    height: 350px;
  }
}
