.yummyfriends-page {
    background-color: #3b1578;
    color: #fffaee; /* yellow-ish white */
    overflow-x: hidden;
    margin: 0 0 16px 0;
    border-radius:24px;
}

/* Container animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInAccordion {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container styles */
.logo_head, .yummygif-head, .characters_contain {
    opacity: 0;
}

/* Sequential animations */
.logo_head {
    animation: slideInFromLeft 0.2s ease-out forwards;
    display: block;
    width: fit-content;
    margin: 10px auto;
}
.logo_head img {
    width: 250px;
}

.yummygif-head {
    animation: slideInFromRight 0.6s ease-out forwards;
    animation-delay: 2s;
    display: block;
    width: fit-content;
    margin: auto;
}

.yummy-head-gif {
    width: 550px;
    border-radius: 20px;
    max-width: 100%;
}

.yummygif-head::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, transparent 60%, /* This keeps the center of the video untouched */ rgba(59, 22, 120, 0.8) 100%);
    mix-blend-mode: multiply;
    border-radius: inherit;
}

.yummy_text {
    white-space: pre-line;
    width: 90%;
    margin: auto;
    max-width: 500px;
    font-size: 16px;
    letter-spacing: 0.3px;
}/* Ensure sayhello_title appears first */

.sayhello_title {
    position: relative;
    font-size: 21px;
    font-weight: 600;
    color: #ffe5a9;
    margin-bottom: 10px;
    display: inline-block; /* Ensures ::after is aligned with the text */
    animation: fadeIn 0.5s ease-out forwards; /* Fade in for the title */
    animation-delay: 0.7s; /* Appear slightly before the rest of the text */
    opacity:0;
}

.sayhello_title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0.5em;
    background: #7bb4c0;
    z-index: -1;
    width: 0; /* Initially, the width is 0 */
    opacity: 0.5;
    border-radius: 0px 16px 0px 7px;
    transition: width 0.6s ease-out; /* Transition for the sliding effect */
    animation-delay: 2.3s; /* Delay should match or be slightly after the title appears */
    transform:rotate(359deg);
}

.sayhello_title.appear::after {
    width: 100%; /* Expands to full width */
}

.yummy_text_rest {
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 6.2s; /* Appear after the title and marker */
    opacity:0;
}

.characters_contain {
    width: 90%;
    margin: auto;
    max-width: 700px;
    animation: slideInFromLeft 0.7s ease-out forwards;
    animation-delay: 7s; /* Adjust the delay to match your sequence */
    max-width:500px;
}
/* Accordion styles */
.accordion-item {
    margin: 10px 0;
    color: #121212;
    border-radius: 10px;
    background: #f9f9f9;
    opacity: 0;
    animation: fadeInAccordion 0.7s ease-out forwards;
    display: block; /* Ensure accordion items are displayed */
}

#accordion-tim {
    animation-delay: 7.5s;
}

#accordion-ari {
    animation-delay: 8s;
}

#accordion-charlie {
    animation-delay: 8.5s;
}

/* Accordion styles */
.accordion {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 20px 0 0;
    transition: background-color 0.3s ease;
    position: relative;
    border-radius: 10px;
    background-color: var(--background);
    color:var(--textMain);
}

.accordion-icon {
    width: 100px;
    height: 100px;
    border-radius: 10px 0px 0px 10px;
    margin-right: 10px;
    transition: opacity 0.3s ease;
}

.accordion-title {
    flex-grow: 1;
    transition: opacity 0.3s ease;
    font-size:var(--font_title);
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 10px;
    white-space: pre-line;
    width: 95%;
    margin: auto;
}

.accordion-content p {
    margin: 10px 0;
    font-family:var(--fontInter);
}

.accordion-content img {
    width: 225px;
    margin: auto;
    display: block;
}

/* When the accordion is open */
.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-item.open .accordion-icon {
    border-radius: 10px 0px 10px;
}

.accordion-item.open .accordion-content {
    max-height: 1000px; /* Adjust based on your content's height */
    padding: 16px;
    position: relative;
    width:calc(100% - 32px);
}

.buy_contain {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto;
}

.buy_button {
    width: max-content;
    border-radius: 40px;
    display: flex;
    padding: 10px 20px;
    align-items: center;
    font-size: 18px;
    background: #3b1677;
    color: #fff;
    border: none;
}

.buy_contain img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin: 0;
}

.additional_contain {
    width: 90%;
    max-width: 500px;
    display: block;
    opacity: 0;
    margin: auto;
    white-space: pre-line;
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 9.1s;
}

.yummy_social {
    display: flex;
    gap: 10px;
}

.yummy_social img {
    height: 20px;
}