body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}
.gallery-item {
    flex: 0 0 calc(33.333% - 10px);
    margin: 5px;
    box-sizing: border-box;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: black;
}

/* Styles for the recipe links section */
.recipe-links-divider {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

#recipeLinks h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

#recipeLinks ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
}

#recipeLinks li {
    margin-bottom: 10px;
}

#recipeLinks a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s;
}

#recipeLinks a:hover {
    background-color: #e0e0e0;
    color: #000;
}

.filter-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    margin: 5px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #333;
    color: #fff;
}
footer {
    background: #f4f4f4;
    text-align: center;
    padding: 6px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #recipeLinks ul {
        flex-direction: column;
    }

    #recipeLinks li {
        width: 100%;
    }
}


