/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

  @media screen and (max-width: 768px) {
    .mobile-navbar {
      display: block !important;
    }
    .desktop-navbar {
      display: none !important;
    }
  }
  


.w3-bar {
  height: 60px !important; /* force W3.CSS override */
  align-items: center;
  display: flex;
}

.w3-bar-item {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  font-size: 16px;
}

  body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow-x: hidden;
  padding-top: 80px; /* <-- adjust based on your nav height */
}

footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: black;
  color: white;
  padding: 20px 20px;
}

  
  .wrapper {
  flex: 1;
}


.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.book-item {
  flex: 0 1 150px;
  display: flex;
  justify-content: center;
}

.book-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.book-link:hover {
  transform: scale(1.05);
}

.book-cover {
  width: 140px;
  height: 200px;
  background: linear-gradient(to right, #f3eacb, #f8f5e9);
  border: 4px solid #ccc;
  border-radius: 6px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-family: sans-serif;
}

.book-title {
  font-size: 13px;
  font-weight: bold;
  color: #1e3a8a;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.book-subtitle {
  font-size: 11px;
  font-weight: bold;
  color: #944d26;
  text-transform: uppercase;
  border-top: 1px solid #944d26;
  padding-top: 4px;
}


  .responsive-select-tag {
    width: 200px;
  }

  @media (max-width: 768px) {
    .responsive-select-tag {
      width: 100%;
    }
  }


.pagination {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0.5rem;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.pagination a,
.pagination span,
.pagination em {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.pagination em {
  background-color: #007bff;
  color: #fff;
  font-style: normal;
}

.pagination .disabled {
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
}


@media (max-width: 576px) {
  .pagination {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span,
  .pagination em {
    padding: 6px 10px;
    font-size: 0.85rem;
    min-width: 32px;
  }
}

.custom-flash {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  color: white;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: fadeOut 3.5s ease-out forwards;
}

/* Color types */
.custom-flash.notice {
  background-color: #198754; /* Bootstrap success */
}

.custom-flash.alert,
.custom-flash.error {
  background-color: #dc3545; /* Bootstrap danger */
}

@keyframes fadeOut {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
