* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    padding: 0.5rem;
}

@media (max-width: 500px) {
    html {
        padding: 0rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playwrite US Trad";
    font-size: 1.25em;
}

h1 {
    gap: 2rem;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Nunito";
    font-size: 18px;
    color: #8B5E34;
    background-color: #F7F1E8;
    padding: 0rem, 0.5rem, 0rem;
}

p {
    color: #000000;
}

.main-title {
    font-family: "Playwrite US Trad";
    font-size: 1.80em;
}

.login {
    font-family: "Nunito";
    font-size: 1.25em;
}

strong {
    font-family: "Nunito";
    font-weight: 600;
}

.recipe_steps-heading {
    line-height: 1.25;
}

.recipe-steps {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

a {
    color: #8B5E34;
    text-decoration: none;
}

a:hover {
    color: #A8570C;
    text-decoration: underline;
}

.button {
    font-family: "Nunito";
    font-size: 1em;
    background-color: #8B5E34;
    color: #F7F1E8;
    border-radius: 20px 20px 20px 20px;
    padding: 0.5em 1em;
}

.button:hover {
    background-color: #FFF9F1;
    color: #A8570C;
    text-decoration: none;
}

.rotate-image {
    transform: rotate(2deg);
    border: 5px solid white;
    border-radius: 3px;
    padding-block-end: 0.5rem
}

header {
    display:  flex; flex-direction: column;
    padding-bottom: 3rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #888;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom: none;
    gap: 2rem;
    padding: 1rem;
    align-items: flex-start;
}

@media (max-width: 500px) {
    main {
        border: none;
        padding: 0rem;

    }
}

article {
    border-radius: 10px;
    background-color: #FFF;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    width: 192px;
    padding: 0.5rem;
    justify-content: flex-start;
    align-content: flex-start;
}

label {
    font-family: "Nunito";
    font-size: 1em;
    font-weight: 600;
    color: #000000;
}

.black-text {
    display: flex;
    flex-direction: row;
    color: #000000;
    gap: 0.5rem;
}

ul {
    list-style-type: none
}

.visually-hidden {
    display: none;
}

.recipe-description {
    gap: 2rem;
}


.dishbook-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    border-bottom: 2px solid #8B5E34;
}

@media (max-width: 500px) {
    .dishbook-header {
        padding: 0.5rem;
    }
}

.home-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.search-bar {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.recipe-metadata {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0;
}

.ingredent-container {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    text-indent: -1rem;
}

.cook-information {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; 
}

.cook-row {
    display: flex;
    column-gap: 0.5rem; 
}

.cook-information-label {
    width: 25%;
    margin: 0;
}

.cook-information-time {
    width: 75%;
    margin: 0;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: 1rem;
    justify-content: flex-start;
}

.card-tags {
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    flex-wrap: wrap;
    text-wrap: nowrap;
}

.search-page-input {
    width: 100%;
    padding: 0.25rem;
}

.search-heading {
    width: 100%
}

.profile-heading {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.recipe-information {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

@media (max-width: 500px) {
    .recipe-information {
        flex-wrap: wrap;
    }
}

.recipe-information-photo {
    width: 33%
}

.recipe-information-description {
    width: 67%
}

.recipe-layout {
    gap: 2rem;
}

@media (max-width: 500px) {
    .recipe-layout {
        padding: 1rem;
    }
}

.recipe-ingredients-steps {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

@media (max-width: 500px) {
    .recipe-ingredients-steps {
        flex-wrap: wrap;
    }
}


.recipe-ingredients-container {
    max-width: 180px;
    width: 33%
}

.recipe-steps-container {
    width: 67%
}

.login-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%
}

.login-input-container {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}


@media (max-width: 700px) {
    .login-input-container {
        display: flex;
        flex-direction: column;
    }
}

.form-page-input {
    width: 100%;
}

.input-container {
    width: 100%;
    height: 2rem;
    padding: 0.25rem;
}

.form-input {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.login-button-container {
    display: flex;
    justify-content: center;
}

.login-button {
    width: 50%;
    min-width: 200px;
    height: 1.5rem;
}

.spacing {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.text-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

/* Save button floats right */
.main-title button {
    float: right;
}

/* Full width textareas */
.fullwidth-textarea {
    width: 100%;
    resize: vertical;
    vertical-align: top;
    font-family: "Nunito", sans-serif;
    padding: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.ingredient-list {
    margin-left: 2rem;
    padding-left: 1rem;
    list-style-type: disc;
}

.ingredient-item {
    padding: 0.25rem 0;
}

input[type="text"], input[type="number"] {
    padding: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
}

input[readonly] {
    background-color: #f4f4f4;
}

input[type="number"] {
    width: 4rem; 
}

.recipe-steps li {
    margin-bottom: 0rem;
}

.recipe-title-input {
    font-family: "Playwrite US Trad", serif;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid #8B5E34;
    width: 80%;
    background-color: white;
    color: #8B5E34;
}

.error-list {
    color: red;
    margin: 1rem 0;
}

.recipe-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 1rem;
    gap: 1rem; 
}

.recipe-settings {
    display: flex;
    gap: 0.5rem; 
}

.view-password-container {
    display: flex;
    padding: 0rem 0rem 0rem 4.7rem;
}