@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;
}

.header-container {
  height: 100% !important;
  color: white;
  width: 100% !important;
  background-image: unset;
}
.header-container-wrapper {
  width: 100%;
  padding-bottom: 9px;
}
.header-container .library-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-top: 80px;
  padding-bottom: 100px;
}
.header-container .library-header h2 {
  margin-top: 67px;
  font-family: 'Exo', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 65px;
  letter-spacing: 0em;
  text-align: center;
  color: var(--ea-text-color-3);
}
.header-container .library-header img {
  width: 100%;
}
.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(32% - 10px);
  box-sizing: border-box;
  flex-direction: column;
  cursor: pointer;
  align-items: center;

  /* gap: 24px; */
  border-radius: 10px;
  margin-bottom: 18px;
}
.book-item h3 {
  font-size: 19px;
  font-weight: 500;
}
.book-item p {
  font-weight: 200;
  font-size: 13px;
}
@media (max-width: 990px) {
  .book-item {
    display: flex;

    flex: 1 1 48%; /* 1 item per row for smaller screens */
  }
}
.library-book-info {
  width: 100%;
  background: var(--library-books-item-background-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  max-width: 89%;
  margin-top: -43px;
  border-radius: 5px;
  padding: 17px;
  height: 150px;
  color: var(--ea-text-color-1);
}
.book-item-img {
  width: 100%;
}
.book-item-img img {
  width: 100%;
  border-radius: 7px;
}
.library-book-info .read-more-button {
  font-size: 12px;
  margin-top: 0px;
  color: var(--ea-text-color-1);
  text-align: right;
}
.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;
}
.category a {
  display: flex;
  justify-content: center;
  align-content: center;
  margin-top: 20px;
}
.category a button {
  padding-left: 30px;
  padding-right: 30px;
}
.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;
}
.activeCateogryLink a {
  color: var(--ea-text-color-1);
  font-weight: 700;
  border-bottom: 1px solid;
}
