@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: unset !important;
  color: white;
  width: 100% !important;
  background-image: unset;
}
.header-container-wrapper {
  background: var(--navbar-wrapper-background-color);
  width: 100%;
  padding-bottom: 9px;
}
.header-below-image-background {
  height: 260px;
  background-size: cover;
  background-repeat: no-repeat;
  background-repeat: no-repeat;
  background-image: var(--library-header-background-image);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-weight: 700;
  color: white;
}
@media screen and (max-width: 990px) {
  .header-container {
    height: auto;
    padding-bottom: 34px;
    position: sticky;
    top: 0;
    /* background: white; */
    z-index: 10000;
    margin-top: -27px;
  }
}
.library-body {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.left-library-part {
  width: 44%;
  margin-top: 15px;
  border-radius: 10px;
  /* position: fixed; */
  /* top: 0; */
  /* left: 14px; */
  /* height: 100%; */
  display: flex;
  flex-direction: column;
}
.right-library-part {
  display: flex;
  gap: 24px;
}
.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: column;
  cursor: pointer;
  /* background: var(--library-books-item-background-color);
  padding: 16px; */
  gap: 24px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.book-item p {
  font-weight: 200;
  font-size: 13px;
  color: white;
  margin-top: -6px;
}
.each-sector-heading-para {
  position: absolute;
  bottom: -1px;
  left: 14px;
}
@media (max-width: 600px) {
  .book-item {
    display: flex;

    flex: 1 1 100%; /* 1 item per row for smaller screens */
  }
}
.library-book-info {
  width: 100%;
}
.book-item-img {
  position: relative;
}
.book-item-img h3 {
  font-size: 19px;
  font-weight: 500;
  color: white;
}
.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(--btn-background-color);
  padding-left: 24px;
  padding-right: 24px;
  color: white;
  margin-top: -38px;
  border-radius: 126px;
}
.category {
  margin-top: 80px;
}
.allBooksContainer {
  gap: 18px;
}
.library-header {
  display: flex;
  flex-direction: column;
}

.library-header-img {
  display: none;
}
.library-header-img img {
  width: 100%;
  /* object-fit: cover; */
}
.library-menu-item a {
  text-decoration: none;
  color: var(--ea-text-color-1);
  border-bottom: 1px solid #bac0da;
  padding-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
}

.library-menu-item:last-child a {
  border-bottom: none;
}
.menu-account {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 13px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  /* align-items: center; */
  background: var(--ea-primary-color);
  padding-bottom: 17px;
  padding-top: 17px;
  gap: 17px;
  flex-wrap: wrap;
  margin-bottom: -16px;
}
.menu-account a {
  color: var(--ea-text-color-1);
  border-bottom: 1px solid #bac0da;
  padding-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.menu-account div:first-child {
  font-size: 25px;
  font-weight: 700;
}
#menu-categories {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding: 13px;
  height: 100%;

  /* 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;
}

.categories-container {
  border-radius: 20px;
  margin-top: -61px;
}

@media screen and (max-width: 990px) {
  .left-library-part {
    position: fixed;
    max-height: 0;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    padding-right: 0.5rem;
  }
  .left-library-part.active {
    max-height: 100%;
    opacity: 1;
    z-index: 71;
    margin-top: 89px;
    /* margin-left: -66px; */
    display: flex;
  }

  .right-library-part {
    padding-left: unset;
  }
  .library-body {
    flex-direction: column;
  }
  .menu-account {
    flex-direction: column;
  }
  .navbar-collapse {
    display: none;
  }
}
