body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 20px;
}

.top {
    display: flex;
    gap: 1rem;
}

.brand {
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}

.nav {
    display: flex;
    flex-direction: horizontal;
    gap: 1rem;
}

.recipe-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.recipe-box {
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    display: flex; 
    flex-direction: column;
    width: 100%;
    padding-bottom: 2rem;
}

.recipe-title {
    text-decoration: none;
    color: rgb(22, 104, 98);
}

.tag {
    color: rgb(77, 77, 130);
    font-style: italic;
}

.recipe-info {
    border: 1px solid #ac7c7c;
    padding: 1rem;
    max-width: 800px;
}

.serving-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.serving-option-button {
    padding: 0.35rem 0.75rem;
    border: 1px solid rgb(22, 104, 98);
    border-radius: 999px;
    background: white;
    color: rgb(22, 104, 98);
    font: inherit;
    cursor: pointer;
}

.serving-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.serving-form input {
    width: 5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ac7c7c;
    border-radius: 0.35rem;
    font: inherit;
}

.serving-form button {
    padding: 0.4rem 0.8rem;
    border: 0;
    border-radius: 0.35rem;
    background: rgb(22, 104, 98);
    color: white;
    font: inherit;
    cursor: pointer;
}

.serving-note {
    width: 100%;
    margin: 0;
    color: #5f4b4b;
    font-size: 0.95rem;
}

.ingredient-amount {
    display: inline-block;
    min-width: 2.5rem;
    font-weight: bold;
    color: rgb(22, 104, 98);
}

.recipe-columns {
    display: flex;
    flex-direction: column;

}

.recipe-columns h2 {
    color: rgb(15, 15, 98);
}

@media (min-width: 600px) {
    .recipe-box {
        width: calc(50% - 3rem);
    }

    .recipe-columns {
        flex-direction: row;
        gap: 1rem;
        max-width: 800px;
    }
}
