* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-padding-top: 50px; /* Adjust the padding to the height of your top menu */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: block;
    justify-content: start;
    align-items: stretch;
}

/* Top Header Styling */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.header-logo {
    height: 30px;
}

.greeting {
    font-size: 16px;
    color: #333;
}

/* Full-Width Image Styling */
.full-width-image {
    width: 100%;
    height: auto;
    display: block;
	max-height:44px;
	max-width:430px;
}

#maincontent {
    display: block;
    padding: 0px 20px 20px 20px;
    clear: both; /* Ensures it starts below the dropdown */
    padding-bottom: 80px; /* Extra padding to prevent bottom menu overlap */
	color: #AC3B61;
}
#maincontentonly {
    display: block;
    padding: 0px 20px 20px 20px;
    clear: both; /* Ensures it starts below the dropdown */
    padding-bottom: 80px; /* Extra padding to prevent bottom menu overlap */
	color: #AC3B61;
	margin-top:50px;
}
#maincontentfirst {
    display: block;
    padding: 0px 20px 20px 20px;
    clear: both; /* Ensures it starts below the dropdown */
	color: #AC3B61;
}
.imgThumb {
	width:50px;
}

/* Button Styling */
.button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 16px;
    font-weight: bold;
    color: #990000;
    text-align: center;
    padding-bottom: 10px;
    background-color: #BDD6D5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.button img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50%;
    max-height: 50%;
}

/* Bottom Menu Bar Styling */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.bottom-menu .menu-item {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    padding: 10px;
}

.bottom-menu .menu-item:hover {
    background-color: #f0f0f0;
}
#IngredientContent{
	clear: both;
	float: left;
	margin-left: 2.5641%;
	width: 100%;
	display: block;
	color: #AC3B61;
	text-align:left;
	padding: 0px 20px 20px 20px;
}
.heading {
    background-color: #990000; /* Red background for heading */
    color: #FFF; /* White text */
    font-weight: bold; /* Make heading text bold */
    border-radius: 5px; /* Rounded corners for the heading */
    text-align: center; /* Center-align heading text */
}

/* Dropdown Menu Styling */
.dropdown-menu {
    position: relative;
    width: 100%; /* Full-width dropdown */
    text-align: center;
    z-index: 1000;
}

/* Adjust dropdown content to stay within the dropdown area */
.dropdown-content {
    display: none; /* Hidden by default */
    position: relative; /* Aligns below button */
    background-color: #f9f9f9; /* Dropdown background */
    min-width: 100%; /* Full width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Optional shadow */
    z-index: 1;
    text-align: left;
}

/* Show dropdown on hover */
.dropdown-menu:hover .dropdown-content {
    display: block;
}

/* Dropdown Content Styling */
.dropdown-content {
    display: none; /* Initially hidden */
    position: absolute;
    left: 0;
    width: 100%; /* Full width */
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}
/* Dropdown Button Styling */
.dropdown-btn {
    background-color: #333;
    color: white;
    padding: 10px 30px 10px 30px;
    border: none;
    cursor: pointer;
    font-size: 20px; /* Increase font size */
    font-weight: bold; /* Optional: Make it bold for emphasis */
	border-radius: 8px; /* Rounded corners */
}
.add-recipe-container {
	position: fixed;
    top: 180px; /* Distance from the top of the page */
    right: 20px; /* Distance from the right edge of the page */
    z-index: 1000; /* Ensures it stays on top of other elements */
}
.add-recipe-button {
    background-color: #AC3B61;
    color: white; /* White text */
    padding: 5px 8px; /* Button padding */
    font-size: 16px;
    font-weight: bold;
    border: none; /* Remove borders */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s;
}
.add-recipe-button a {
    color: white; /* White text */
	text-decoration:none;
}

.add-recipe-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

#dropdown {
    max-height: 300px; /* Adjust to suit your screen */
    overflow-y: auto;
    transform: translate(0, 95%); /* Offset below the input */
}
.recipe-image {
    width: 100%; /* Makes it responsive */
    max-width: 430px; /* Ensures it doesn’t get too big */
    height: auto; /* Maintains aspect ratio */
    display: block;
    margin: auto; /* Centers the image */
}
@media print {
    /* Hide elements that should not be printed */
	
    .bottom-menu, 
    button[onclick="printRecipe()"] {
        display: none !important;
    }

    /* Prevent the header from repeating */
    .top-header {
        display: block;
        position: static;
    }

    /* Ensure the header only appears on the first page */
    @page {
        margin-top: 50px; /* Adjust as needed */
    }

    .top-header {
        position: relative;
        page-break-after: avoid;
    }

    /* Prevent recipe instructions from breaking */
    .recipe-instructions {
        page-break-inside: avoid;
    }

    /* Ensure the entire recipe stays together as much as possible */
    .recipe-container {
        page-break-before: auto;
        page-break-after: auto;
    }
}
