body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f5f9;
    color: #1e2022;
}

header {
    background-color: #52616b;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h2 {
    color: #52616b;
    border-bottom: 2px solid #52616b;
    padding-bottom: 0.5rem;
}

#ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ingredient {
    font-size: 2.5rem;
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #c9d6df;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ingredient:hover {
    transform: scale(1.05);
}

.ingredient.selected {
    background-color: #52616b;
    color: white;
    border-color: #52616b;
}

#filters {
    margin-bottom: 2rem;
}

select {
    padding: 0.5rem;
    margin-right: 1rem;
    border: 1px solid #c9d6df;
    border-radius: 5px;
    background-color: white;
}

#generate-button {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: #52616b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#generate-button:hover {
    background-color: #3e4a52;
}

#recipe-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-card-content {
    padding: 1rem;
}

.recipe-card h3 {
    margin-top: 0;
    color: #52616b;
}

.recipe-card p {
    color: #6c757d;
}

.recipe-card .ingredients {
    margin-top: 1rem;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #52616b;
    color: white;
}