.marvel-element-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 32px;

    width: 100%;
}

.marvel-element-slider .cards-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 32px;

    width: 100%;

    height: 550px;

    overflow: scroll;
    pointer-events: none;

    overflow: scroll;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}

.marvel-element-slider .cards-wrapper::-webkit-scrollbar {
    display: none;                /* Chrome, Safari */
}

.marvel-element-slider .card {
    scroll-snap-align: start;

    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;

    min-height: calc((100% - 32px) / 2);
    max-height: calc((100% - 32px) / 2);

    overflow: hidden;

    border-radius: 20px;

    background-color: #F8F8F8;
}

.marvel-element-slider .card > * {
    text-align: center;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari, Chrome, Opera */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Standard syntax */
    cursor: default;             /* Optional: changes cursor from text-select cursor to default pointer */
}

.marvel-element-slider .card__text-con {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    flex: 1;

    padding: 48px;
}

.marvel-element-slider .card__text-con__subtitle {
    font-family: "Champion HTF", Sans-serif;
    color: #C5C5C5;
    font-size: 18px;
    line-height: 1em;
    text-transform: uppercase;
}

.marvel-element-slider .card__text-con__title {
    font-family: "Champion HTF", Sans-serif;
    color: black;
    font-size: 70px;
    line-height: 1em;
}

.marvel-element-slider .card__text-con__p {
    font-family: "MuseoSans", Sans-serif;
    color: black;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25em;
}

.marvel-element-slider .card__img-con {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    aspect-ratio: 235/197;
    height: 100%;
}

.marvel-element-slider-control-btns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.marvel-element-slider-control-btns .control-btn {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 100em;

    aspect-ratio: 1;
    width: 56px;

    background-color: #F8F8F8;

    transition: background-image .5s;

    z-index: 0;
}

.marvel-element-slider-control-btns .control-btn::before {
    content: '';

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: 100em;

    background-image: linear-gradient(150deg, #530000 0%, #960000 78%);
    
    opacity: 0;

    transition: opacity 0.3s;

    z-index: 1;
}

.marvel-element-slider-control-btns .control-btn:hover::before {
   opacity: 1;
}

.marvel-element-slider-control-btns .control-btn svg path {
    transition: fill 0.3s;
}

.marvel-element-slider-control-btns .control-btn:hover svg path {
    fill: white;
}

.marvel-element-slider-control-btns .control-btn:disabled {
    opacity: 0.32;
    pointer-events: none;
}

.marvel-element-slider-control-btns .control-btn svg {
    position: absolute;
    top: 50%;
    left: calc(50% + 0.15em);

    width: 14px;
    height: auto;

    transform: translate(-50%, -50%);

    z-index: 2;
}

.marvel-element-slider-control-btns .control-btn[ data-direction="previous" ] {
    transform: rotate(180deg);
}



.marvel-element-slider .indicators {
    display: none;
}

@media (max-width: 1024px) {
    .marvel-element-slider .cards-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: stretch;
        gap: 32px;

        width: 100%;

        padding-inline: 20px;
        scroll-padding-inline-start: 20px;
        scroll-padding-inline-end: 20px;

        height: 550px;

        overflow-x: scroll;
        overflow-y: hidden;
        pointer-events: auto;
        scroll-snap-type: x mandatory;
    }

    .marvel-element-slider .card {
        scroll-snap-align: start;

        display: flex;
        flex-direction: column-reverse;
        justify-content: stretch;
        align-items: stretch;

        min-height: 100%;
        max-height: 100%;

        min-width: 100%;
        max-width: 100%;

        overflow: hidden;

        border-radius: 20px;

        background-color: #F8F8F8;
    }

    .marvel-element-slider-control-btns {
        display: none;
    }

    .marvel-element-slider .indicators {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;

        width: 100%;
    }

    .marvel-element-slider .indicators .dot {
        width: 8px;
        height: 8px;

        border-radius: 100em;

        background-color: #F8F8F8;

        transition: width 0.3s, color 0.3s;
    }

    .marvel-element-slider .indicators .dot--active {
        width: 24px; 
        background-color: #970000;

        transition: width 0.3s, color 0.3s;
    }
}