body{
    background-color: #F7F6F2;
    font-family: Arial, sans-serif;
    color: #333333;
    padding: 0;
    margin: 0;
}
.header-container{
    background-image: url("https://images.unsplash.com/photo-1757752462906-62c319c5082d?q=80&w=1160&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    height: 100vh;
    max-width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}
.wrapper{
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    text-align: left;
    max-width: 600px;
    padding: 50px;
}

#search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5E6D3;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
}
.search-box {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px;
    position: relative;
}
#search-input{
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #2E7D32;
    color: #333333;
    width: 50%;
    padding: 10px;
}

#suggestions-list {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-top: none;
    top: 100%;
    width: 50%; 
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

#suggestions-list li {
    padding: 8px 12px;
    cursor: pointer;
    
}

#suggestions-list li:hover {
    background: #A5D6A7;
}

.button, #search-button{
    background-color: #2E7D32;
    color: #F5E6D3 ;
    padding: 5px 10px;
    border: none;
    
}
.button:hover, #search-button:hover{
    background-color: #A5D6A7;
    color: #333333;
    transform:scale(1,1.15);
    cursor: pointer;
    border-radius: 3px;
}

#recipe-details-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

#recipe-details-section.hidden {
    display: none;
}

#recipe-details-container {
    width: 100%;
    max-width: 1100px;
    background-color: transparent;
}

#recipe-details-container img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}

#recipe-details-container:not(.results-grid) {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#recipe-details-container:not(.results-grid) img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.result-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.result-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.result-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.loading-message {
    text-align: center;
    font-size: 18px;
}