/* Updated to use i_know_a_ghost font and match the minimalist design */
@font-face {
  font-family: "IKnowAGhost";
  src: url("fonts/i_know_a_ghost.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: "IKnowAGhost", sans-serif;
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.container {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.main-title {
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.page-title {
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

.content {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Added styles for books page layout */
.page-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 3rem;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 0.7;
}

.books-grid {
  display: grid;
  /* Reduced minimum column width from 280px to 200px for smaller book cards */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.book-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Added max-width to limit book card size */
  max-width: 250px;
  margin: 0 auto;
  /* Added transition for smooth hover effect on clickable books */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Added hover effect for clickable books */
.book-item:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.book-image {
  aspect-ratio: 2 / 3;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-name {
  font-size: 1.75rem;
  font-weight: normal;
  margin: 0;
}

.book-description {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.7;
  margin: 0;
}

.social-links {
  text-align: center;
}

.social-links a {
  display: block;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

/* Added styles for about page photo */
.about-photo {
  margin: 2rem auto 3rem;
  max-width: 250px;
}

.about-photo img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

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

  .nav-links a,
  .social-links a {
    font-size: 1.25rem;
  }

  .content {
    font-size: 1.125rem;
  }

  /* Added responsive styles for books */
  .books-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-name {
    font-size: 1.5rem;
  }

  .book-description {
    font-size: 1rem;
  }

  .back-link {
    font-size: 1.125rem;
  }

  /* Responsive sizing for about photo */
  .about-photo {
    max-width: 200px;
  }
}
