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

body {
    font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
    background-color: #fffaf3;
    color: #3b2f2f;
    line-height: 1.7;
}

header {
    background-image: url('../images/puffpuffbackground2.jpg');
    background-size: cover;
    background-position: center bottom;
    color: #fffdf9;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
}


header h1 {
    position: relative;
    font-family: "rosalind", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 100px;
    letter-spacing: -1px;
    color: #fffdf9;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

.rating {
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

.stars-outer {
    position: relative;
    display: inline-block;
    color: #ccc;
    font-family: Arial, sans-serif;
}

.stars-outer::before {
    content: "★★★★★";
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 90%;
    color: #f2c94c;
}

.stars-inner::before {
    content: "★★★★★";
}

.rating-value {
    font-weight: 600;
    color: white;
    margin-left: 0.3rem;
}


em {
    font-style: normal;
    font-weight: 600;
}

.recipeinfocontainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.ingredients .info,
.instructions {
    background-color: #fffdf9;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.prepinfo h3,
.instructions h3 {
    color: #d16a38;
    margin-bottom: 0rem;
    font-size: 1.2rem;
}

.prepinfo>div {
    margin-bottom: 1rem;

}

.ingredientsdiv {
    margin-bottom: 1rem;
}


.ingredients ul,
.instructions ol {
    margin-left: 1.2rem;
}



.instructions li {
    margin-top: 2rem;
}

.instructions img {
    width: 100%;
    height: auto;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 0.5rem;
    display: block;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #3b2f2f;
    color: #f6f1e9;
    font-size: 0.9rem;
}

footer a {
    color: #f2c94c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .recipeinfocontainer {
        flex-direction: row;
        align-items: flex-start;
    }

    .ingredients {
        flex: 1;
        position: sticky;
        top: 1rem;
    }

    .instructions {
        flex: 2;
    }
}

@media (max-width: 600px) {
    header {
        background-image: none;
        padding: 2rem 1rem;
        /* smaller vertical padding */
    }

    header h1 {
        color: #d16a38;
        font-size: 60px;
        text-shadow: none;
        margin-bottom: 0;
        /* remove extra bottom margin */
    }

    .subtitle {
        display: none;
        /* ensure subtitle is hidden */
    }

    body {
        font-size: 0.95rem;
    }

    .ingredients,
    .instructions {
        padding: 1rem;
    }

    .rating .star {
        font-size: 1.2rem;
    }

    .rating-value {
        color: #3b2f2f
    }

    footer {
        font-size: 0.8rem;
    }
}