@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap');

:root {
    --white: hsl(0, 0%, 100%);
    --ston1: hsl(30, 54%, 90%);
    --stone15: hsl(30, 18%, 87%);
    --stone60: hsl(30, 10%, 34%);
    --stone90: hsl(24, 5%, 18%);
    --brown80: hsl(14, 45%, 36%);
    --rose80: hsl(332, 51%, 32%);
    --rose50: hsl(330, 100%, 98%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
}

main{
    width: 100vw;
    background-color: var(--white);

}

main img{
    width: 100%;
    height: auto;
}
.text{
    padding: 2rem;
}

.header h1{
    font-family: 'Young Serif', serif;
    color: var(--stone90);
    font-weight: 700;
    font-size: 2rem;
}

.header p{
    margin-top: 20px;
    color: var(--stone60);
    line-height: 1.5;
}

.prep{
    margin-top: 30px;
    background-color: var(--rose50);
    padding: 1.5rem;
}


.prep b{
    color: var(--stone80);
}
.prep h2{
    color: var(--rose80);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.prep ul{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--stone60);
}

.ing, .inst, .nutr{
    margin-top: 30px;
}

.ing h1 , .inst h1, .nutr h1{
    color: var(--brown80);
    font-weight: 500;
    font-size: 1.7rem;
    margin: 0 0 1rem 0;
    font-family: "Young Serif", serif;
}

.ing ul, .inst ol{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--stone60);
    line-height: 1.5;
}

.inst b{
    color: var(--stone80);
}

.nutr p{
    color: var(--stone60);
    line-height: 1.5;
}

table{
    margin-top: 20px;
    width: 100%;
    padding: 0 2rem;
}

thead{
    text-align: left;
}

td:nth-child(even){
    color: var(--brown80);
    font-weight: 700;
}

td:nth-child(odd){
    color: var(--stone60);
}

td {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
  }


ul {
    list-style-type: disc;
    padding-left: 40px;
}

ol {
    list-style-type: decimal;
    padding-left: 40px;
}

ul li::marker {
    color: var(--brown80)
}

ol li::marker {
    color: var(--brown80)
}


@media (min-width: 500px) {
    body {
        background-color: var(--ston1);
        display: flex;
        justify-content: center;
        font-size: 1rem;
    }

    main {
        width: 650px;
        margin: 4rem;
        border-radius: 10px;
        overflow: hidden; /* Add this to ensure content doesn't overflow */
        padding: 1rem; /* Add padding around the content */
        box-sizing: border-box; /* Ensure padding is included in the width */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the content horizontally */
    }

    main img {
        width: 100%;
        max-width: calc(100% - 2rem); /* Adjust width to account for padding */
        margin: 0; /* Remove margin to fit within the main element */
        border-radius: 10px; /* Adjust border-radius to match main element */
    }
}