.pre-header{
    height: 30px;
    width: 100%;
    background-color: #101010;
}

.header-bg{
    background-size: 120% 120%;
    background-repeat: no-repeat;
    /* background-position: bottom; */
    position: relative;
}

.header-bg.animate{
    animation: moveBackground 25s ease infinite;
}

.header-bg.sticky{
    box-shadow: 15px 0px 15px 3px rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    z-index: 3;
    top: 0px;
    animation: headerShow 0.5s ease-in-out forwards, moveBackground 25s ease infinite;
}

@keyframes headerShow {
    0% {
        transform: translateY(-100px);
    }
    100% {
        transform: translateY(0px);
    }
}

.header-bg.sticky > #particles-js{
    display: none;
}

.header-bg.sticky > .container{
    padding: 10px 0px !important;
}

.header-bg.sticky > .container > div:nth-child(1){
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bg.sticky > .container > div:nth-child(1) img{
    width: 180px !important;
    margin-bottom: 0px !important;
}

.header-bg.sticky > .container > div:nth-child(2){
    display: none;
}

@keyframes moveBackground {
  0% {
    background-position: top left;
  }
  25% {
    background-position: top right;
  }
  50% {
    background-position: bottom right;
  }
  75% {
    background-position: bottom left;
  }
  100% {
    background-position: top left;
  }
}

.nav-item{
    border: 1px solid white;
    width: calc(100% / 6);
}

.nav-item .nav-link, .nav-item .nav-link.active{
    color: white;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
}

.nav-item.dropdown > ul{
    background-color: rgba(0,0,0,0.9);
}

.nav-item.dropdown > ul > li > a{
    color: white;
}

.nav-item.dropdown > ul > li > a:hover{
    background-color: #E6392D !important;
}

.dropdown-item:focus, .dropdown-item:hover{
    color: black;
}

.dropdown-divider{
    border-top: 1px solid rgb(205 205 205 / 65%);
}

.header-bg.sticky .navbar{
    width: 75%;
}

.navbar{
    padding-bottom: 0px;
}

.zoom-img{
    transform: scale(1.5);
    transform-origin: top;
}

.zoom-img.animate{
    animation: zoomEffect 1.2s ease-in-out forwards;
}


@keyframes zoomEffect {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.chat-bubble {
    display: none;
    position: absolute;
    top: 20%;
    left: -200px;
    width: 200px;
    padding: 10px;
    background-color: #fff;
    /* border: 2px solid #000; */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transform: translateX(0);
}

.chat-bubble.animate{
    animation: bubbleAppear 1s ease-out forwards;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    transform: translateY(-50%);
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: translateX(-20%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-text {
    /* height: 80px; */ /* Adjust height to fit 4 lines */
    overflow: hidden;
    display: flex;
    align-items: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.card-viral{
    background-color: gray;
    background-size: cover;
    padding: 0px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    min-height: 150px;
}

.card-viral:hover{
    background-size: 150% 150%;
    animation: moveBackground 10s ease infinite;
}

.card-viral > div{
    position: absolute;
    bottom: 0px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 10px;
}

.card-video{
    background-color: gray;
    background-size: cover;
    background-position: center;
    padding: 0px;
    overflow: hidden;
    height: 370px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: start;
    padding-top: 30px;
    cursor: pointer;
    position: relative;
}

.card-video > div{
    background-color: black;
    padding: 15px 15px;
    color: white;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    width: 80%;
    border-radius: 20px;
}

.card-video > img{
    position: absolute;
    bottom: 0px;
    right: 50%;
    transform: translateX(50%);
}

.tulisanPopulerWrapper{
    background: black;
    color: white;
    padding: 20px 30px;
    border-radius: 20px;
    box-sizing: border-box;
}

.tulisan-populer a{
    color: white;
    text-decoration: none;
}

.tulisan-populer p{
    font-size: 13px !important;
    /* text-align: justify; */
    text-indent: 0px;
}

.tulisan-populer h5{
    font-size: 16px !important;
}

.wrapperCategoryTag{
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.category_tag{
    font-size: 12px;
    font-weight: 500;
    background-color: #E63C2C;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
}

.animasiSkeleton {
    background: linear-gradient(90deg,#d3d3d3 25%,#b7b7b7 37%,#d3d3d3 63%);
    background-size: 400% 100%;
    animation: animasikan-skeleton 1.4s ease infinite;
}

@keyframes animasikan-skeleton {
    0% {
    background-position: 100% 50%;
    }
    to {
    background-position: 0 50%;
    }
}

.offcanvas{
    width: 70% !important;
    height: 100vh !important;
    background-color: black;
}

@media screen and (max-width: 640px) {
    .header-bg.sticky {
        padding: 0px 15px !important;
    }

    .header-bg > .container > div:nth-child(1) img{
        width: 250px !important;
    }

    .header-bg > .container > div:nth-child(2){
        zoom: 0.7 !important;
        right: 10px;
    }

    .header-bg > .container > div:nth-child(2) > .chat-bubble{
        top: 40% !important;
        zoom: 1.1;
    }

    .navbar{
        padding-bottom: 20px !important;
        width: unset !important;
    }

    .navbar-toggler{
        color: white !important;
        border: 1px solid white !important;
    }

    #layout-content{
        overflow-x: hidden;
    }


    .viral_week_right{
        margin: unset;
        padding: unset;
        padding-left: 1rem;
    }

    .nav-item{
        width: 100%;
    }

    .nav-item .nav-link, .nav-item .nav-link.active{
        color: white;
    }
}