body {
    background-color: blanchedalmond;
    font-family: 'Roboto', sans-serif;
    padding: 1rem;
    display: flex;
    flex-direction: column;   
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    align-items: center;
}

li {
    list-style: circle;
    padding: .2em;
}

.nav, .login-nav {
    display: flex;
    gap: 1rem;
}

.login-nav {
    justify-content: flex-end;
}

.recipes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.recipe-box, .description {
    padding: 1rem;
    margin: 0.5rem;
    background-color: rgb(241, 208, 161);
    box-sizing: border-box;
}

.description {
    max-width: 90%;
}

.recipe-box {
    border: 3px dotted rgb(233, 158, 54);
    flex: 1 1 calc(40% - 16px);
    max-width: calc(50% - 16px);
    box-sizing: border-box;
}

.recipe-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Styling for recipes.html */
.recipe-tag {
    font-style: italic;
    color: darkslategray;
}

.recipe-info {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgb(194, 155, 39);
    padding-left: 10px;
    max-width: 40rem;
}

.recipe-info p {
    flex: 0 0 calc(40% - 6px);
    padding: 5px;
}

.add-button {
    margin-left: 20px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;

    opacity: 0;
    transform: translateY(20px);

    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Styling for shoppingcart.html */
.shopping-list {
    background-color: rgb(249, 244, 237);
    margin: 1em;
    width: 500px;
    min-height: 500px;
    position: relative;
    border: 2px inset rgb(249, 216, 167);
}

.shopping-list h1 {
    font-family: cursive;
    padding-left: 20px;
    border-bottom: 1px solid rgb(200, 223, 247);
}

.shopping-list::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgb(200, 223, 247);
}

.shopping-list ul{
    padding-left: 0;
}

.shopping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgb(200, 223, 247);
    padding-left: 20px;
}

.shopping-item form {
    margin: 0;
    display: flex;
    align-items: center;
}

.empty-list {
    text-indent: 25px;
    border-bottom: 1px solid rgb(200, 223, 247);
}

.item-text.checked {
    text-decoration: line-through;
    color: #999;
}

@media (max-width: 600px) {
    .recipes {
        flex-direction: column; 
        align-items: stretch;
    }
    .recipe-box, .description {
        max-width: 100%;
        margin: 0.5rem;
    }
    
    .recipe-box {
        flex: 0 0 100%;
    }

    .top {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}