/* GOUDY OLD STYLE */
@font-face {
  font-family: 'Goudy Old Style';
  src: url('/fonts/Goudy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ROBOTO */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* Carousel container with specific width and height */
#carousel-ust {
  border-radius: 16px;
  max-height: 90%;
  width: 90%;
  margin: 0 auto;
  display: flex;
}

.carousel-inner {
  margin-top: 20px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px; /* Rounded corners for the carousel */
  object-position: center;
  overflow: auto;
}

.carousel-inner img {
  max-height: 500px; /* Set desired height for carousel images */
  object-fit: cover; /* Ensure images maintain aspect ratio */
  width: 100%; /* Ensure images span the full width */
}

/* Adjust the position of carousel controls (arrows) */
.carousel-control-prev,
.carousel-control-next {
  margin-top: 40px;
}

/* Style carousel indicators (dots) */
.carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.7); /* Lighter color for dots */
}

.carousel-indicators .active {
  background-color: rgba(255, 255, 255, 1); /* Fully opaque active dot */
}

/* Featured Books Card */
.book-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
  height: 100%; /* Ensure all cards have the same height */
}

.book-card img {
  width: 300px; /* Set exact width for images */
  height: 350px; /* Set exact height for images */
  object-fit: cover; /* Ensure the image fills the container without distortion */
  border-radius: 10px; /* Rounded corners for aesthetics */
  display: block; /* Prevent inline element spacing issues */
  margin: 0 auto; /* Center the image within its container */
}

.img-home {
    display: block; /* Ensures the image behaves as a block element */
    width: 200px; /* Set an exact width */
    height: 200px; /* Set an exact height */
    object-fit: cover; /* Crop the image to fit the container without distortion */
    border-radius: 5px; /* Optional: Add rounded corners for aesthetics */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for design */
    margin: 0 auto; /* Center-align the image */
}

/* Book Title */
.book-card p.card-title {
  padding: 10px;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 16px; /* Adjust font size for readability */
  margin: 8px 0 1px 0; /* Reduce spacing above and below title */
  min-height: 60px; /* Set fixed height for titles */
  max-height: 60px; /* Ensure all titles align */
  overflow: hidden; /* Truncate long titles */
  text-overflow: ellipsis; /* Add ellipsis for truncated text */
  white-space: nowrap; /* Prevent line breaks */
}

/* Price */
.book-card h5.price {
  font-size: 1.2em;
  font-weight: bolder;
  margin-top: -30px; /* Reduce unnecessary spacing */
  color: yellow; /* Vibrant color for prices */
  text-align: center;
}

/* Featured Books Buttons */
.featured-books .btn {
  background-color: #ffc107;
  color: #FCB900;
  font-weight: bold;
  border-radius: 8px;
}

.featured-books .btn:hover {
  background-color: #e0a800;
}

/* Browse by Category Buttons */
.categories .btn {
  margin: 10px;
  color: #000;
  border-color: #ffc107;
  font-family: "Roboto Condensed", sans-serif;
}

.categories .btn:hover {
  background-color: #ffc107;
  color: #fff;
}

/* My Account Button */
#navbarDropdown {
  color: black;
}

.dropdown-item {
  font-family: "Goudy Old Style", serif;
}

/* Browse by Category Section */
.categories {
  margin-top: 50px;
  text-align: left;
}

.cat-view {
  margin-bottom: 5%;
}

/* Featured Books & Categories Headings */
.featured-books h3, 
.categories h3 {
  font-weight: normal;
  text-align: center;
  margin-top: 10px; 
  font-family: "Goudy Old Style", serif;
}

.featured-books .row {
    justify-content: center;
}

.featured-books p {
    font-size: 1.2em;
    color: #555;
}


/*--------------------------------------------------------------------------------------------------------------admin manage home-------------------------------------------------------- */

/* General Button Styles */

/* Add Button */
.btn-add,
.btn-edit{
    background-color: #FFCC33; /* Yellow background */
    color: black;
    margin-right: 10px;
    margin-bottom: 10px;
    align-items: center;
    padding: 8px 15px; /* Adjusted padding for better spacing */
    border: none; /* Removed border */
    border-radius: 20px; /* Rounded corners */
    font-size: 0.9rem; /* Standardized font size */
    cursor: pointer;
    text-decoration: none; /* Remove underline from links */
    display: inline-flex; /* Aligns content properly */
    justify-content: center; /* Centers content */
}

/* Add Button Hover */
.btn-add:hover {
    background-color: #e6b800; /* Darker yellow on hover */
}

.btn-edit:hover {
    background-color: #e6b800; /* Darker yellow on hover */
}

/* Delete Button */
.btn-delete {
    background-color: #ff6666; /* Red background */
    color: white;
    padding: 8px 15px; /* Adjusted padding for better spacing */
    border: none; /* Removed border */
    border-radius: 20px; /* Rounded corners */
    font-size: 0.9rem; /* Standardized font size */
    cursor: pointer;
    display: inline-flex; /* Aligns content properly */
    justify-content: center; /* Centers content */
}

/* Delete Button Hover */
.btn-delete:hover {
    background-color: #e60000; /* Darker red on hover */
}


/* Edit Button */
/*.btn-edit {
    background-color: #FFCC33;
    color: black;
    margin-right: 10px;
}

.btn-edit:hover {
    background-color: #e6b800;
}*/

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    margin-left: 11%;
    color: #FCB900;
    font-family: 'Goudy Old Style', serif;
    font-size: 1.1em;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
