@font-face {
    font-family: "Outfit";
    src: url('/assets/fonts/outfit/Outfit-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: "Young-serif";
    src: url('/assets/fonts/young-serif/YoungSerif-Regular.ttf') format('truetype');
    font-style: normal;
}

:root {
    --card-background: hsl(0, 0%, 100%);
    --background-main: hsl(30, 54%, 90%);

    --text-primary: hsl(24, 5%, 18%);
    --text-secondary: hsl(30, 10%, 34%);
    --highlight-heading: hsl(14, 45%, 36%);
    --highlight-text: hsl(332, 51%, 32%);
    --highlight-bg: hsl(330, 100%, 98%);

    --divider-color: hsl(30, 18%, 87%);
}

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

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

/* global styles */
h1,
h2 {
    font-family: 'Young-serif', serif;
}

h2 {
    color: var(--highlight-heading);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

ul {
    margin-left: 30px;
}

ul li {
    color: var(--text-secondary);
    line-height: 1.5rem;
    margin-bottom: 0.8rem;
}

li::marker {
    color: var(--highlight-heading);
}

li span {
    font-weight: bold;
    color: var(--text-secondary);
}

ul li p {
    margin-left: 15px;
}

.divider {
    border-top: 1px solid var(--divider-color);
    margin: 2rem 0;
}

p {
    margin: 1rem 0;
    color: var(--text-secondary);
    line-height: 1.3rem;
}

/* the largest container */
section {
    background-color: var(--background-main);
    width: 100%;
    height: fit-content;
    overflow: hidden;
    /* this is solve the problem of overflow  (margin collapsing)*/
}

/* the card container */
.card {
    background-color: var(--card-background);
    width: 35%;
    height: fit-content;
    margin: 80px auto;
    padding: 20px;
    border-radius: 0.6rem;
}

/* Start Header */
.header {
    margin-bottom: 2rem;
}

.header img {
    width: 100%;
    border-radius: 0.6rem;
}

.header .info-header h1 {
    margin: 1rem 0;
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--text-primary);
    text-transform: capitalize;
}

/* Start Preparation Time */
.prep-container {
    background-color: var(--highlight-bg);
    padding: 20px;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
}

.prep-container h3 {
    color: var(--highlight-text);
    margin-bottom: 10px;
}

.prep-container ul li span {
    color: var(--text-secondary);
}

/* Start Ingredients */
.ingred-container {
    margin-bottom: 2rem;
}

/* Start Instructions */
.inst-container ul {
    list-style: decimal;
}

/* start  Nutrition */
table {
    width: 100%;
}

table,
tr,
td {
    border-bottom: 1px solid var(--divider-color);
    border-collapse: collapse;
    padding: 10px;
}

td:nth-child(1) {
    color: var(--text-secondary);
}

td:nth-child(2) {
    color: var(--highlight-heading);
    font-weight: bold;
}