@import url('../../assets-custom/root.css');

/* library page */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato&family=Open+Sans&family=Roboto+Condensed:wght@300;400&family=Roboto+Mono:wght@500&family=Space+Grotesk&display=swap');

.offcanvas-body {
  color: white;
}

body {
  background: var(--index-container-body-background-color);
}
.header-container {
  height: 98px !important;
  color: white;
  width: 100% !important;
}
.library-body {
  margin: 0 auto;
  max-width: 1920px;
  position: relative;
}
.books-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between items */
}

.book-item {
  display: flex;
  flex: 1 1 calc(50% - 10px);
  box-sizing: border-box;
  flex-direction: row;
  cursor: pointer;
  background: var(--library-books-item-background-color);
  padding: 16px;
  gap: 24px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.book-item h3 {
  font-size: 22px;
  font-weight: 500;
}
.book-item p {
  font-weight: 200;
  font-size: 14px;
}
@media (max-width: 600px) {
  .book-item {
    display: flex;

    flex: 1 1 100%; /* 1 item per row for smaller screens */
  }
}
.library-book-info {
  width: 60%;
}
.book-item-img {
  width: 40%;
}
.book-item-img img {
  width: 100%;
  border-radius: 10px;
  margin-top: -24px;
}
.library-book-info .read-more-button {
  font-size: 12px;
  margin-top: 0px;
  color: var(--library-read-more-color);
}
.each-cateogry-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  margin-bottom: 1px;
}
/* contentHTML = `
<div class="book-item" onclick="window.open('${book.gameUrl.replaceAll(' ', '%20')}')">
<div class="book-item-img">
  <img src="${book.thumbnailUrl}" alt="${truncateBookTitle(book.title, 28)}" class="img-fluid">
  </div>
  <div class="library-book-info d-flex flex-column">
    <h3>${truncateBookTitle(book.title, 28)}</h3>
    <p>${truncateBookTitle(book.description, 100)}</p>
    <div class="read-more-button">Read More</div>
  </div>
</div>` */
.category .title h1 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--ea-font-family-type-2) !important;
}
.each-cateogry-title .more-btn {
  background: var(--ea-primary-color);
  padding-left: 24px;
  padding-right: 24px;
  color: white;
}
.category {
  margin-top: 80px;
}
.allBooksContainer {
  gap: 18px;
}
.library-header {
  display: flex;
  flex-direction: column;
}

.library-header-img {
  height: 360px;
  display: none;
}
.library-header-img img {
  width: 100%;
  object-fit: cover;
}
.library-menu-item a {
  text-decoration: none;
  color: white;
}
#menu-categories {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: var(--ea-primary-color);
  padding-bottom: 17px;
  padding-top: 17px;
  gap: 17px;
  flex-wrap: wrap;
}
.library-menu-item {
  cursor: pointer;
  border: 1px solid #cfc0c0;
  width: 218px;
  text-align: center;
  padding: 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  font-size: 13px;
}
.activeCateogryLink a {
  color: var(--ea-text-color-1);
  font-weight: 700;
}
