* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main input {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

dd input, .single_ingredient input[type="number"]{
  width: 5ch;
}

output{
  color: red;
}

output ul{
  list-style-type: circle;
  padding-left: 1rem;
}



.single_ingredient .unit_input{
  width: 10ch;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.step_ingredients{
  margin-left: 1rem;
  list-style-type: circle;
}

.ingredient_input{
  width: 0;
  flex-grow: 1;
}

h1 button{
  padding: 0.25rem;
}


h1{
  display:flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}

textarea{
  vertical-align: top;
  width: 100%;
  resize: vertical;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

.step_gap{
  margin-bottom: 1rem;
}

.single_ingredient{
  margin-top: 0.25rem;
  display: flex;
}

label {
  display: flex;
}

html {

  font-family: "Nunito", "sans-serif", Arial;
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 650;
  color: #2E261C;
  font-style: normal;
  background-color: #F7F1E8;
}

#header-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: #8B5E34 3px solid;
}

#header-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.metadata {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}


.nav-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

body {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

#search-recipes input,
#search-recipes button {
  padding: 0.25rem;
}

h1,
h2,
h3,
#title {
  font-family: "Playwrite US Trad", cursive;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  color: #A8570C
}

h1 {
  font-size: 1.8em;
}

h2,
#title {
  font-size: 1.25em;
}

h3 {
  font-size: 1.0em;
}

main {
  border: 1px solid #888;
  border-radius: 40px;
  background-color: #FFF9F1;
  padding: 1rem;
}

.intro {
  margin-bottom: 2rem;
}

.gap {
  margin-top: 2rem;
}

a,
#title {
  text-decoration: none;
  color: #8B5E34;
}

a:hover,
#title:hover {
  text-decoration: underline;
  color: #A8570C;
}

ul {
  list-style-type: none;
}

li h2 {
  font-size: 1.25em;
  margin-top: 0;
  margin-bottom: 0.25em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.tags {
  display: flex;
  gap: 0 0.5rem;
  flex-wrap: wrap;
  text-wrap: nowrap;
  margin: 0;
}

.card {
  border-radius: 10px;
  background-color: #fdfdfb;
  padding: 0.5rem 0.5rem 0rem 0.5rem;
  box-shadow: #888 2px 2px 5px;
  flex-grow: 1;
  flex-basis: 0px;
}

.search-tag {
  width: 100%;
  padding: 0.25rem;
  font-size: 1em;
}

.image {
  width: 100%;
  height: auto;
}

.button-container {
  padding-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #8B5E34;
  color: #F7F1E8;
  border-radius: 15px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}

.button:hover {
  background-color: #7a3f08;
  color: #f5f3eb;
}


.ratio12 {
  display: flex;
  gap: 1rem;
}

.ratio12left {
  min-width: 0;
  flex-grow: 1;
  flex-basis: 0;
}

.ratio12right {
  min-width: 0;
  flex-basis: 0;
  flex-grow: 2;
}


.photo {
  transform: rotate(2deg);
  border: 5px solid #ffffff;
  margin-bottom: 0.5rem;
  flex-shrink: 1;
  width: 100%;
}

.recipe-card-header{
  margin-bottom: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  font-size: 1.25em;
  gap: 1rem;
  align-items: baseline;
}

.label-input-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
}

@media (max-width:700px) {
  .label-input-group {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
  }
}

.login-form input{
  padding: 0.25rem;
  flex-grow: 1;
}

.login-form input:not([type="checkbox"]) {
  min-width: 80%;
  font-size: 1rem;
}

#submit-button {
  width: 50%;
  min-width: 200px;
  align-self: center;
  padding: 0.25rem;
  font-family: Nunito, sans-serif;
  font-weight: 700;
}

.bold {
  font-weight: 700;
}

.visually-hidden {
  display: none;
}

.ingredients {
  text-indent: -1rem;
  padding-left: 1rem;
}

.steps {
  padding-left: 1rem;
}

dl {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 0.25rem;
  margin: 0;
  padding: 0;
}

dt {
  width: 25%;
  font-weight: bold;
}

dd {
  width: calc(75% - 1rem);
  margin: 0;
}


.profile {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.profile-header {
  display: flex;
  margin-bottom: 2rem;
  justify-content: space-between;
}

.profile img {
  width: 5rem;
  height: 5rem;
}

.profile .tags {
  gap: 1rem;
}



@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 400px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {


  body {
    margin: 0;
  }

  main{
    padding: 0;
    border-width: 1px 0;
  }

  .ratio12 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  #header-top, #header-bottom {
    padding: 0.5rem;
  }

  .photo {
    margin-bottom: 2rem;
  }
}