/* ==================== General Styles ==================== */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    scroll-behavior: smooth;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #4CAF50;
    font-weight: bold;
    margin-top: 0;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; margin-top: 30px; }
h3 { font-size: 24px; margin-top: 25px; }
h4 { font-size: 20px; margin-top: 20px; }
h5 { font-size: 18px; margin-top: 15px; }
h6 { font-size: 16px; margin-top: 10px; }

/* ==================== Header ==================== */
header {
    background-color: #4CAF50;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.logo-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: auto;
}

.site-title {
    font-size: 2rem;
    margin: 0;
    color: white;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
}

.print-button {
    background-color: #f57c00;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
}

.print-button:hover {
    background-color: #ef6c00;
}

/* Navigation */
header nav {
    margin-top: 10px;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin-top: 1rem;
}
.nav-menu a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}
.nav-menu li a:hover {
    text-decoration: underline;
}

/* ==================== Footer ==================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

/* ==================== Print Styles ==================== */
@media print {
    header, footer, #rating, #rate-title, .print-button, .side-logo .print-button {
        display: none !important;
    }

    /* Limit number of pages to two */
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Break the content into two pages */
    .page-break {
        page-break-before: always;
    }

    /* Control page breaks for specific sections */
    .ingredient-gallery, .method, .notes {
        page-break-inside: avoid;
    }

    .ingredient-figure {
        page-break-inside: avoid;
    }

    .main-button {
        display: none; /* Hide unnecessary buttons */
    }

    /* Fine-tuning content to fit on two pages */
    .method, .ingredient-gallery, .rating, .notes {
        font-size: 12px;
    }
}

/* ==================== Tables ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
table th {
    background-color: #4CAF50;
    color: white;
}
caption {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

/* ==================== Buttons ==================== */
.main-button,
form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}
.main-button:hover,
form button:hover {
    background-color: #45a049;
}

/* ==================== Forms ==================== */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
form label {
    display: block;
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}
form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
form button {
    margin-top: 15px;
}

/* ==================== Accessibility ==================== */
input:focus,
textarea:focus,
button:focus,
a:focus {
    border-color: #4CAF50;
    outline: 3px solid #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* ==================== Star Rating ==================== */
.star {
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
}
.star.rated {
    color: gold;
}

/* ==================== Side Logo ==================== */
.side-logo {
    display: none;
    position: fixed;
    left: 0;
    top: 100px;
    width: 80px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-right: 1px solid #ccc;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.rhonda-page .side-logo {
    display: flex;
}
.side-logo .print-button {
    display: none;
    position: static;
    margin: 0;
    font-size: 14px;
    padding: 6px 10px;
}
.rhonda-page .side-logo .print-button {
    display: inline-block;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* ==================== Ingredient Gallery ==================== */
.ingredient-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ingredient-figure {
    text-align: center;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
}

.ingredient-figure img {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    object-fit: cover;
}

.ingredient-figure figcaption {
    margin-top: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: #4CAF50;
}

img[src="Images/Chutney.jpg"] {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    object-fit: cover;
}/* ==================== Footer ==================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    margin-top: 20px; /* Add space above footer */
}

footer .footer-content {
    font-size: 12px; /* Smaller font for the footer text */
}

