body {
  margin: 0;
  padding: 10px;
  font-family: Arial, sans-serif;
  background-color: steelblue;
}

.page-title {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Series description styles */
.series-description {
  max-width: 1180px;
  margin: 0 auto 20px;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  line-height: 1.6;
}

.series-description p {
  margin: 0 0 5px;
  color: white;
  text-align: justify;
}

.series-description a {
  color: white;
  text-decoration: underline;
}

.more-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 4px 18px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.7rem;
  margin: 8px 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: bold;
}

.more-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.more-content.visible {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

/* Book grid styles */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.book-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
  overflow: hidden;
}

.book-card:hover {
  transform: scale(1.05);
}

.book-cover {
  width: 100%;
  aspect-ratio: 1 / 1.4;
  object-fit: cover;
  display: block;
}

.book-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 5px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: white;
}

.status-new {
  background-color: #dc2626;
}

.status-soon {
  background-color: #16a34a;
}

.title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 10px;
  text-align: center;
}

.title-overlay h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 10px;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  max-width: 800px;
  margin: 20px auto;
  position: relative;
  padding: 10px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.modal-cover {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-info h2 {
  margin: 0 0 5px 0;
  color: #1a202c;
}

.modal-info h3 {
  margin: 0 0 10px 0;
  color: #4a5568;
}

.modal-info p {
  color: #2d3748;
  line-height: 1.6;
  text-align: justify;
}

.download-links {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.download-link {
  display: inline-block;
  background-color: #3182ce;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.download-link:hover {
  background-color: #2c5282;
}

@media (max-width: 640px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-overlay h2 {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* Origin Stories Section Styles */
.section-divider {
  max-width: 1200px;
  margin: 30px auto 20px;
  text-align: center;
  color: white;
  padding: 10px;
}

.section-title {
  font-size: 2rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  margin: 5px 0 0;
  font-style: italic;
  opacity: 0.9;
}

.origin-book {
  max-width: 1200px;
  margin: 20px auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.origin-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px;
}

.origin-cover {
  position: relative;
}

.origin-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.origin-info {
  color: white;
}

.origin-info h2 {
  margin: 0 0 5px;
  font-size: 1.8rem;
  color: white;
}

.origin-info h3 {
  margin: 0 0 15px;
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
}

.origin-tagline {
  font-style: italic;
  font-weight: bold;
  margin-bottom: 20px;
  color: #a3c2d5;
}

.origin-synopsis {
  margin-bottom: 10px;
  text-align: justify;
  line-height: 1.6;
}

.learn-more-button {
  background: rgba(163, 194, 213, 0.2);
  border: 2px solid #a3c2d5;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s;
}

.learn-more-button:hover {
  background: rgba(163, 194, 213, 0.3);
  transform: translateY(-2px);
}

.romanov-modal-body {
  grid-template-columns: 1fr 2fr;
}

.romanov-modal-body .origin-tagline {
  color: #102036;
  font-size: 1.1rem;
}

.subscribe-section {
  margin-top: 20px;
  background: rgba(16, 32, 54, 0.1);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #102036;
}

.subscribe-section h4 {
  margin: 0 0 10px;
  color: #102036;
}

.notify-form {
  display: flex;
  gap: 10px;
}

.notify-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.notify-button {
  background: #102036;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.notify-button:hover {
  background: #1c3c5d;
}

@media (max-width: 768px) {
  .origin-content {
    grid-template-columns: 1fr;
  }

  .origin-cover {
    max-width: 250px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .romanov-modal-body {
    grid-template-columns: 1fr;
  }
}
