* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  max-width: 700px;
}

h1,
h2,
h3,
h4,
h5,
h6,
#title {
  font-family: "Playwrite US Trad";
  color: #a8570c;
  font-weight: normal;
}

.ingredients ul {
  padding-left: 1rem;
}

.ingredients ul li {
  text-indent: -1rem;
}

header h1,
#title {
  font-weight: bold;
  display: flex;
  flex-direction: column;
}

.steps {
  padding-left: 1em;
}

.first-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  padding: 0;
}

.recipe {
  display: flex;
  flex-direction: column;
}

.recipe-description {
  display: flex;
  gap: 0 1.5rem;
  flex-wrap: wrap;
}

.recipe-description .tags {
  display: flex;
  flex-direction: row;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.recipe-description .tags {
  gap: 0.5rem;
}

.second-top {
  display: flex;

  flex-direction: row;
  justify-content: space-between;

  align-items: center;
  gap: 1rem;
  width: 100%;
}

.second-top nav ul {
  display: flex;
  flex-direction: row;
  justify-content: start;
  flex-wrap: nowrap;
  gap: 1rem;
}

.recipebottom {
  display: flex;
  gap: 1rem;
}

.nameheader {
  display: flex;
  flex-direction: column;
  text-wrap: wrap;
}

.sidebarleft {
  width: calc((100% - 1rem) / 3);
}

.sidebarright {
  width: calc((100% - 1rem) * 2 / 3);
}

.loginheader {
  display: flex;
  flex-direction: column;
  justify-content: right;
  margin: 0 auto;
  align-items: center;
  gap: 1rem;
  width: 80%;
}

.signinbutton {
  width: 50%;
  display: flex;
  align-items: center;
  min-width: 200px;
  justify-content: center;
  margin: 1rem auto 0;
}

@media (max-width: 700px) {
  .usernamelogin {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
  }
}

.usernamelogin {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  padding: 0.25rem;
  width: 80%;
}

.recipetop {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.recipedescription {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

@media (max-width: 500px) {
  main {
    padding: 0;
  }

  .recipebottom {
    flex-direction: column;
    gap: 2rem;
  }

  header h1 {
    padding: 0.5rem;
  }

  .recipetop {
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: flex-start;
    gap: 2rem;
  }

  .sidebarleft,
  .sidebarright {
    flex-shrink: 1 1 100%;
  }

  .ingredients,
  .preptime,
  .recipedescription,
  .steps {
    width: 100%;
  }
  .input-size {
    width: 60px;
  }

  .recipephoto img {
    gap: 2rem;
  }

  .recipedescription {
    margin-bottom: 2rem;
  }
}

.recipephoto img {
  width: 100%;
  height: auto;
}

.profile {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

#logopic {
  width: 5rem;
  height: 5rem;
}

#wide-search-box {
  width: 100%;
  padding: 0.25rem;
}

.search-form {
  flex-shrink: 1;
  display: flex;
  margin-top: 0.25rem;

  justify-content: right;
}

.search-form button {
  margin-left: 0.25rem;
}

#search,
.search-button {
  display: flex;
  flex-direction: row;

  padding: 0.25rem;
}

a,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

header p {
  margin: 0;
  padding: 0;
}

header {
  margin: 0;
  padding: 0;
  margin-bottom: 3rem;
}

#signintxt {
  color: #8b5e34;
}

hr {
  width: 100%;
  margin: 0;
  margin-bottom: 0;
  background-color: #8b5e34;
  height: 1px;
  border: none;
}

.tag-border {
  display: flex;
  flex-direction: row;
}

ul.tags li a {
  color: #8b5e34;
  display: flex;
  flex-direction: row;
  padding: 0.3rem;

  justify-content: flex-start;
  align-items: center;
}

body,
p,
li,
input,
button {
  font-family: "Nunito";
  font-weight: 400;
}

body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-size: 18px;
  color: #2e261c;
  background-color: #f7f1e8;
  padding: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#view-profile {
  color: #8b5e34;
}

section h1 {
  font-weight: bold;
}

.title {
  font-family: "Playwrite US Trad";
  color: #8b5e34;
  font-size: 32.4px;
  font-weight: bold;
}

#view-profile {
  padding-left: 0;
}

nav a {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  background-color: #f7f1e8;
  color: #8b5e34;
  border-radius: 9999px;
}

.recipe-page {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  transform: rotate(2deg);
  border: 5px solid #fff;
  border-radius: 3px;
  gap: 2rem;
}

#sign-in,
#browse {
  display: inline-block;
  background-color: #8b5e34;
  color: #f7f1e8;
  padding: 0.5em 1em;
}

#sign-in:hover,
#browse:hover {
  background-color: #a8570c;
  cursor: pointer;
}

#view-profile {
  font-family: "Nunito";
}

.preptime {
  max-width: 200px;
}

h1,
#title {
  font-size: 32.4px;
}

h1 p {
  color: #8b5e34;
}

h2,
h3,
h4,
h5,
h6 {
  size: 22.5px;
}

dl dd {
  line-height: 1.25;
}

dl dt {
  font-weight: 600;
}

ul p {
  color: #2e261c;
  margin-top: 0;
}

form input,
form label,
form button {
  font-size: 22.5px;
}

ul li,
section ul li,
section ol li {
  color: #2e261c;
}

.buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.preptime dl {
  display: flex;
  flex-direction: column;
  /* flex-wrap: wrap; */
  /* align-items: center; */
  gap: 0.5rem;
}

.preptime dt,
.preptime dd {
  display: inline-flex;
  flex: 0 0 calc(25% - 0.25rem);
  gap: 0.25rem;
}

#error-display,
#error-display ul,
#error-display li {
  color: red;
  font-size: 30px;
}

.preptime dd

/* info */ {
  flex: 0 0 calc(75% - 0.25rem);
  display: flex;
  justify-content: space-around;
}

main {
  margin: 0 auto;
  background-color: #fff9f1;
  border-radius: 8px;
  border: 2px solid #888;
  padding: 1rem;
  /* gap: 2rem;  */
  max-width: 700px;
  width: 100%;

  overflow: hidden;
  padding-left: 0.5em;
  padding-right: 0.5em;

  margin-left: 1px;
  display: flex;
  flex-direction: column;

  justify-content: center;
}

nav ul,
ul.tags,
nav li,
ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  color: #a8570c;
  padding: 0;
  padding-top: 0;
}

s .visually-hidden {
  display: none;
}

.lefttabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 0.1px solid #cfc4b9;
  box-shadow: 1px 2px 2px #8d8883;
  border-bottom: 0.5px solid #c7c1bd;
  background-color: #fff9f1;
  border-radius: 7px;
}

.lefttabs img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.lefttabs h3 {
  font-weight: normal;
}

.cardgrid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.cardgrid li {
  width: calc((100% - 2rem) / 3);
  text-wrap: wrap;
  padding: 0.5rem;
}

.cardgrid li .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
}

.cardgrid li img {
  display: block;
  align-items: center;
  height: auto;
  max-width: 90%;
  margin: 0.5rem auto 0.5rem auto;
  margin-bottom: 0.5rem;
}

@media (max-width: 599px) {
  .cardgrid li {
    width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 399px) {
  .cardgrid li {
    width: 100%;
  }
}

#signinblock {
  border-top: 2px solid #888;
  border-left: 2px solid #888;
  border-right: 2px solid #888;
  border-bottom: none;
}
