h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playwrite US Trad';
    font-size: 125%;
    color: #8B5E34;
}

main{
    font-family: 'Nunito';
    font-size: 18px;
    color: #8B5E34;
    background-color:#FFF9F1;
    border-radius: 8px;
    border: 2px solid #8B5E34;
    max-width: 700px;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
}

.main-heading-area{
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.signin-and-browse{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 2rem;
    gap: 1rem;
}

header {
    font-family: 'Nunito';
    color: #8B5E34;
    background-color: #F7F1E8;
    max-width: 700px;
    margin: 0;
    padding-bottom: 3rem;

}

.header-top{
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid #8B5E34;
}

.header-bottom{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-top: 0.25rem;
}

.search-form{
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    justify-content: end;
}

.search-form input, .search-form button {
    padding: 0.25rem;
}

.input-search {
    width: 100%;
    padding: 0.25rem;
}

button{
    padding: 0.25rem;
}
.search-recipe {
    padding: 0.25rem;
    max-width: 100%;
}

.display-rec-cards ul{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.recipe-card img{
    height: auto;
    flex: 1 1 250px;
    max-width: 180px;
}

.recipe-card .tags {
    margin: 0;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.recipe-card article {
    background-color:#FFF;
    border-radius: 8px;
    border: 2px solid #8B5E34;
    padding: 0.5rem;
    box-sizing: border-box;
    max-width: 210px;
}

.profile-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;

}

a {
    color: #8B5E34;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
nav ul,
ul.tags li,
ul, ul.tags a{
    list-style: none;
    display: inline;
    gap: 0.5rem;
}
.metadata{
    display: flex;
    flex-direction: row;
    gap:1.5rem;
    flex-wrap: wrap;
    background-color: #FFF9F1;
}

ul.three-recipe {
    list-style: none;
}

ol.three-recipe {
    padding-left: 1em;
}

.main-title {
    font-size: 180%;
    color: #8B5E34;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

input[type=number][size] { width: calc(attr(size number) * 1ch + 2rem); }

output .error{
    color: red;
    border-width: 1rem;
    background-color: white;
    border-color: red;
    font-weight: bold;
    font-size: 30px;
}

textarea {
    display: flex;
    width: 350px;
}
input[type=number]{
    width: 50px;
    height: 30px;
    padding-left: 0.25rem;
}
li input[type=text] {
    width: 125px;
    height: 30px;
    padding-left: 0.25rem;
}

.list-input {
    list-style: circle;
}
h1 input[type=text]{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: min-content;
    height: min-content;
    padding-left: 0.25rem;
    font-size: 100%;
    color: #8B5E34;
    font-family: 'Playwrite US Trad';
}
.save-button {
    width:min-content;
    height: min-content;
}
.login-form {
    font-size: 125%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form label {
    width: 20%;
    text-align: left;
}

.login-form input {
    width: 80%;
    padding: 0.25rem;
    text-align: left;
}

.login-row{
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.login-row label{
    width: 20%
}

.login-row input{
    width: 80%;
    padding: 0.25rem;
    text-align: left;
}

.login-form button {
    width: 50%;
    min-width: 200px;
}

.button-row {
    display: flex;
    justify-content: center;
}

.prep-time {
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.prep-time dt{
    width: calc(25% - 0.5rem);
}

.prep-time dd{
    width: calc(75% - 0.5rem);
}

.input-prep {
    display: flex;
    justify-content: start;
}

.prep-text{
    font-size: 10px;
}

@media(max-width: 500px){
    .pair-layout {
        font-size: 1rem;
        margin-bottom: 2rem;
        display: block;
    }
    
    .ingred-side, .step-side {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    main {
        padding: 0;
        border-radius: 0;
        border-right: none;
        border-left: none;
    }

    header{
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .header-top {
        border-bottom: 1px solid #8B5E34;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 700px) {
    .login-row{
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1rem;
        gap: 0;
    }

    .login-row label{
        width: 100%;
    }

    .login-row input{
        width: 100%;
    }

}

@media (max-width: 400px) {
    .display-rec-cards li.recipe-card{
        width: calc(50% - 1rem);
    }
}

@media (max-width: 600px){
    .display-rec-cards li.recipe-card {
        width: 100%;
    }
}

.three-recipe {
    line-height: 1.25;
    padding-bottom: 2rem;
}

.three-recipe li {
    padding-left: 1rem;
    text-indent: -1rem;
}

.ingre-and-steps{
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.pair-layout {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.ingred-side {
    width: calc(33% - 0.5rem);
}

.step-side {
    width: calc(67% - 0.5rem);
}

.image-and-des{
    line-height: 1.25;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

a:hover {
    color: #A8570C
}

.button {
    background-color: #8B5E34;
    color: #F7F1E8;
    padding: .5em 1em;
    border-radius: 999px;
}

.button:hover {
    background-color: #A8570C;
    color: #FFF9F1;
    padding: .5em 1em;
    border-radius: 999px;
}

.chicken-adobo-image {
    transform: rotate(2deg);
    border-radius: 5px;
    border-color: white;
    border-radius: 3px;
    max-width: 200px;
    margin-bottom: 0.5rem;
    height: auto;
}

.visually-hidden {
    display: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    display: flex;
    justify-content: center;
    font-size: 18px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}