* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background-color: #F7F1E8;
  font-family: "Nunito", sans-serif, sans-serif;
  color: #8B5E34;
  font: size 18px;
  padding:.5rem;
}

@media (max-width:500px){
html {
  padding:0;
}
}

.nav-bar {
  color: inherit;
  font-size: 15px;
  padding-bottom: 3rem;
}

@media (max-width:500px){
.nav-bar {
  padding:.5rem;
}
}

 .profile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

.profile img {
  width:5rem;
  height:5rem;
}
  
 .profile2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

@media (max-width:600px)
{
 .profile2 a{
  display: block;
}
}


.nav-bar form {
 padding-right: .25rem;
 padding-top: .25rem;
}

.nav-bar input {
 display:inline; 
 padding-right: .25rem;
}

.nav-bar a {
  color: inherit;
  text-decoration: none;
  padding-right: 1rem;
}

.body {
  max-width: 700 px;
  justify-content: center;
  display:flex;
  flex-shrink: 1px;
  margin-left: .5rem;
  margin-right: .5rem;
  padding: 1rem;

}


h1 {
  font-size: 180%;
   font-family: "Playwrite US Trad", sans-serif;
  color: #A8570C;
}


h2,
h3 {
  font-family: "Playwrite US Trad", sans-serif;
  color: #A8570C;
  font-size: 125%;
}

header a {
  text-decoration: none;
  color: inherit;
  font-family: "Nunito";
}

/*Recipe.html*/
.card {
  padding-top:1rem;
  background-color: #FFF9F1;
  border:1px solid black;
  border-bottom: 0px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding:.5rem;
}

@media (max-width:500px) {
.card {
   border-top: 1px solid black;
   border-left:none;
   border-right:none;

}
}

.card header {
  padding-bottom: 2rem;
  flex-direction: row;
  text-wrap: wrap;
  gap:1.5rem;
}

.card header a {
  margin-right:.25rem;
}


.baseText{
  list-style-type: "";
  color: black;
  gap:.5rem;
}

.cardheadertags {
  list-style-type: "#";
  font-family: "Nunito";
  color: #A8570C;
  display:flex;
  flex-direction: row;
  gap: 1rem;
}

.recipe-overview {
  display:flex;
  flex-direction:row nowrap;
  justify-content:space-around;
}

.recipe-col
{
  flex: 0 0 calc(66%);
  padding: 1rem;
  color:black
}

.recipe-tilt {
  transform: rotate(2deg);
  border: 5px solid white;
  border-radius: 3px;
}

.recipe-tilt img{
  width:100%;
  height:auto;
}

.recipe-stats
{
  display:inline;
  flex-direction: row;
  column-gap: .5rem;
  row-gap:.25rem;
  padding-bottom: 1rem;
}

dt, dd {
  display:inline;
  color:#888;
  font-weight: 600;
}

dt{
  width: calc(25%);
}

dt{
  width: calc(75%);
}


.recipe-directions{
  display:flex;
  flex-direction:row;
  width:100%;
  gap:1rem;
}

.recipe-stack1 {
  line-height: 1.25;
  color:black;
  width: calc(35%);
}

.recipe-stack2 {
  line-height: 1.25;
  color:black;
  width: calc(64%);
}

.ingredients {
  list-style-type: none;
  padding-left:1rem;
  text-indent:-1rem;
  width:100%
}

.ingredients li{
  width:100%
}

.steps {
  padding-left:1rem;
  padding-top:1rem;
}

/***recipe for smaller screens***/
@media (max-width:500px) {
  .recipe-directions, .recipe-overview, ul {
    display: block;
  }
}



/*** index.html ****/
.basebuttonGroup{
  display: flex;
  flex-direction: row;
  justify-content: center;
  row-gap: 1rem;
  column-gap: 1rem;
}

.basebutton {
  background-color: #8B5E34;
  color: #F7F1E8;
  border-radius: 20px;
  height: 30px;
  border-style: none;
  padding: .5em 1em;
}

.basebutton:hover {
  background-color:  #A8570C;
  color: white;
}

.recipe-card-flex{
  display:flex;
  flex-direction:row;
  flex-wrap: wrap;
  justify-content:space-around;
  gap:1rem;
  padding-top:1rem;
  padding-bottom: 1rem;
  max-width: 100%;
  align-items: start;
}

.card-grid {
  height: auto;
  list-style-type: none;
  font-family: "Nunito";
  color: #A8570C;
  display:flex;
  flex-direction: column;
  flex: 0 0 calc(32%);
  background-color: #FFF;
  list-style-type: none;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 20px;
  text-wrap: wrap;
  padding:.5rem;
}

@media (max-width:600px) {
  .card-grid {
  flex: 0 0 calc(48%);
}
}

@media (max-width:400px) {
  .card-grid {
  flex: 0 0 calc(98%);
}
}

.card-grid img{
  max-width:100%;
  height: auto;
  padding:.5rem;
}

.card-grid a {
  text-decoration: none;
  color: inherit;
  font-family: "Playwrite US Trad", sans-serif;
}

.card-grid h3{
  padding-left:.5rem;
}

.tags {
  list-style-type: "#";
  font-family: "Nunito";
  color: #A8570C;
  padding: 0.5rem;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .75rem;
}

.tags a {
  text-decoration: none;
  color: inherit;
  font-family: "Nunito";
  text-wrap:nowrap;
}

.tags href:hover{
  color: #A8570C;
  text-decoration: underline;
}

.login
{
  font-size: 125%
}

.loginform {
  display: flex;
  flex-direction: row;
  gap:1rem;
  width:100vw;
 
}

.loginform label{
  color:black;
}

#loginButton{
  text-align: center;
  margin:1rem;
  width:10%
}

@media (max-width:500px)
{
#email, #password{
  width:80%;
}

#loginButton{
  text-align: center;
  margin:1rem;
  width:50%
}
}

/* Used on recipe, search and profile */

.recipe-group {
  list-style-type: none;
  margin:10px;
}

.recipe-card {
  background-color: #FFF;
  margin-left:30px;
  margin-bottom:10px;
  list-style-type: none;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 20px;
}

/* Used on edit.html */

.stepIngredient {
  margin-left: 0.75rem;
  padding-top: .25rem;
  
}

.recipetitle {
  font-size: 180%;
   font-family: "Playwrite US Trad", sans-serif;
  color: #A8570C;
}

 .editFlex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content:center;
}

.errors{

  color:red;
}


