/*
    CAROUSEL.CSS

    Description: This css file is intented for styles for
    the slide animation in carousel and all the carousel
    items' styles. Its also includes other containers for 
    the header__nav carousel__main-content, carousel__slides 
    and others
*/

.carousel__items-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70%;
    gap: 75px;
    padding: 15px 0;
}

.carousel__main-content {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #000000a0 75%,
        #000 95%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    min-height: 80dvh;
}

.carousel__main-content:has(
        .carousel__slides:has(
                .carousel__item:first-of-type.carousel__item--active
            )
    ) {
    gap: 100px;
}

.carousel__slides {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 60dvh;
    min-height: 160px;
}

/*
    Component: carousel__pag-buttons

    Description: Styles for a carousel__pag-buttons, that
    are buttons that indicates the number of pages that
    are in the carousel__slides.
*/

.carousel__pag-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
    width: 100%;
}

/*
    Component: carousel__item

    Description: Styles for a carousel__item that must be
    inside a carousel__slides, these carousel__item can be a full
    screen height item to show a text, or a movie container.
*/

.carousel__item {
    display: none;
    width: 100%;
    height: 100%;
    padding: 10px;
    text-align: center;
    transition: translate 0.3s ease;
}

.carousel__item.carousel__item--active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.carousel__item.carousel__item--active {
    translate: 0px 0px;

    @starting-style {
        translate: 0px 100px;
    }
}

.carousel__button {
    border: none;
    padding: 5px 10px;
    font-size: 2em;
    background-color: transparent;
    color: var(--color-white);
    font-weight: 700;
    transition: color, border-bottom, font-size 0.3s;
}

.carousel__button--selected,
.carousel__button:hover {
    color: var(--color-yellow);
    font-size: 3em;
    position: relative;
}

.carousel__button:hover {
    cursor: pointer;
}

.carousel__button--selected::after,
.carousel__button:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80%;
    height: 5px;
    background-color: var(--color-yellow);
    border-radius: 5px;
    transform: translateX(-50%);
}

/* Classes for the slides animations */

.slide-out,
.slide-in {
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.show {
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 1600px) {
    .carousel__items-container {
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .carousel__items-container {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .carousel__items-container {
        height: 100%;
        padding: 50px;
        padding-top: 25px;
        display: flex;
    }

    .carousel__main-content {
        position: relative;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .carousel__item {
        position: relative;
        height: 100%;
        padding: 0;
        min-height: 160px;
    }

    .carousel__slides {
        width: 75%;
    }

    .carousel__pag-buttons {
        height: 20%;
    }
}

@media (max-width: 992px), (max-height: 768px) {
    .carousel__button {
        font-size: 1.5em;
        letter-spacing: -2px;
    }

    .carousel__button--selected,
    .carousel__button:hover {
        font-size: 2em;
    }
}

@media (max-width: 640px) {
    .carousel__button {
        font-size: 1.25em;
    }

    .carousel__button--selected,
    .carousel__button:hover {
        font-size: 1.75em;
    }

    .carousel__items-container {
        gap: 35px;
    }
}

@media (max-width: 600px), (max-height: 600px) {
    .carousel__items-container {
        padding: 25px 0;
    }

    .carousel__pag-buttons {
        gap: 1em;
    }
}

@media (max-width: 560px) and (min-height: 768px) {
    .carousel__items-container {
        gap: 20px;
    }
}

@media (max-height: 768px) and (max-width: 560px) {
    .carousel__pag-buttons {
        margin-bottom: 30px;
    }
}

@media (max-width: 420px) {
    .carousel__items-container {
        gap: 10px;
    }
}

@media (max-height: 600px) {
    .carousel__main-content {
        gap: 5px;
        width: 100%;
    }

    .carousel__items-container {
        height: 100%;
        padding: 25px 0;
    }

    .carousel__item {
        position: relative;
        height: 100%;
    }
}

@media (max-height: 420px) {
    .carousel__items-container {
        padding: 25px;
    }
}
