@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap');

:root {
    --White: hsl(0, 0%, 100%);
    --Stone-100: hsl(30, 54%, 90%);
    --Stone-150: hsl(30, 18%, 87%);
    --Stone-600: hsl(30, 10%, 34%);
    --Stone-900: hsl(24, 5%, 18%);
    --Brown-800: hsl(14, 45%, 36%);
    --Rose-800: hsl(332, 51%, 32%);
    --Rose-50: hsl(330, 100%, 98%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    font-family: "Outfit", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px;
    background-color: var(--Rose-50);
    transition: all 500ms ease-in-out;
}

.card {
    width: 700px;
    padding: 40px;
    border-radius: 20px;
    background-color: var(--White);
    border: 1px solid var(--Stone-100);
    color: var(--Stone-600);
    
    img {
        width: 100%;
        border-radius: 10px;
    }
    
    .young {
        font-family: "Young Serif", serif;
    }
    
    .brown {
        color: var(--Brown-800);
        font-size: 30px;
    }
    
    .rose {
        color: var(--Rose-800);
        font-size: 20px;
        font-weight: 700;
    }
    
    > :not(:first-child) {
        margin-top: 20px;
    }
    
    > div > :not(:first-child) {
        margin-top: 20px;
    }
}

.recipe .main-heading {
    font-size: 40px;
    color: var(--Stone-900);
}

.preparation {
    padding: 25px;
    background-color: var(--Rose-50);
    border-radius: 10px;
    
    li::marker {
        color: var(--Rose-800);
        font-size: 13px;
    }
}

.ingredients li::marker {
    font-size: 13px;
    color: var(--Brown-800);
}

.instructions li::marker {
    color: var(--Brown-800);
    font-weight: 700;
}

.nutrition table {
    width: 100%;
    
    td {
        padding: 15px 30px;
    }
    
    tr:not(:last-child) > td {
        border-bottom: 1px solid var(--Stone-100);
    }
    
    tr > td:nth-child(2) {
        color: var(--Brown-800);
        font-weight: 700;
    }
}

/* mini elements CSS */
div span {
    font-weight: 900;
}

.container .card hr {
    margin-top: 30px;
    background-color: var(--Stone-100);
}

.list {
    margin: 0 24px;
    
    li {
        padding-left: 17px;
        margin-top: 10px;
    }
}

.coder {
    padding-top: 30px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

@media screen and (max-width:700px) {
    .container {
        padding: 0 0 30px 0;
    }
    
    .card {
        width: 100%;
        border-radius: 0;
        padding: 30px;
        
        img {
            width: 100vw;
            border-radius: 0;
            position: relative;
            top: -30px;
            right: 30px;
        }
    }
    
    .recipe .main-heading {
        font-size: 36px;
    }
}