* { margin: 0; padding: 0; box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Playwrite US Trad", Arial, Helvetica, sans-serif;
    font-size: 22.5px;
    color :#A8570C;
}
.featuredRecipes_h {
  align-self: flex-start;
  padding-left: 1rem;;
}
html{
  font-size: 18px;
}
header {
  padding-bottom: 1rem;
  width: 700px;
}
.header_row1{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items:baseline;
  border-bottom: 2px solid #A8570C;
  border-bottom-style: solid;
}
.nav_class {
  display: flex;
  align-items: right;
  flex-direction: row;
  justify-content: space-between;
  padding-top: .25rem;
}
.nav_row_class{
  display: flex;
  gap: 1rem;
}
form {
  display: flex;
  flex-direction: row;
  align-items: right;
  gap: .25rem;
}
.form_input {
 padding: .25rem;
 width: 150px;
}
.form_button {
  padding: .25rem;
}
.login_header {
  border-bottom: 2px solid #A8570C;
  border-bottom-style: double;
  border-width: 4px;
  border-bottom-color: #A8570C;
  width: 700px;
  color: #A8570C;
}
.header_account_name a{
  padding-left: 5px;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  font-size: 18px;
  width:700px;
  padding-left: .5rem;
  padding-right: .5rem;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  background-color: #f7F1E8;
  height: 100%;
}
body a{
  color : #A8570C;
  text-decoration: none;
}
body a:hover {
color: #8B5E34;
text-decoration: underline;
}
ul {
  list-style-type: none;
}
article {
background-color: #FFF9F1;
border-radius: 2em; 
outline: 1px solid #888;
}
.tags_class {
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  color:black;
  font-weight: bold;
  font-size: 22px;
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 700px;
  gap: 1rem;
  background-color: #FFF9F1;
  border-radius: 2em; 
  outline: 3px solid #888;
}
.main_section {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
}
.button_paragraph {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding-top: 1rem;
}
.main_signin_link {
  padding: .5em 1em;
  text-align: center;
  color: #FFF;
  text-decoration: none;
  display: inline-block;
  background-color: #8B5E34;
  outline: none;
  border-radius: 35em;
}
.main_signin_link:hover{
  background-color: #A8570C;
  text-decoration: none;
  color: #FFF;
}
.main_browse_link {
  padding: .5em 1em;
  text-align: center;
  color: #FFF;
  text-decoration: none;
  display: inline-block;
  background-color: #8B5E34;
  outline: none;
  border-radius: 35em;
}
.main_browse_link:hover{
  background-color: #A8570C;
  color: #FFF;
  text-decoration: none;
}
.main_heading {
  padding-top: 2rem;
  font-size: 32.4px;
}
.login_styling2 label {
  font-size: 22.5px;
}
.login_styling2 button {
  font-size: 22.5px;
}
.login_styling2 input {
  font-size: 22.5px;
}
.search_main_header{
  font-size: 32.4px;
}
.login_styling2{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.login_main{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 1rem;
  gap: 2rem;
  width: 700px;
}
.form_group{
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: .5rem;
  padding-bottom: .5rem;
}
.form_button{
  display: flex;
  justify-content: center;
  align-self: center;
  width: 50%;
  min-width: 200px;
}
.login_main input{
  padding: .25rem;
 
}
.login_main button{
  display: flex;
  width:50%;
  min-width: 200px;
  justify-content: center;
  align-self: center;
}

.search_section{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: flex-start;
  padding-left: 1rem;
  width: 700px;
  padding-right: 1rem;
}
.search_main_header label {
  display:none;
}
.search-input label{
  font-size: 22.5px;
}
.search-input{
  width:100%;
  padding: .25rem;
  font-size: 1rem;
}
.search_form{
  width: 100%;
  display: block;
  padding-bottom: 1rem;
}
.profile_main_h2 {
  align-self: flex-start;
  font-size: 32.4px;
}
.profile_section{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: .5rem;
  gap: 10.5rem;
}
.author_profile_section{
  display: flex;
  flex-direction: column;
  flex: wrap;
  gap: .5rem;
}
.author_text_section{
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.profile_paragraph{
  padding-left: 1rem;
  padding-right: 1rem;
}

.profile_img{
  justify-content: flex-end;
  align-self: flex-end;
  width: 7.5rem;
  height: 6rem;
  margin-right: 1rem;
}
dt{
  font-weight: 600;
}
.input_text{
  font-weight: 600;
}
.textarea {
  width: 100%;
  box-sizing: border-box;
  resize:none;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
}
.recipe_section{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  outline: none;
  width: 700px;
}
.recipe_main_h2{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 0rem 1rem;
}
input[name="title"]{
  font-family: "Playwrite US Trad", Arial, Helvetica, sans-serif;
  font-size: 3rem;  /* really big */
  font-weight: 400;
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;

}

.recipe_main_h2 button {
  flex-shrink: 0;
  top: 2rem;
  right: 0;
  font-size: 1 rem;
  align-self: flex-start;
}
.recipe_main_section{
  border-radius: 2em;
}
.author_date_section{
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-left: 1rem;
  font-weight: bold;
  font-size: 20px;
}
.right_column{
  display: flex;
  flex-direction: column;
  flex: 2;
  gap: 1rem;
}
.description{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0.5rem;
}
.recipe_ingredients_steps{
  display: flex;
  flex-direction: row;
  gap: 3rem;

}
.Steps li textarea {
  display: block;
  margin-bottom: .25rem;
  resize: none;
}

.Steps li ul li {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;            
  margin-bottom: 6px;
  border-radius: 4em;
  padding-right: .8rem;
}
.Steps li ul li::before {
  content: "○"; 
  margin-right: 4px;
  color: #333
}
input[name$="_amount"] {
  flex: 1;
  border-radius: .25em;
}

input[name$="_unit"] {
  border-radius: .25em;
  flex: 2;
}

input[name$="_name"] {
  flex: 4;
  border-radius: .25em;
}
input[name*="ingredient_"]{
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
}
input[name="prep_time_minutes"],
input[name="cook_time_minutes"],
input[name="total_time"], 
input[name="serves"] {
    border-radius: .25em;
    flex: 1;
    width: 3rem;
    padding: .30rem;
}
.errors{
  color:red;
  font-weight: bold;
}
.Steps textarea {
  width: 100%;
  box-sizing: border-box;
  resize: none;
}
.recipe_steps_section{
  display: flex;
  flex-direction: column;
  padding-right: 1rem;
  padding-left: 1rem;
}
.recipe_steps_section textarea{
  width: 100%;
  box-sizing: border-box;
  resize: none;
}
.recipe_steps_section h4{
  padding-left: 0rem;
  padding-bottom: .5rem;
}
.recipe_steps_section ol{
  padding-left: 1rem;
}
.recipe_image_wrapper{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding-right: 1rem;
  gap: 1rem;
}
.recipe_ingredients{
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  padding-left: 1rem;
  text-indent: -1rem;
  padding-right: 2rem;
}
.recipe_ingredients h3{
  padding-bottom: .5rem;
  padding-left: 1rem;
}

.ingredients {
  padding-left: 1rem;
}

.recipe_instructions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; 
}
.recipe_instructions input[type="number"]{
  width: 50px;
  padding: 2px 4px;
}
.instru_row {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: .5rem;
  max-width: 200px;
}
.instru_row dt{
  width: 3rem;
}
.instru_row dd{
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.recipe_tags_ul{
  display: flex;
  flex-direction: row;
  align-items:baseline;
  gap: .5rem;
}

.recipe_tags_ul li{
  font-size: 16px;
}
.recipe_ingredients{
  line-height: 1.25;
}
.recipe_description{
  line-height: 1.25;
  font-size: 20px;
}
.recipe_description textarea{
  width: 100%;
  box-sizing: border-box;
  resize: none;
  font-size: 20px;
}.recipe_steps{
  line-height:1.25;
}
.recipe_actions {
  padding-left: 1rem;
}
.visually-hidden{
  display: none;
}
.recipe_main_section h1{
  padding-left: 1rem;
}
.recipe_img {
  transform: rotate(2deg);
  max-width:100%;
  max-height: 200px;
  border: 5px solid #FFF;
  border-radius: 3px;
  margin-bottom: .5rem;
}

.recipe_image_description{
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 1rem;
  padding-right: .5rem;
}
.card_grid{
  display: grid;
  height:auto;
  grid-template-columns: repeat(3, 1fr);
  gap:1rem;
  padding: 0 1rem;
  padding-bottom: 3rem;
}
.card img{
  display:block;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  height: auto;
}
.card ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  line-height: 1;
  padding-left: 1rem;
}
.card ul li{
  padding-bottom: .5rem;
  gap:.1rem;
}
.h_tag{
  padding-left: .5rem;
  font-size: 21px;
}


@media (max-width: 500px) {
  .recipe_image_wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2rem
  }
  .recipe_img{
    max-width: 200px;
  }
  .recipe_main_h2{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    position: relative;
    padding-right: 7rem;
  }
  .featured_p{
    display: flex;
    justify-content: center;
  }
  .recipe_description{
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .recipe_ingredients_steps{
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  body{
    padding-left: 0;
  }
  main {
    width: 100%;
    border-radius: 2em;
    border-top: 3px solid #888;
    border-bottom: 3px solid #888;;
    outline: none;
  }
  .recipe_steps{
    display: flex;
    justify-content: center;
  }
  .form_group{
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    }
  }
  @media (max-width: 600px) {
    .card_grid{
      grid-template-columns: repeat(2, 1fr);
    }


  @media(max-width: 400px) {
    .card_grid{
      grid-template-columns: repeat(1, 1fr);
    }

    
   }

  }

