body {
    font-family: Arial, sans-serif;
    background-color: #faf9eb;
    margin: 0;
    padding: 0 1rem;
}

header, main {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    margin-top: 1rem;
    background-color: pink;
    border: 1px solid #cc77aa;
    border-radius: 12px;
}

main {
    border-radius: 12px;
    margin-bottom: 2rem;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #cc77aa;
}

.nav  {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
}

.site-brand {
    font-size: 2rem;
    font-weight: bold;
    color: #961462;
}

a {
    color: #a62472;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.recipes, .recipes-list, .cards-area {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.recipe-box {
    background-color: #ffdddd;
    border: 1px solid #cc77aa;
    border-radius: 8px;
    padding: 1rem;
    width: calc(33.33% - 0.78rem);
}

.recipe-box img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.25rem;
}

.tag {
    background-color: pink;
    padding: 0.25rem 0.6rem;
    margin-right: 0.4rem;
    border-radius: 999px;
}

.shopping-items{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shopping-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shopping-item.checked label{
    text-decoration: line-through;
}

.remove-item {
    background-color: white;
    color: #b22222;
    border: 1px solid #b22222;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}

.remove-item:hover {
    background-color: #ffe5e5;
}

.add-to-list{
    background-color: pink;
    padding: 0.25rem 0.25rem;
    border: 1px solid #cc77aa;
    border-radius: 8px;
    cursor: pointer;
}

.search-button{
    background-color: pink;
    padding: 0.25rem 0.25rem;
    border: 1px solid #cc77aa;
    border-radius: 8px;
    cursor: pointer;
}

.search-block{
    margin-bottom: 1rem;;
}

* {
    box-sizing: border-box;
}
@media (max-width: 700px) {
    header, main {
        padding: 0.75rem;
    }

    .top {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-direction: row;
        gap: 0.75rem;
    }

    .recipes, .recipes-list, .cards-area {
        flex-direction: column;
    }

    .recipe-box {
        width: 100%;
    }
}