/* static/css/style.css */

/* ################################################################################## */
/* ######################## display-feature.html elements ########################### */
/* ################################################################################## */

.pagination {
    display: flex;
    justify-content: center;
    padding: 1em 0;
}

.pagination a, .pagination strong {
    color: #333;
    text-decoration: none;
    margin: 0 0.3em;
    padding: 0.3em 0.5em;
    border: 1px solid #333;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #333;
    color: #fff;
}

.pagination strong {
    background-color: #333;
    color: #fff;
}

.display-feature-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  border-bottom: 2px solid #ccc;
}

.display-feature-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid #ccc;
}

.display-header {
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  border-bottom: 2px solid #ccc;
}

.display-feature-top {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1.4rem; /* Adjust the gap between the button and publication date as needed */
}

.publication-date {
  font-size: 1.3rem;
}

.display-feature-title {
  font-size: 3rem;
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: left;
}

.display-feature-author {
  margin-bottom: 20px;
  text-align: left;
  font-size: 1.5rem;
  order: 2; /* Ensure this is the last item */
}

.card-image-related-content {
  width: 150px;
  height: 100px;
  object-fit: cover;
}

.author-link {
  color: black;
  text-decoration: none;
}

.display-feature-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  padding-left: 1rem;
  justify-content: space-between;
}

.display-feature-main {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
  box-sizing: border-box;
}

.feature-image {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.display-feature-sidebar {
  flex-basis: 350px;
  padding: 20px;
  box-sizing: border-box;
}

.publication-card {
  padding: 20px;
  background-color: #f1f1f1;
  margin-bottom: 20px;
}

.display-feature-container pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'PT Serif', 'Georgia', serif;
}


/* ################################################################################## */
/* ############################# index.html elements ################################ */
/* ################################################################################## */


.form-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column; 
  padding: 22px; /* Adjust as needed */
  background-color: lightblue; /* Or whichever blue color you prefer */
  width: 100%;
  align-items: center; 
  justify-content: center;
  margin-right: auto;
  margin-bottom: 30px; /* space between the title and the carousel */
  margin-top: 17px;
}

/* Form field and button.
   Scoped to the homepage newsletter form only — this used to be a bare
   `form` element selector with `width: 20%`, which silently shrank every
   <form> on the public site (including /submit/'s submission forms) down
   to a 20%-wide column, squeezing every input/textarea/select inside it.
   That was the real cause of the "very narrow input fields" reports on
   /submit/ — the fields themselves were fine, the <form> around them
   wasn't. */
.form-container form {
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* This stacks .form-inner and other elements vertically */
  width: 20%; /* Default narrow width (kept for compatibility with other forms) */
}

/* Override for the subscription form on the homepage */
#subscribe-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.form-inner {
  display: flex;
  flex-direction: row; /* This stacks .form-field and .form-submit horizontally */
  justify-content: center; /* To center .form-field and .form-submit horizontally */
  width: 100%; /* Full width */
}

.form-field, .form-submit {
  display: flex;
}

.form-field {
  flex-grow: 1; /* This tells the form field to occupy as much space as it can */
  margin-right: 0px; /* There will be zero space between the input and button */
}

/* Adjust width of email input field */
.form-field input[type="email"] {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid #888;
  font-size: 14px;
}

.submit-button {
  background-color: rgb(56, 56, 56);
  height: 30px;
  width: 130px;
  color: #ececec;
  font-size: 0.9em;
}


/* The popup (background) */
.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* The popup (content) */
.popup-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The close button */
.close-button {
  color: #ccc;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.title-header {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid #ccc;

  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
  font-family: 'Arial', sans-serif;
}

.title-header h2 {
  display: inline-block;
  margin: 0;
  padding: 15px 0; /* space between the text and the lines */
  position: relative;
  top: -0px;
}

.slick-prev, .slick-next {
  display: none !important;
}


.slick-dots {
  position: absolute;
  bottom: 10px;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  left: -0px;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots li button {
  font-size: 0;  /* hides the default number inside the button */
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 5px;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: #757575;  /* color of non-active dots */
  border-radius: 0;
}

.slick-dots li.slick-active button {
  background: lightblue;  /* color of the active dot */
}

.slick-prev:hover, .slick-next:hover {
  color: #757575;
  background-color: #ffffff;
}

.slick-disabled {
  display: none !important;
}

.book-carousel {
  background-color: #ffffff;
  padding: 2em;
  position: relative;
}

.book-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.book-card-image img {
  object-fit: cover;
  justify-content: center !important;
  align-items: center !important;;
}

.book-card-image img {
  width: 150px;
  height: 225px;
  object-fit: cover;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 1em;
  box-shadow: 0px 3px 15px rgba(0,0,0,0.7);
}


@media (max-width: 600px) {
  .container_hometop {
    flex-direction: column;
  }

  .left_hometop,
  .right_hometop {
    flex: none;
    width: 100%;
  }
  
  .right_hometop {
    flex-direction: column;
  }
  
  .card_hometop_right {
    flex-direction: column;
  }

  .footer {
    font-size: 5px; /* Decrease as per requirement */
  }
  .footer-link {
    font-size: 5px; /* Decrease as per requirement */
  }

  .logo img {
    max-width: 150px; /* Decrease as per requirement */
    height: auto; /* Maintain aspect ratio */
  }

  .social-media a {
    font-size: 0.5rem; /* Decrease as per requirement */
  }
}

.hometop {
  background-color: #ececec;
  margin-bottom: 1rem;
}

.container_hometop {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Add this line */
  margin: 10px;
}

.left_hometop {
  flex: 1;
  height: auto;
}

.right_hometop {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  margin: 10px;
}

.card_hometop_left {
  margin: 10px;
  padding: 20px;
  height: 70%;
  box-sizing: border-box;
  flex: 1;
  border-radius: 5px;
  color: black;
  text-decoration: none;
  max-width: 100%;
  height: 100%;
}


.card_hometop_right {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
  border-radius: 5px;

}

.card-image {
  width: 100%;
  max-height: 60%; /* Adjust this percentage as needed */
  object-fit: cover;
}

.text-container_hp {
  margin-left: 20px;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  font-size: 1rem;
}

.title {
  font-family: 'PT Serif', 'Georgia', serif;
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: black;
  text-decoration: none;
}

.author-date {
  font-family: 'PT Serif', 'Georgia', serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: black;
  text-decoration: none;
}
.preview {
  font-family: 'PT Serif', 'Georgia', serif;
  font-size: 0.8rem;
}

.content-type-button {
  font-family: 'Arial Bold', sans-serif;
  font-size: 0.7rem;
  background-color: #2b2b2b7c;
  color: #ffffff;
  border: none;
  text-align: center;
  padding: 0.3rem 0.8rem;
  margin: 0.5rem 0;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  width: min-content;
  text-decoration: none;
  text-transform: uppercase;
}

.content-type-button:hover {
  background-color: #888888;
}


.main {
    flex-grow: 1;
}

footer {
    background: #ccc;
    color: #333;
    text-align: left;
    width: 100%;
    min-height: 220px;
}

.footer-link {
  display: inline-block;
  padding: 0 10px;
  text-decoration: none;
  color: inherit;
  margin-top: 1rem;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.logo img {
    max-height: 100px;
}

.social-media {
    display: flex;
    align-items: center;
}

.social-media a {
    color: #333;
    margin-left: 0.5rem;
    text-decoration: none;
    font-size: 1.9rem; /* Increase the size of the social media icons */
}

.social-media a:hover {
    color: #777;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Add media queries for medium and small browser windows */
@media (max-width: 980px) {
  header,
  .main {
    padding: 0.5rem 1rem;
  }


}

@media (max-width: 768px) {
  header,
  .main {
    padding: 0.5rem 1rem;
  }

  .hamburger {
    display: block;
  }

  nav ul.nav-open {
    display: flex;
  }

  .submit-button {
    width: 120px;
  }

  .display-feature-container {
    padding: 10px;
  }

  .display-feature-main {
    flex: 0 0 100%;
    padding-right: 0;
  }

  .display-feature-sidebar {
    flex: 0 0 100%;
  }

  .display-feature-header {
    padding: 10px;
  }

  .display-feature-title {
    font-size: 2rem;
  }

}

@media (max-width: 550px) {

  header,
  .main {
    padding: 0.5rem 1rem;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
  }

  .hamburger {
    display: block;
  }

  nav ul.nav-open {
    display: flex;
  }

nav ul li a {
  font-size: 0.3rem;
  letter-spacing: 0.04rem;
}

.submit-button {
  width: 100px;
}

.footer{
  flex-wrap: wrap;
}

}


h1 {
  font-family: 'PT Serif', 'Georgia', serif;
  text-align: center;
  font-weight: bold;
}

h2 {
  text-align: center;
  font-weight: normal;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.105rem;
  font-family: 'Arial', sans-serif;
}

h3 {
  font-family: 'PT Serif', 'Georgia', serif;
  text-align: center;
  font-weight: 500;
  font-size: 1.35rem;
}


h3, h4, h5{
  font-family: 'PT Serif', 'Georgia', serif;
}

h6 {
  font-family: 'PT Serif', 'Georgia', serif;
  text-align: left;
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 2%;
}

body {
  font-family: 'PT Serif', 'Georgia', serif;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #fff;
    margin: 0 auto; /* Center the top-header */
}

header,
.main {
  padding: 0rem 0rem;
}

header {
    display: flex; /* Add this line */
    align-items: center; /* Add this line */
    height: auto; /* Add this line */
    margin: 0 auto; /* Center the header */
}

nav {
  display: flex;
  flex-grow: 1;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid #ccc;
}


nav ul {
  list-style: none;
  padding: 0;
  flex-direction: row;
  display: flex;
}

nav ul li {
  display: inline;
  margin: 0 0rem;
  display: flex;
  align-items: center;
}

nav ul li a {
  color: black;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.77rem;
  letter-spacing: 0.07rem;
  font-family: 'Arial', sans-serif;
}

.nav-link {
  display: block;
  padding: 10px;
  text-decoration: none;
}

/* nav li {
  display: inline-block;
  margin: 0;
  padding: 0;
  height: 100%;
} */

nav ul li:hover .nav-link:before,
nav .nav-link.active:before {
  content: '[';
}

nav ul li:hover .nav-link:after,
nav .nav-link.active:after {
  content: ']';
}

@font-face {
  font-family: 'PT Serif';
  src: url('https:/nydumbos3bucket.s3.us-east-2.amazonaws.com/static/fonts/PTSerif-Regular.woff2') format('woff2'),
       url('https:/nydumbos3bucket.s3.us-east-2.amazonaws.com/static/fonts/PTSerif-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.hamburger {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
  }
  
  nav ul.nav-open {
    display: flex;
    flex-direction: column;
  }

.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  background-color: #1b1b1b;
  width: 100%;
}

.homepage-card {
    transition: 0.3s;
    border-radius: 5px;
    margin-bottom: 20px;
}

.homepage-card img {
    height: auto;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }
  
.col-md-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 100%;
  max-width: 100%;
}

.card1-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card1 {
  box-sizing: border-box;
  flex: 1;
  max-width: 250px;
  min-width: 250px;
  border-radius: 5px;
  margin: 10px;
  padding: 10px;
  color: black;
  text-decoration: none;
}

.card1 img {
  width: 100%;
  height: auto;
}

.card1 .title {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: black;
  text-decoration: none;
}

.card1 .author-date {
  font-size: 1rem;
  margin-bottom: 10px;
  color: black;
  text-decoration: none;
}

.card1 .preview {
  font-size: 0.8rem;
}

.author-list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.author-name-link {
  color: black;
  margin-bottom: 5px;   /* adds some spacing between the links */
}

@media (max-width: 430px) {
  nav {
    justify-content: center; /* Centers items horizontally */
    align-items: center;     /* Centers items vertically */         /* Takes the full viewport height */
  }

  nav ul {
    flex-direction: column;  /* Makes the items stack vertically */
    align-items: center;
    justify-content: center;

  }
  nav ul li {
    margin: 0 0;
    align-items: center; /* Add some margin for better spacing between the items */
    justify-content: center;
  }
}

@media (max-width: 600px) {

  .footer-link {
    font-size: 12px; /* Decrease as per requirement */
  }

  .logo img {
    max-width: 150px; /* Decrease as per requirement */
    height: auto; /* Maintain aspect ratio */
  }

  .social-media a {
    font-size: 1.3rem; /* Decrease as per requirement */
  }
}

/* ################################################################################## */
/* ############################# list-books.html elements ########################### */
/* ################################################################################## */


.bookcard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* Now the cards will center if fewer than max per row */
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;  /* Adjust to your site's layout */
}

.bookcard {
  flex: 0 0 21%; /* This will create a grid of cards with 4 cards in each row, you can adjust as needed */
  margin: 1%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 10px;
  background-color: #f9f9f9;  /* Adjust to your preferred color */
  transition: box-shadow .3s ease-in-out;
  min-width: 150px;  /* set a minimum width for the card */
  max-width: 200px;  /* set a maximum width for the card */
}

.bookcard:hover {
  box-shadow: 0 0 11px rgba(33,33,33,.2); 
}

.bookcover {
  width: 100%;
  height: auto;
}

.book-title {
  font-size: 1.1em;
  color: #333;  /* Adjust to your preferred color */
  margin: 10px 0;
  text-decoration: none;
}

.book-author {
  font-size: 0.9em;
  color: #666;  /* Adjust to your preferred color */
}

.book-author a {
  color: #666;  /* Adjust to your preferred color */
  text-decoration: none;
}

.book-author a:hover {
  text-decoration: underline;
}


/* ################################################################################## */
/* ############################ display-book.html elements ########################## */
/* ################################################################################## */

.book-display-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.book-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.book-img {
  width: 38%;
  object-fit: cover;
}

.book-info {
  width: 57%;
  /* Align title to the left */
  text-align: left;
  
}

/* Make author name and publication date slightly larger, black, and not underlined */
.book-info-author-date a {
  font-size: 1.2em;
  color: black;
  text-decoration: none;
}

/* Add underline when hovering over author name */
.book-info-author-date a:hover {
  text-decoration: underline;
}

.purchase-button {
  background-color: rgb(147, 188, 202); 
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px; /* Add space between publication date and button */
  border-radius: 5px; /* Modify radius for rounded corners */
}

.purchase-button a:hover {
  font-weight: bold;;
}

.quotes {
  font-style: italic;
}

.author-bio, .suggested-books {
  width: 100%;
}

.suggested-book-container {
  display: flex;
  justify-content: space-between;
}

.suggested-book {
  width: 30%;
}

@media (max-width: 768px) {
  .book-img {
      width: 75%;
  }
  .book-info {
      width: 100%;
  }
  .suggested-book {
      width: 100%;
  }
}

/* ============================================================
   Blog / News
   ============================================================ */

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.blog-page-title {
  margin-bottom: 32px;
}

.blog-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-entry {
  border-top: 1px solid #ddd;
  padding-top: 24px;
}

.blog-entry-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-entry-link {
  text-decoration: none;
  color: inherit;
}

.blog-entry-link:hover .blog-entry-title {
  text-decoration: underline;
}

.blog-entry-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.blog-entry-image {
  width: 140px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-entry-text {
  flex: 1;
  min-width: 0;
}

.blog-entry-type-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.blog-entry-title {
  font-size: 1.25rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

.blog-entry-summary {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

.blog-entry-author {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

.news-body {
  margin-top: 24px;
  line-height: 1.8;
}

.news-body img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

@media (max-width: 768px) {
  .blog-entry-image {
    width: 100px;
    height: 75px;
  }

  .blog-entry-title {
    font-size: 1.05rem;
  }
}