@import url('https://fonts.googleapis.com/css2?family=Mali:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f9;
  height: 100%;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  /* Pushes the footer to the bottom */
  flex: 1;
}

.main {
  margin-top: 100px !important;
}

a {
  /* removed defualt stylings of links */
  text-decoration: none;
  color: inherit;
}

/* Footer styling */
footer {
  margin-top: 20px;
}

/* Reuseable classes */
.orange-btn {
  background-color: #f4a261;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.purple-btn {
  background-color: #464968;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.red-btn {
  background-color: #8d0801;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.gray-btn {
  background-color: #6d6875;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}


.orange-btn:hover {
  background-color: #e07b47;
  color: #fff;
}

.purple-btn:hover {
  background-color: #2e3046;
  color: #fff;
}

.red-btn:hover {
  background-color: #4a0501;
  color: #fff;
}

.gray-btn:hover {
  background-color: #39363e;
  color: #fff;
}

/* //////////////// Favourites //////////////*/ 
.favorited {
  color: red;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.favorited:hover {
  color: white;
  background-color: #dc3545;
  border-color: #dc3545;
}

/* ///// //////// ....Navbar  css code Start from here.........///////////////// */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #744261;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.navbar-brand {
  font-size: 2rem;
  font-weight: 400;
  color: white;
  font-family: "Brush Script MT", cursive;
}

.nav-item {
  font-size: 1rem;
  font-weight: 100;
  color: white;
  letter-spacing: 2px;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
}

.menu a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
  padding: 10px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  text-decoration: underline;
  color: #f8d7da;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.8); /* Make the border white */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); /* White hamburger */
}

/* ///// ///////////////// Navbar css code End here //////////////////////////////////*/

/*///////////////////////// Hompage ////////////////////////////*/
.category-card {
  margin: 20px 0;
  text-align: center;
}

.category-image {
  width: 100%; /* Make the image responsive */
  max-width: 250px; /* Limit the image width */
  height: 250px; /* Set a fixed height */
  object-fit: cover; /* Crop the image to fit the container */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.category-image:hover {
  transform: scale(1.05);
}

h2 {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.recommended-section {
  margin-top: 40px;
}

.recommended-item {
  text-align: center;
}

.recommended-image {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Makes the images circular */
  object-fit: cover; /* Ensures the images fit inside the circle without distortion */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.recommended-image:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

.recommended-item p {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-weight: bold;
}

.recommended-area {
  min-width: 100px;
}

/* ../////////// cards css code start from here ...////////////// */
h1 {
  font-size: 25px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 200;
  margin: 20px 0;
  text-align: center; /* Center it if required */
}
.new-card-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.recipe-image:hover {
  transform: scale(1.05);
}

/* card animations */
.recipe-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth scaling and shadow effect */
  border-radius: 10px; /* Optional rounded corners */
}

.recipe-card:hover {
  transform: scale(1.05); /* Grow the card by 5% on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

.recipe-card-body img {
  max-width: 100%; /* Ensure image is responsive */
  border-radius: 10px; /* Match the card's rounded corners */
}

.recipe-card-body h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
/* end card animations */

.card-recipe {
  min-height: 40vh;
}

.new-card {
  width: 80%; /* Set width to 80% for consistency */
  margin: 0 auto; /* Center the card */
  height: 400px; /* Fixed height for the card */
  background-color: #fff; /* White background for the card */
  overflow: hidden; /* Ensures the image doesn't overflow the card */
  padding: 7px; /* Add padding around the content */
}

.card-content {
  width: 100%;
  height: 100%;
  padding: 7px; /* Padding inside the content to make the image feel like it's inside a card */
}

.new-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image covers the area of the card */
}

@media (max-width: 768px) {
  .new-card {
    width: 100%; /* Full width on smaller screens */
    height: 300px; /* Adjust height for smaller screens */
  }
}

.card-section {
  background-color: #e8e8ec;
  padding: 20px 10px 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  justify-content: center;
  position: relative;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    width: 100%;
    margin-bottom: 20px;
  }
}
@media (min-width: 1024px) {
  .new-card {
    width: 80%;
    margin: 0 auto; /* Center the card */
  }
}
.new-card {
  height: 50px;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Card Styling */
.card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
}
.top-card {
  height: 300px;
}

.card img {
  width: 100%;
  height: 200px; /* Fixed height for the image */
  object-fit: cover;
}

.card-info {
  padding: 15px;
  flex-grow: 1; /* This will allow the content to stretch and adjust with the card's height */
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
}
.card-details {
  display: flex;
  gap: 15px; /* Horizontal gap between the elements */
  align-items: center;
  margin-bottom: 10px; /* Add some space between the details and the button */
}
.card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.card-details i {
  color: #744261;
  font-size: 18px;
}
.read-more {
  margin-top: auto; /* Push the button to the bottom of the card */
  background-color: #f4a261;
  color: #fff;
  border: none;
  padding: 10px 60px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex; /* Keep the icon and text inline */
  align-items: center;
  gap: 10px; /* Space between icon and text */
  white-space: nowrap; /* Prevent text from wrapping */
  transition: background-color 0.3s;
}

.read-more i {
  font-size: 15px; /* Adjust the icon size */
}

.read-more:hover {
  background-color: #e07b47;
}


/* .../////////// card css end here ///////////////// */

/* ////////////////////// About //////////////////// */
.about-me {
  font-size: 50px;
  margin-top: 2px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.about-page,
.about-recipes {
  font-size: 20px;
  padding-left: 25px;
  padding-right: 25px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

.blog-image {
  width: 50%;
}



/* ////////////////////// Profile spage ////////////////// */

.profile-container .card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.profile-container .card-title {
  font-size: 2rem;
  font-weight: bold;
}

.profile-container .card-text {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ///////////// Footer code Start from here /////////////// */

/* Footer Styling */
/* Footer Styling */
.footer {
  background-color: #744261;
  color: #f8f9fa;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-menu {
  display: flex;
  gap: 20px;
}

.footer-menu a {
  text-decoration: none;
  color: #f8f9fa;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #ffd700;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 20px;
}

.footer-bottom a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
  }

  .footer-menu a {
    margin-bottom: 10px;
  }

  .footer-social {
    justify-content: center;
  }
}

.social-media-icons {
  font-size: 2rem;
}

/* ////////// Footer end here ////////////////////// */

/* Toasts */
.message-container {
  position: fixed;
  top: 8rem;
  right: 1rem;
  z-index: 1055;
}

.custom-toast {
  overflow: visible;
}

.toast-capper {
  height: 2px;
}

/* from CSS-tricks.com: https://css-tricks.com/snippets/css/css-triangle/ */
.arrow-up {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 10px solid black;
  position: absolute;
  top: -10px;
  right: 36px;
}

/* Convenience classes - colors copied from Bootstrap */
.arrow-primary {
  border-bottom-color: #007bff !important;
}

.arrow-secondary {
  border-bottom-color: #6c757d !important;
}

.arrow-success {
  border-bottom-color: #28a745 !important;
}

.arrow-danger {
  border-bottom-color: #dc3545 !important;
}

.arrow-warning {
  border-bottom-color: #ffc107 !important;
}

.arrow-info {
  border-bottom-color: #17a2b8 !important;
}

.arrow-light {
  border-bottom-color: #f8f9fa !important;
}

.arrow-dark {
  border-bottom-color: #343a40 !important;
}

.bag-notification-wrapper {
  height: 100px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Form section styling */
.form-section {
  padding: 20px 0;
}

/* Card styling for the recipe form */
.form-section .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section .card-header {
  border-bottom: 1px solid #eee;
  padding: 20px;
}

.form-section .card-body {
  padding: 30px;
}

.form-section .about-recipes {
  font-size: 24px;
  margin-bottom: 15px;
  color: #744261;
  text-align: center;
}

.form-section .about-the-recipes {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 0;
}

/* Form elements styling */
.form-section form .form-control {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px;
}

.form-section form .form-control:focus {
  border-color: #744261;
  box-shadow: 0 0 0 0.2rem rgba(116, 66, 97, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-section {
    margin-top: 60px;
  }
  
  .form-section .card-body {
    padding: 20px;
  }
  
  .form-section .about-recipes {
    font-size: 20px;
  }
}