
:root {
    --bg-light: #f8f6e8ff;
    --bg-dark: #1d1e2cff;
    --fall-orange-dark: #bb6b00ff;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg-light);
    
}

section {
    margin-top: 0;
    margin-bottom: 4em;
  

}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Calistoga', serif;
    color: var(--bg-dark);
}

p {
    font-family: 'Inter', sans-serif;
    color: var(--bg-dark);
}

h1 {
    
    margin-top: 0; 
}

h2 {
    font-size: 32pt;
}

img {
    border-radius: 10px;
    width: 100%;
}

/* global css  */

.flex {
    display: flex;
}

.div-half {
    display: block;
    width: 50%;
    
}
#ingredients-left{
    margin-right: 2rem;
}

.content {
    /* change  */
    max-width: 60%;
    margin: auto;
    margin-top: 5%;
}

/* section heading */

#header-content{
    border-style: solid;
    padding: 2rem;
    border-radius: 2rem;
    border-color: var(--fall-orange-dark);
    background-color: rgb(251, 250, 242);
}

#header {
    position: relative;
    display: block;
    margin-top: 0;
    height: 40rem;
    background-image: url(https://inbloombakery.com/wp-content/uploads/2021/09/pumpkin-cookies-14.jpg);
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    box-shadow: inset 0 0 0 2000px rgba(35, 33, 34, 0.277);
}

#header h1 {
    color: var(--bg-light);
    font-size: 80pt;
    position: absolute;
    bottom: 0;
    /* (100%-(max width)) / 2 to keep it consistent with margins */
    left: 20%; 
    width: 40%;
}

/* ingredients css */

.label-for-check {
    font-family: 'Inter', sans-serif;
}

.check-with-label:checked + .label-for-check {
    text-decoration: line-through;
  }

  input[type=checkbox] {
    accent-color: var(--fall-red);
  }

  /* instructions css */

  
  ol {
  
    counter-reset: morgans-counter;
    list-style: none;
    padding-left: 40px;
  }
  ol li {
    margin: 0 0 0.5rem 0;
    counter-increment: morgans-counter;
    position: relative;
    margin-bottom: 40px;
  }
  ol li::before {
    content: counter(morgans-counter);
    font-family: 'Calistoga', serif;
    font-size: 2rem;
    position: absolute;
    --size: 32px;
    left: calc(-1 * var(--size) - 10px);
    line-height: var(--size);
    width: var(--size);
    height: var(--size);
    top: 0;

    
  }

  .step-img {
    max-height: 30rem;
    object-fit: cover;
  }
  #step-seven-images :first-child{
    margin-right: 20px;

  }
  #step-1-images :first-child{
    margin-right: 20px;
  }


    /* footer css */
    footer{
        background-color: var(--fall-orange-dark);
        padding: 1rem;
    }
    footer p{
        color: var(--bg-light);
        margin-left: 2rem;
        line-height: 10px;
    }
    a{
        color: var(--bg-light);
    }

  /*********  RESPONSIVE CSS *********/

  @media (max-width: 600px) {
    .content {
        max-width: 90%;
    }

    #header h1 {
        font-size: 60pt; 
        left: 5%; 
        width: 80%; 
    }

    .flex {
        display: block;
    }
    
    .div-half {
        width: 100%; 
    }

    
}

/* Medium screens */
@media (min-width: 601px) and (max-width: 900px) {
    .content {
        max-width: 70%;
    }

    #header h1 {
        font-size: 70pt; 
        left: 15%; 
        width: 70%; 
    }

    .flex {
        display: block;
    }
    
    .div-half {
        width: 100%; 
    }
}

/* Large screens */
@media (min-width: 901px) {
    .content {
        max-width: 60%; 
    }

    #header h1 {
        font-size: 80pt; 
        left: 20%; 
        width: 40%; 
    }
}

