* { margin: 0; padding: 0; box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Playwrite US Trad", sans-serif;
    font-size: 22px;
    color: #a8570c;
}

.author-featured-tags {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-featured {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-featured li {
    list-style: none;
}

.recipe-page-tags {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-name-profile {
    border-bottom: 2px solid #8B5E34;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

.username-profile {
    display: flex;
    flex-direction: row;
    gap:0.25rem;
    align-items: end;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.home-mycookbook {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.home-mycookbook li {
    list-style: none;
}

.search-page-search-bar input {
    width: 100%;
    padding: 0.25rem;
}

.search-bar {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0.25rem;
}

.search-bar input {
    display: flex;
    padding: 0.25rem;
}

.search-bar button {
    display: flex;
    padding: 0.25rem;
}

header {
    display: flex;
    flex-direction: column;

    padding: 0 0 3rem;
}

body {
    background-color: #F7F1E8;
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    color: #2E261C;
}

.photo-recipe-descrip-container {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 1rem;

}

.ingredient-step-container {
    display: flex;
    flex-direction: row;
    padding-top: 1rem;
    gap: 2rem;
    justify-content: space-evenly;
}

.recipe-image {
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
}

.recipe-image img {
    height: auto;
}

.recipe-description {
    display: flex;
    flex-grow: 2;
    flex-shrink: 1;
    min-width: 0;
}

.label-input {
    display: flex;
    padding-bottom: 2rem;
    flex-direction: column;
    justify-content: right;
    width: 100%;
}

.label-input input {
    padding: 0.25rem;
}

.sign-in-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.sign-in-button button {
    display: flex;
    width: 25%;
    justify-content: center;
    padding: 0.25rem;

}


@media (max-width: 600px) {
    .featured-recipes li {
        list-style: none;
        width: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 400px) {
    .featured-recipes li {
        list-style: none;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .photo-times-container {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0;
    }

    .photo-recipe-descrip-container {
        display: flex;
        flex-direction: column;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ingredient-step-container {
        display: flex;
        flex-direction: column;
    }

    .main-section {
        background-color: #FFF9F1; /* paper */
        padding-left: 0;
        padding-right: 0;
        border-left: none;
        border-right: none;
    }

    .header-name-profile {
        padding: 0.5rem;
    }

    .label-input {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        width: 80%;
        justify-content: right;
    }

    .label-input input {
        padding: 0.25rem;
        align-items: baseline;
    }

    .sign-in-button button {
        width: 50%;
        min-width: 200px;
    }
}

.user-info-pic-container {
    display: flex;
    flex-direction: row;
    padding-bottom: 3rem;
}

.profile-img {
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin-left: auto;
    height: 5rem;
    width: 5rem;
}

.profile-header {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.profile-header li {
    list-style: none;
}

.recipe-card {
    border: 3px solid #F7F1E8;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.recipe-card img {
    max-width: 100%;
    padding: 0.5rem;
    height: auto;
}

.featured-recipes {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    padding-top: 1rem;
}

.featured-recipes li {
    list-style: none;
    width: calc((100% - 2rem) / 3);
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
}

.container {
    font-size: 18px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 .5rem;
}

.main-title {
    font-size: 32px;
}

.list-title {
    font-weight: 600;
    list-style: none;
}

.time {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

.ingredient-list {
    line-height: 1.25;
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

.ingredient-list li {
    text-indent: -1rem;
    padding-left: 1rem;
}

.steps-list {
    line-height: 1.25;
    padding-left: 1rem
}

.recipe-description {
    line-height: 1.25;
    padding: 0 0 2rem;
}

.tags {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.tags li {
    gap: 0.5rem;
    text-wrap: nowrap;
}

.tags a {
    color: #8B5E34;
    text-decoration: none;
}

ul.tags a:hover {
    color: #a8570c;
    text-decoration: underline;
}

ul.link a {
    color: #8B5E34;
    text-decoration: none;
    list-style: none;
}

ul.link a:hover {
    color: #a8570c;
    text-decoration: underline;
}

.link {
    color: #8B5E34;
    text-decoration: none;
}

.link:hover {
    color: #a8570c;
    text-decoration: underline;
}

.recipe-title {
    color: #8B5E34;
    text-decoration: none;
}

.recipe-title:hover {
    color: #a8570c;
    text-decoration: underline;
    list-style: none;
}

a.button {
    padding: .5em 1em;
    background-color: #8B5E34;
    color: #F7F1E8;
    border-radius: 30px;
    text-decoration: none;
}

a.button:hover {
    background-color: #a8570c;
    color: #FFF9F1;
    border-radius: 30px;
}

.recipe-photo {
    transform: rotate(2deg);
    border: 5px white;
    border-radius: 3px;
    max-width: 100%;
    padding-bottom: 0.5rem;
}

.html {
    font-size: 18px;
    background-color: #FFF9F1; /* cream */
}

.main-section {
    background-color: #FFF9F1; /* paper */
    border: 1px solid #2E261C;
    border-radius: 30px;
    padding: 2rem;
}

.visually-hidden {
    display: none;
}

/* ---------------------- EDIT RECIPE ------------------------- */
.ingredient-row {
    display: flex;
    flex-direction: row;
    padding: 0.25rem 0 0.25rem 2rem;
}

.error-list{
   color: red;
}

.edit-steps-list {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.edit-ingredient-in-step {
    display: flex;
    flex-direction: column;
    padding: 0.25rem;
}

.edit-ingredient-amount {
    width: 20%;
}

.edit-ingredient-unit {
    width: 30%;
}

.edit-ingredient-name {
    width: 50%;
}

.edit-amount-unit-name {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

.edit-step {
    vertical-align: top;
}

textarea {
    display: flex;
    width: 100%;
    resize: vertical;
}

.edit-photo-recipe-descrip-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: 50%;
}

#edit-prep-time {
    width: 60px;
    height: 25px;
}

#edit-cook-time {
    width: 60px;
    height: 25px;
}

#edit-total-time {
    width: 60px;
    height: 25px;
}

#edit-yield {
    width: 60px;
    height: 25px;
}

#edit-recipe-description {
    display: flex;
    flex-direction: column;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    width: 500px;
}

.save-edit-button {
    display: flex;
    flex-direction: column;
    height: 20px;
    text-align: center;
}

#edit-recipe-title {
    display: flex;
    flex-direction: column;
    width: 550px;
    height: 80px;
    font-size: 32px;
    font-family: "Playwrite US Trad", sans-serif;
    color: #a8570c;
    font-weight: bold;
}

.edit-title-save-button-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* ----------------------- Make Public Button ----------------------- */

#make-public-button {
    display: flex;
    flex-direction: column;
    height: 20px;
    text-align: center;
}

/* ---------------------- Show Password Checkbox ------------------- */

.checkbox-container {
    display: flex;
    flex-direction: row;
    text-align: center;
    font-size: 16px;
    gap: 0.5rem;
}










