*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: #FADADD;
    /* background-color: whitesmoke; */

}
/* nav bar */
.navigationBar{
    display: flex;
    justify-content: center;
    gap: 50px;
    justify-content: space-between;

}
/* dark mode btn styling */
#DarkMode{
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
}
/* Book text color  */
.bookContainer{
    color: #DC143C;
    padding-top: 20px;
}

/* grid for books viws class remove and add by change view button */
.bookContainerGrid{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3,1fr);
    /* color: #DC143C;  */
    gap: 10px;
    padding-top: 10px;
} 

/* div in vich book is stored  */
.book{
    text-align: center;
    padding-top: 30px;
    border: 1px black solid;
    /* box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; */
    /* box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; */
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    background-color:#DC143C;
    border-radius: 8px;

}
/* BOOK INFO BAGROUND COLORING */
.BookInfo{
    background-color: #DC143C;
}
.authorName{
    background-color: #DC143C;
}
.publisherDateAndName{
    background-color: #DC143C;
}
.bookTitle{
    background-color: #DC143C;
}
.buyLinkContainer{
    background-color: #DC143C;
}
.buyLink{
    background-color: #DC143C;
}
.previewLinkContainer{
    background-color: #DC143C;
}
.previewLink{
    background-color: #DC143C;
}


/* Change view button */
#viewChangeBtn{
    border: 1px solid black;
    width: 100px;
    text-align: center;
    border-radius: 5px;
    background-color: #FFB6C1;
    color: #FF69B4;
    cursor: pointer;
}

#viewChangeBtn:hover{
    background-color: #FFDAB9;
}

/*  preview card style  */

/* Overlay with blur effect */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .preview-overlay.active {
    display: flex;
    opacity: 1;
  }
  
  /* Centered card with smooth animation */
  .preview-card {
    display: flex;
    width: 700px;
    max-width: 90vw; /* Responsive width */
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .preview-overlay.active .preview-card {
    transform: scale(1);
  }
  
  /* Left image section */
  .preview-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    /* background-color: black; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
  }
  
  .book-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
  }
  
  /* Right details section */
  .preview-right {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
  }
  
  /* Close button in top-right corner */
  .close-preview {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .close-preview:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
  }
  
  .close-preview::before,
  .close-preview::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #333;
  }
  
  .close-preview::before {
    transform: rotate(45deg);
  }
  
  .close-preview::after {
    transform: rotate(-45deg);
  }
  
  /* Rest of your styles... */
  .book-title {
    margin: 0 0 10px 0;
    color: #222;
    font-size: 1.8rem;
    font-weight: 600;
  }
  
  .book-author {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1.1rem;
  }

  .book-publisher {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1.1rem;
  }
  
  .book-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: #555;
    font-size: 0.9rem;
  }
  
  .book-description {
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
  }
  
  .read-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }


  /* Details Button styling */

/* CSS */
.button-4 {
  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 6px 16px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.button-4:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}

.button-4:disabled {
  background-color: #FAFBFC;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959DA5;
  cursor: default;
}

.button-4:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.button-4:focus {
  outline: 1px transparent;
}

.button-4:before {
  display: none;
}

.button-4:-webkit-details-marker {
  display: none;
}