

/* Center the main content */
main {
    width: 90%; /* Restrict the width to ensure readability */
    max-width: 1200px; /* Add a max-width for larger screens */
    margin: 20px auto; /* Center main content horizontally */
    background-color: #fff; /* Optional: Add a white background to the content */
    border-radius: 10px; /* Optional: Smooth corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better contrast */
    text-align: center;

}

.recipe-list {
    text-align: center;
    margin: 20px auto;
}

.recipe {
    display: inline-block;
    text-align: center;
    margin: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 220px;
}

.recipe img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.recipe h3 {
    font-family: 'Lobster', cursive;
    color: #333;
    font-size: 28px;
}

.recipe p {
    font-size: 14px;
    color: #555;
}

.recipe .button {
    display: block;
    background-color: #444;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.recipe .button:hover {
    background-color: #666;
}
/* Button */

.styled-button {
    background-color: #4CAF50; /* Green background */
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 15px 32px; /* Some padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: block; /* Make the button inline */
    font-size: 16px; /* Increase font size */
    margin: 4px 2px; /* Add some margin */
    cursor: pointer; /* Add a pointer on hover */
    border-radius: 12px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition */
}


.question {
    
    background-color: #f0f0f0; /* Optional styling */
    text-align: justify;
    border-radius: 10px; /* Optional: Smooth corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better contrast */
    margin-bottom: 20px; /* Adds space below the fullwidth section */
    margin: 0 auto; /* Centers the grid container */
    max-width: 1200px; /* Optional: restricts the width of the grid */
    width: 90%; /* Optional: restricts the width of the grid */
}

ul {
    margin-left: 15px;
    padding: 5px;
}

.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Adds consistent spacing */
}

fieldset {
    display: inline-block;
    vertical-align: top; /* Ensures alignment with adjacent elements */
    margin: 10px; /* Adjusts spacing */
    text-align: center;
}

/* Conversion Chart*/
#conversion-chart table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#conversion-chart th, #conversion-chart td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#conversion-chart th {
    background-color: #f4f4f4;
    font-weight: bold;
}
/* General Styling */

header {
    text-align: center;
    background: #333;
    padding: 10px 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #333;
    align-items: center;
    min-height: 100vh; 
}

#recipe-content {
    flex: 2;
    min-width: 300px;
}

#recipe-photos {
    flex: 1;
    min-width: 300px;
}

#recipe-photos img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}


        
fieldset input {
    margin-bottom: 10px;
    margin-right: 15px;
        text-align: center;


}

fieldset label {
    text-align: center;
}


/* Footer Styling */
footer {
    text-align: center;
    background: #f4f4f4;
    padding: 10px 0;
}

/* Responsive Design with Media Queries */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    #recipe-photos {
        order: -1; /* Photos will appear above content on smaller screens */
    }
}

    /* Print media rule*/
@media print {
    img, .logo {
        display: none;
     }
    body {
        font-size: 10px;
        margin: 10mm; /* Adjust margins for better fitting */
    }
    h1, h2 {
        page-break-after: avoid;
    }
    img {
        max-width: 50%; /* Prevent oversized images */
    }
    .no-print {
        display: none; /* Hide unnecessary elements */
    }
}

/* Centering the unordered list and its items */
.parent {
    text-align: center;
}

.parent > ul {
    list-style: inside; /* Keeps the bullet points */
    display: inline-block;
    margin: 0;
    text-align: justify;
    padding-left: 0;
    column-count: 2; /* Splits the list into two columns */
    column-gap: 10px; /* Adds space between the columns */
    padding: 20px;
}

.parent > li {
    margin-right: 20px;
    text-align: justify;
    margin: 20px;
    margin-bottom: 30px; /* Adds spacing between items */
}

.parent > ol {
        list-style: decimal; /* Keeps the numbers visible */
        display: inline-block;
        margin: 40px;
        margin-right: 20px;
        text-align: justify;
        padding: 20px;

       
    }
    
footer {
    text-align: center;
    background: #f4f4f4;
    padding: 10px 0;
}
/* Header and Logo */
header {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}
h1 {
    font-family: 'Lobster', cursive;
    font-size: 40px;
}

h2 {
    font-family: 'Lobster', cursive;
    font-size: 32px;
}


header img {
    max-width: 200px;
    height: auto;
}

/* Navigation Bar */
nav {
    width: 100%;
    background-color: #444;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}
/* Style for the active menu item */
.active {
    font-weight: bold;
    text-decoration: underline; /* Optional: add an underline for emphasis */
}
nav ul li a:hover {
    text-decoration: underline;
}


/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center; /* Centers the text in the footer */
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
/* Banner Image */
.banner {
    width: 100%;
    height: auto;
    max-height: 500px;
}

