body {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 1000px;
    margin: 0 auto;
    width: 100%;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: rgb(224, 217, 206);
}

/* RECIPE LIST/CARDS */
.recipes, .recipes-list, .cards-area{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;

    max-width: 800px;   /* assignment suggested around 700px max width */

    margin: 0 3rem;
    padding: 1rem;

    background-color: rgb(244, 239, 232);
    border: 3px solid rgb(164, 162, 159);
}

.recipe-box, .card {
    flex: 1 1 400px;
    /* In order to allow for two columns, max-width 
    is roughly half of the container max-width */
    max-width: 320px;
    padding: 0 1rem;
}

/* NAV ROW */
.nav-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0 0 0;
}

.nav-row a {
    text-decoration: none;
    font-weight: 600;
}

/* TOP CLASS  */
.top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;

    padding: 1rem 2rem;
    box-sizing: border-box;

    background-color: rgb(238, 229, 229);
}
.top a {
    text-decoration: none;
    font-weight: 600;
}

/* COMMENT SECTION */

.comment-section {
    width: 100%;
    max-width: 800px;
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(164, 162, 159);
    padding: 1.5rem;
    margin: 1.5rem 3rem;
    box-sizing: border-box;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
}

.comment-form textarea {
    padding: 0.75rem;
    border: 1px solid rgb(164, 162, 159);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.comment-form button {
    width: fit-content;
    padding: 0.75rem 1.25rem;
    border: none;
    background-color: rgb(164, 162, 159);
    color: #000;
    cursor: pointer;
}

.comment-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-card {
    border-top: 1px solid rgb(164, 162, 159);
    padding: 1rem 0;
}

.comment-card:first-of-type {
    border-top: none;
}

.comment-meta {
    font-size: 0.9rem;
    color: rgb(96, 90, 84);
    margin-bottom: 0.5rem;
}

.comment-error {
    margin: 0;
    color: rgb(169, 35, 35);
    font-size: 0.9rem;
}

.no-comments {
    color: rgb(96, 90, 84);
}

@media (max-width: 600px) {
    .recipe-box, .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .top {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
}