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

h1, h2, h3{
    font-family: "Playwrite US TRAD", sans-serif, serif, monospace;
    color: #A8570C;
}

#recipeTitle{
 display: flex;
 font-family: "Playwrite US TRAD", sans-serif, serif, monospace;
 color: #A8570C;
 font-size: 38px;
}

ul li{
    color: #8B5E34;
}

h1{
    font-size: 32px;
}

#dishbook{
    font-size: 28px;
    font-family: "Playwrite US TRAD";
}

.name{
    font-weight: bold;
    font-size: 170%;
    color: #A8570C;
}

#profiledata{
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
}

header button, header input {
    padding: .25rem;
}

h3{
    font-size: 22px;
}

.rimg{
    transform: rotate(2deg);
}

header p{
    color: #2E261C;
    display: flex;
    justify-content: flex-end;
    gap: .3rem
}

section p{
    color: #2E261C;
    
}

.lead{
    padding-bottom: 1rem;
    color: #2E261C;
}

#nav{
    display: flex;
    flex-direction: row;
}

#searchbar{
    padding-top: .25rem;
    margin-left: auto;
}

html{
    background-color: #F7F1E8;
    font-family: 'Nunito', serif, sans-serif, monospace;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: .5rem;
    padding-right: .5rem;
}

body{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 700px;
    
}

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

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

main{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

#mainportion{
    padding-top: 2rem;
}

#profile{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#p1{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#p1 img{
    width: 5rem;
    height: 5rem;
    height: auto;
    margin-left: auto;
    align-self: center;
}

#r1{
    display: flex;
    flex-direction: column;
}

#metadata{
    display: flex;
    flex-flow: row wrap;
    gap: 1.5rem;
}

#tagline{
    color: #2E261C;
}

.tag{
    text-wrap: nowrap;
}

.tag::first-letter{
    color: #888;
}

#tags{
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

.tlist{
    display: flex;
    flex-flow: row wrap; 
    gap: 0 .5rem;
}

p{
    color: #8B5E34;
}

#p1 p{
    color: #2E261C;
}

#p2{
    color: #2E261C;
}

#prep {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; 
}

.prow{
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

#cards{
    display: flex;
    flex-direction: column;
}

#cardgrid{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#titleHolder{
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

#titleHolder button{
    height: 2rem;
    width: 2.5rem;
}

.recipe{
    padding: .5rem;
    width: 30%;
}

.recipe img{
    align-self: center;
}

#links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.prow dt {
    width: calc(25%);
}

.prow dd {
    width: calc(75%);
}

#r2{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#pictime{
    display: flex;
    flex-direction: column;
    flex-basis: 0;
    flex-grow: 1;
    width : 35%
}


#desc{
    flex-basis: 0;
    flex-grow: 2;
}


#r3{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#ingredients{
    padding-left: 1rem;
    text-indent: -1rem;
    flex-basis: 0;
    flex-grow: 1;
}

#step{
    flex-basis: 0;
    flex-grow: 2;
}

#ingredients li{
    color: #2E261C;
}

#ingredients h3, #stepslabel{
    padding-bottom: .5rem;
}

.rimg{
    height: auto;
    max-width: 100%;
    padding-bottom: .5rem;
}

#steps{
    padding-left: 1rem;
}

#ilist{
    display: flex;
    gap: .25rem;
}

#prepTime, #cookTime, #total, #yield{
    padding: .25rem;
}

#errList{
    color: red;
}

.btn{
    padding: .5em 1em; 
    border-radius: 20px;
    color: #F7F1E8;
    background-color: #8B5E34;
}

.sub{
    color: #2E261C;
}

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

.visually-hidden{
    display: none;
}

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

header p{
    border-bottom: 4px solid #8B5E34;
}

a:hover, li h3:hover{
    color: #A8570C;
}

main{
    border-radius: 22px;
    border-color: #2E261C;
    border-width: 1px;
    border-style: solid;
    background-color: #FFF9F1;
}

ul{
    list-style-type: none;
}

#ilist input{
    padding: .25rem;
}

.recipe{
    background-color: #FFF;
    border-radius: 22px;
    box-shadow: 1.2px 1.2px 1.2px 1.2px #888 ;
}

section h3, section li, section p{
    line-height: 125%;
}

#prep{
    font-weight: 600;
}

#login, #login input{
    font-size: 22px;
}

#login button{
    width: 50%;
    min-width: 20%;
    align-self: center;
    padding: .25rem;
}

#login input{
    padding: .25rem;
    width: 80%;
}

#login{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    min-width: 100%;
}

#login h2{
    padding-bottom: 2rem;
}

img{
    padding: 5px;
    max-width: 100%;
    height: auto;
}

li a{
    text-decoration: none;
}

#search input{
    width: 100%;
    padding: .25rem;
}

@media(max-width: 500px){

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

    header p, #dishbook, #nav{
        padding: .5rem;
    }

    #r2, #r3{
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }  
}

@media(max-width: 700px){

    .login{
    display: flex;
    flex-direction: column;
    gap: none;
    }

}

@media(max-width: 600px){

    .recipe{
        width: 45%;
    }
}

@media(max-width: 400px){

    .recipe{
        width: 90%;
    }

    #pictime{
        width : 100%;
    }
}



input[type=number][size] { width: calc(attr(size type(<number>)) * 1ch + 2rem); }

