.book-info {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  z-index: 3;
}

.book-content {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: var(--text);
  color: var(--background);
  backdrop-filter: blur(3px);
  min-height: 100vh;
  max-width: 100%;

  z-index: 100;
}
.back-btn {
  position: absolute;
  top: 2rem;
  left: 2rem;

  /* background-color: rgb(102, 0, 0); */
  border: none;
  background: none;
  /* padding: 1rem 2rem; */
  /* color: wheat; */
}
.back-btn svg {
  stroke: var(--background);
}

.title-container {
  display: flex;
  flex-direction: column;
  /* margin: 0 0 2rem 0; */
}
.title-container .book-title {
  font-size: 2rem;
  color: var(--background);
}

.title-container .publish-year {
  font-style: italic;
  color: var(--background);
}

.card-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* background: #5a5a5a; */
}
.card-bg button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
}
.book-thumbnail {
  margin: 3rem 0;
}
.button-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1rem 0;
  
}
button span {
  font-size: 0.8rem;
}
.more-info,
.add-favorite,
.remove-favorite {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  /* gap: .5rem; */
  align-items: center;
}
.more-info {
  background-color: var(--background);
  color: var(--text);
}
.add-favorite {
  background-color: var(--primary);
  color: var(--text);
}
.add-favorite svg {
  fill: var(--secondary);
}
.remove-favorite {
  background-color: var(--accent);
  color: var(--secondary);
}
.remove-favorite svg {
  stroke: var(--secondary);
}

.category {
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 300;
  margin-top: 0;
}
.description {
  max-height: 100px;
  font-size: small;
  width: 50%;
  overflow: auto;
  margin: 1rem 0;
}

@media (min-width: 1024px) {
  .book-info {
    display: none;
    position: sticky;
    top: 0;
    right: 0;
    min-width: 30%;
    align-self: flex-start;
    font-size: 0.8rem;
    margin: 2rem;
    border-radius: 1rem;
    
  }
  .search-result {
    min-width: 50%;
  }

  .book-content {
    position: initial;
  }
  .book-content {
    column-gap: 2rem;
  }

  .title-container .book-title {
    margin-top: 2rem;
    font-size: 2rem;
  }
  .description {
    max-height: 100px;
    font-size: small;
    width: 50%;
    overflow: auto;
    margin: 1rem 0;
  }
  .book-thumbnail {
    margin: 0;
  }
}
