* { margin: 0; padding: 0; box-sizing: border-box; }

h1, h2, h3, h4, h5, h6, h1 input{
    font-family: 'Playwrite US Trad', 'Brush Script MT', 'Apple Chancery', cursive;
    font-size: 1.25rem;
    color: #8B5E34;
}

html {
    font-size: 18px;
    font-family: 'Nunito', 'Poppins', 'Arial';
    display: flex;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

body {
    background-color: #F7F1E8;
    display: flex;
    flex-direction: column;
    width: 700px;
    max-width: 700px;
    justify-content: center;
    gap: 3rem;
}

body a {
    color: #8B5E34;
    text-decoration: none;
}

body a:hover {
    color: #A8570C;
    text-decoration: underline;
}

header {
    display: flex;
    flex-direction: column;
}

header div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

header nav {
    border-top: #8B5E34 solid 2px;
    padding-top: 0.25rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}

header nav ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

header nav form button, header nav form input {
    padding: 0.25rem;
}

main {
    background-color: #FFF9F1;
    border-color: #2E261C;
    border-style: solid;
    border-radius: 25px;
    border-width: 1px;
    border-bottom-width: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

main h1, main h1 input {
    font-size: 1.8rem;
}

main h1 input {
    font-weight: 600;
}

main form input {
    padding: 0.25rem;
    width: 100%;
}

strong {
    font-weight: 600;
}

ul, dl {
    list-style: none;
}

.login-form {
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form div {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
}

.login-form div input {
    width: 80%;
    max-width: 100%;
}

.login-form div.password-input-checkbox-combo {
    width: 80%;
    max-width: 100%;
}

.login-form button {
    font-size: 1.25rem;
    width: 50vw;
    max-width: 100%;
    min-width: 200px;
    align-self: center;
}

div.password-input-checkbox-combo {
    font-size: 0.5rem;
    display: flex;
    align-items: center;
}

div.password-input-checkbox-combo label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

div.password-input-checkbox-combo #show-pass-checkbox {
    width: fit-content;
}

.link-button {
    color: #F7F1E8;
    background-color: #8B5E34;
    padding: .5em 1em;
    border-radius: 1rem;
}

.link-button:hover {
    color: #FFF9F1;
    background-color: #A8570C;
}

.button-row {
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.visually-hidden {
    display: none;
}

.recipe-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recipe-page-photo {
    transform: rotate(2deg);
    border-color: #FFF;
    border-style: solid;
    border-width: 5px;
    border-radius: 3px;
    padding-bottom: 0.5rem;
}

section.recipe-ingredients {
    padding-left: 1rem;
    text-indent: -1rem;
}

section.recipe-steps {
    padding-left: 1rem;
}

section.recipe-snapshot dl {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

section.recipe-snapshot dl div {
    display:flex;
    flex-direction: row;
    gap: 0.5rem;
}

section.recipe-snapshot dl div dt {
    width: calc(100% * 0.25);
}

section.recipe-snapshot dl div dd {
    width: calc(100% * 0.75);
}

section.recipe-description, section.recipe-ingredients, section.recipe-steps {
    line-height: 1.25;
}

@media (min-width: 500px) {
    .recipe-page-pair {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .recipe-page-pair-left {
        width: calc((100% * (1/3)) - 1rem);
    }

    .recipe-page-pair-right {
        width: calc((100% * (2/3)) - 1rem);
    }
}

@media (max-width: 499px) {
    .recipe-page-pair {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    html {
        padding-left: 0;
        padding-right: 0;
    }

    main {
        border-left-width: 0;
        border-right-width: 0;
    }

    header div, header nav{
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 699px) {
    .login-form div.login-input-group {
        flex-direction: column;
        gap: 0;
    }

    .login-form div input {
        width: 100%;
    }

    .login-form div.password-input-checkbox-combo {
        width: 100%;
    }
}

.recipe-metadata {
    display: flex;
    flex-direction: row;
    column-gap: 1.5rem;
    row-gap: 0;
    flex-wrap: wrap;
}

.recipe-metadata ul {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding-bottom: 2rem;
}

.recipe-list {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
}

.recipe-card {
    background-color: #FFF;
    box-shadow: -4px 4px 6px gray;
    border-radius: 10px;
    padding: 0.5rem;
    width: calc((100% * (1/3)) - 1rem);
    height: auto;
}

.recipe-card ul {
    display: flex;
    flex-direction: row;
    row-gap: 0;
    column-gap: 0.5rem;
    flex-wrap: wrap;
}

.recipe-card ul li {
    display: flex;
    flex-wrap: nowrap;
}

.profile-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.profile-info {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

img {
    width: 100%;
}

img.profile-photo {
    width: 5rem;
    height: 5rem;
}

@media (max-width: 599px) {
    .recipe-card {
        width: calc((100% * (1/2)) - 1rem);
    }
}

@media (max-width: 399px) {
    .recipe-card {
        width: calc((100% - 1rem));
    }   
}

textarea {
    width: 100%;
    resize: vertical;
}

textarea.text-description {
    vertical-align: top;
}

ul.step-ingredient-list-edit {
    list-style-type: circle;
    padding-left: 1.25rem;
    padding-bottom: 1rem;
}

ul.step-ingredient-list-edit li div {
    gap: 0.25rem;
    padding-top: 0.25rem;
    display: flex;
    flex-direction: row;
}

ul.step-ingredient-list-edit li div input {
    min-width: 0;
}

#amount {
    flex: 0.5;
    min-width: 0;
}

#unit {
    flex: 1;
    min-width: 0;
}

#name {
    flex: 2;
    min-width: 0;
}

h1 {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
}

h1 div form {
    display: flex;
    justify-content: center;
}

output {
    color: red;
}

output ul {
    padding-bottom: 1rem;
}
