﻿.background-overlay {
    min-height: 100%;
    position: relative;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/background.png);
    background-size: cover; /* Ensures the background is cropped */
    background-position: top; /* Aligns the background to the top */
    background-repeat: no-repeat;
    z-index: 1;
    animation: backgroundPulse 10s infinite alternate;
}

.game-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
}

    .game-content .container {
        max-width: 1320px;
        position: relative;
        z-index: 32;
        padding-top: 150px;
    }

@media (max-width: 575px) {
    .bodymob {
        background: url(/images/bgm2.webp) no-repeat top fixed; /* Align to top */
        background-size: cover; /* Crops the image on mobile */
        background-color: #d6effd;
        min-height: 100vh;
    }
}

@media only screen and (max-width: 576px) {
    .background-overlay {
        background-image: url(/images/bgm1.webp) !important;
        background-size: cover !important; /* Crops instead of containing */
        background-position: top !important; /* Aligns to top */
        background-repeat: no-repeat !important;
    }
}

/* Animation Keyframes (unchanged from previous) */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInCenter {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes backgroundPulse {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

/* Apply Animations */
.animate-fadeInDown {
    animation: fadeInDown 1s ease-out;
}

.animate-bounceSlow {
    animation: bounceSlow 3s ease-in-out infinite;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-out;
}

.animate-slideInCenter {
    animation: slideInCenter 1s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

.animate-backgroundPulse {
    animation: backgroundPulse 10s infinite alternate;
}

/* Hover Effects */
.hover\:scale-110:hover {
    transform: scale(1.1);
}

.transition-transform {
    transition: transform 0.3s ease;
}

.bgnewsig {
    background: url(/images/BORDER-NEWS-NEW.png) no-repeat 50%;
    background-size: 100% 100%;
}

@media only screen and (min-width: 576px) and (max-width: 768px) {
    .newsz, .newsz-sz {
        margin-top: 40px !important
    }

    .newsright {
        padding: 0 !important
    }

    .bgnewsig {
        padding: 42px !important;
        background: #ffd04e !important
    }

    .column-right {
        background-image: url(/mobibox.png) !important;
        margin-top: 28px;
        background-repeat: round !important
    }

    .pilltable {
        margin-top: 2px !important;
        margin-left: 17px !important;
        height: 225px !important
    }

    .charmobil {
        width: 156px !important;
        height: 42px !important
    }
}

@media only screen and (max-width: 576px) {
    .background-overlay {
        background-image: url(/images/bgm1.webp) !important;
        background-size: contain !important;
        background-position: top !important;
        background-repeat: no-repeat !important
    }

    .swiper-slide {
        height: 207px !important
    }

    #events a, #news a, #mechanics a {
        color: #fff !important;
        font-weight: 600
    }

    .bgnewsig {
        background: url(/images/box-mb1.webp) no-repeat 50% !important;
        background-size: cover !important;
        background-position: 50% !important;
        padding: 66px 26px !important;
        margin-top: 0 !important
    }

    .navbar-light .navbar-toggler-icon {
        color: #fff !important;
        border: #fff !important;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important
    }

    .buttontab {
        color: #fff !important
    }

        .buttontab.active {
            color: #000 !important
        }

    .imgnewsx {
        height: 200px !important
    }

    .newsright {
        padding: 0 7px 0 1px !important;
        min-height: 272px !important
    }

    .newsleft {
        margin-bottom: 20px;
        margin-top: -24px
    }

    .image-wrapperpo {
        position: absolute;
        width: 100%;
        height: 32%
    }

    .content-containers {
        position: relative
    }

    .zimg {
        width: 97.5px !important;
        height: 35.8px !important
    }

    .vinapill {
        width: 40% !important
    }

    .newsz, .newsz-sz {
        margin-top: 10px !important
    }

    .slide-igm {
        margin-top: 40px !important
    }

    .calala {
        display: none
    }

    .view-news {
        background: url(/boxcont.png) top no-repeat;
        background-size: cover;
        background-position: 50%;
        padding: 30px 37px !important;
        width: 100%;
        min-height: 600px !important;
        align-items: center
    }

    .list-group {
        --bs-list-group-item-padding-x: 0 !important;
        --bs-list-group-item-padding-y: 0 !important
    }

    .topscreen {
        margin-top: 79px !important
    }

    .charmobil {
        width: 86px !important;
        height: 31px !important
    }

    .align-items-endx {
        align-items: center !important
    }

    .justify-content-start {
        justify-content: right !important
    }

    .vinapill {
        margin-bottom: 1rem !important
    }

    .infoimz {
        width: 120px !important;
        height: 116px !important
    }

    .column-right {
        background-image: url(/mobibox.png) !important;
        margin-top: 28px;
        background-repeat: round !important
    }

    .payingz {
        width: 141px !important;
        height: auto !important
    }

    .column-left {
        height: 264px !important
    }

    .esports {
        height: 258px !important
    }

    .pilltable {
        margin-top: 16px !important;
        margin-left: 17px !important;
        height: 225px !important
    }

    .list-group-item {
        font-size: 15px !important;
        padding: .3rem 1rem !important
    }

    .align-items-endx {
        align-items: flex-start !important
    }

    .skeleton-loader {
        height: 200px !important
    }
}
/* Container cho các vật rơi */
.falling-objects {
    position: fixed; /* Thay absolute thành fixed để dính trên màn hình */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Chiều cao cố định bằng viewport */
    overflow: hidden;
    z-index: 2; /* Đặt phía trên background nhưng dưới nội dung chính */
    pointer-events: none; /* Không cản trở tương tác */
}
