@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Playwrite+US+Trad:wght@400&display=swap');

:root {
    --cream: #F7F1E8;
    --cast-iron: #2E261C;
    --cacao: #A8570C;
    --paper: #FFF9F1;
    --ash: #888;
    --oak: #8B5E34;
    --white: #FFF;
}
body {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    background-color: var(--cream);
    color: var(--cast-iron);
    display: flex;
    flex-direction: column;
}

html {
    font-size: 18px;
}
  
  /* Page content container */
.page-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
    
}
.page-header{
    display: flex;
    flex-direction: column;
}
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px solid var(--oak);
}
.header-bottom-row {
    margin-top: .25rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:flex-end;
}
.navlinks{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.search{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

main{
    margin-top: 3rem;
}

.main-content {
    background-color: var(--paper);
    border: 1px solid var(--ash);
    border-radius: 30px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

h1, h2, h3, h4 {
    font-family: 'Playwrite US Trad', cursive;
    font-weight: bold;
    color: var(--cacao);
}

.main-title {
    font-size: 2em;
}

a {
    color: var(--cacao);
    text-decoration: none;
}

a:hover {
    color: var(--cacao);
    text-decoration: underline;
}
.actions{
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}
.button {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 9999px;
    background-color: var(--oak);
    color: var(--paper);
}
.button:hover{
    color: var(--paper);
}
/* Featured recipes section */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0;
  }
  
  .card-grid li {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 200px;
  }
  
  .recipe-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--ash);

  }
  
  .card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
  }
  
  .recipe-card img {
    border-radius: 5px;
  }
  
  .card__body {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
  }
  
  .card__title {
    color: var(--cacao);
  }
  
  .tags {
    text-wrap: wrap;
  }

  
.recipe-photo {
    transform: rotate(2deg);
    border: 5px solid var(--white);
    border-radius: 3px;
}
li{
    list-style-type: none;
    padding-left: 0;
}

.inner-padding {
    border: 1px solid var(--ash);
    background-color: var(--white);
    border-radius: 10px;
    border-top: #FFF;
    max-width: 202px;
}
.profile-header{
    display: flex;
    flex-direction: row;
    align-items:flex-end;
    justify-content: flex-start;
}
.profile-header-s{
    display: flex;
    flex-direction: column;
}
.logo{
    height: 5rem;
    width: 5rem;
}

.signin-padding {
    background-color: var(--paper);
    border-radius: 10px;
    border: 1px solid var(--ash);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}
.recipe__header {
    margin-bottom: 2rem;
  }

.author{
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    row-gap: 0;

    flex-wrap: wrap;
    align-items: first baseline;

}


.recipe__title {
font-family: 'Playwrite US Trad', cursive;
font-size: 2.5rem;
color: var(--cacao);
margin: 0 0 0.5rem 0;
}
.recipe__tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}

.recipe__tags li {
display: inline;
}

/* Recipe intro section */
.col__holder{
display: flex;
flex-direction: row;
gap: 1rem;
}
.prep__values{
width: 60px;
}
.recipe__intro {
display: flex;
flex-direction: column;
flex: 1;
gap: 1rem;
margin-bottom: 2rem;
}

.recipe-photo {
max-width: 100%;
height: auto;
transform: rotate(2deg);
border: 5px solid var(--white);
border-radius: 3px;
margin-bottom: 0.5rem;
}

.recipe__description {
display: flex;
flex-direction: column;
gap: 0.25rem;
white-space: nowrap;
}

.recipe__description__text {
display: flex;
flex-direction: column;
}

.recipe__description li strong {
    width: calc(25% - 0.5rem);
    margin-right: 0.5rem;
  }
/* Ingredients and steps */
#recipe-heading {
border-top: 1px solid var(--ash);
padding-top: 2rem;
margin-top: 2rem;
}

.error-list {
    color: red;
    font-weight: bold;
    margin: 1em 0;
}
.error-list ul {
    list-style-type: disc;
    padding-left: 1.5em;
  }
.ingandstep{
    display: flex;
    flex-direction: column;
    flex: 2;
    gap: 1.5em;
}
.ingredients{
    display: flex;
    flex-direction: column;
}
.step{
    display: flex;
    flex-direction: column;
}
.step__ingredients {
    padding-left: 1.5rem; 
  }
.step__flex{
    display: flex;
    flex-direction: row;
    gap: 0.5rem; 
}
.step__list li {
    padding-bottom: 0.5em;
}
.step__flex label{
    display: none;
}
.step__title{
    width: 85%;
}
.flex_a{
    width: 15%;
}
.flex_u{
    width: 25%;
}
.flex_n{
    width: 60%;
}
#ingredients-heading, #steps-heading {
    font-family: 'Playwrite US Trad', cursive;
    color: var(--cacao);
}

#ingredients-heading {
margin-top: 0;
}

.index{
    color: var(--oak);
}

/* Ingredients list */
ul[itemprop="recipeIngredient"] {
    padding-left: 1rem;
    text-indent: -1rem;
    margin-left: 1rem;
}

ul[itemprop="recipeIngredient"] li {
margin-bottom: 0.5rem;
}

/* Steps list */
ol[itemprop="recipeInstructions"] {
padding-left: 1em;
margin-left: 1rem;
}

ol[itemprop="recipeInstructions"] li {
margin-bottom: 1rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
.q_bar{
    padding: .25rem;
    width: 100%;
    height: 100%; 
}
.recipeInstructions{
    list-style-type: decimal;
}
.login-form{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    gap: 1rem;
}
.login-submit{
    margin-top: 1rem;
    width: 50%;
    max-width: 200px;
    justify-content: center;
    align-content: center;
}
.login-a {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-a label {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.login-a input[type="text"],
.login-a input[type="password"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--ash);
    border-radius: 5px;
    width: 100%;
}

.checkbox-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.login-submit {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: var(--oak);
    color: var(--paper);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.login-submit:hover {
    background-color: var(--cacao);
}
label, input{
    width: 80%;
    
    align-items: baseline;
}
/* Responsive adjustments */
@media (max-width: 700px) {
    .card-grid li {
        flex: 1 1 calc(33.33% - 1rem);
    }
    .card-grid{
        display: flex;
    }
    
    .header-bottom-row {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .search-form {
        display: flex;
        gap: 0.25rem;
        align-items: center;
    }
    
    .search-form input[type="search"] {
        padding: 0.25rem;
    }
    
    .search-form button {
        padding: 0.25rem;
    }
  }
  @media (max-width: 500px) {
    .recipe__intro{
        gap: 2rem;
    }
    .recipe__header{
        padding: 0;
        
    }
    .main-content{
        border-left: 0;
        border-right: 0;
    }
  }
  @media (max-width: 600px) {
    .card-grid li {
        flex: 1 1 calc(33.33% - 1rem);
      }
    .card-grid{
        display: flex;
        flex-direction: row;
    }
  }
  @media (max-width: 400px) {
    .card-grid li {
        flex: 1 1 calc(33.33% - 1rem);
      }
    .card-grid{
        display: flex;
        flex-direction: column;
    }
    .login-form{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
  }
