.recipe-section p {  /* or .recipe-section a */
  word-break: break-word; 
}

.flash-messages {
    margin: 0px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    z-index: 999;
}
.alert {
    padding: 10px;
    margin-bottom: 0px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-success {
    margin-top: 10px;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* Basic reset and body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    padding-top: 120px; /* Adjust this value based on the actual height of your header */
    scroll-behavior: smooth;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #0056b3;
}

body.dark-mode .sub-nav {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode input[type="text"], 
body.dark-mode input[type="email"], 
body.dark-mode input[type="password"], 
body.dark-mode input[type="file"], 
body.dark-mode textarea,
body.dark-mode select {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode input[type="password"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #007BFF;
    background-color: #4d4d4d;
}

body.dark-mode .recipe-card {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

body.dark-mode .recipe-section {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .personal-note {
    background-color: #3d3d3d;
    border-left-color: #007BFF;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode .notification {
    background-color: #3d3d3d;
    border-color: #555;
}

body.dark-mode .filter-dropdown {
    background-color: #2d2d2d;
    border-color: #555;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #e0e0e0;
}

body.dark-mode .recipe-name {
    color: #4da6ff;
}

body.dark-mode .ai-disclosure {
    background-color: #3d3d3d;
    border-left-color: #007BFF;
    color: #ccc;
}

body.dark-mode .recipe-tag {
    background-color: #0056b3;
    color: #e0e0e0;
    border-color: #007BFF;
}

body.dark-mode .recipe-tag:hover {
    background-color: #007BFF;
    color: #fff;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* Flex container for the logo, search, and logout icon */
.header-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    height: 39px;
    width: auto;
    margin-right: 20px; /* Space between logo and search bar */
}

/* Default styling for larger screens */
.search-form {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allows the search form to expand */
    margin-left: 60%; /* Pushes the logout icon to the far right */
}

.search-input {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 250px; /* Default width */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .search-form {
        margin-left: auto; /* Adjust margin to center the form */
        flex-grow: 0; /* Prevents the form from taking excessive space */
        width: 60%; /* Set a responsive width */
    }

    .search-input {
        width: 100px; /* Adjust width to fit smaller screens */
    }
}

@media (max-width: 480px) {
    .search-form {
        flex-direction: column; /* Stack the search and button vertically */
        margin-left: 0;
        width: 100%; /* Full width on very small screens */
    }

    .search-input {
        width: 80%; /* Make the input take up more space */
        margin-bottom: 10px; /* Add some space between input and button */
    }

    .search-button {
        width: 80%; /* Ensure button width matches input */
    }
}


.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
}

.search-icon {
    width: 24px; /* Adjust size */
    height: 24px;
}

.back-icon {
    margin-left: -86% !important;
    width: auto; /* Adjust size */
    height: 24px;
    display: flex;
    align-items: center;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none; /* Remove underline from the link */
}

.back-icon:hover {
    transform: scale(1.1); /* Scales the icon slightly on hover */
}
.back-icon_blue {
    height: 24px;
    width: auto;
}
.home-icon_blue {
    height: 24px;
    width: auto;
}

.logout-button {
    margin-left: 20px; /* Space between search bar and logout icon */
    display: flex;
    align-items: center;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none; /* Remove underline from the link */
}

.logout-icon {
    width: 24px; /* Set the size of the icon */
    height: 24px;
    transition: transform 0.2s ease; /* Adds a hover effect */
}

.logout-icon:hover {
    transform: scale(1.1); /* Scales the icon slightly on hover */
}

/* Main content styling */
.main-content {
    margin-top: -60px; /* Adjust to match the height of the header */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container styling */
.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

/* Heading styles */
h1 {
    font-size: 2.5em;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
    margin-top: 80px; /* Adjust this value to match the height of your header */
}

/* Profile picture styles */
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 10px;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-link:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Button styles */
button, .cancel-button, .view-recipe {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
}

button:hover, .cancel-button:hover, .view-recipe:hover {
    background-color: #0056b3;
}
/* Express Interest Button styles */
.xbutton {
    padding: 10px 20px;
    background-color: #ff40FF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
}

.xbutton:hover {
    background-color: #f900FF;
}

/* Form container styles */
.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

/* Input fields styles */
input[type="text"], input[type="email"], input[type="password"], input[type="file"], textarea {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px; /* Gap between the heading and recipes */
    width: 100%; /* Ensure it fills the container */
}




/* Recipe card styles */
.recipe-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recipe-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.recipe-name {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #007BFF;
}

.recipe-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}
*/
.recipe-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.recipe-details-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recipe-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recipe-section h2 {
    font-size: 1.8em;
    color: #007BFF;
    margin-bottom: 15px;
}*/

ul, ol {
    margin: 0;
    padding: 0 20px; /* Added padding to indent the list */
    list-style-position: inside;
    width: 100%;
}

ul li, ol li {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Additional fallback for word breaking */
}

p {
    font-size: 1.2em;
    color: #555;
    margin: 5px 0;
}

.shared-r-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
}

.shared-r-banner.famlyn-tested {
    background-color: rgba(40, 167, 69, 0.9);
}

.famlyn-tested {
    background-color: rgba(40, 167, 69, 0.9) !important;
}

.i-made-this-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

.i-made-this-section h2 {
    color: #28a745;
}

.i-made-this-section p {
    color: #6c757d;
    font-style: italic;
}

.ai-disclosure {
    background-color: #f8f9fa;
    border-left: 4px solid #007BFF;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    font-size: 0.9em;
    color: #555;
}

/* Recipe Tags */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.recipe-tag {
    background-color: #e9f5ff;
    color: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.9em;
    display: inline-block;
    transition: all 0.2s;
    cursor: pointer;
}

.recipe-tag:hover {
    background-color: #007BFF;
    color: white;
}

/* Personal Notes Styling */
.personal-note-form {
    margin-top: 15px;
}

#personalNoteText {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family: inherit;
}

.personal-note {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    border-left: 3px solid #007BFF;
}

.personal-note p {
    margin: 0 0 8px 0;
}

.personal-note small {
    color: #777;
    font-size: 0.8em;
    display: block;
}

.delete-note {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#loadingNotes {
    color: #6c757d;
    font-style: italic;
}

.shared-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007BFF;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 100;
}
.exchange-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff40ff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 100;
}

.exchange-offered-banner {
    background-color: #ff40ff; /* Orange background */
    color: white;
    padding: 5px;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}


.recipe-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recipe-actions img {
    width: 24px;
    height: 24px;
}

a img {
    display: inline-block;
    vertical-align: bottom;
}

a {
    text-decoration: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for shared users in the modal */
#unshareRecipeModal .shared-users-list li {
    color: #007bff;
}

#unshareRecipeModal .shared-users-list li button {
    color: #007bff;
    border: none;
    background: none;
    cursor: pointer;
}

#unshareRecipeModal .shared-users-list li button:hover {
    text-decoration: underline;
}
.notification {
    display: flex; /* Use flexbox for the main container */
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out the content and icon */
}

.notification-content {
    flex: 1; /* Allow content to take up remaining space */
}

.mark-as-read-form {
    display: flex; /* Use flexbox to keep the button in line */
    align-items: center; /* Center the icon vertically */
    margin-left: 10px; /* Optional: Adjust spacing between text and icon */
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex; /* Ensures button behaves like an inline-flex container */
    align-items: center; /* Centers the icon vertically within the button */
}

.icon-button:hover, .mark-as-read-icon {
    background: white !important;
    opacity: 0.7; /* Adjust opacity on hover */
}

.mark-as-read-icon {

    transition: opacity 0.3s; /* Smooth transition for opacity change */
}

/* General Styling */
h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin-bottom: 10px;
}

.no-notifications {
    color: #777;
    font-style: italic;
    margin-top: 20px;
}

/* Notification Container */
.notification {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.notification:hover {
    background-color: #f1f1f1;
}

/* Notification Image */
.notification-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.notification-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

/* Notification Content */
.notification-content {
    font-size: 14px;
    color: #555;
    flex-grow: 1;
}

/* Mark as Read Button */
.mark-as-read-form {
    margin: 0;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-button:hover {
    transform: scale(1.1);
}

.mark-as-read-icon {
    width: 20px;
    height: 20px;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.icon-button:hover .mark-as-read-icon {
    filter: grayscale(0);
}
#suggestions-list {
    position: absolute;
    z-index: 1000;
    width: calc(100% - 20px); /* Adjust width based on your input field */
    background: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    display: none; /* Initially hidden */
}

#suggestions-list .list-group-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

#suggestions-list .list-group-item:last-child {
    border-bottom: none; /* Remove border for the last item */
}

#suggestions-list .list-group-item:hover {
    background-color: #f1f1f1;
}
/********** Styling for the drop down menu **********/
/* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
}

/* Modal content */
.modal-content {
    background-color: #f4f4f4;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    animation: modalOpen 0.3s ease-in-out;
}

/* Animation for modal */
@keyframes modalOpen {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dropdown styling */
.styled-dropdown {
    width: 93%;
    padding: 10px;
    margin-right: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.styled-dropdown:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* Input styling 
input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* Button styling 
button[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Close button 
.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Close button hover effect 
.modal-content .close:hover {
    color: red;
}*/


.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF; /* Button background color */
    color: white;              /* Button text color */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;        /* Rounded corners */
}
.button-link:hover {
    background-color: #0056b3; /* Hover state */
}
/* General styles for desktop */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-link {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

/* Mobile-friendly styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        max-width: 300px;
    }

    .notification {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .notification-photo, .notification-content {
        margin-bottom: 10px;
    }
}



.clear-button {
    position: absolute;
    right: 40px;  /* Adjust this based on your layout */
    top: 41%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #007BFF;
    font-size: 18px;
    cursor: pointer;
}

.clear-button:hover {
    background: none;
    color: #0056b3;  /* Optional hover effect */
    opacity: 0.7;
}
/* New Sub-Navigation Styling */

.sub-nav {
    display: flex;
    justify-content: flex-start; /* Aligns the items (home and back buttons) to the left */
    align-items: center; /* Vertically centers the buttons */
    padding: 10px;
    background-color: white; /* Add a background color for better visibility */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
    background-color: white;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    height: 15px;
    width: 100%;
    position: fixed;
    top: 58px;
    z-index: 999; /* Ensure it stays on top of other content */
}

/* Center and control width of the search-wrapper */
.search-wrapper {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;  /* Adjust width as needed */
    margin: 0 auto;  /* Center the container */
    margin-right: 0;
    padding: 0px;
    margin-top: 0px;
}

.search-bar-container {
    position: relative;
    display: flex;
    justify-content: flex-end;  /* Align the search bar to the right */
    max-width: 1200px; 
    margin: 0 auto;  /* Center the search bar container if the screen is wide */
    padding: 0px;
    margin-right: 0px;
    margin-top: 10px;
    z-index: 1000px;

}

.search-form {
    display: flex;
    width: 100%;
    max-width: 400px;  /* Limit the width of the search form */
    z-index: 1009;
}

/* Style for the search results */
.search-results {

    margin-right: 0px;
    margin-top: 110px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#search-input {
    flex-grow: 1;
    width: 390px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    margin-top: -10px;
}
.search-button:hover {
    background-color: transparent;
    color: darkgray;
    opacity: 0.7;
}

.clear-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    font-size: 18px;
    font-weight: bold;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    width: 100%;

/* Personal Notes Styling */
.personal-note {
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #007BFF;
    border-radius: 4px;
}

.personal-note p {
    margin: 0 0 10px 0;
}

.personal-note small {
    color: #6c757d;
    display: block;
    font-size: 0.8em;
}

.delete-note {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
}

.personal-note-form {
    margin-top: 20px;
}

.personal-note-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 10px;
    min-height: 80px;
}

}
.homemenu {
    margin-left: 25px;
    margin-right: 0px;
}
.menu-toggle {
    display: none;
}
.logout-Mbutton {
    display: none;
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-block;
        font-size: 24px;
        padding-right: 0px;
        background: none;
        border: none;
        cursor: pointer;
    }
    .menu-toggle:hover {
        background: none;
    }

    .sub-nav .nav-items {
        flex-direction: row;
        justify-content: space-between;
        display: none;
        padding: 10px;
        background-color: #fff;
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        z-index: 1100;
    }

    .sub-nav .search-bar-container {
        padding-top: 0px;
        background-color: #fff;
        width: 100%; /* Full width on mobile */
    }

    /* Show nav-items on menu toggle */
    .sub-nav.open .nav-items {
        display: flex;
        flex-direction: row;
    }

    .search-form {
        display: flex;
        flex-direction: row;
        justify-content: center;   
        align-items: center; /* Ensure vertical alignment */
        width: 95%; /* Form takes full width */
    }

    .search-form input[type="text"] {
        flex-grow: 1; /* Input takes up remaining space */
        margin-right: 8px; /* Small gap between input and button */
        padding: 8px; /* Ensure enough padding inside the input */
        font-size: 16px; /* Adjust for mobile readability */
    }

    .search-button {

        background-color: #fff;
        height: 30px;
        width: auto;
        margin-right:20px;
        color: white;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center; /* Center the button text/icon */
    }

    .clear-button {
        color: #007BFF;    
        margin-left: 10px;
    }
    .homemenu {
        margin-left: 0px;
        margin-right: 10px;
        padding-right: 10px;
    }
    .homemenuforward {
        margin-left: 0px;
        margin-right: 10px;
        padding-right: 10px;
    }
    .homemenuback {
        margin-left: 0px;
        margin-right: 10px;
        padding-right: 10px;
    }
    .logout-Mbutton {
        display: inline-block;
        margin-left: 0px;
        margin-right: 10px;
        padding-right: 20px;
    }
    .logout-button {
        display: none;
    }
    .clear-button {
        background-color: transparent;
        border: none;
        cursor: pointer;
        margin-left: 5px;
        margin-right: 30px;
        font-size: 18px;
        font-weight: bold;
    }
}

/* Search form styling */
.search-bar-container {

}
.homemenu {
    margin-left: 20px;
    margin-right: 10px;
    padding-right: 10px;
}
.homemenuforward {
    margin-left: 0px;
    margin-right: 10px;
    padding-right: 10px;
}
.homemenuback {
    margin-left: 0px;
    margin-right: 10px;
    padding-right: 10px;
}
.recipe-gallery {
    display: flex;
    justify-content: center; /* This centers the gallery */
    flex-wrap: wrap;
    margin-top: 10px;
}

.recipe-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.recipe-main-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-bottom: 20px;
}

.main-image-container {
    text-align: center;
}
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 100%; /* Show above the icon */
    left: 50%;
    margin-left: -90px; /* Centers the tooltip */

    /* Fade-in effect */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

<!-- CSS Styling for drop down filter -->

/* Container for the form */
.filter-form {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between the label and dropdown */
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

/* Label styling */
.filter-label {
    flex-direction: row;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-right: 10px; /* Adds space between the label and the dropdown */
}

/* Dropdown styling */
.styled-dropdown {
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    appearance: none; /* Hides default dropdown icon */
}

/* Hover effect for dropdown */
.styled-dropdown:hover {
    border-color: #007BFF;
}

/* Dropdown focus effect */
.styled-dropdown:focus {
    outline: none;
    border-color: #007BFF;
    background-color: #f1f1f1;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        margin-bottom: 5px;
    }

    .styled-dropdown {
        width: 100%;
    }
}

.image-container {
    position: relative;
    width: 100%;  /* Ensure the image takes full width */
    height: auto; /* Adjusts height based on the image */
    background-color: none; /* Optional: Background color for the container */
}

.mute-icon-container {
    position: absolute;
    top: 8px;  /* Adjust the spacing as needed */
    left: 8px; /* Adjust the spacing as needed */
    z-index: 10;  /* Ensure it appears above the image */

}

.mute-icon-container {
    position: absolute;
    top: 8px;  /* Adjust the spacing as needed */
    left: 8px; /* Adjust the spacing as needed */
    z-index: 10;  /* Ensure it appears above the image */

}

.mute-icon-container img {
    width: 30px;     /* Set icon size */
    height: auto;
    opacity: 0;      /* Initially hide the icon */
    transition: opacity 0.3s ease;  /* Smooth transition */
}

.mute-icon-container:hover img {
    opacity: 1;      /* Show the icon when hovered */
}

/* Mobile devices */
@media (max-width: 768px) {
    .mute-icon-container img {
        opacity: 1;  /* Always visible on mobile */
    }

}



.filter-dropdown {
    position: fixed; /* Changes from absolute to fixed */  
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    margin-left: -120px;
    margin-bottom: -20px;
    z-index: 1000;
    display: none; /* Initially hidden */
}
.pulse-animation {
    animation: pulse 1.5s infinite;
    width: 8px; 
    height: 8px;
    margin-left: -30px;
    margin-bottom: -3px;
    padding-right: 8px;
}
.home-pulse-animation {
    animation: pulse 1.5s infinite;
    width: 8px; 
    height: 8px;
    margin-left: -4px;
    margin-bottom: 8px;
    padding-right: 50px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

    /* Grocery List styles here... */

    .print-icon {
        cursor: pointer;
        width: 30px;
        height: 30px;
        transition: opacity 0.3s;
        margin-top: 10px;
        margin-bottom: -10px;
        margin-left: 20px;
    }

    .print-icon:hover {
        opacity: 0.7;
    }

    .delete-button {
        background: none;
        transition: opacity 0.3s;
        padding: 0;
        cursor: pointer;
    }

    .delete-icon {
        width: 20px;
        height: 20px;
    }

    .list-delete-icon {
    width: 20px;
    height: 20px;
    margin-bottom: -2px;
}

    .list-delete-icon:hover {
        background-color: #f9f9f9 !important;
        opacity: 0.7; /* Adjust opacity on hover */
    }

    .delete-button:hover {
        background-color: #f9f9f9 !important;
        opacity: 0.7; /* Adjust opacity on hover */
    }

    .grocery-list {
        padding-left: 20px;
        margin-top: 10px;
        list-style-position: inside;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #007BFF;
        color: #fff;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-sizing: border-box;
    }

    .logo {
        height: 39px;
        width: auto;
    }

    h2 {
        font-size: 2em;
        color: #333;
        margin-top: 60px;
    }

    .grocery-list li {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .grocery-list li.checked {
        text-decoration: line-through;
        color: #999;
    }



    /* Print Styles */
    @media print {
        body {
            font-size: 12pt; /* Adjust font size for printing */
        }

        header {
            display: none; /* Hide header in print */
        }

        .print-icon {
            display: none; /* Hide print icon in print */
        }

        .add-item-form, /* Hide the form for adding new items */
        .delete-button, /* Hide delete buttons */
        .clear-button { /* Hide clear button */
            display: none; 
        }

        .grocery-list li {
            margin: 0; /* Remove margins for printing */
        }

        .grocery-list {
            padding-left: 0; /* Remove padding for printing */
        }

        /* Ensure checkboxes are shown in print */
        .grocery-list input[type="checkbox"] {
            display: inline; /* Show checkboxes */
            margin-right: 10px; /* Space between checkbox and label */
        }

        h2 {
            page-break-after: avoid; /* Avoid page break after heading */
        }
    }
/* New modal styling */
.modal-famlyn {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

/* Modal content box */
.modal-famlyn-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    max-width: 400px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Close button styling */
.modal-famlyn .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Style for the Connect button */
.connect-button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;  /* Primary button color */
    border: none;
    border-radius: 4px;

}

.connect-button:hover {
    opacity: 1;  /* Full opacity on hover */
}

.button-container {
    display: flex;               /* Use flexbox for layout */
    gap: 10px;                  /* Space between buttons */
}

.btn {
    padding: 10px 15px;         /* Padding for buttons */
    border: none;               /* Remove border */
    border-radius: 5px;        /* Rounded corners */
    cursor: pointer;            /* Pointer cursor on hover */
}

.btn-accept {
    background-color: #007bff;  /* Green background */
    color: white;               /* White text */
}

.btn-ignore {
    background-color: #007bff;  /* Red background */
    color: white;               /* White text */
}