/* Accordian */

details {
    width: 100%;
    align-self: stretch;
    border-radius: 9px;
    background: var(--main-text-color-altV2);
    overflow: hidden;
}

/* details:hover {
    box-shadow: 2px 2px 2px 1px var(--main-text-color-altV2);;
} */

details::details-content{
    block-size: 0;
    transition: 
        block-size 0.5s,
        content-visibility 0.5s;
    transition-behavior: allow-discrete;
}

details[open]::details-content{
    block-size: auto;
}

details[open] summary{
   background: var(--alt-main-bg-color);
   color: var(--main-bg-color);
}

details[open] summary .flex-item-right{
   transform: rotate(180deg);
}

details[open] summary .flex-item-right g g path{
   fill: var(--main-bg-color);
}

details summary {
    display: flex;
    padding: 24px;
    cursor: pointer;
    align-items: center;
    gap: 24px;
    color: var(--main-bg-color);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 26.46px;
    border-radius: 6px 6px 0 0;
}

details summary .number-circle{
    display: flex;
    background-color: var(--main-text-color-alt);
    aspect-ratio: 1 / 1;
    width: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50% 50% 50% 50%;
    border: 2px solid var(--main-bg-color);
    color: var(--main-bg-color);
    /* transform: rotate(-45deg); */
}

details summary .number-circle p{
    margin-block-end: 0;
}

/* details summary .number-circle p{
    transform: rotate(45deg);
} */

/* details[open] summary .number-circle{
    color: var(--alt-text-color);
} */

.details-main {
    display: flex;
    padding: 48px 21px;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    border-radius: 0 0 8px 8px;
    border: 1px solid #ADAEB1;
    background: #F4F5F9;
    flex-direction: column;
}

.details-main p{
    color: #000;
}

.details-main p strong{
    font-weight: 900;
    color: #000;
}

summary svg{
    width: 25px;
    stroke-width: 5px;
}

/* Carousel */

.carousel{
    width: 90%;
    overflow-x: auto;
    margin: auto;
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    anchor-name: --carousel;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;

        @media screen and (min-width: 769px){
            width: 60%;
        }
}

.carousel::scroll-marker-group{
    /* display: flex; */
    display: none;
    justify-content: center;
    gap: 0.5em;
}

.card::scroll-marker:target-current{
    background-color: #009e99;
}

.card::scroll-marker{
    content: '';
    height: 1em;
    width: 1em;
    background-color: #009e99;
    border-radius: 50%;
}

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

.carousel::scroll-button(right),
.carousel::scroll-button(left){
    content: '→';
    border: none;
    background-color: #009e99;
    font-size: 2rem;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    padding-bottom: .2em;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
}

.carousel::scroll-button(left){
    content: '←';
    position-area: left center;
    translate: 50%;
}

.carousel::scroll-button(right):disabled,
.carousel::scroll-button(left:disabled){
    opacity: 0.5;
    cursor: auto;
}

.card{
    scroll-snap-align: start;
    flex: 0 0 calc(100% - calc(calc(1em * 1) / 2));
    aspect-ratio: 5 / 1;
    background-color: transparent;
    padding: 0em;
    border-radius: .5em;
    text-align: center;
    align-content: center;
}

.card:last-of-type{
    margin-right: 0em;
}

@media(max-width: 500px) {
    /* .maincontainer {
        width: 80vw;
    } */
    .card{
        flex: 0 0 100%;
    }    
}