/* Default styles for better consistency across browsers: */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Elephant bookstore logo styling: */
.logo {
  width: 140px;
  height: 70px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background-color: #0d1228;
}

a {
  color: white;
  text-decoration: none;
  font-family: "Times New Roman", Times, serif;
}

/* Navigation links styling: */
.nav-links {
  display: flex; /* Aligns the links in a row */
  gap: 50px; /* Adds equal space between each link */
  list-style: none; /* Removes bullet points if you used a <ul> */
  margin: 0 auto; /* Optional: This pushes the links to the center of the nav */
}

input {
  padding: 5px;
  border: none;
  border-radius: 4px;
  width: 200px;
  vertical-align: middle; /* Add this */
}

/* Gold color search icon png styling: */
.search-icon {
  width: 20px; /* Note: Your screenshot shows 20px, check for typos! */
  height: 19px;
  margin-left: 5px;
  margin-right: 10px;
  cursor: pointer;
  vertical-align: middle; /* Add this */
}

/* Styling for the search bar's submit button:*/
.submit {
  padding: 5px 5px;
  background-color: #0d1228;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

header {
  background-image: url("../imgs/blueBookBanner.png");
  background-size: cover;
  height: 550px;
  display: flex;
  flex-direction: column; /* This stacks the H1 and Button vertically */
  justify-content: center;
  align-items: center;
  gap: 20px; /* This creates the specific "break" or space between them */
}

.title {
  font-family: "Times New Roman", Times, serif;
  font-size: 150px;
  color: #ffffff;
  padding-bottom: 20px;
  text-shadow: 2px 2px 10px rgb(255, 218, 117); /* Adds a subtle shadow for better readability */
}

/* Styling for the browse button: */
.browse {
  padding: 10px 10px;
  background-color: #ffffff;
  color: #0d1228;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Hover effect for the browse button: */
.browse:hover {
  background-color: #b5b5b5;
  color: #080b19;
  border-color: gold;
}

/* Fade in and up animation on title and browse button */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0); /* Starts 40px lower */
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0); /* Ends at its original spot */
  }
}

/* Apply to the Title and Button */
.fade-in-up {
  animation: fadeInUp 1s ease-out both;
}

/* Delays the button slightly so the title appears first */
.delay-1 {
  animation-delay: 0.5s;
}

/* 3 by 1 grid container with 3 columns: Story, Librarian's Choice, News & Events:  */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 0px;
}

/* Styling for each column: */
.column1,
.column2,
.column3 {
  background-color: #f1f1f1;
  border: 1px solid black;
  padding: 20px;
  text-align: center;
}

h2 {
  font-family: "Times New Roman", Times, serif;
  padding-bottom: 10px;
  padding-top: 10px;
  color: #0d1228;
}

h3 {
  font-family: Arial, Helvetica, sans-serif;
  color: #0d1228;
}

.gold-p-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 10px;
  color: #be852c;
}

/* Specific styling for the tattered reads librarian's choice banner: */
.librarians-choice {
  width: 100%;
  height: 250px;
  border-radius: 10px;
}

.news-events-img {
  width: 330px;
  height: 250px;
  border-radius: 10px;
}

/* Container for the 3 images */
.book-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
  gap: 10px; /* Space between the images */
  width: 100%;
  margin-top: 15px;
}

/* Styling for the individual small images */
.sub-img {
  width: 100%;
  height: auto; /* Maintains aspect ratio */
  aspect-ratio: 2 / 3; /* Standard book cover shape */
  object-fit: cover; /* Crops the image to fill the box without stretching */
  display: block; /* Removes extra space at the bottom of images */
}

/* Ensure Column 2 stacks everything correctly */
.column2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffebb8;
}

.book-row-grid {
  justify-content: center;
  margin-top: 20px; /* Add some space between the header and the images */
}

.navy-p-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 5px;
  color: #0d1228;
}

.white-p-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 5px;
  color: white;
}

footer {
  background-color: #0d1228;
  color: white;
  text-align: center;
  padding: 10px; /* Increased padding for better visibility */
  width: 100%; /* Ensure it spans the whole page */
  margin-top: 30px; /* Space it away from the content above */
  justify-content: space-evenly; /* Center the text horizontally */
}
