*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    overflow-x: hidden;
}

:root {
    --padding: 4rem;
    --border: var(--border-color);
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

body.loaded .loader-container {
    display: none;
}

.no-scroll {
    overflow: hidden;
    height: 100%;
}

.article {
    opacity: 0;
    transform: translateY(-1.5%);
}

.title,
.article-title {
    opacity: 0;
    transform: translateY(-4%);
}

.image {
    opacity: 0;
    transform: translateY(-2%);
}

.introduction-container {
    color: var(--text-light-grey);
}

button {
    all: unset;
}

.mealtime {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.weekday {
    font-size: 1.5rem;
}

.heading {
    line-height: 2;
    font-weight: 900;
}

.section-container {
    padding: var(--padding);
}

.section-container a {
    color: var(--white);
    text-decoration: none;
}

.schedule-container-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-main);
}

.schedule-container {
    padding: 0;
    margin-top: 30px;
}

.schedule-stage__wrapper {
    display: inline-block;
}

.schedule-stage {
    display: grid;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    grid-gap: 2rem;
    padding-bottom: 2rem;
    padding-top: 2rem;
    width: max-content;
    min-width: 100%;

    &::after {
        content: "";
        width: var(--padding);
    }
}

.divider {
    position: sticky;
    left: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    opacity: 0.5;
    /* Lighter divider */
}

.schedule-stage__title {
    position: sticky;
    left: 0;
    padding-right: 2rem;
    height: 100%;
    padding-left: var(--padding);
    background: var(--bg-main);
    z-index: 10;

    &>h3 {
        font-weight: 800;
        color: var(--text-color);
    }
}

.schedule-stage_guide-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    grid-gap: 2rem;
}

.guide-slot {
    color: var(--text-muted);

    &>p {
        margin-bottom: 0.8rem;
    }
}

.guide-slot_card {
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.3s ease;
    height: 100%;

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        border-color: var(--purple-light);
    }

    &>.mealtitle {
        margin-right: 1rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }
}

.author-wrapper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

picture {
    display: inline-block;
    inline-size: 1.7rem;
    block-size: 1.7rem;
    overflow: hidden;
    margin-right: 0.3rem;

    &>img {
        inline-size: 80%;
        block-size: 80%;
        object-fit: cover;
    }
}

figcaption {
    font-size: 0.9rem;
}

.darkscreen {
    width: 100%;
    height: 100%;
    z-index: 99;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.25);
}

.recipes {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.darkscreen,
.recipecontainer {
    display: none;
}

.recipemargin {
    padding: 5px 30px;
    margin: 30px 0;
    max-height: 75vh;
    overflow-y: auto;
}

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

.recipecontainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 65%;
    max-height: 75vh;
    height: auto;
    background-color: var(--bg-main);
    border-radius: 20px;
}

.recipecontainer a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    position: absolute;
    top: 7px;
    right: 10px;
    padding: 12px;
}

.close {
    font-family: Calibri, sans-serif;
}

.rtitle {
    font-size: 1.8rem;
    font-family: 'Poppins', Calibri, sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.timealign {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rimg {
    width: 85%;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    border-radius: 12px;
    object-fit: cover;
}

@media (min-width: 1100px) {
    .rimg {
        width: 65%;
        height: 40%;
    }

    .recipecontainer {
        width: 50%;
    }
}


@media (max-width: 1100px) {
    .rimg {
        width: 100%;
        height: 30%;
    }

    .recipecontainer {
        width: 80%;
        max-height: 70vh;
    }
}


.recipemargin p,
.recipemargin ul {
    margin-top: 10px;
    font-size: 1.2rem;
    font-family: 'Zilla Slab';
    text-align: justify;
    line-height: 1.5;
}

.recipemargin ul {
    margin-left: 15px;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 6px;
}

.animate {
    animation: slideInTop 0.5s ease-out forwards;
}

.title.animate {
    animation-delay: 0.1s;
}

.article-title.animate {
    animation-delay: 0.2s;
}

.article.animate,
.responsive-table.animate {
    animation-delay: 0.3s;
}

.image.animate {
    animation-delay: 0.5s;
}

@keyframes slideInTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    text-align: center;
    margin: 0 20px 60px 20px;
}

.title h3 {
    color: var(--text-subtitle);
    font-size: 18px;
    margin: 15px 0;
}

.title h1 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
}

.reading-time i {
    font-size: 18px;
}

.reading-time p {
    margin: 0;
}

.image {
    width: 100%;
    margin: 0 auto;
}

.image img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-top: 25px !important;
}

.item-indice {
    color: var(--teal);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3 ease;
}

.item-indice:hover {
    color: var(--teal-hover);
}

.article {
    font-family: 'Zilla Slab', Times New Roman, serif;
    font-size: 20px;
    margin: 40px 0;
    text-align: justify;
    line-height: 1.5;
}

.article-title h2 {
    text-align: center;
    font-weight: 600;
    padding: 50px 0 10px 0;
}

.underline {
    text-decoration-line: underline;
    text-decoration-color: var(--teal);
    text-decoration-thickness: 1.9px;
    text-decoration-style: wavy;
}

@media (max-width: 600px) {

    th,
    td {
        padding: 5px;
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .article {
        margin: 40px 20px;
    }
}

@media (max-width: 941px) {
    .article {
        font-size: 18px;
    }

    .title h3 {
        font-size: 18px;
    }

    .title h1 {
        font-size: 22px;
        text-align: center;
        font-weight: 600;
    }

    .title p {
        font-size: 16px;
    }

    .article-title h2 {
        font-size: 22px;
        margin: 0 15px;
    }

    .image {
        padding: 0 20px;
        width: 95% !important;
    }

    .schedule-stage__title {
        padding-left: 2rem;
        padding-right: 0;
    }

    .weekday {
        font-size: 1.3rem;
    }

    .mealtime {
        font-size: 0.8rem;
    }

    figcaption {
        font-size: 0.65rem;
    }

    .mealtitle {
        font-size: 0.9rem !important;
    }

    .rtitle {
        font-size: 1.2rem;
    }
}