body {
    background-color: #f2f2f2;
}
/* .container-fluid {
    background-color: white;
} */

.platform-impact {
    min-height: 20vh;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}
.hottest-container {
    display: flex;
    align-items: center;
    overflow-x: scroll;
    scrollbar-width: none;

}
.hottest-content {
    width: 100%;
    display: flex;
    overflow-x: auto;
    transition: scroll-behavior 0.3s; 
    scroll-behavior: smooth;
}
.hottest-item {
    min-width: 100%;
    min-height: 70vh;
    line-height: 100px;
    box-sizing: border-box;


}
.scroll-container {
    display: flex;
    align-items: center;
    overflow-x: scroll;
    scrollbar-width: none;
    
}

.scroll-content::-webkit-scrollbar {
    display: none;
}

.slider {
    border-width:0;
    border:none;
}

.scroll-content {
    width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    transition: scroll-behavior 0.3s; 
    scroll-behavior: smooth;
}

.item {
    min-width: 33.33%;
    min-height: 350px;
    background-color: #141414;
    line-height: 100px;
    color: white;
    box-sizing: border-box;
    border-right: 1px solid rgba(100, 100, 100, .5);
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}
.item-label {
    color: #999;
    border-bottom: 1px solid #999;
    height: 5vh;
}
.item-count {
    font-size: 8vw;
    padding-top: 1vw;
}
.item-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    padding-bottom: 20px;
    opacity: 0; /* Start hidden */
    transform: translateY(-50px); /* Slightly off-screen */
    transition: opacity 4s ease-in-out, transform 4s ease-in-out;
}

/* Fade-in: Make text visible */
.item-text.fadein {
    opacity: 1;
    transform: translateY(0); /* Move into place */
}

/* Fade-out: Hide text */
.item-text.fadeout {
    opacity: 0;
    transform: translateY(-50px); /* Slightly off-screen */
}


.item-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, #5adeff 0%, #9d9ffe 85%, #cb9dfe 100%);
    z-index: 2;
    opacity: 1; /* Ensure it's visible */
    transform: translateY(0);
    transition: transform 1s ease-out;
}

.item-cover.animate {
    opacity: 1;
    transform: translateY(100%);
}


.scroll-button {
    position: absolute;
    border: none;
    padding: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    background-color: transparent;
}

.scroll-button.left {
    right: 120px;
    top: 100px;
}

.scroll-button.right {
    right: 70px;
    top: 100px;
}

.new-mangas {
    margin-top:100px;
    margin-bottom: 10px;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}


.title-section {
    height: 20vw;
}
.new-manga-title {
    display: inline-block;
    font-size: 8vw;
    font-weight: 600;
    line-height: .8em;
    max-width: 80%;
    transform-origin: center bottom;
    transform: rotateX(0);
    opacity: 1;
    transition: transform 0.8s ease, opacity 0.8s ease;

}
.new-manga-title.flip-out {
    transform: rotateX(90deg);
    opacity: 0;
}

.new-manga-title.flip-in {
    transform: rotateX(-90deg);
    opacity: 0;
    animation: fade-in 0.8s ease forwards;
}

@keyframes fade-in {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

.slider-button {
    background-color: #cb9dfe;
    width: 0;
    height: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    transition: 
        opacity 0.4s ease, 
        width 0.6s ease, 
        height 0.6s ease, 
        transform 1s ease,
        background-color 2s ease;

}

@keyframes backgroundTransition {
    0% {
        background-color: #cb9dfe; /* Initial color */
    }
    50% {
        background-color: #f5e902;
    }
    100% {
        background-color: #5adeff; /* Final color */
    }
}   
.slider-button {
    animation: backgroundTransition 5s infinite alternate; /* Transition over 5 seconds, alternating */
}

.manga-image {
    max-height: 50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, #5adeff 0%, #9d9ffe 85%, #cb9dfe 100%); /* Adjust gradient colors */
    z-index: 1;
    animation: slideAway 1s ease-out forwards; /* Animation to slide away */
}
@keyframes slideAway {
    0% {
        top: 0; /* Fully covers the image */
    }
    100% {
        top: 100%; /* Moves the gradient completely out of view */
    }
}

/* Fast move-down animation for the new image */
.move-down-fast {
    animation: moveDownFast 1s forwards;
}

@keyframes moveDownFast {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.manga-details {
    line-height: 1.1em;
    opacity: 1;
    animation: opacityComing 1s ease;
}

@keyframes opacityComing {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}