* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: "Playwrite US Trad";
  color: #a8570c;
}

body {
  font-family: "Nunito";
  font-size: 18px;
  background-color: #f7f1e8;
  max-width: 700px;
  margin: 0 auto;
  gap: 3rem;
}

h2,
h3 {
  font-size: 1.25rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: bold;
}

.login {
  font-size: 1.25rem;
  max-width: fit-content;
}

.halfbold {
  font-weight: 600;
}

a:hover {
  color: #a8570c;
  text-decoration: underline;
}

a {
  color: #8b5e34;
  text-decoration: none;
}

.button a {
  display: inline-block;

  background-color: #8b5e34;
  padding: 0.5em 1em;
  text-align: center;
  color: #f7f1e8;
  border-radius: 25px;
}

.button p {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.rotate {
  transform: rotate(2deg);
  border: 5px solid white;
  border-radius: 3px;
}

.sectionborder {
  border: 2px solid #888;
  border-radius: 35px;
  padding: 1rem;
  background-color: #fff9f1;
  gap: 3rem;

  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.visually-hidden-title {
  display: none;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.top_split,
.bot_split {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
}

.bot_split {
  padding: 0.25rem;
}

.list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.horizontal_line {
  border-bottom: 3px solid #8b5e34;
  flex-grow: 1;
}

.search {
  display: flex;
  gap: 0.25rem;
}

.search_bar {
  display: flex;
  gap: 0.25rem;
  width: 100%;
}

.search_bar input {
  flex: 1;
  padding: 0.25rem;
}

.author_tag {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tag_list ul {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.img_desc {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  line-height: 1.25;
}

.img_desc p {
  flex: 1;
}

.img_desc img {
  flex-grow: 1.5;
}

.prep dl {
  display: grid;
  grid-gap: 0.25rem;
  grid-template-columns: max-content;
}

.prep dd {
  margin: 0;
  grid-column-start: 2;
  padding-left: 0.25rem;
}

.recipe_steps {
  display: flex;
  flex-direction: row;
  padding-left: 1rem;
}

.recipe_steps .ingredients {
  text-indent: -1rem;
}

.recipe_steps .steps ol {
  padding-left: 1em;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.recipe_cards {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.5rem;
  gap: 3rem;
}

.card {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  border: 2px solid #888;
  border-radius: 15px;
  padding: 0.5rem;
  background-color: white;
  max-width: 200px;
}

.card h3 {
  max-width: 170px;
}

.card ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-wrap: nowrap;
  max-width: 150px;
  padding-left: 0;
  margin: 0;
  padding-top: 0%;
  list-style: none;
}

.card li {
  padding-left: 0%;
}

.profile_header {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: -1.5rem;
}

.profile_top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.login_form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.login_form input {
  flex: 1 1 100%;
  padding: 0.25rem;
  align-self: baseline;
}

.login_form button {
  flex: 1 1 100%;
  max-width: 50%;
  margin: 0 auto;
}

/* MEDIA QUERIES */
@media (max-width: 500px) {
  .profile_header {
    margin-top: 0;
    gap: 0;
    padding: 0.5rem;
  }

  .container {
    padding: 0;
  }

  .sectionborder {
    padding: 0;
  }

  .container .top_split,
  .container .bot_split {
    padding: 0.5rem;
  }

  .sectionborder p {
    padding: 0.5rem;
  }

  .top_split,
  .bot_split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
  }

  header .search {
    display: flex;
    gap: 0.25rem;
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .img_desc {
    flex-direction: column;
    align-items: center;
  }

  .img_desc img {
    max-width: 100%;
    height: auto;
  }

  .profile_header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .profile_top {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .recipe_cards {
    justify-content: center;
  }

  .sectionborder header,
  .sectionborder,
  .sectionborder section,
  .sectionborder h1,
  .sectionborder section p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .prep dl,
  .prep dd {
    padding-left: 2rem;
  }

  .recipe_steps {
    flex-direction: column;
    align-items: center;
    padding-right: 0.5rem;
  }

  .recipe_steps .ingredients {
    padding-left: 1rem;
  }

  .login_form {
    padding: 0.5rem;
  }
}

/* ASMT 4: */

h1 input.edit_title,
h1 input[type="text"].edit_title {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;

  background: white;
  padding: 0.25rem 0.5rem 0.5rem 0.25rem;
  display: inline-block;
}

.box1 header h1 {
  display: flex;
  justify-content: space-between; /* input left, button right */
  align-items: flex-start; /* align to top */
  gap: 1rem;
}

/* .img_desc > div {
  flex: 1;
  display: flex;
  flex-direction: column;
} */

.img_desc .edit_input_desc {
  width: 100%;
  box-sizing: border-box;

  overflow-y: auto; /* show scrollbar if content exceeds height */
  flex: 1;

  /* overflow: hidden; /* hide scrollbar */
  /* min-height: rem; */

  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;

  background: white;
  padding: 0.25rem 0.5rem 0.5rem 0.25rem;
  margin-bottom: 1rem;
  resize: vertical;
}

.step_ing label {
  font-size: 0;
}

.edit_input_steps {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: white;
  padding: 0.25rem 0.5rem;
  resize: vertical; /* allows user to resize vertically */
}

output.error_output {
  padding: 3rem;
  color: #600;
  margin-top: 1rem;
}

/* ASMT 6: */

/* .p2_checkbox {
  display: inline;
  color: blue;
} */
