/* css/blog.css */

/* --- ESTILOS BASE (MOBILE-FIRST) --- */
.blog-main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1; /* Permite que el contenido principal ocupe el espacio restante */
}

.notebook-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notebook-container {
  font-family: 'Caveat', cursive;
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 600;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Clases para la portada */
.magazine .cover {
  background: url('../images/notebook-cover.png') no-repeat center center;
  background-size: cover;
  cursor: pointer;
}

/*
 * Estilos para las páginas individuales
 */
.magazine .page-content {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: absolute;
  top: 15px; /* Ajusta la posición para que el texto esté más arriba */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 95%;
  padding: 0px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Estilo para la fecha */
.magazine .page-date {
  position: absolute;
  right: -10px;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 14px;
  color: #555;
  text-align: right;
  margin:0px;
}

.magazine .page-content p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.magazine .page-content h2 {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 2em;
  font-weight: 700;
  color: #4b372d;
  margin-bottom: 20px;
  margin-top: 26px;
}

/* Aquí puedes agregar un fondo para cada tipo de página */
.even-page {
  background: url('../images/notebook-half-inverse.png') no-repeat center center;
  background-size: cover;
}

.even-page.variant-2 {
  background: url('../images/notebook-half-inverse2.png') no-repeat center center;
  background-size: cover;
}

.odd-page {
  background: url('../images/notebook-half.png') no-repeat center center;
  background-size: cover;
}

.odd-page.variant-2 {
  background: url('../images/notebook-half2.png') no-repeat center center;
  background-size: cover;
}

/* Flechas de navegación */
.nav-arrow {
  background-color: transparent; /* Hace el fondo del botón transparente */
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  width: 45px; /* Ancho de la imagen de la flecha */
  height: 20px; /* Alto de la imagen de la flecha */
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
  background-image: url("../images/arrow-left.png");
  background-size: cover;
  left: -10px; /* Ajusta la posición de la flecha para que no choque con el cuaderno */
}

.next-arrow {
  background-image: url("../images/arrow-right.png");
  background-size: cover;
  right: -10px; /* Ajusta la posición de la flecha */
}

/* Ocultar las flechas y la portada cuando se usa display: single */
.notebook-container.single .nav-arrow {
  display: none;
}

/* --- MEDIA QUERY PARA PANTALLAS GRANDES (ESCRITORIO) --- */
@media (min-width: 860px) {
  .notebook-wrapper {
    max-width: 850px;
  }
  .notebook-container {
    height: 670px;
    max-width: none;
    perspective: 2000px;
    background-size: contain;
    margin-top: 40px;
  }
  .prev-arrow {
  background-image: url("../images/arrow-left.png");
  background-size: cover;
  left: -88px; /* Ajusta la posición de la flecha para que no choque con el cuaderno */
  width: 90px;
  height: 40px;
}

.next-arrow {
  background-image: url("../images/arrow-right.png");
  background-size: cover;
  right: -88px; /* Ajusta la posición de la flecha */
  width: 90px;
  height: 40px;
}
}