/* Responsive Design */
@media (max-width: 768px) {
    .recipe-details-container {
        flex-direction: column;
    }

    .recipe-image, .recipe-main, .recipe-extra {
        flex: unset;
        width: 100%;
    }
}


/* Combined Styles with Animations and Collapsible Menu */
:root {
    --main-bg-color: #f8f5f2;
    --accent-color: #a63a24;
    --button-color: #d9794b;
    --text-color: #3e3e3e;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
    --border-radius: 12px;
    --form-padding: 12px;
    --form-font-size: 1rem;
    --button-hover-color: #a63a24;


}


body {
    font-family: var(--heading-font);
    background-color: var(--main-bg-color);
    color: var(--text-color);
    margin: 20px;
    padding: 0;
}

form {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

form select, form input, form button {
    padding: var(--form-padding);
    font-size: var(--form-font-size);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.2s;
}

form button {
    background-color: var(--button-color);
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: var(--button-hover-color);
    transform: scale(1.05);
}

form select:hover, form input:hover {
    border-color: var(--button-hover-color);
    transform: scale(1.02);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background: var(--button-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9ecef;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    padding: 5px 10px;
    background: var(--button-color);
    color: white;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.pagination a:hover {
    background: var(--button-hover-color);
}

.recipe {
    margin-top: 20px;
}

.recipe h1 {
    margin-bottom: 10px;
    color: var(--button-color);
}

.recipe img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--border-radius);
}

.recipe button {
    padding: 10px 20px;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.recipe button:hover {
    background: var(--button-hover-color);
}


/* General Styling */
.recipe-details-container {
    max-width: 1500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #262626;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Top Row: Title */
.recipe-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff7f27;
}

.recipe-header h1 {
    color: #ff7f27;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 5px #000;
}

/* Second Row: Four Columns Layout */
.recipe-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.recipe-image,
.recipe-ingredients,
.recipe-instructions,
.recipe-extra {
    background-color: #f8f5f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Image Column */
.recipe-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Ingredients Column */
.recipe-ingredients h2,
.recipe-instructions h2,
.recipe-extra h2 {
    color: #3e3e3e;
    margin-bottom: 10px;
    border-bottom: 2px solid #ff7f27;
    padding-bottom: 5px;
}

.recipe-ingredients p,
.recipe-instructions p {
    line-height: 1.6;
}

/* Instructions Column */
.recipe-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.recipe-instructions li {
    margin-bottom: 10px;
}

/* Extra Details Column */
.recipe-extra p {
    margin: 10px 0;
    line-height: 1.4;
}

.recipe-extra button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff7f27;
    color: #1c1c1c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.recipe-extra button:hover {
    background-color: #e8701d;
}

