h2,
h3,
h4,
h5,
h6 {
    font-family: "Playwrite US Trad", cursive;
    font-size: 125%;
    color: #a8570c;
}

html {
    font-size: 18px;
    background-color: #F7F1E8;
}

.profile-heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.profile-heading img {
    width: 5rem;
    height: 5rem;
}

header {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

h1 {
    display: flex;
    flex-direction: row;
    font-family: "Playwrite US Trad", cursive;
    font-size: 180%;
    color: #a8570c;
    align-items: flex-start;
    justify-content: space-between;
}

h1 form {
    display: flex;
    align-items: flex-start;
}

h1 input {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

form {
    font-size: inherit;
}

h1 input::placeholder {
    color: inherit;
}

.littlerow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    list-style-type: none;
}

.searchrow {
    display:flex;
    align-items: center;
    gap: 10rem;
}

.metadata {
    display: flex;
    flex-direction: column;
}

body {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    color: #2e261c;
    max-width: 700px;
    background-color: #F7F1E8;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: inherit;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 1rem;
    gap: 1rem;
    background-color: #FFF9F1;
    border-radius: 10px;
}

.recipe {
    gap: 2rem;
}

.login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-container {
    width: 100%;
}

.simple-button {
    display: flex;
    width: 50%;
    align-self: center;
    justify-content: center;
    min-width: 200px;
}

.recipe-heading {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.recipe-metadata {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.recipe-metadata>.meta-first {
    flex: 1;
}

.recipe-metadata>.meta-second {
    flex: 2;
    padding: 0.25rem;
    align-items: baseline;
}

.recipe-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.technical {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: start;
}

.meta-top {
    display: flex;
    flex-direction: column
}

.heading {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: start;
    gap: 1.5rem;
}

div {
    border-radius: 20px;
    border-color: #888;
}

section {
    background-color: #FFF9F1;
    border-color: #2e261c;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

dt {
    font-weight: 600;
}

.description {
    line-height: 1.25;
    margin-bottom: 2rem;
}


li a {
    text-wrap: nowrap;
}

.recipe-image {
    transform: rotate(2deg);
    aspect-ratio: 1/1;
    border-color: white;
    border-width: 5px;
    border-radius: 3px;
    width: 100%;
    margin-bottom: .5rem;
}

.ingredients,
.steps {
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
}

.recipe-info {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 0.5rem .25rem;
}

.recipe-info dd {
    margin: 0;
}

.recipe-info dd {
    display: flex;
    gap: 5px;
    flex-direction: row;
}
.recipe-info dd input {
    width: 3rem;
}

header {
    border-color: white;
    border-width: 5px;
    flex-direction: row;
}

input {
    padding: 0.25rem;
}

button {
    padding: 0.25rem;
}

.visually-hidden {
    display: none;
}

.divider {
    border: none;
    height: 5px;
    background-color: #8B5E34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #8B5E34;
}

a:hover {
    text-decoration: underline;
    color: #A8570C;
}

.headerrow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

.false-button {
    background-color: #8B5E34;
    color: #F7F1E8;
    padding: .5em 1em;
    border-radius: 100px;
}

.button-container {
    width: 100%;
    justify-content: center;
    display: flex;
    gap: 1rem;
}

.index-button {
    gap: 1rem;
}

.card {
    padding: .5rem;
    border-radius: 10px;
    background-color: white;
    border-color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card figure {
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tinypair {
    display: flex;
    flex-direction: row;
}

.tinypair>.first {
    flex: 0 0 20%;
}

.tinypair>.second {
    flex: 0 0 80%;
}

.cardgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.searchbar {
    width: 100%;
    padding: .25rem;
}

.taglist {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    flex-direction: row;
    gap: 0.5rem;
    list-style-type: none;
}

.false-button:hover {
    background-color: #A8570C;
    color: #FFF9F1;
    padding: .5em 1em;
    border-radius: 100px;
}

.title {
    font-family: "Playwrite US Trad", cursive;
    font-size: 180%;
    color: #a8570c;
}

#editstep{
    display: flex;
    flex-direction: column;
    width: 100%;
}

#editstep,
.editingredients {
  max-width: 100%;
  width: 100%;
}

#editstep textarea,
.editingredients input {
  width: 100%;
  resize: vertical;
}
textarea {
    width: 100%;
}

output {
    color: red;
}

#editdescription {
    resize: vertical;
}

.forms {
   display: flex;
   flex-direction: row;
   gap: .5rem;
}

#editingredientslist {
    display: flex;
    flex-direction: column;
    padding: .25rem;
}

.passwordshower {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.editingredients {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

@media (max-width: 500px) {
    .recipe-metadata {
        flex-direction: column;
    }

    .meta-first,
    .meta-second {
        width: 100%;
    }

    .recipe-image img {
        width: 100%;
        height: auto;
    }

    .technical {
        grid-template-columns: 1fr;
    }

    header {
        padding: .5rem;
    }
}

@media (max-width: 700px) {
    .tinypair {
        display: flex;
        flex-direction: column;
    }

    .login {
        display: flex;
        gap: 1rem;
    }

    header {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cardgrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .cardgrid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}