* {
  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: weight;
  font-style: normal;
}

html {
  font-family: "nunito", Arial, Helvetica, sans-serif;
  background-color: #F7F1E8;
  font-size: 18px;
  padding-left: .5rem;
  padding-right: .5rem;
}

header {
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  justify-content: center;
  width: 100%;
  max-width: 700px;
}

main {
  border: 1px solid black;
  border-radius: 30px;
  background-color: #FFF9F1;
  padding: 1rem;
  padding-bottom: 2rem;
  max-width: 700px;
  width: 100%;
}

body {
  font-size: 18px;
  color: #2E261C;
  display: flex;
  justify-content: content;
  flex-direction: column;
  align-items: center;
}

h3 a {
  color: #a8570c;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "playwrite us trad";
  font-size: 1.25em;
  color: #a8570c;
}

a {
  text-decoration: none;
  color: #8B5E34;
}

a:hover {
  color: #a8570c;
  text-decoration: underline;
}

.main-title,
.title {
  font-family: "playwrite us trad";
  font-size: 1.8em;
}

section {
  line-height: 1.25;
  font-weight: 600;
}

ul {
  list-style-type: none;
}

dl {
  gap: .25rem;
  display: flex;
  flex-direction: column;
}

dl li {
  gap: .5rem;
  display: flex;
  font-weight: 600;
  padding-right: .5rem;
}

.respinfo {
  display: flex;
  flex-direction: row;
  align-items: start;
  margin-bottom: 2rem;
}

.respinfo dl li strong {
  white-space: nowrap;
  margin-right: .5rem;
  width: 50%;
}

.respinfo dl li span {
  white-space: nowrap;
  min-width: 0;
}

.respinfo input{
  width: 4rem;
}

.listitem {
  background-color: #FFF9F1;
  border-radius: 5px;
  box-shadow: 1px 2px 2px #888;
}

.visually-hidden {
  display: none;
}

.button {
  padding: .5em 1em;
  background-color: #8B5E34;
  color: #F7F1E8;
  border-radius: 15px;
}

.button:hover {
  background-color: #a8570c;
  color: #FFF9F1;
}

.recipeimg {
  transform: rotate(2deg);
  border: 5px solid white;
  border-radius: 3px;
  display: block;
  width: 100%;
  height: auto;
}

.title {
  font-weight: bold;
}

.namebar {
  border-bottom: 2px solid #8B5E34;
  padding-bottom: 0;
  justify-content: space-between;
  display: flex;
  align-items: end;
}

.heading {
  padding-bottom: .5rem;
  gap: 1.5rem;
}

.heading dl {
  width: 33%;
}

.title-bar{
  display: flex;
  flex-direction: row;
  align-self: start;
  align-items: start;
  justify-content: space-between;
  width: 100%;
}

.title-bar input{
  font-family: "playwrite us trad";
  font-size: 1.25em;
  color: #a8570c;
  font-weight: 600;
  width: 90%;
}

.tags {
  gap: .5rem;
  display: flex;
}

.navigation nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  align-items: center;
}

.navigation ul {
  display: flex;
  gap: 1rem;
}

.navigation form {
  display: flex;
  padding-top: .25rem;
  gap: .25rem;
}

input,
button {
  padding: .25rem;
}

.ingredients ul {
  padding-left: 1rem;
  text-indent: -1rem;
}

.steps ol {
  padding-left: 1em;
}

.stepgap{
  padding-bottom: 1rem;
}

.steps ol li textarea{
  vertical-align: top;
  margin-bottom: .25rem;
}

.desc {
  margin: 1rem 0;
}

.mininav {
  justify-content: center;
  display: flex;
  gap: 1rem;
}

.recipeInfo {
  gap: 1.5rem;
  display: flex;
}

.gap{
  margin-bottom: 2rem;
}

.cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  align-items: start;
}

.card {
  border-radius: 10px;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .5rem;
  background-color: white;
  box-shadow: 1px 2px 6px #888;
  height: auto;
}

.card img {
  width: 100%;
  height: 100%;
}

.card ul {
  flex-wrap: wrap;
  display: flex;
  align-items: start;
  font-size: 0;
  line-height: 1;
}

.card ul li {
  text-wrap: nowrap;
  font-size: 1rem;
  margin: 0;
  margin-right: .5rem;
  margin-bottom: .5rem;
}

.desc {
  flex-direction: row;
  display: flex;
  gap: 1rem;
}

.desc img {
  width: 90%;
}

.imgtime{
  width: 40%;
}

.imgtime .imginput{
  width: 100%;
}

.rDesc{
  width: 60%;
}

.profile {
  flex-direction: row;
  display: flex;
  justify-content: space-between;
}

.profile div div {
  gap: 1.5rem;
  display: flex;
  flex-direction: row;
}

.directions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.directions .ingredients {
  width: 33%;
}

.directions .steps {
  width: 66%;
}

.directions h3 {
  padding-bottom: .5rem;
}

.login{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: right;
  margin-top: 2rem;
  justify-content: space-around;
}

.login .field input{
  width: 65%;
  align-items: baseline;
}

.login .field{
  align-items: baseline;
  justify-content: left;
  display: flex;
  gap: .5rem;
  width: 100%;
}

.login .field .checkboxlabel{
  width: 12%;
  font-size: .55rem;
}

.login .field .passcheckbox{
  width: 3%;
}

.login button{
  width: 50%;
  min-width: 200px;
  align-items: center;
  margin: 0 auto;
}

textarea{
  width: 100%;
  resize: vertical;
  padding: .25rem ;
}

ol ul li{
  padding-bottom: .25rem;
}

ol ul li input{
  width: 50%;
}

ol ul{
  list-style: inside;
}

.stepInfo{
  width: 20%;
}

.formErrors ul li{
  color: red;
}

@media (max-width: 700px) {
  .login .field{
    flex-direction: column;
    justify-content: center;
    margin-left: 10%;
    gap: 0;
  }

}

@media (max-width:600px){
  .cardgrid{
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:400px){
  .cardgrid{
      grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 500px) {
  .heading, .directions, .desc, .respinfo {
    display: flex;
    flex-direction: column;
  }

  .respinfo p, .steps{
    margin-top: 2rem;
  }

  html{
    padding: 0;
  }

  main{
    border: none;
  }

  header .namebar, header .navigation{
    padding: .5rem;
  }
}