body
{
    margin: 0;
    padding: 0;
    font-family: Tahoma, Arial, sans-serif;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.logo-img {
    height: 60px; /* Scaled down slightly for mobile */
    width: auto;
}

/* Header and Nav */
.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-bottom: 2px solid orange;
}

#logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#main-nav {
    width: 100%;
}

/* Updated Menu Styles */
#jsddm {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#jsddm li {
    position: relative;
}

#jsddm li a {
    display: block;
    background: #00FF00;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid white;
    min-width: 100px;
    color: blue;
    text-align: center;
    font: 16px Tahoma, Arial;
}

#jsddm li a:hover {
    background: #8EA344;
}

#jsddm li ul {
    margin: 0;
    padding: 0;
    position: absolute;
    visibility: hidden;
    z-index: 1000;
    width: 200px;
}

#jsddm li:hover ul {
    visibility: visible;
}

#jsddm li ul li {
    float: none;
}

#jsddm li ul li a {
    width: auto;
    background: #00FF00;
    color: #EAFFED;
    text-align: left;
}

/* Tables and Content */
.content {
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.table1, .table2 {
    width: 100% !important;
    margin-bottom: 20px;
}

/* Touch-friendly headers */
table.display thead th {
    padding: 12px 20px 12px 10px !important;
    background-position: center right 5px !important;
    font-size: 16px;
    background-color: #f2f2f2;
}

/* DataTables elements responsive */
.dataTables_wrapper {
    width: 100%;
}

.dataTables_length, .dataTables_filter {
    width: 100%;
    float: none;
    text-align: left;
    margin-bottom: 10px;
}

.dataTables_info, .dataTables_paginate {
    width: 100%;
    float: none;
    text-align: center;
    margin-top: 10px;
}

/* Quick Search Responsive */
#varform h2 {
    font-size: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#varform input[type="text"] {
    padding: 5px;
    font-size: 1rem;
}

/* Recipe Detail Styles */
.recipe-container {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipe-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.recipe-main-img {
    border-radius: 4px;
    max-width: 300px;
}

.recipe-title-box {
    flex: 1;
    min-width: 280px;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.recipe-ingredients {
    flex: 1;
    min-width: 250px;
}

.recipe-method {
    flex: 2;
    min-width: 300px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Crucial for padding */
}

.submit-container {
    text-align: center;
    margin-top: 20px;
}

.submit-container input[type="submit"] {
    background-color: #00FF00;
    border: 1px solid #8EA344;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
}

.submit-container input[type="submit"]:hover {
    background-color: #8EA344;
}

/* More Media Queries */
@media (max-width: 768px) {
    .recipe-grid {
        flex-direction: column;
    }
    
    .recipe-method {
        flex: 1;
    }
    
    .recipe-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .recipe-meta {
        justify-content: center;
    }
}

                        
textarea {
margin-right: 5%;
margin-bottom: 0px;
margin-left: 5%;
}

.textarea1 {
width: 80%;
height: 150px;
}

.textarea2 {
height: 150px;
}

