body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", Arial, sans-serif;
  background-color: #f5f1e8;
  color: #2c2a25;
}

/* Header and Title Styling*/
.page-header {
  padding: 80px 24px;
  text-align: center;
}

.tagline {
  margin-top: 16px;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b5e34;
}

h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 16px auto 0;
  background-color: #8b5e34;
  border-radius: 999px;
}

/* Menu & Side Menu */
.menu-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #3a332a;
  background-color: #fffdf8;
  border: 1px solid #d8c7ad;
  border-radius: 7px;
  font-size: 19px;
  cursor: pointer;
}

.menu-button:hover {
  background-color: #efe2cf;
}

.side-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(44, 42, 37, 0.45);
  z-index: 30;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(220px, 75%);
  height: 100vh;
  padding: 18px;
  box-sizing: border-box;
  background-color: #fffaf0;
  border-right: 1px solid #d8c7ad;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 31;
}

.side-menu.open {
  transform: translateX(0);
}

.close-menu {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: auto;
  color: #fffdf8;
  background-color: #9b3d30;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.close-menu:hover {
  background-color: #7f3027;
}

.side-menu-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.side-menu-links a {
  padding: 10px 12px;
  color: #3a332a;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.side-menu-links a:hover {
  background-color: #efe2cf;
}

.side-menu-links a.active-page {
  color: #fffdf8;
  background-color: #3a6b5c;
  border-color: #3a6b5c;
}

.side-menu-links a.active-page:hover {
  background-color: #2f574b;
}

/* No Books Found Yet Style */
.empty-state {
  margin: 28px auto 0;
  color: #7f6f5f;
  font-size: 15px;
  text-align: center;
}

.empty-state img {
  width: 230px;
  display: block;
  margin: 0 auto -30px;
  opacity: 0.75;
}

.empty-state p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #6f5f50;
}


/* Add Book Form Style*/
.reading-list {
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.book-form,
.edit-form {
  display: grid;
  gap: 15px;
  padding: 30px;
  background-color: #fffaf0;
  border: 1px solid #d8c7ad;
  border-radius: 8px;
}

.book-form label,
.edit-form label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #3a332a;
}

.book-form input,
.book-form textarea,
.book-form select,
.edit-form input,
.edit-form textarea,
.edit-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  color: #2c2a25;
  background-color: #fffdf8;
  border: 1px solid #c9b99f;
  border-radius: 6px;
}

.book-form select {
  cursor: pointer;
}

.book-form select:focus {
  outline: 2px solid #8b5e34;
  outline-offset: 1px;
}

.book-form textarea,
.edit-form textarea {
  min-height: 100px;
  resize: vertical;
}


.book-form button {
  padding: 12px 18px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #8b5e34;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.book-form .confirm-website-button,
.edit-form .confirm-website-button {
  color: #fffdf8;
  background-color: #2f7d5b;
  border-radius: 999px;
}

.book-form .confirm-website-button:hover,
.edit-form .confirm-website-button:hover {
  background-color: #256548;
}

.book-form .remove-website-button,
.edit-form .remove-website-button {
  color: #fffdf8;
  background-color: #b23b32;
  border-radius: 6px;
}

.book-form .remove-website-button:hover,
.edit-form .remove-website-button:hover {
  background-color: #8f2f28;
}

.hidden {
  display: none;
}

.show-add-form {
  padding: 14px 22px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #3a6b5c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.show-add-form:hover {
  background-color: #2f574b;
}

.add-book-area {
  margin: 12px 0 8px;
  padding-top: 10px;
  text-align: center;
}

.add-book-area::before {
  content: "";
  display: block;
  width: 180px;
  height: 2px;
  margin: 0 auto 12px;
  background-color: #d8c7ad;
  border-radius: 999px;
}

.add-modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 24px;
  background-color: rgba(44, 42, 37, 0.65);
  overflow-y: auto;
}

.add-modal.open {
  display: grid;
  place-items: center;
}



.book-form label.hidden {
  display: none;
}

.add-modal-content,
.edit-modal-content {
  width: min(700px, 100%);
  padding: 30px;
  background-color: #fffaf0;
  border: 1px solid #d8c7ad;
  border-radius: 8px;
}

.add-modal-content h2,
.edit-modal-content h2 {
  margin-top: 0;
  color: #3a332a;
}

/* Website Add Button */
.website-section,
.edit-website-section {
  display: grid;
  gap: 12px;
}

.website-fields,
.edit-website-fields {
  display: grid;
  gap: 12px;
}

.website-field {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #3a332a;
}

.add-website-button,
.edit-add-website-button {
  width: fit-content;
  padding: 9px 13px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3a332a;
  background-color: #fffdf8;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  cursor: pointer;
}

.add-website-button:hover,
.edit-add-website-button:hover {
  background-color: #efe2cf;
}

.confirmed-website-text {
  flex: 1;
  padding: 8px 10px;
  color: #3a332a;
  background-color: #f2eadf;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  text-align: left;
  word-break: break-word;
}

/* Making the remove button */
.website-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.website-input-row input {
  flex: 1;
}

.confirm-website-button,
.remove-website-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.confirm-website-button {
  color: #fffdf8;
  background-color: #2f7d5b;
  border-radius: 999px;
}

.confirm-website-button:hover {
  background-color: #256548;
}

.remove-website-button {
  color: #fffdf8;
  background-color: #b23b32;
  border-radius: 6px;
}

.remove-website-button:hover {
  background-color: #8f2f28;
}

/* Fixing Genre Tags */
.genre-input-row,
.edit-genre-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.genre-input-row input,
.edit-genre-input-row input {
  flex: 1;
}

.add-genre-button,
.edit-add-genre-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #3a6b5c;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.add-genre-button:hover,
.edit-add-genre-button:hover {
  background-color: #2f574b;
}

.genre-tags,
.edit-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;

}

.book-form .genre-tag,
.edit-form .genre-tag,
.genre-filter-tags .genre-tag {
  padding: 5px 8px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #5b4634;
  background-color: #f6efe4;
  border: 1px solid #e1d2bb;
  border-radius: 999px;
  cursor: pointer;
}


.book-form .genre-tag:hover,
.edit-form .genre-tag:hover,
.genre-filter-tags .genre-tag:hover {
  color: #fffdf8;
  background-color: #8b5e34;
  border-color: #8b5e34;
}

/* Optional Details Style */
.optional-section {
  display: grid;
  gap: 15px;
}

.optional-section summary {
  width: fit-content;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #9a8a78;
  list-style: none;
}

.optional-section summary::-webkit-details-marker {
  display: none;
}

.optional-section summary::after {
  content: " +";
  color: #b08a5a;
}

.optional-section[open] {
  padding: 16px;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
}

.optional-section[open] summary {
  margin-bottom: 8px;
}

.optional-section[open] summary::after {
  content: " -";
}

.optional-section label {
  font-size: 14px;
  font-weight: 500;
  color: #7f6f5f;
}

.optional-section input,
.optional-section textarea,
.optional-section select {
  font-size: 14px;
  color: #4b443b;
  background-color: #fffdf8;
  border-color: #e1d2bb;
}

.optional-section input::placeholder,
.optional-section textarea::placeholder {
  color: #b0a08d;
}

/* Adding Book List Style */
.book-list {
  margin-top: 40px;
  text-align: center;
}

.book-cover {
  display: block;
  width: 140px;
  max-width: 100%;
  margin: 12px 0 16px;
  border-radius: 6px;
  border: 1px solid #d8c7ad;
}

/*Image Placeholder*/
.book-cover-placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 150px;
  margin: 12px 0 16px;
  color: #fffdf8;
  font-size: 48px;
  font-weight: 700;
  border-radius: 6px;
}

.book-list h2 {
  margin-bottom: 18px;
  font-size: 28px;
  color: #3a332a;
}

.book-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;
  gap: 18px;
}

.book-card {
  background-color: #fffdf8;
  border: 1px solid #d8c7ad;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44, 42, 37, 0.08);
  cursor: pointer;
}

.book-card-body h3.long-title {
  font-size: 16px;
}

.book-card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  color: #111111;
  overflow-wrap: anywhere;
}

.book-card p {
  margin: 8px 0;
  line-height: 1.5;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.book-card-cover {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 10px;
  color: #fffdf8;
  text-align: center;
  overflow: hidden;
}

.book-card-cover span {
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
}

.book-card-body {
  padding: 12px;
}

.book-card-author {
  margin: 0 0 10px;
  font-size: 14px;
  color: #7a4d34;
}

.book-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.book-card-meta span {
  padding: 4px 7px;
  font-size: 12px;
  color: #3a332a;
  background-color: #f2eadf;
  border-radius: 6px;
}

.book-card-chapter {
  margin: 0 0 8px;
  font-size: 15px;
  color: #3a332a;
}

.card-rating {
  margin: 0 0 10px;
  color: #c48a2c;
  font-size: 13px;
  letter-spacing: 1px;
}

.book-card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #e5d8c4;
  padding-top: 12px;
}

.book-card-cover img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* Delete button */
.delete-book {
  margin-top: 12px;
  padding: 10px 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #9b3d30;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.delete-book:hover {
  background-color: #7f3027;
}



/* Adding Edit Form Popup */
.edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 24px;
  background-color: rgba(44, 42, 37, 0.65);
  overflow-y: auto;
}

.edit-modal.open {
  display: grid;
  place-items: center;
}

/* Edit Button */
.edit-book {
  margin-top: 12px;
  margin-right: 8px;
  padding: 10px 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #4f6f8f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.edit-book:hover {
  background-color: #3f5a75;
}


/* Cancel Button */
.close-edit {
  margin-top: 10px;
  padding: 12px 18px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #9b3d30;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.close-edit:hover {
  background-color: #7f3027;
}


/* Update Button */
.edit-form button[type="submit"] {
  margin-top: 10px;
  padding: 12px 18px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #3a6b5c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.edit-form button[type="submit"]:hover {
  background-color: #2f574b;
}


/* Star Ratimg */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating button {
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: #c48a2c;
  background: none;
  border: none;
  cursor: pointer;
}

.star-rating button:hover {
  transform: scale(1.12);
}

.star-rating button:focus {
  outline: 2px solid #8b5e34;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Status Filter */
.book-filters {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.status-filter,
.type-filter,
.sort-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.status-filter-button,
.type-filter-button,
.sort-filter-button {
  padding: 9px 12px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3a332a;
  background-color: #fffaf0;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  cursor: pointer;
}

.status-filter-button:hover,
.type-filter-button:hover,
.sort-filter-button:hover {
  background-color: #efe2cf;
}

.status-filter-button.active,
.type-filter-button.active,
.sort-filter-button.active {
  color: #fffdf8;
  background-color: #8b5e34;
  border-color: #8b5e34;
}

.book-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 24px 0 28px;
}

.stat-item {
  min-width: 120px;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid #d8c7ad;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: #2c2a25;
}

.stat-item span {
  font-size: 14px;
  color: #7a4d34;
}

/* Genre Filter */
.genre-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.genre-filter-row input {
  width: min(280px, 100%);
  box-sizing: border-box;
  padding: 9px 12px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  color: #2c2a25;
  background-color: #fffdf8;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
}

.add-genre-filter-button {
  padding: 9px 13px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #3a6b5c;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.add-genre-filter-button:hover {
  background-color: #2f574b;
}

.genre-filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}



/* Header Search Bar */
.top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 56px;
  background-color: #fffdf8;
  border-bottom: 1px solid #e5d8c4;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 20px;
  color: #111111;
}

.site-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-logo span {
  font-style: italic;
  color: #3a6b5c;
}

.top-search {
  margin-left: auto;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  color: #2c2a25;
  background-color: #fffdf8;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
}

.search-input:focus {
  outline: 2px solid #8b5e34;
  outline-offset: 2px;
}

/* More Details Pop-up */
.details-modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 24px;
  background-color: rgba(44, 42, 37, 0.65);
  overflow-y: auto;
  z-index: 20;
}

.details-modal.open {
  display: grid;
  place-items: center;
}

.details-modal-content {
  position: relative;
  width: min(760px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 72px 30px 30px;
  background-color: #fffaf0;
  border: 1px solid #d8c7ad;
  border-radius: 8px;
}

.close-details {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fffdf8;
  background-color: #9b3d30;
  border: none;
  border-radius: 8px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.details-cover {
  display: block;
  max-width: 700px;
  max-height: 1000px;
  object-fit: contain;
  margin: 0 auto 24px;
  border-radius: 6px;
}

.details-websites {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.details-websites a {
  font-size: 15px;
  color: #3a6b5c;
  font-weight: 600;
}

.details-content {
  text-align: center;
}

.details-content h2 {
  max-width: 620px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  color: #2c2a25;
  text-align: center;
}

.details-text-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 22px;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
}

.details-text-box p {
  margin: 10px auto;
  font-size: 18px;
  line-height: 1.6;
  color: #3f3a34;
}

.details-text-box strong {
  margin-right: 3px;
  color: #8b5e34;
  font-size: 18px;
  font-weight: 700;
}

.details-text-box 
.details-long-text {
  max-width: 580px;
  margin: 14px auto;
  font-size: 14px;
  line-height: 1.7;
  color: #5f554c;
}

/* Import, Export Buttons */
.backup-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 30px;
}

.export-books,
.import-books-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5b4634;
  background-color: #fffdf8;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  cursor: pointer;
}

.export-books:hover,
.import-books-label:hover {
  background-color: #efe2cf;
}

.import-books {
  display: none;
}

/* Settings Page */
.site-logo {
  text-decoration: none;
}

.top-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-links a {
  font-size: 14px;
  font-weight: 700;
  color: #5b4634;
  text-decoration: none;
}

.top-links a:hover {
  color: #3a6b5c;
}

.settings-page {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 24px;
  text-align: center;
}

.settings-page h1 {
  font-size: 42px;
}

.settings-intro {
  color: #7f6f5f;
  font-size: 17px;
}

.settings-section {
  margin-top: 36px;
}

.settings-section h2 {
  color: #3a332a;
}

.settings-section p {
  color: #6f5f50;
  line-height: 1.6;
}

.settings-panel {
  padding: 24px;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.settings-export-books,
.settings-import-books-label,
.clear-books {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #5b4634;
  background-color: #fffaf0;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  cursor: pointer;
}

.settings-export-books:hover,
.settings-import-books-label:hover {
  background-color: #efe2cf;
}

.settings-import-books {
  display: none;
}

.clear-books {
  color: #fffdf8;
  background-color: #9b3d30;
  border-color: #9b3d30;
}

.clear-books:hover {
  background-color: #7f3027;
}

/* Footer Style */
.page-footer {
  max-width: 760px;
  margin: 50px auto 24px;
  padding: 0 24px;
  text-align: center;
  color: #8a7a68;
  font-size: 14px;
}

/* About Page */
.about-page {
  max-width: 820px;
  margin: 64px auto;
  padding: 0 24px;
}

.about-hero {
  text-align: center;
  margin-bottom: 42px;
}

.about-hero h1 {
  font-size: 42px;
}

.about-hero p {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6f5f50;
}

.about-section {
  margin-top: 24px;
  padding: 24px;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
}

.about-section h2 {
  margin-top: 0;
  color: #3a332a;
}

.about-section p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #5f554c;
}

/* Contact Page */
.contact-page {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 24px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 42px;
}

.contact-hero p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6f5f50;
}

.contact-section {
  display: grid;
  gap: 12px;
  max-width: 360px;
  margin: 36px auto 0;
}

.contact-section a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #3a332a;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.contact-section a:hover {
  background-color: #efe2cf;
}

.contact-section img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Roadmap Page */
.roadmap-page {
  max-width: 820px;
  margin: 64px auto;
  padding: 0 24px;
}

.roadmap-hero {
  text-align: center;
  margin-bottom: 42px;
}

.roadmap-hero h1 {
  font-size: 42px;
}

.roadmap-hero p {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6f5f50;
}

.roadmap-section {
  padding: 24px;
  background-color: #fffdf8;
  border: 1px solid #e1d2bb;
  border-radius: 8px;
}

.roadmap-section h2 {
  margin-top: 0;
  color: #3a332a;
}

.roadmap-list {
  display: grid;
  gap: 14px;
}

.roadmap-item {
  padding: 16px;
  background-color: #fffaf0;
  border: 1px solid #e5d8c4;
  border-radius: 8px;
}

.roadmap-status {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fffdf8;
  background-color: #3a6b5c;
  border-radius: 999px;
}

.roadmap-item h3 {
  margin: 0 0 8px;
  color: #2c2a25;
}

.roadmap-item p {
  margin: 0;
  line-height: 1.6;
  color: #6f5f50;
}



/* Making the website Mobile Compatiable */
@media (max-width: 700px) {
  .book-card-body h3,
  .details-content h2,
  .details-text-box p,
  .details-websites a,
  .confirmed-website-text {
    overflow-wrap: anywhere;
  }

  .details-modal-content {
    width: 100%;
    box-sizing: border-box;
  }

  .details-text-box {
    box-sizing: border-box;
  }

  /* Title, Header, Search Bar */
    .top-bar {
      flex-direction: row;
      justify-content: flex-start;
      gap: 10px;
      padding: 12px 18px;
    }

    .top-search {
      width: 180px;
      max-width: 180px;
      margin-left: 0;
    }

    .search-input {
      width: 100%;
    }

  .page-header {
    padding: 48px 20px;
  }

  h1 {
    font-size: 34px;
  }

  .tagline {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Top Bar, Search, And Header Space */
    .site-logo {
    font-size: 18px;
  }

  .site-logo-img {
    width: 28px;
    height: 28px;
  }

  .search-input {
    font-size: 14px;
    padding: 9px 14px;
  }

  .book-list h2 {
    font-size: 24px;
  }

  .add-book-area {
    margin: 22px 0;
  }

  .show-add-form {
    width: min(260px, 100%);
    padding: 13px 18px;
    font-size: 16px;
  }

  .empty-state img {
    width: 180px;
    margin-bottom: -22px;
  }

  .empty-state p {
    font-size: 16px;
  }

  /* Books Stats */
  .book-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 18px 0;
    padding: 0 16px;
  }

  .stat-item {
    min-width: 0;
    padding: 0 12px;
  }

  .stat-item:nth-child(2),
  .stat-item:nth-child(4) {
    border-right: none;
  }

  .stat-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* Book Cards */
  .book-cards {
    grid-template-columns: minmax(220px, 280px);
    justify-content: center;
    gap: 20px;
  }

  .book-card-cover {
    min-height: 150px;
  }

  .book-card-cover img {
    height: 150px;
  }

  .book-card-body {
    padding: 14px;
  }

  .book-card-body h3 {
    font-size: 19px;
  }

  .book-card-body h3.long-title {
    font-size: 16px;
  }

  .book-card-actions {
    gap: 10px;
  }

  .edit-book,
  .delete-book {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Filters */
  .book-filters {
    gap: 18px;
  }

  .status-filter,
  .type-filter {
    gap: 7px;
    padding: 0 10px;
  }

  .status-filter-button,
  .type-filter-button {
    padding: 8px 10px;
    font-size: 13px;
  }

  .genre-filter-row {
    padding: 0 14px;
  }

  .genre-filter-tags {
    padding: 0 14px;
  }

  /* More Details */
  .add-modal,
  .edit-modal,
  .details-modal {
    padding: 14px;
  }

  .add-modal-content,
  .edit-modal-content,
  .details-modal-content {
    padding: 64px 18px 24px;
  }

  .details-content h2 {
    font-size: 30px;
  }

  .details-cover {
    width: 300px;
    height: 290px;
    object-fit: contain;
  }

  .details-text-box {
    padding: 16px;
  }

  .details-text-box p {
    font-size: 16px;
  }

  .details-text-box strong {
    font-size: 16px;
  }

  /* Add & Edit Buttons & Input */
  .book-form,
  .edit-form {
    padding: 20px;
    gap: 13px;
  }

  .book-form input,
  .book-form textarea,
  .book-form select,
  .edit-form input,
  .edit-form textarea,
  .edit-form select {
    font-size: 15px;
    padding: 11px 12px;
  }

  .website-input-row,
  .genre-input-row,
  .edit-genre-input-row {
    gap: 6px;
  }

  .confirm-website-button,
  .remove-website-button,
  .add-genre-button,
  .edit-add-genre-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 20px;
  }

  .star-rating button {
    font-size: 26px;
  }

  .book-form button,
  .edit-form button[type="submit"],
  .close-edit {
    font-size: 15px;
  }

  /* About & Setting Page Mobile */
  .settings-page,
  .about-page {
    margin: 42px auto;
    padding: 0 18px;
  }

  .settings-page h1,
  .about-hero h1 {
    font-size: 32px;
  }

  .settings-intro,
  .about-hero p {
    font-size: 16px;
    line-height: 1.6;
  }

  .settings-panel,
  .about-section {
    padding: 18px;
  }

  .settings-actions {
    flex-direction: column;
    align-items: center;
  }

  .settings-export-books,
  .settings-import-books-label,
  .clear-books {
    width: min(260px, 100%);
  }

  /* Contact Page */
  .contact-page {
  margin: 42px auto;
  padding: 0 18px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-hero p {
    font-size: 16px;
  }

  .contact-section a {
    padding: 12px 14px;
  }

  /* Roadmap Page Mobile */
  .roadmap-page {
  margin: 42px auto;
  padding: 0 18px;
}

.roadmap-hero h1 {
  font-size: 32px;
}

.roadmap-hero p {
  font-size: 16px;
}

.roadmap-section {
  padding: 18px;
}
}