* {
    font-family: "Figtree", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: rgb(171, 200, 139);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://teakandthyme.com/wp-content/uploads/2024/11/matcha-crinkle-cookies-DSC_3002-1600.jpg);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center 20%;
    flex-direction: column;
}

#card {
    background-color: rgb(245, 237, 226);
    width: 800px;
    height: 500px;
    margin: auto;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border-radius: 3rem;
}

h1 {
    font-weight: 800;
    font-size: 50px;
    margin-bottom: .3rem;
    line-height: 50px;
}

#subtitle {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 1rem;
}

#card div p {
    margin-bottom: 1.5rem;
}

#info {
    display: flex;
    gap: 2rem;
}

#info li {
    list-style: none;
    line-height: 20px;
}

#info h3 {
    margin-bottom: 0.5rem;
    font-size: 18px;
}

#card div li span {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    color: rgb(127, 146, 106);
}

#allergens {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    width: 100%;
}

ul {
    list-style: none;
}

#allergens li {
    background: rgb(207, 217, 187);
    padding: .2rem .6rem;
    font-size: 14px;
    border-radius: 1rem;
}

#intro-pic {
    width: 400px;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.fa-angle-down {
    color: rgb(245, 237, 226);
    font-size: 40px;
    margin-bottom: 1.5rem;
}

#main-page {
    display: flex;
    width: 800px;
    margin: 2.5rem auto 0;
}

body {
    background-color: rgb(245, 237, 226);
}

aside {
    width: 360px;
    flex-shrink: 0;
    /* background-color: rgb(207, 217, 187); */
    
}

aside section {
    margin-bottom: 3rem;
    position: relative;
    background: rgb(207, 217, 187);
    padding: 3rem;
    border-radius: 7px;
}


aside .file-icon {
  position: absolute;
  top: -29px;
  left: 0px;
  background: rgb(207, 217, 187);
  padding: 10px 16px;
  border-radius: 7px 7px 0 0;
}

main {
    padding: 3rem 0 0 3rem;
    background: rgb(245, 237, 226);
}

main section {
    margin-bottom: 2rem;
}

li {
    margin-bottom: 0.3rem;
}

#ingredients li div {
    margin-left: 1rem;
    font-size: 14px;
    color: rgb(102, 120, 82);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.ingr-type {
    margin-bottom: .7rem;
}

.ingr-type h4 {
    font-size: 16px;
    font-style: italic;
    margin-bottom: .3rem;
}

#tips li {
    margin: 1rem 0;
}

#instructions li {
    margin-bottom: 2rem;
}

#instructions ol {
    border-left: 3.5px solid rgb(207, 217, 187);
    padding-left: 3rem;
}

.inst-img {
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inst-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: .5rem;
}

.inst-img p {
    font-size: 13px;
    font-style: italic;
    text-align: center;
    width: 80%;
}

.fa-cookie-bite {
    color: rgb(102, 120, 82);
    font-size: 25px;
    position: absolute;
    left: -65px;
}

.scroll-icon {
    position: sticky;
    top: 200px;
    left: 0;
}

#storage div {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

#storage div h4 {
    width: 20%;
    flex-shrink: 0;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    color: rgb(127, 146, 106);
}

footer {
    padding: 2rem;
}

footer p {
    text-align: center;
    font-size: 14px;
    margin: 0 auto;
}

a {
    color: rgb(127, 146, 106);
}


@media (max-width: 900px) {
    #card {
        flex-direction: column;
        width: 500px;
        height: auto;
        gap: 1.2rem;
    }

    #intro-pic {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center 65%;
    }

     aside {
        width: 40%;
        flex-shrink: 0;
    }

    #main-page {
        width: 90%;
    }
}

@media (max-width: 700px) {
    #card {
        flex-direction: column;
        width: 325px;
        height: auto;
        gap: 1.2rem;
        padding: 2rem;
    }

    #intro-pic {
        width: 100%;
        height: 150px;
        object-fit: cover;
        object-position: center 65%;
    }

    h1 {
        font-size: 36px;
        margin-bottom: .3rem;
        line-height: 36px;
    }


    #info {
        flex-direction: column;
        gap: 0.5rem;
    }

    #info ul {
        display: flex;
        gap: 0.5rem;
    }

    #main-page {
        flex-direction: column;
        
    }

    aside {
        width: 100%;
    }

    main {
        padding-top: 0;
    }

}