/* General Styles */
body {
  margin: 0;
  font-family: "Ubuntu", serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #f8f8f8;
  word-wrap: break-word;
  white-space: normal;
  overflow-x: hidden; /* Prevents horizontal scrolling */
  width: 100%; /* Ensures the page width stays within the viewport */
}

/* Navbar Styles */
.navbar {
  background-color: #ffffff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: "Alex Brush", serif;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #474747;
}

.brand a {
  text-decoration: none;
  color: #333333;
  transition: 0.3s ease-in-out;
}

.brand a:hover {
  color: #ff002b;
}

.brand .leftchild {
  font-family: "Alex Brush", serif;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 600;
}

.brand .rightchild {
  font-size: 1.1rem;
  align-items: center;
  padding-left: 5px;
  font-weight: 900;
}

.nav-links {
  font-weight: 600;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #494949;
  transition: 0.3s ease-in-out;
}

.nav-links li a:hover {
  color: #ff0055;
}

/* Hamburger menu styling */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 16px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1200; /* Ensure the hamburger is above other elements */
}

.hamburger .bar {
  background-color: #000;
  height: 2px;
  width: 100%;
  transition: 0.3s ease-in-out;
}

.searchButton {
  width: 24px;
  background-color: #ffecf1;
  border-radius: 20px;
  padding: 4px;
}

.recipeBox ul li {
  line-height: 20px;
  margin-bottom: 10px; /* Add space between list items */
  font-size: 1.1rem; /* Set the font size */
  color: #303030; /* Set text color */
}

.recipeBox ol li {
  line-height: 20px;
  margin-bottom: 20px; /* Add space between list items */
  font-size: 1.1rem; /* Set the font size */
  color: #303030; /* Set text color */
}

.checkbox {
  height: 20px;
}

.toggle-btn {
  margin-top: 2px;
  display: flex; /* Enables flexbox */
  justify-content: space-between; /* Space between text and icon */
  align-items: center; /* Vertically center content */
  padding: 10px 20px;
  width: 100%;
  background-color: #ffe6e6;
  color: rgb(66, 66, 66);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 8px;
}

.toggle-btn:hover {
  background-color: rgb(255, 232, 232);
}

.toggle-btn .icon {
  margin-left: 8px; /* Adds space between text and icon */
  font-size: 0.8em; /* Adjust the icon size if necessary */
}

.singleCard2 {
  margin: 20px auto;
  max-width: 1200px;
  height: 350px;
  border-radius: 10px;
  background-color: #ffdbdb;
  display: flex; /* Use flexbox to create side-by-side layout */
  overflow: hidden; /* Ensures content doesn't overflow rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.singleCard {
  margin: 20px auto;
  max-width: 1200px;
  height: auto; /* Allow height to adjust for stacked layout */
  border-radius: 10px;
  background-color: #ffece4;
  display: flex; /* Use flexbox for desktop layout */
  flex-direction: row; /* Default is side-by-side */
  overflow: hidden; /* Ensures content doesn't overflow rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.line {
  width: 100%;
  height: 1px;
  color: rgb(156, 156, 156);
  margin: 4px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th,
.styled-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

/* Style the header */
.styled-table thead {
  background-color: #f4f4f4;
}

/* Apply alternating row colors */
.styled-table tbody tr:nth-child(odd) {
  background-color: #dbdbdb; /* Light gray */
}

.styled-table tbody tr:nth-child(even) {
  background-color: #ececec; /* White */
}

/* Add hover effect for rows */
.styled-table tbody tr:hover {
  background-color: #ffffff;
}

.radio-inputs {
  height: 40px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: #ffeded;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: 300px;
  font-size: 0.9em;
  font-weight: 700;
}

.radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem 0;
  color: rgba(51, 65, 85, 1);
  transition: all 0.15s ease-in-out;
}

.radio-inputs .radio input:checked + .name {
  background-color: #fff;
  font-weight: 600;
}

.singleCard3 {
  margin: 20px auto;
  max-width: 1200px;
  height: auto; /* Allow height to adjust for stacked layout */
  border-radius: 10px;
  background-color: #fedcdb;
  display: flex; /* Use flexbox for desktop layout */
  flex-direction: row; /* Default is side-by-side */
  overflow: hidden; /* Ensures content doesn't overflow rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.adminPanel {
  max-width: 1000px;
  margin: 0px auto;
}

.recipeBox {
  margin: 0px auto;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.recipeBox a {
  text-decoration: none;
  color: rgb(255, 0, 76);
}

.recipeBox h1 {
  font-size: 1.6em;
  color: #303030;
}

.infoBox {
  margin: 0px auto;
  margin-top: 20px;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.infoBox h1 {
  font-size: 1.3em;
  color: #303030;
}

.infoTips {
  width: 100%;
  background-color: #ffece4;
  padding: 0px 20px 20px 20px;
  border-radius: 0px 0px 10px 10px;
}

.infoTips a {
  text-decoration: none;
  color: rgb(255, 0, 76);
}

.ingredients {
  border-radius: 10px 0px 0px 10px;
  width: 35%;
  background-color: #ffece4;
  padding: 0px 20px 20px 20px;
}

.ingredients p {
  font-size: 1.2rem;
}

.instructions {
  width: 65%;
  padding: 0px 20px 0px 20px;
}

.instructions p {
  font-size: 1.2rem;
}

.recipeComments {
  max-width: 1200px;
  margin: 0px auto;
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}

.comment {
  padding: 15px;
  margin-bottom: 5px;
  border-radius: 4px;
  border: 1px solid #dddddd;
}

.comment-header {
  border-bottom: 1px solid #dddddd;
  padding: 2px;
  display: flex; /* Enables Flexbox */
  justify-content: space-between; /* Positions author and date far apart */
  align-items: center; /* Ensures vertical alignment */
  margin-bottom: 5px; /* Space between header and text */
}

.comment-author {
  font-weight: bold;
  color: #333;
}

.comment-date {
  font-size: 0.9em;
  font-weight: normal;
  color: #333;
}

.comment-text {
  margin: 5px 0 0;
  color: #555;
}

.labelContainer {
  display: flex; /* Arrange labels in a row (or column if you prefer) */
  flex-wrap: wrap; /* Allow labels to wrap if there are many */
  gap: 5px; /* Adds space between each label */
  margin-top: 10px;
}

.label {
  color: white;
  background-color: #000000; /* Optional: background for better visibility */
  border-radius: 5px; /* Rounded corners */
  padding: 5px; /* Padding inside the label */
  font-size: 0.8em; /* Adjust text size */
}

.dot-list {
  list-style-type: disc; /* Default dot style */
  margin: 0; /* Adjust margins as needed */
  padding: 0 20px; /* Indentation for the list */
}

.dot-list li {
  margin-bottom: 8px; /* Space between items */
}

.numbered-list {
  list-style-type: decimal; /* Default numbering style (1, 2, 3) */
  margin: 0; /* Remove outer margin */
  padding: 0 20px; /* Indent the list */
}

.numbered-list li {
  margin-bottom: 8px; /* Space between list items */
}

/* Text Content Styling */
.textContent {
  flex: 1; /* Takes up half the space */
  padding: 30px; /* Add padding for title and text */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Center content vertically */
  color: #1d1d1d;
}

.textContent h1 {
  margin: 0 0 0px; /* Title margin */
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
}

.textContent p {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
}

/* Styling for the button */
.actionButton {
  display: inline-block;
  padding: 10px 20px; /* Adjust padding for a better fit */
  font-size: 1em;
  color: #fff;
  background-color: #000; /* Black background */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center; /* Ensure the text is centered */
  text-decoration: none; /* Remove underline */
  white-space: nowrap; /* Prevent text from wrapping */
  margin-bottom: 4px;
  width: 100px;
}

/* Hover effect for the button */
.actionButton:hover {
  background-color: #333; /* Slightly lighter black on hover */
  transform: translateY(-2px); /* Subtle lift effect */
}

.timeInfo {
  display: inline-flex; /* Ensures content stays on the same row */
  align-items: center; /* Vertically aligns items */
  gap: 5px; /* Adds spacing between the icon and text */
  margin-bottom: 10px;
}

.timeInfo img {
  display: block; /* Prevents extra whitespace under the image */
}

/* Ensure the label is displayed as a block element */
.sortcheck {
  background-color: rgb(39, 39, 39);
  padding: 2px 5px;
  margin: -1px;
  color: white;
  border-radius: 4px;
  font-size: 0.9em;
  display: inline-block; /* Ensures label is inline-block, aligning the checkbox and text */
  margin-bottom: 5px; /* Adds space between labels when they wrap to a new line */
}

/* Add space between the label and checkbox, and make the checkbox align with the text */
.sortcheck input[type="checkbox"] {
  margin-right: 2px; /* Space between checkbox and the text */
  vertical-align: middle; /* Ensures the checkbox is vertically aligned with the text */
}

/* Image Content Styling */
.imageContent {
  flex: 1; /* Takes up half the space */
}
.imageContent img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.searchContainer {
  max-width: 1200px;
  margin: 20px auto;
}

.searchWrapper {
  position: relative; /* Enables positioning of the icon */
  display: inline-block; /* Shrinks wrapper to fit the input */
  width: 290px;
}

.searchWrapper2 {
  position: relative; /* Enables positioning of the icon */
  display: inline-block; /* Shrinks wrapper to fit the input */
  width: 100%;
}

.input {
  background-color: #ffffff;
  margin-bottom: 2px;
  height: 45px;
  padding: 10px 35px 10px 30px;
  border: 1px solid #b6b6b6;
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
}

.checkbox {
  margin: 0; /* Remove any margin from the checkbox */
  vertical-align: top; /* Align it at the top of the parent container */
}

.sortcheck {
  margin-right: 5px;
}

.radio {
  height: 20px;
}

.searchIcon {
  position: absolute;
  left: 10px; /* Position icon inside input on the right */
  top: 50%; /* Align icon vertically */
  transform: translateY(-50%); /* Center icon vertically */
  width: 20px; /* Adjust icon size */
  height: 20px;
  pointer-events: none; /* Ensure clicks go to the input */
  filter: brightness(1.5); /* Increase brightness by 50% */
}

.catContainer {
  max-width: 1200px;
  display: flex; /* Make the container a flex container */
  align-items: center; /* Vertically align items */
  justify-content: space-between; /* Space out items to opposite ends */
  gap: 5px;
  padding: 10px 10px 5px 10px;
  margin: 0 auto;
  position: relative; /* Ensures dropdown positions correctly within this container */
}

.contactWindow {
  max-width: 600px;
  display: flex; /* Make the container a flex container */
  align-items: center; /* Vertically align items */
  justify-content: space-between; /* Space out items to opposite ends */
  gap: 5px;
  padding: 10px 10px 5px 10px;
  margin: 0 auto;
  position: relative; /* Ensures dropdown positions correctly within this container */
}

.radio-group {
  display: flex;
  gap: 10px; /* Adds space between each label and radio button */
  align-items: center; /* Ensures proper vertical alignment */
  justify-content: flex-start; /* Aligns all items to the left */
}
.catContainer2 {
  display: block; /* Ensure it's not a flex or grid container */
  max-width: 1200px;
  padding: 10px 10px 5px 10px;
  margin: 0 auto;
  text-align: left;
}

.radio-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.radio-group {
  display: flex;
  gap: 10px; /* Optional: Adds space between the radio buttons */
  align-items: center; /* Aligns the labels and buttons vertically */
}

.catLabel {
  display: inline-block;
  background-color: #ffe6ec;
  border-radius: 10px 10px 0px 0px;
  padding: 15px;
  font-size: 0.8em;
  color: #636363;
  margin-right: 5x;
  font-weight: 700;
}

.card-container4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0px auto;
  padding: 0 10px;
  align-items: stretch; /* Ensure equal card heights */
}

.card-container2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  align-items: stretch; /* Ensure equal card heights */
}

a {
  text-decoration: none;
}

/* Card Styles */
.card2 {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* Full height */
}

.card2:hover {
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Image Styles */
.card2 img {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  object-fit: cover;
  width: 100%;
  height: 300px;
  display: block;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  align-items: stretch; /* Ensure equal card heights */
}

.card {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* Full height */
}

.card:hover {
  color: inherit; /* Inherit the color from the parent */
  text-decoration: none; /* Remove underline */
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card img {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  object-fit: cover;
  width: 100%;
  height: 380px; /* Consistent image height */
}

.card .content {
  flex-grow: 1; /* Allow this section to expand */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Specific Icon Image Styles */
.card .icon-image {
  width: 20px; /* Fixed width for the icon */
  height: 20px;
  object-fit: contain; /* Prevent distortion */
  display: block; /* Ensures proper block behavior */
  border: none; /* Resets any inherited border */
}

.card-contents {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: space-between; /* Push top content up and bottom content down */
  flex-grow: 1; /* Ensure this section stretches to fill available space */
  padding: 15px;
  box-sizing: border-box;
}

.card-contents > div:last-child {
  margin-top: auto; /* Push this section to the bottom */
  display: flex; /* Align items horizontally */
  align-items: center;
  gap: 5px; /* Space between icons and text */
}

.card-contents h1 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #414141;
}

/* Card Headings */
.card h1 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0;
  font-style: normal;
  font-weight: 600;
  color: #4e4e4e;
}

.card-contents-bottom {
  flex-direction: row;
  display: flex;
  justify-content: start;
  color: rgb(70, 70, 70);
  font-size: 0.8rem;
  align-items: center;
  padding-top: 2px;
}

.card-contents-bottom span {
  color: rgb(100, 100, 100);
}

.icon-container {
  margin: 0px -3px;
  padding: 4px 4px 0px 0px;
  display: flex; /* Align items in a row */
  justify-content: start; /* Adjust alignment: start, center, or end */
  align-items: center; /* Vertically align items */
}

.icon-container img {
  width: 30px; /* Set the size of the stars */
  margin: 0px 0px 5px 0px;
  height: auto; /* Maintain aspect ratio */
}

.icon-container2 {
  margin: 0px -3px;
  padding: 4px 4px 0px 0px;
  display: flex; /* Align items in a row */
  justify-content: start; /* Adjust alignment: start, center, or end */
  align-items: center; /* Vertically align items */
}

.icon-container2 img {
  width: 30px; /* Set the size of the stars */
  margin: 0px 0px 5px 0px;
  height: auto; /* Maintain aspect ratio */
}

/* Add the following CSS */
.icon-rate {
  width: 32px; /* Set the size of the icon */
  height: 32px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; /* Smooth transition for both transform and filter */
}

.icon-rate:hover {
  filter: brightness(
    2
  ); /* Increase brightness on hover to simulate 'highlighting' */
  transform: scale(1.2); /* Zoom in the icon by 1.2 times */
  cursor: pointer; /* Change cursor to pointer when hovering */
}

/* For Dotted (unordered) Lists */
ul {
  margin-bottom: 20px; /* Add space below the list */
  padding-left: 20px; /* Optional: Adjusts the indentation of the list */
}

/* For Numbered (ordered) Lists */
ol {
  margin-bottom: 20px; /* Add space below the list */
  padding-left: 20px; /* Optional: Adjusts the indentation of the list */
}

/* Optional: If you want more space between the list items themselves */
ol li {
  margin-bottom: 10px; /* Space between list items */
}

/* Specific Icon Image Styles */
.card2 .icon-image {
  gap: 0px;
  width: 20px; /* Fixed width for the icon */
  height: 20px;
  object-fit: contain; /* Prevent distortion */
  display: block; /* Ensures proper block behavior */
  border: none; /* Resets any inherited border */
}

/* Card Headings */
.card2 h1 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0;
  font-style: normal;
  font-weight: 600;
  color: #414141;
}

.card h4 {
  margin: 5px 0px;
  padding: 0px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #414141;
}

.card p {
  padding: 0px;
  margin: 0px;
}

.categoryContainer {
  width: 100%;
  background-color: #eaf6fb;
  display: flex; /* Use flexbox for horizontal alignment */
  justify-content: center; /* Center items horizontally */
  flex-wrap: wrap; /* Allow items to wrap to the next row if needed */
  gap: 20px; /* Space between items */
  text-align: center; /* Ensures text is centered below each image */
  padding: 10px;
  margin: 30px 0px 30px 0px;
}

.categoryItem {
  display: flex;
  flex-direction: column; /* Stack image and text vertically */
  align-items: center; /* Center align the image and text */
  max-width: 150px; /* Optional: constrain item width */
}

.categoryItem img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%; /* Makes the image circular */
  margin-bottom: 10px; /* Space between image and text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: add shadow for a polished look */
  transition: transform 0.3s ease-in-out; /* Transition for scale effect */
}

.categoryItem img:hover {
  transform: scale(1.1); /* Subtle lift effect */
}

.categoryItem p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
}

/* Dropdown Container */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0; /* Ensures it spans the full width */
  background: white;
  border: 1px solid #ddd;
  z-index: 1000;
  display: none;
  max-height: 500px; /* Optional: Limit the height */
  overflow-y: auto; /* Adds scrolling if content overflows */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
}

/* Individual Result */
.dropdown-item {
  display: flex;
  padding: 15px 20px; /* Slightly larger padding for better spacing */
  border-bottom: 1px solid #eee;
  cursor: pointer;
  align-items: center; /* Centers image and text vertically */
}

.dropdown-item img {
  width: 60px; /* Slightly larger image */
  height: 60px;
  margin-right: 15px; /* Increase spacing between image and text */
  object-fit: cover;
  border-radius: 8px; /* Slightly larger border-radius */
}

.dropdown-item h4 {
  margin: 0 0 5px;
  font-size: 18px; /* Larger font size for title */
  color: #333; /* Darker text color for better readability */
}

.dropdown-item p {
  margin: 0;
  font-size: 14px; /* Slightly larger font size for description */
  color: #666;
  line-height: 1.4; /* Better line spacing */
}

/* Add hover effect for better UX */
.dropdown-item:hover {
  background-color: #f9f9f9;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 30px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.footer {
  background-color: #f8f8f8;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  border-top: 1px solid #ddd;
}

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  margin: 0 10px;
  display: inline-block;
}

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

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

.copyright,
.created-by {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.created-by a {
  color: #353535;
  font-weight: 700;
  text-decoration: none;
}

.created-by a:hover {
  color: #ff0156;
  transition: color 0.5s ease-in-out;
}

.cardDescription {
  color: #696969;
  font-size: 0.9rem;
  padding: 0px 0px 5px 0px;
}

/* Cookie Banner Styling */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: #ffffff;
  color: rgb(48, 48, 48);
  padding: 15px;
  text-align: center;
  font-size: 14px;
  z-index: 1000;
  display: block; /* Initially hidden */
}

.cookie-banner .cookie-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner button {
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  margin: 5px;
}

.cookie-banner button:hover {
  background-color: #252525;
}

.cookie-banner a {
  color: #ff0037;
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-protected {
  display: none;
}

@media (max-width: 1190px) {
  .categoryContainer {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 1000px) {
  .container {
    height: 40px;
  }

  .recipeBox ul li {
    font-size: 1rem; /* Set the font size */
  }

  .recipeBox ol li {
    font-size: 1rem; /* Set the font size */
  }

  .icon-container2 {
    justify-content: center; /* Adjust alignment: start, center, or end */
  }

  .card-container2 {
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4px;
  }

  .card img {
    height: 300px;
  }

  .card h4 {
    display: none;
  }

  .card p {
    display: none;
  }

  .card2 img {
    height: 280px;
  }

  /* Position the nav-links off-screen for mobile by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; /* Position the menu right below the navbar */
    right: -100%; /* Hide the menu */
    width: 150px;
    padding: 20px;
    flex-direction: column;
    background-color: white;
    align-items: flex-start;
    justify-content: center;
    border-radius: 10px;
    transition: right 0.3s ease-in-out;
    z-index: 1100;
  }

  .nav-links.active {
    display: flex;
    right: 0; /* Move the menu into view when active */
  }

  .hamburger {
    display: flex;
  }

  /* Transform hamburger into an X when active */
  .hamburger.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px); /* Adjust translation to align perfectly */
  }

  .hamburger.open .bar:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
  }

  .hamburger.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px); /* Adjust translation to align perfectly */
  }

  .nav-links li {
    padding: 15px 0;
  }

  .nav-links li a {
    color: #494949;
    font-size: 1.2em;
  }

  .searchButton {
    display: none;
  }

  .categoryContainer {
    display: none;
  }

  .categoryItem img {
    width: 40px;
    height: 40px;
  }

  .card h1 {
    font-size: 1.1rem;
  }

  .singleCard {
    border-radius: 0px;
    flex-direction: column; /* Stack items vertically */
    height: auto; /* Allow content to expand */
  }

  .recipeBox {
    gap: 5px;
    font-size: 0.9em;
    padding: 10px 10px 10px 10px;
  }

  .recipeBox {
    flex-direction: column; /* Stack items vertically */
  }
  .ingredients,
  .instructions {
    width: 95%; /* Make both sections full width */
    border-radius: 0px; /* Remove rounded corners for better fit */
  }

  .imageContent {
    order: -1; /* Move the image above the text content */
  }

  .imageContent img {
    height: auto; /* Let the image height adjust naturally */
    max-height: 300px; /* Optional: Limit max height for the image */
  }

  .textContent {
    padding: 20px; /* Adjust padding for smaller screens */
    text-align: center; /* Optional: Center-align text on mobile */
  }

  .actionButton {
    margin: 20px auto 0; /* Center the button */
  }

  .timeInfo {
    margin: 0 auto;
    margin-bottom: 10px;
  }
  .card-container4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 684px) {
  .card img {
    height: 200px;
  }

  .card-contents h1 {
    font-size: 1rem;
  }

  .cardDescription {
    display: none;
  }

  .textContent h1 {
    font-size: 2rem;
  }

  .card2 img {
    height: 200px;
  }

  .card-container2 {
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .searchWrapper {
    width: 165px;
  }
  .card-container4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .brand {
    font-size: 2rem;
  }
}

@media (max-width: 384px) {
  .brand {
    font-size: 1.8rem;
  }
  .card img {
    height: 180px;
  }

  .card2 img {
    height: 180px;
  }
  .card-container2 {
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
