body {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 2rem;
    background-color: beige;
}

img {
    max-width: 100%;
}

.top {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2.5rem;
    padding-top: 1rem;
    padding-left: 1rem;
    justify-content: center;
}

.nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.recipe-page {
    width: min(75%, 900px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 3rem;
}

.recipe-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}

.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    border: 1px solid black;
    background-color: #fff7d6;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-form select,
.review-form textarea,
.review-form button {
    font: inherit;
}

.review-form select,
.review-form textarea {
    padding: 0.5rem;
}

.review-form button {
    width: fit-content;
    border: 1px solid black;
    background-color: #f0e4a7;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.review-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-error {
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px solid black;
    background-color: #f7cfcf;
}

.hidden {
    display: none;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    border: 1px solid black;
    background-color: bisque;
    padding: 1rem;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.review-date {
    margin-bottom: 0;
    font-size: 0.9rem;
}


.cards-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-grow: 1;
    width: 75%;
    gap: 3rem;
    justify-content: center;
}

.card {
    border: 2px black solid;
    display: flex;
    flex-direction: column;
    width: calc(25% - .167rem);
    flex-grow: 0;
    background-color: bisque;
    padding-left: .5rem;
}

.card ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.card li a {
    text-decoration: none;
}

.card li a:hover {
    text-decoration: underline;
    font-weight: bold;
}


@media (max-width: 900px){
.card {
        width: calc(37.5% - .25rem);
    }
}


@media (max-width: 600px){
    .recipe-page {
        width: 100%;
        padding: 0 1rem 3rem;
        box-sizing: border-box;
    }

    .recipe-columns {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
    }

    .card {
        width: 100%
    }
}
