:root{
    --white: #ffffff;
    --black: #000000;
    --gray-light-100: #BDBDBD;
    --gray-light-200: #828282;
    --gray: #4f4f4f;
    --gray-dark: #333333;
    --orange: #F2994A;
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Montserrat', sans-serif;
}

.body{
    max-width: 920px;
    margin: 3rem auto 0;
    padding: 0 0.7rem;
    background-color: var(--white);
}

.header{
    display: flex;
    flex-flow: column nowrap;
    gap: 0.5rem;
}

.header > .title{
    font-family: var(--primary-font);
    font-size: 3rem;
    font-weight: 700;
    line-height: 4rem;
    display: inline-block;
    color: var(--black);
    text-transform: capitalize;
}

.header > .description-container{
    display: flex;
    gap: 0.6rem;
    justify-content: start;
    align-items: flex-start;
    max-width: 700px;
}

.description-container > .description-icon{
    margin-top: 0.25rem;
}

.description-container > .description-text{
    font-family: var(--secondary-font);
    color: var(--gray);
    font-style: italic;
    font-size: 0.9;
    font-weight: 500;
    line-height: 1rem;
    text-transform: initial;
}

.main{
    width: 100%;
}

.main > .img{
    margin: 2rem 0;
    width: 100%;
}

.main > .content{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content > .content-items{
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
    max-width: 36rem;
    width: 100%;
}

.content-items > .ingredients, .instructions{
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
}

.ingredients-title, .instructions-title{
    color: var(--gray-dark);
    text-transform: initial;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
}

.ingredients > .dish-component{
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
}

.dish-component-title{
    font-family: var(--primary-font);
    color: var(--gray-dark);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.5rem;
    text-transform: capitalize;
}

.dish-component-checkbox{
    display: flex;
    flex-flow: column nowrap;
    gap: 0.5rem;
}

.checkbox-label{
    font-family: var(--secondary-font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--gray-dark);
    text-transform: initial;
    display: flex;
    justify-content: start;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label p{
    margin-top: 0.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

strong.strong{
    font-weight: 700;
    line-height: 1rem;
}

strong.italic{
    font-style: italic;
}


.checkbox {
    flex: 0 0 1.7rem;
    height: 1.7rem;
    width: 1.7rem;
    margin: 5px;
    appearance: none;
    position: relative;
    border: 2px solid #BDBDBD;
    background-color: #fff;
    border-radius: 15%;
    cursor: pointer;
    overflow: hidden;
}

.checkbox::after {
    content: '';
    height: 0.9rem;
    width: .4rem;
    border-bottom: .31rem solid #fff;
    border-right: .31rem solid #fff;
    opacity: 0;
    transform: rotate(45deg) translate(-50%, -50%);
    position: absolute;
    top: 45%;
    left: 21%;
    transition: .25s ease;
}

.checkbox::before {
    content: '';
    display: block;
    height: 0;
    width: 0;
    background-color: #F2994A;
    border-radius: 50%;
    opacity: .5;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    transition: .3s ease;
}

.checkbox:checked {
    border: none;
}

.checkbox:checked + p{
    text-decoration: line-through;
}

.checkbox:checked::before {
    height: 130%;
    width: 130%;
    opacity: 100%;
}

.checkbox:checked::after {
    opacity: 100%;
}

.instructions-content{
    display: grid;
    grid-template-columns: 2.2rem auto;
    grid-column-gap: 1rem;
}

.instructions-content > div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.2rem;
    background-color:var(--orange);
    border-radius: 6px;
}

.instructions-number{
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.5rem;
    display: flex;
    text-align: center;
    text-transform: uppercase;
}

.instructions-description{
    font-family: var(--secondary-font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3rem;
    color: var(--black);
}

.content-items  .link{
    font-family: var(--secondary-font);
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 2rem;
    color: var(--gray-light-100);
    text-decoration: none;
    margin-top: 1rem;
}

.content > .content-time{
    padding: 3.5rem 2.5rem;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-flow: column nowrap;
    gap: 2.5rem;
}

.content-time > .times{
    display: flex;
    flex-flow: column nowrap;
    gap: 2.5rem;
}

.time-layout{
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 1rem
}

.time-text{
    display: flex;
    flex-flow: column nowrap;
}

.time-title{
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 0.6rem;
    line-height: 0.875rem;
    text-transform: uppercase;
    color: var(--gray-light-100);
}


.time-description{
    font-family: var(--secondary-font);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1rem;
    color: var(--gray-dark);
}



.material-symbols-rounded { 
    color: var(--gray);
}


.color-orange{
    color: var(--orange);
}

.footer{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 6rem;
    padding-bottom: 1rem;
    text-align: center;
}

.text-footer{
    color: var(--gray-light-200);
    font-family: var(--secondary-font);
    font-weight: 500;
    font-size: 1rem;
}

a.strong{
    color: var(--gray-light-200);
    font-weight: 700;
}

a.strong:hover{
    color: var(--orange);
}

@media screen and (max-width: 820px) {

    .body{
        margin: 1.5rem auto 0;
    }
    

    .content{
        flex-flow: column nowrap;
    }

    .content > .content-time{
        gap: 1rem;
        padding: 0;
        box-shadow: unset;
        border-radius: unset;
        order:-1;
        margin-bottom: 2rem;
        width: 80%;
    }

    .content-time > .times{
        flex-flow: row nowrap;
        justify-content: space-between;
    }


}

@media screen and (max-width: 650px) {

    .header > .title{
        font-size: 1.5rem;
        line-height: 3rem;
    }

    .description-container > .description-text{
        font-size: 0.75rem;
        line-height: 0.85rem;
    }

    .ingredients-title, .instructions-title{
        font-size: 1.1rem;
        line-height: 1.5rem;
    }

    .dish-component-title{
        font-size: 1rem;
        line-height: 1.3rem;
    }

    .checkbox-label{
        font-size: 0.9rem;
    }

    .content > .content-time{
        width: 100%;
    }

    .time-layout{
        align-items: center;
        gap: 0.3rem;
    }

    .content-time > .times{
        flex-flow: row nowrap;
        justify-content: space-between;
        gap: 0rem;
        max-width: 30rem;
    
    }

    .content-items  .link{
        font-size: 0.75rem;
        text-align: center;
        line-height: 1rem;
    }
    
}

@media screen and (max-width: 380px){

    .time-title{
        font-size: 0.5rem;
        line-height: 0.875rem;
    }

    .time-description{
        font-size: 0.6rem;
        line-height: 1rem;
    }

    .color-orange{
        color: var(--orange);
    }

}

@media screen and (max-width: 320px){
    .header > .title{
        font-size: 1.2rem;
        line-height: 3rem;
    }
}