body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    background-color: azure;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-bottom: 2px solid black;
    padding-bottom: 0.5rem;
}

header nav a {
    text-decoration: none;
    color: black;
}

header nav a:hover {
    text-decoration: underline;
}

header nav .profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-left: 5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.recipes {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    background-color: ivory;
    border: 2px solid black;
    padding: 3rem;
    margin: 1rem;
    max-width: 300px;
}

.recipe-card h2 {
    margin-top: 0;
}

.recipe-card h2 a {
    text-decoration: none;
    color: black;
}

.recipe-card h2 a:hover {
    text-decoration: underline;
}

.recipe-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.recipe-tags span {
    display: flex;
    background-color: cornflowerblue;
    padding: 0.5rem;
    border: 1px solid black;
}

.recipe-tags span a {
    color: black;
    text-decoration: none;
}

.recipe-tags span:hover {
    background-color: aliceblue;
}

.recipe-columns {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.comments-section {
    width: min(700px, 90vw);
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.comment-form button {
    width: fit-content;
}

.comment-message {
    color: darkred;
    margin: 0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    background-color: ivory;
    border: 1px solid black;
    padding: 1rem;
}

.comment h3,
.comment p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
}

.comment-body {
    white-space: pre-line;
}

.comment-delete-button {
    width: fit-content;
}
