@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* 
font-family: "Roboto", sans-serif;
font-family: "Roboto Serif",serif;
font-family: "Roboto Condensed",sans-serif;
font-family: "Roboto Slab", serif; 
font-family: "Inter", sans-serif;
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --white: #ffffff;
    --black: #111111;
    --smoke: #f0f0f0;
    --grey: #c6c6c6;
    font-family: "Roboto", sans-serif;
    letter-spacing: -0.3px;
}

html {
    width: 100vw;
    height: 100vh;
    font-size: calc(10px + (16 - 12) * ((100vw - 440px) / 800));
    overflow: none;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: none;
}

a {
    cursor: pointer;
}

.container {
    width: 100%;
    display: flex;
    gap: 3rem;
}

.left {
    padding: 3rem;
    padding-right: 0;
    padding-bottom: 6rem;
    width: calc(40% - 1.5rem);
    height: 100vh;
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.left::-webkit-scrollbar {
    display: none;
}

.right {
    padding: 3rem;
    padding-left: 0;
    /* padding-bottom: 6rem; */
    width: calc(60% - 1.5rem);
    height: 100vh;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.right::-webkit-scrollbar {
    display: none;
}

/* ========== LEFT ========== */

.left img:first-of-type {
    width: 100%;
    height: 40rem;
    object-fit: cover;
    border-radius: 1rem;
}

.ingridient-container {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.ingrid-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ingrid-title h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
}

.ingrid-title .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
}

.ingrid-title .btn-group button {
    width: 2.6rem;
    aspect-ratio: 1/1;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    background-color: var(--white);
    border: 1px var(--black) solid;
    cursor: pointer;
}

.ingrid-title .btn-group button:hover {
    background-color: var(--black);
    color: var(--white);
}

.ingrid-title .btn-group p {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
}

.ingridients {
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
}

.regular-ingrid {
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
}

.parent-ingrid {
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
}

.parent-ingrid>* {
    margin-left: 2rem;
}

.parent-ingrid .ingridient:first-of-type {
    margin-left: 0 !important;
}

.ingridient {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--black);
    background-color: var(--white);
    border-radius: 0.5rem;
    border: 1px var(--grey) solid;
}

.ingrid-name {
    text-transform: capitalize;
    margin-right: 1.2rem;
    text-align: left;
    padding: 1rem;
}

.ingrid-count {
    text-transform: uppercase;
    text-align: right;
    padding: 1rem;
}

.ingrid-count:has(.ingrid-detail-btn) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ingrid-count:has(.ingrid-detail-btn) {
    height: 100%;
    padding: 0.3rem;
}

.ingrid-detail-btn {
    height: 2.6rem;
    aspect-ratio: 1/1;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
    margin-left: 1rem;
    font-size: 1.2rem;
    border-radius: 0.35rem;
    border: 1px var(--black) solid;
    position: relative;
}

.ingrid-detail-btn input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 100;
}

.ingrid-detail-btn .fa-angle-down {
    display: block;
}

.ingrid-detail-btn .fa-angle-up {
    display: none;
}

.ingrid-detail-btn:hover {
    background-color: var(--smoke);
    color: var(--black);
}

.ingrid-detail-btn:has(input[type="checkbox"]:checked) {
    background-color: var(--black);
    color: var(--white);
}

.ingrid-detail-btn:has(input[type="checkbox"]:checked):hover {
    opacity: 0.85;
}

.ingrid-detail-btn:has(input[type="checkbox"]:checked) .fa-angle-down {
    display: none;
}

.ingrid-detail-btn:has(input[type="checkbox"]:checked) .fa-angle-up {
    display: block;
}


.parent-ingrid>* {
    display: none;
}

.parent-ingrid .ingridient:first-of-type {
    display: flex;
}

.parent-ingrid:has(input[type="checkbox"]:checked)>* {
    display: flex;
}

/* ========== RIGHT ========== */

.right .title {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    padding-top: 5rem;
    width: 70%;
}

.right .title h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
}

.tag-container {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 1rem;
    color: var(--black);
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 10rem;
    border: 1px var(--grey) solid;
}

.desc {
    width: 90%;
    font-size: 1.2rem;
    font-weight: 300;
}

.time-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.time-container h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
}

.times {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.time:first-of-type {
    background-color: var(--black);
    color: var(--white);
    border: none;
}

.time {
    display: flex;
    flex-direction: column;
    row-gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    color: var(--black);
    border: 1px var(--grey) solid;
    border-radius: 0.8rem;
    font-size: 1rem;
    padding: 0.5rem;
}

.time-count {
    width: 100%;
    text-transform: lowercase;
    background-color: rgb(0, 0, 0, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 0.4rem;
    text-align: center;
}

.time:first-of-type .time-count {
    background-color: rgb(255, 255, 255, 0.2);
}

.time-num {
    font-size: 1.8rem;
    font-weight: 700;
}

.time-title {
    text-transform: capitalize;
    padding: 0rem 0.6rem;
    padding-bottom: 0.1rem;
}

.cook-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    margin-top: 1rem;
}

.cook-container h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
}

.steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.step {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.carousel {
    width: 100%;
    height: 26rem;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.carousel .step-title {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background-color: var(--black);
    color: var(--white);
    padding: 0.6rem 1.6rem;
    border-radius: 0.6rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom left;
}

.carousel-btns {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    z-index: 100;
    width: 100%;
}

.caro-btn {
    width: 4rem;
    aspect-ratio: 1/1;
    background-color: var(--white);
    border: 1px var(--black) solid;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.3rem;
    opacity: 0.85;
}

.caro-btn:hover {
    opacity: 1;
}

.step-desc {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.substep {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.step-num {
    width: 2.5rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.substep p {
    width: calc(100% - 3.5rem);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--black);
    white-space: wrap;
}

.conclusion {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    font-size: 1.2rem;
    background-color: var(--smoke);
    border-radius: 1rem;
}

.conclusion p i {
    font-weight: 500;
    margin-right: 0.8rem;
    font-size: 1.5rem;
}

.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    padding-bottom: 0;
    border-radius: 1rem;
}

.footer a {
    color: var(--black);
}

/* ========== MEDIA QUERIES ========== */

.right .hidden-hero-img {
    width: 100%;
    height: 40rem;
    object-fit: cover;
    border-radius: 1rem;
    display: none;
}

.right .ingridient-container {
    display: none;
}

.right .ingrid-time-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .left {
        display: none;
    }

    .right {
        width: 100%;
        padding: 3rem;
    }

    .right .title {
        padding-top: 0;
    }

    .right .hidden-hero-img {
        display: block;
        height: 25rem;
        object-fit: cover;
        object-position: bottom center;
    }

    .right .desc {
        width: 100%;
    }

    .right .ingridient-container {
        display: flex;
    }

    .time-container {
        width: calc(60% - 0.75rem);
    }
}

@media screen and (max-width: 500px) {
    .right {
        padding: 2rem;
    }

    .carousel img {
        object-position: bottom center;
    }
}

@media screen and (max-width: 400px) {
    .right {
        padding: 1.5rem;
    }

    .right .ingrid-time-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .time-container {
        width: 100%;
    }

    .right .ingrid-time-container .ingridient-container {
        width: 100%;
    }
}