* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playwrite US Trad", serif;
    font-size: 1.25em;
    color: #A8570C;
}

h1 {
    font-size: 1.8em;
}

header {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    width: 100%;
    gap: .25rem;
}

body {
    background-color: #F7F1E8;
    display: flex;
    flex-direction: column;
    padding: 0 .5rem;
    gap: 3rem;
    max-width: 700px;
    width: 100%;
}

html {
    font-size: 18px;
    font-family: "Nunito", sans-serif;
    color: #2E261C;
    display: flex;
    justify-content: center;
}

main {
    max-width: 700px;
    width: 100%;
    background-color: #FFF9F1;
    border-width: 1px;
    border-radius: 50px;
    border-style: solid;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.second-row {
    display: flex;
    justify-content: space-between;
}

.second-row ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.form-gap {
    display: flex;
    gap: .25rem;
}

.button-input-padding {
    padding: .25rem;
}

.login,
.login label,
.login input,
.login button {
    font-size: 1.25em;
}

dt {
    font-weight: 600;
}

.recipe-photo img {
    max-width: 100%;
    height: auto;
    margin-bottom: .5rem;
}

a {
    color: #8B5E34;
    text-decoration: none;
}

a:hover {
    color: #A8570C;
    text-decoration: underline;
}

.index-login-button {
    color: #F7F1E8;
    background-color: #8B5E34;
    border-radius: 20px;
    padding: .5em 1em;
    font-size: 18px;
    font-family: "Nunito", sans-serif;
}

.index-login-button:hover {
    background-color: #A8570C;
}

.index-login a {
    color: #FFF9F1;
}

.name-divider {
    border-style: solid;
    border-width: 1px;
    color: #8B5E34;
}

.visually-hidden {
    display: none;
}

fieldset {
    border-radius: 5px;
    box-shadow: 0px 3px 3px grey;
    background: #FFF;
    margin: 1.5em;
}

.name-profile-linespace {
    margin-bottom: -0.5em;
}

ul {
    list-style-type: none;
}

.hashtag {
    color: grey
}

.tag-search {
    font-size: 1.50em
}

.image-tilt {
    transform: rotate(2deg);
    color: white;
    border-radius: 3px;
}

.index-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
}

.card-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1rem;
}

.card-layout article {
    width: calc((100% - 2rem) / 3);
    padding: .5rem;
    border-radius: 5px;
    box-shadow: 0px 3px 3px grey;
    background: #FFF;
}

.card-layout img {
    max-width: 100%;
    height: auto;
}

.card-layout ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}

.card-layout ul li a {
    display: flex;
    flex-wrap: nowrap;
}

.featured-recipes {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.search-recipe-bar {
    padding: 0 0 2rem;
}

.search-recipe-bar input {
    display: flex;
    width: 100%;
    padding: 0.25rem;
}


.user-logo img {
    width: 5rem;
    height: 5rem;
}

.profile-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;

}

.profile-metadata {
    display: flex;
    gap: 1rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.25;
    padding-left: 1em;
}

.step-label {
    margin-left: -1rem;
}

.recipe-description {
    display: flex;
    gap: 2rem;
}

.recipe-ingredients {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    text-indent: -1rem;
}

.recipe-ingredients h3 {
    line-height: 1;
}

.recipe-cook-time {
    display: flex;
    gap: .25rem 0;
    flex-direction: column;
    width: 100%;
}

.recipe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .5rem;
}

.recipe-cook-time dt {
    flex-wrap: wrap;
    width: calc(25% - .25rem);
}

.recipe-cook-time dd {
    flex-wrap: wrap;
    width: calc(75% - .25rem);
}

.recipe-grid-layout-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.recipe-grid-left-column,
.recipe-ingredients {
    width: calc((100% - 1rem) / 3);
}

.recipe-description,
.steps {
    width: calc((100% - 1rem) / 3 * 2);
}

.recipe-metadata {
    display: flex;
    flex-direction: row;
    gap: 0 1.5rem;
    flex-wrap: wrap;
}

.chicken-header {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0 1.5rem;
}

/* added -----------------------------------------*/
.chicken-header h1 {
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    justify-content: space-between;
}

textarea {
    width: 100%;
    resize: vertical;
}

.steps textarea {
    vertical-align: top;
}

.step-ingredient {
    padding-bottom: 1rem;
}

#recipe-title {
    width: 100%;
    font-family: "Playwrite US Trad", serif;
    font-size: 2.2rem;
    color: #A8570C;
}

.steps ul {
    padding-left: 1.4rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
}

.steps ul li {
    list-style-type: circle;
}

.ingredient-steps {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 0.25rem;
    gap: 0.25rem

}

.recipe-description {
    display: flex;
    flex-direction: column;
    gap: 0.10rem;
}

input {
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
}

input[type=number][size] {
    width: calc(attr(size number) * 1ch + 2rem);
}
/*--------------------------------------------------*/

.tags-recipe {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 .5rem;
}

.login-rows {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    align-items: baseline;
    justify-content: flex-end;
}

.login-rows input {
    width: 80%;
    padding: .25rem;
}

.login-row-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.login-row-button button {
    width: 50%;
    min-width: 200px;
}

/* recipe page */
@media (max-width: 500px) {
    .recipe-grid-layout-row {
        display: block;
        padding-bottom: 2rem;
        margin-bottom: 0rem;
    }

    .recipe-grid-layout-row div {
        width: 100%;
        max-width: 100%;
        padding-bottom: 2rem;
    }

    .recipe-grid-layout-row,
    .recipe-description {
        width: 100%;
    }

    main {
        padding-left: 0;
        padding-right: 0;
        border-left: none;
        border-right: none;
    }

    header {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .name-divider {
        margin-left: -1rem;
        margin-right: -3rem;
    }

    .step-label {
        padding-top: 2rem;
    }
}

/* login page */
@media (max-width:700px) {
    .login-rows {
        gap: 0;
        flex-direction: column;
    }

    .password-label {
        padding-top: 1rem;
    }

}

/*search page */
@media (max-width:600px) {
    .card-layout article {
        width: calc((100% - 2rem) / 2);
    }

}

@media (max-width:400px) {
    .card-layout article {
        width: calc(100% - 2rem);
    }
}

.error-messages {
    border-style: solid;
    border-color: red;
    color: red;
}