/* DISPLAY HOME */
.display-container {
    padding: 8rem;
}

.slider-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}

.slider {
    display: flex;
    aspect-ratio: 16/9;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 10px;
    box-shadow: 0 1.5rem 3rem  -0.75rem hsla(0, 0%, 0, 0%, 0.25);
}

.slider video {
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

.slide-text {
    display: none;
    position: absolute;
    bottom: 4rem;
    left: 1rem;
}

.slide-text.active {
    display: block;
}

.slide-text h1 {
    color: var(--text-color);
    text-shadow: 1px 1px 1px var(--main-color);
}

.slide-text p {
    font-size: 0.983rem;
    margin: 10px 0 20px;
    color: var(--main-color);
    font-weight: bold;
}

.trailer-btn {
    display: flex;
    align-items: center;
    column-gap: 0.8rem;
    color: var(--text-color);
}

.trailer-btn .bx {
    font-size: 21px;
    background: var(--main-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-text.active .trailer-btn .bx {
    animation:animate 1.5s infinite;
}

.trailer-btn .bx:hover {
    background-color: var(--hover-color);
}

.trailer-btn span {
    font-size: 1rem;
    font-weight: 400;
}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.75;
    transition: opacity ease 250ms;
}

.slider-nav .slider-home.active {
    background: #2696E9;
}

/* heading */
.container {
    position: relative;
    margin: auto;
    width: 90%;
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--back-color);
    padding: 8px 30px;
    border: 1px solid hsl(200 100% 99% / 5%);
}

.heading-tittle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* content style */
.content {
    display: flex;
    overflow: scroll;
    overflow-y: hidden;
    gap: 20px;
}

figure {
    padding: 10px;
    margin-bottom: 5px;
    transition: 0.5s ease-in-out;
    margin-top: 20px;
}

figure>img {
    box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5);
}

.content figure:hover {
    transform: scale(1.1);
}

.content img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

.content::-webkit-scrollbar {
    background: var(--scr-color);
    width: 0.5rem;
}

.content::-webkit-scrollbar-thumb {
    background: var(--scroll-color);
}

.judul {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 1103px) {
    .content img {
        width: 150px;
    }

    .content figcaption {
        font-size: 12px;
    }
}

@media (max-width: 887px) {
    .content img {
        width: 120px;
    }
}

@media (max-width: 429px) {
    .heading-tittle {
        font-size: 1rem;
    }

    figure {
        padding: 10px;
        margin: 0;
        width: 100px; 
        margin-top: 15px;
        margin-bottom: 0;
    }

    .content {
        gap: 2px;
    }

    .content img {
        width: 80px;
    }

    .content figcaption {
        font-size: 8px;
    }
}

@media (max-width: 391px) {
    .content img {
        width: 70px;
    }

    .content figcaption {
        font-size: 6px;
    }

    .content {
        gap: 0;
    }
}