* { margin: 0; padding: 0; box-sizing: border-box; }

.nunito-<uniquifier> {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.playwrite-us-trad-<uniquifier> {
  font-family: "Playwrite US Trad", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 3rem;
  font-size: 18px;
  flex-wrap: wrap;
}

button {
  padding: 0.25rem;
  height: fit-content;
}

body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 700px;
}

a {
  color: #8B5E34;
  text-decoration: none;
}

a:hover {
  color: #A8570C;
  text-decoration: underline;
}

h2, h3, h4, h5, h6 {
  font-family: "Playwrite US Trad", cursive;
  font-size: 1.25em;
  color: #A8570C;
}

header {
  display: flex;
  flex-direction: column;
  font-family: "Playwrite US Trad", cursive;
  font-size: 1.25em;
  color: #8B5E34;
  font-weight: bold;
}

.hItem {
  flex-direction:row;
  justify-content: space-between;
  align-items: flex-end;
}

h1 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-family: "Playwrite US Trad", cursive;
  font-size: 1.8em;
  color: #A8570C;
  font-weight: bold;
}

body {
  background-color: #F7F1E8;
}

p, ol, dt, dd {
  font-family: "Nunito", sans-serif;
  font-weight: normal;
  font-size: 18px;
  color: black;
}

label {
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: black;
}

input {
  padding: 0.25rem;
  font-weight: normal;
  font-size: 12px;
  color: black;
}

output p{
  font-weight: normal;
  font-size: 1rem;
  color: red;
}

textarea {
  font-weight: normal;
  font-size: 12px;
  color: black;
  width: 20rem;
  resize: vertical;
}

h1 input[type=text]{
  font-family: "Playwrite US Trad", cursive;
  font-size: 1.8em;
  color: #A8570C;
  font-weight: bold;
  width: 95%;
}

input[type=number][size] {
  width: calc(attr(size type(<number>)) * 1ch + 2rem);
}


.textButton {
  background-color: #8B5E34;
  color: #F7F1E8;
  padding: .5em 1em;
  border-radius: 15px
}

.textButton:hover {
  background-color: #A8570C;
  color: #FFF9F1;
}

.recipe {
  border: 0.05rem solid #888;
  border-radius: 0.25em;
  box-shadow: 2px 3px 5px #888;
  background-color: #FFF;
  padding: 0.5rem;
  gap: 0rem;
}

.recipe img {
  max-width: 100%;
}

.profileLine {
  border-bottom: 2px solid;
  border-color: #8B5E34;
}

.visually-hidden {
  display: none;
}

section {
  display: flex;
  flex-direction: column;
}

dl section {
  display: flex;
  flex-direction: row;
}

.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-wrap: nowrap;
  column-gap: 0.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: start;
  column-gap: 1rem;
  padding: 0rem 1rem;
}

.sidebar {
  flex-direction: row;
  column-gap: 1rem;
}

div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  background-color: #FFF9F1;
  border: 0.1rem solid #888;
  border-bottom: 0;
  border-radius: 1em 1em 0% 0%;
}

@media (max-width: 500px){

  html {
    padding: 0px;
    padding-top: 0.5rem;
  }

  header {
    padding: 0rem;
  }

  .hItem {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  
  div {
    border-left: 0;
    border-right: 0;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

.textbox {
  font-size: 1.25em;
  width: 80%;
  padding: 0.25rem;
}

@media (max-width: 700px){
  label {
    flex-direction: column;
    align-items: baseline;
  }

  .textbox {
    width: 100%;
  }
}

@media (max-width: 600px){
  .cards {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 400px){
  .cards {
    grid-template-columns: repeat(1, auto);
  }
}