* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    display: flex; flex-direction: column; align-items: center;
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 0rem .5rem;
}

body {
    display: flex; flex-direction: column;
    justify-content: center;
    background-color: #F7F1E8;
    max-width: 700px;
}

main {
    background-color: #FFF9F1;
    border-width: 2px;
    border-style: solid;
    border-color: #888;
    border-radius: 12px;
    padding: 1rem;
}

header {
    display: flex; flex-direction: column;
    padding: 0rem 0rem 3rem;
}

nav {
    display: flex; flex-direction: row;
    justify-content: space-between;
}

article {
    max-width: 50%;
    box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.4);
    background-color: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 8px;
}

.title, h1, h2, h3, h4, h5, h6 {
    font-family: "Playwrite US Trad", sans-serif;
    font-size: 125%;
    color: #A8570C;
}

a {
    text-decoration: none;
    color: #8B5E34;
}

a:hover {
    text-decoration: underline;
    color: #A8570C;
}

ul {
    list-style: none;
}

textarea {
    width: 100%;
    resize: vertical;
}

output {
    color: red;
}

.MastHead {
    display: flex; flex-direction: row;
    border-bottom: 3px solid #8B5E34;
    justify-content: space-between;
    align-items: end;
}

.title {
    color: #8B5E34;
    font-size: 180%;
}

.mainHeading {
    padding-bottom: 2rem;
}

.indexPageButtons {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    gap: 1rem;
}

.navlinks {
    display: flex; 
    gap: 1rem; 
}

.cardlayout {
    display: flex; flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0rem 1rem;
}

.card {
    display: flex; flex-direction: column;
    justify-content: baseline;
    overflow-wrap: wrap;
    max-width: 30%;
    width: 30%;
    padding: .5rem;
}

.cardimage {
    width: 100%;
    height: auto;
}

.cardtags {
    display: flex;
    flex-wrap: wrap;
    text-wrap: nowrap;
    column-gap: .5rem;
}

.recipeMetaData{
    display: flex;
    column-gap: 1.5rem;
    flex-wrap: wrap;
}

.recipeTagList {
    display: flex;
    gap: .5rem;
}

.variationList {
    display: flex;
    gap: .5rem;
}

.ingredients {
    line-height: 1.25;
    padding-left: 1rem;
    text-indent: -1rem;
}

.steps {
    line-height: 1.25;
    padding-left: 1rem;
}

.stepsDescription {
    padding-bottom: 1rem;
}

.editSteps li textarea{
    vertical-align: top;
}

.search {
    padding: .25rem;
}

.description {
    line-height: 1.25;
    flex-grow: 2;
}

.button {
    color: #F7F1E8;
    background-color: #8B5E34;
    padding: .5em 1em;
    border-radius: 12px;
}
.button:hover {
    color: #FFF9F1;
    background-color: #A8570C;
}

.ulstyled {
    list-style: circle;
    list-style-position: inside;
}

.ingredientInput input[type = "number"] {
    width: 3rem;
}

.ingredientInput input[type = "text"] {
    width: 6rem;
}

#recipeImage{
    transform: rotate(2deg);
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff;
    border-radius: 3px;
    max-width: 100%;
    height:auto;
    padding-bottom: .5rem;
}

#photoAndDescription{
    display: flex; flex-direction: row;
    padding-top: 2rem;
    gap: 1rem;
}

#recipeTimeAndYield {
    display: flex; flex-direction: row;
    column-gap: .5rem;
    row-gap: .25rem;
    flex-wrap: wrap;
}

#recipeTimeAndYield dt {
    width: calc(25% - .25rem);
    max-width: calc(25% - .25rem);
}

#recipeTimeAndYield dd {
    width: calc(75% - .25rem);
    max-width: calc(75% - .25rem);
}

#recipeTimeAndYield dd input {
    max-width: 3rem;
}

#editTimeAndYield input{
    max-width: 3rem;
}

#ingredientsAndSteps {
    display: flex; flex-direction: row;
    gap: 1rem;
}

#searchBar {
    width: 100%;
    max-width: 100%;
}

#profileInformation {
    display: flex; flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

#profilePicture {
    width: 5rem;
    height: 5rem;
    gap: 1rem;
}

#profileData{
    display: flex;
    gap: 1rem;
}

#loginform {
    display: flex; flex-direction: column;
    gap: 1rem;
}

#signInButton {
    align-self: center;
    width: 50%;
    max-width: 50%;
}

#passwordInput {
    max-width: 80%;
}

#usernameInput {
    max-width: 80%;
}

#login_username {
    display: flex; flex-direction: column;
}

#password {
    display: flex; flex-direction: column;
}

#titlebutton {
    display:flex; justify-content: space-between;
}

#titlebutton input{
    width: 90%;
    font-size: 4rem;
    font-family: Playwrite US Trad;
}

#titlebutton button{
    height: 1.5rem;
    width: 2rem;
}
