/***********************************/
/* CSS for the book list           */
/*                                 */
/* This controls the format of     */
/* books and book lists.  There    */
/* 3 situations where a book list  */
/* is generated.  One is the       */
/* overall book list.  The second  */
/* is the display of featured      */
/* books.  And the third is the    */
/* display of book series.  This   */
/* is an offshoot of the full      */
/* book list.  The user will have  */
/* the opportunity to view just    */
/* books that are in a series.     */
/*                                 */
/*                                 */
/* The main difference between the */
/* three is the amount of space to */
/* display the book detail.  On    */
/* the full list there is no room  */
/* for a detail display so the     */
/* full list is blured out and the */
/* detail is displayed over top of */
/* the list.  on the series list   */
/* for now there aren't that many  */
/* books in any existing series so */
/* the detail can be displayed     */
/* under the line of book imags.   */
/* With the featured display it    */
/* display only 4 books in a row.  */
/* The detail will have to be put  */
/* on top of the main page.        */
/*                                 */
/*                                 */
/***********************************/


.book-list-header {
  height: 75px;
  width: 850px;
  padding-top: 25px;
  background-image: url("../images/small-header-background.png");
}
.booklist-header-font {
      font-family: "Times New Roman";
      font-weight: 800;
      font-size: 3.0em;
      line-height: 1.0;
      color: #4d6e25; }

#book-list-container {
  max-height: 400px;
  width: 850px;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: auto;
}


.featured-book-list-container {
  overflow: hidden;
  max-height: 300px;
  width: 650px;
  background: white;
}

#detail-list-container {
  position: relative;
  height: 400px;  /* 400/500 */
  width: 800px;
  margin-left: 30px;
  margin-top: 30px;
}

.detail-window {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

.detail-window.show {
  opacity: 1;
  pointer-events: auto;
}

/*  This defines the way the book list is displayed.  */
/*  There are two options.  4 columns or 5 colums.    */
/*  Always use this for a book display.               */
/*  Then add the .book-list-cols5 or .book-list-cols4 */
/*    to control how many columns in the grid         */

#book-list-grid {
  display: grid;
  column-gap: 50px;
  row-gap: 10px;
  justify-items: center;
  align-items: start;
}

.book-list-cols-5 {
  grid-template-columns: auto auto auto auto auto;
}

.book-list-cols-4 {
  grid-template-columns: auto auto auto auto;
}



.book-detail-grid {
  display: grid;
  grid-template-columns: auto auto;
  width: 100%;
  height: 100%;   /* 85% */
  column-gap: 5px;
  row-gap: 10px;
  justify-items: center;
  align-items: start;
}

.book-card {
  width: 100px;
  height: 133px;
  text-align: center;
  background-color: lightGray;
  cursor: pointer;
}

div.detail-col1 {
  width: 100%;
  height: 100%;
  text-align: center;
  margin-left: 10px;
}

div.detail-col2 {
  width: 100%;
  height: 100%;
  text-align: center;
  margin-left: 10px;
}

div.detail-desc {
  width: 80%;
  height: 250px;
  margin: 0 auto;
  font-family: "Times New Roman";
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  color: #4d6e25;
} 

.large-size-image {
  width: 250px;
  height: 350px;
  pointer-events: none;
}

.small-size-image {
  width: 100px;
  height: 133px;
  cursor: pointer;
}

.image-shadow {
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.5);
}
.selected {
  transform: scale(1.08);
    box-shadow: 0 0 12px rgba(80, 100, 40, 0.8);
    border: 2px solid #6b7f2a;
}

.small-size-image.selected-book {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  transition: transform 1.0s ease, box-shadow 0.2s ease;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
  transition: filter 0.2s;
}

.large-amazon-button {
  cursor: pointer;
  align-items: left;
  background-color: #6f8c3a;
  color: white;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.large-amazon-button:hover {
  background-color: #d8b04c;
  color: #2f3b1f;
}


.f1 {
  font-family: "Times New Roman";
  font-weight: 400;
  font-size: 0.8em;
  line-height: 1.0;
  color: #4d6e25;
}

.f2 {
  font-family: "Times New Roman";
  font-weight: 800;
  font-size: 1.5em;
  line-height: 1;
  /*margin-bottom: 5px; */
  padding: 0;
  color: #4d6e25;
}

.f3 {
  font-family: "Times New Roman";
  font-weight: 800;
  font-size: 1.25em;
  line-height: 1;
  /*margin-bottom: 5px; */
  padding: 0;
  color: #4d6e25;
}

.f4 {
  font-family: "Times New Roman";
  font-weight: 400;
  font-size: 0.9em;
  line-height: 1.0;
  color: #4d6e25;
}

.f5 {
  font-family: "Times New Roman";
  font-weight: 400;
  font-size: 0.75em;
  line-height: 1.0;
  color: #4d6e25;
}

.book_small_image {
  width: 75;
  height: 100;
}

.book_large_image {
  width: 75;
  height: 100;
}

/*================================================*/
/*                 Future enhancements            */
/*================================================*/

.series-detail-container {
  position: relative;
  width: 650px;
  height: 350px;
}

.series-detail-window {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}

.series-detail-window.show {
  opacity: 1;
}
