/* General Styles */
body {
    font-family: "Epilogue", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5DC; /* Pastel orange background */
    text-align: center;
    color: #000000; /* Black for normal text */
}


.navbar-brand {
    font-family: "Ms Madi", cursive;
    font-weight: 700;
    font-size: 28px;
    color: #007bff !important; /* Blue for NYC Bookstores */
}

/* Navbar Styling */
nav {
    background-color: #007bff; /* Blue navbar */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Epilogue", sans-serif;

    font-weight: 700;
}

nav h1 a {
    color: white;
    text-decoration: none;
}

/* Centered Search Bar */
nav form {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

nav input[type="text"] {
    width: 70%;  /* Increase width */
    max-width: 600px; /* Prevent it from stretching too much */
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: left;
    background-color: #E8EEF3; /* Light grey for input background */
}

nav button {
    height: 35px;
    padding: 8px 12px;
    border: none;
    background-color: #007bff; /* Blue for buttons */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap; 
    font-family: "Epilogue", sans-serif;
}

nav button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}



/* Headings */
h1, h2, h3 {
    font-family: "Ms Madi", cursive;
    font-weight: 700; /* Bolder look */
    color: #007bff; /* Dark grey for headings */
}

h4, h5, h6 {
    font-family: "Epilogue", sans-serif;
    font-weight: 700; /* Bolder look */
    color: #007bff; /* Dark grey for headings */
}

/* Make list items (books & events) dark grey */
.list-inline-item {
    color: #656F77; /* Dark grey */
}


/* Bookstore List - Fixes Triangle Layout */
.bookstore-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start; /* Ensures cards align at the top */
  }

/* Bookstore Cards */
.bookstore {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    font-family: "Epilogue", sans-serif;
}

.bookstore:hover {
    transform: scale(1.05);
}

/* Add spacing for bookstore details */
.bookstore-detail {
    max-width: 800px;  /* Prevents content from stretching too wide */
    margin: 30px auto;  /* Centers content and adds space */
    padding: 20px;      /* Adds space inside the container */
    background: white;  /* Keeps readability clean */
    border-radius: 10px; /* Softens edges for a modern look */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds subtle depth */
}

/* Form Styling */
.styled-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: "Epilogue", sans-serif;
}

.styled-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #000000; /* Black for labels */
}

.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #E8EEF3; /* Light grey for input background */
    color: #000000; /* Black for input text */
}

.styled-form textarea {
    height: 100px;
}

/* Ensure form controls have consistent height */
.form-control, .form-select {
    height: 45px; /* Adjust as needed */
    font-size: 16px;
}

/* Align text vertically */
.form-label {
    font-weight: bold;
    display: block;
    text-align: center;
    color: #000000; /* Black for form labels */
}

/* Ensure equal width distribution for form groups */
.form-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Make sure all input fields have the same width */
.form-control, .form-select {
    height: 45px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
}

.bookstore img {
    width: 100%;
    aspect-ratio: 16/9; /* or 4/3, etc. */
    object-fit: cover;
    border-radius: 10px;
  }


.bookstore-link {
    text-decoration: none; /* Removes default link styling */
    color: inherit; /* Keeps text color normal */
    display: block; /* Ensures entire card is clickable */
}

.card {
    transition: transform 0.2s ease-in-out;
    height: 400px;
    overflow: hidden; /* Hide anything that doesn’t fit */
    display: flex;
    flex-direction: column;
}

.card-img-top {
    /* Force image to a fixed height for consistency */
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
  
  .card-body {
    /* The remaining space for text */
    flex: 1 1 auto;
    padding: 1rem;
    overflow: hidden; /* Hide text if it’s too long */
  }
  

.card:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Style for multi-select dropdown */
.form-select[multiple] {
    height: auto; /* Allow the dropdown to expand */
    padding: 10px;
}

/* Add some spacing between options */
.form-select[multiple] option {
    padding: 5px;
}

/* Buttons */
.form-btn {
    display: inline-block;
    background-color: #007bff; /* Blue for primary buttons */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-family: "Epilogue", sans-serif;
}

.cancel-btn {
    background-color: #656F77; /* Dark grey for secondary buttons */
    color: white;
}

.form-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.cancel-btn:hover {
    background-color: #656F77; /* Slightly darker grey on hover */
}



/* Style checkboxes to be inline */
.similar-bookstores {
    display: flex;
    flex-direction: column; /* Stack items neatly */
    gap: 8px; /* Space between each */
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between checkbox and text */
    font-size: 16px;
    cursor: pointer;
    color: #000000; /* Black for checkbox labels */
}

a {
    text-decoration: none; /* Removes underline from all links */
    color: inherit; /* Inherits the color from parent element */
}

/* Force a fixed height and cropped image on the view page */
.bookstore-view-img {
    width: 100%;
    height: 300px;      /* Choose any fixed height you want */
    object-fit: cover;  /* Crops instead of squishing */
    border-radius: 10px; /* Optional: matches your other rounded corners */
  }

/* Responsive Design */
/* Make the search input fill the width on phones */
@media (max-width: 576px) {
  nav .form-control {
    width: 100% !important;
  }

  /* Let cards expand naturally instead of fixed 400px height */
  .card {
    height: auto !important;
  }
}

/* A little extra padding between cards on mobile */
@media (max-width: 768px) {
  .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Make the hamburger button pale blue instead of dark on mobile */
@media (max-width: 991.98px) {
  /* Base light color for the button */
  .navbar-toggler {
    background-color: transparent !important;  
    border-color: #e3f2fd !important;
  }

  /* When it’s “collapsed” (menu closed), you can keep it transparent if you like */
  .navbar-toggler.collapsed {
    background-color: transparent !important;
  }

  

  /* Remove the default focus ring */
  .navbar-toggler:hover,
.navbar-toggler:focus {
  background-color: #e3f2fd !important;  /* pale blue */
  border-color: #e3f2fd !important;
  outline: none;
  box-shadow: none;
}



