/* Basic reset for margins and paddings */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* Full viewport height for html and body */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #0F0816;
}

body::-webkit-scrollbar {
    display: none
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');



body {
    background: url(./img/bg.png) no-repeat center center / cover;
    text-align: center;
    margin: 0;
    padding: 0;
}



/* Container Styles */
.container {
    min-height: 100vh;
    position: relative;
}

/* Top and Bottom Button Styles */
.top-button,
.bottom-buttons {
    margin: 10px 0;
}

.top-button {
    display: flex;
    margin: 17px auto 0 auto;
    justify-content: center;
    gap: 46px;
    align-items: flex-start;
}

.Ios {
    max-width: 19vw;
    width: unset;
}

.playWeb {
    max-width: 19vw;
    width: unset;
    margin: -17px 0 0 0;
}

.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.boxComment img {
    padding: 0 5px;
}

/* Link Image Styles */
a img {
    width: 250px;
    height: auto;
    cursor: pointer;
}

.commentWrapper {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.boxComment {
    position: relative;
    /* Chiều cao của slider */
    overflow: hidden;
    width: 27vw;
    height: 4.5vw;
}

.item {
    position: absolute;
    top: 0;
    left: 0;
    width: 27vw;
    height: fit-content;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(-20px);
    padding: 0 !important;
    /* margin: -10px 0 0 0; */
}

.item.active {
    opacity: 1;
    transform: translateY(0px);
}

/* Adjustments for keeping button layout on mobile */
@media (max-width: 600px) {
    .bottom-buttons {
        flex-direction: row;
        /* Keep buttons in one row */
        justify-content: center;
        flex-wrap: wrap;
        /* Allow wrapping of buttons */
        gap: 10px;
        /* Reduce gap */
    }

    a img {
        width: 180px;
        /* Adjust button size for smaller screens */
    }
}

/* Header Icon Layout */
.header .boxImg img {
    margin: 28px 0 0 0;
    width: 24vw;
    height: fit-content;
}

.icon {
    margin: 0 20px;
}

.icon img {
    width: 555px;
    height: fit-content;
}

/* Logo Size Adjustment */
.icon.logo .imgLogoSao {
    width: 13vw;
    height: auto;
    animation: pulse 2s infinite;
}

.icon.logo .imgLogoNet {
    width: 15vw;
    height: auto;
    animation: pulse 1.5s infinite;
}

.imgDuocBinhChon {
    max-width: 47vw;
    height: auto;
    margin: 2vh 0 0 0;
}

.textContent {
    display: grid;
    justify-content: center;
}

.linechia {
    display: flex;
    margin: -3vh auto 0 auto;
    width: 23vw;
}




.owl-carousel {
    max-width: 420px;
}


@media(min-width: 1600px) {
    .owl-carousel {
        max-width: 500px;
    }

}

/* Responsive for Mobile (Icons) */
@media only screen and (max-width: 600px) {
    .header {
        padding: 12px;
    }

    .icon {
        margin: 10px 0;
    }

    .icon.logo img {
        max-width: 200px;
    }
}

/* Footer Container */
.footer {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* Footer Image */
.footer-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.imgDuocBinhChonMb {
    display: none;
}

.linechiaMb {
    display: none;
}

.haveUser {
    width: 20vw;
    margin: 10px 0 0 0
}

.counter-box {
    font-family: sans-serif;
    position: relative;
}

.counter-box img {
    width: 21vw;
}

.counter-box p {
    position: absolute;
    top: .8vw;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 1.1vw;
    color: #fff;
}

.counter-box span {
    color: #fdef00;
    font-weight: bold;
    font-size: 1.5vw;
}





.notification-container {
    padding: 10px;
    background-color: transparent;
    border-radius: 24px;
    position: absolute;
    left: 24px;
    height: 80px;
    bottom: 20px;
}

.notification {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28vw;
    height: 92px;
    background: url(./img/nenkhach.png) no-repeat center center;
    background-size: contain;
    border-radius: 120px;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    opacity: 0;
    transform: translateY(-20px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 0 2px 6px;

}

.notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.avatar {
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    position: relative;
    top: 1px;
}

.user-box {
    display: flex;
    justify-content: space-between;
}

.notification-text {
    flex: 1;
    color: white;
    text-align: left;
    overflow: hidden;
    margin: 0px 0 0 0;
}

#user-message {
    font-weight: bold;
    color: #FEF600;
    margin: 0;
    font-family: sans-serif;
    font-size: 1vw;
}

#user-reward {
    color: white;
    font-family: sans-serif;
    margin: 5px 0 0 0;
    font-size: .9vw;
}

#user-time {
    color: rgba(256, 256, 256, 0.9);
    margin: 3px 33px 0 0px;
    font-size: .6vw;
    font-family: sans-serif;
}

.user-title {
    display: flex;
    align-items: center;
}

.user-title img {
    width: .9vw;
    margin: -1px 0 0 8px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}


/* Mobile-specific adjustments for the footer */
@media (max-width: 768px) {
    .footer-image {
        object-position: center;
    }
}

@media (max-width: 480px) {
    body {
        background: url(./img/bg-mb.png) no-repeat center center / cover;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .commentWrapper {
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .item {
        width: 90vw;
    }

    .header .boxImg img {
        margin: 2.5vw 0 0 0;
        height: unset;
        max-width: 72vw;
        width: unset;
    }

    .imgDuocBinhChon {
        display: none;
    }

    .linechia {
        display: none;
    }

    .icon.logo .imgLogoNet {
        max-width: 100%;
        width: 100%;
        height: unset;
    }

    .top-button {
        display: grid;
        justify-content: end;
        margin: 0;
        gap: 0;
    }

    .top-button a {
        width: fit-content;
        display: flex;
        margin: 0 0 0 auto;
        padding: 0 10px 0 0;
    }

    .linechiaMb {
        max-width: 71vw;
        display: flex;
        margin: 6px 0 24px auto;
        padding: 0 10px 0 0;
    }

    .Ios {
        max-width: 69vw;
    }

    .playWeb {
        max-width: 68vw;
        margin: -21px 0 0 0;
    }

    .haveUser {
        width: 235px;
        margin: 10px 20px 0 0;
    }

    .bottom-buttons {
        justify-content: flex-end;
    }


    .imgDuocBinhChonMb {
        display: block;
        width: 98vw;
        padding: 2px 10px 0 10px;
    }



    .icon.logo {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        margin: 10px auto 0 auto;
        gap: 0px;
        padding: 0 17px;
    }

    .icon.logo .imgLogoSao {
        max-width: 100%;
        width: 86%;
        height: unset;
    }

    .footer-image {
        object-position: center;
        height: 200px;
        object-fit: cover;
        width: 100%;
    }

    .boxComment {
        position: relative;
        overflow: hidden;
        width: 90vw;
        height: 15.5vw;

    }

    .counter-box {
        margin: 3px 25px 0 0px;
    }

    .counter-box img {
        width: 60vw;
    }

    .counter-box p {
        font-size: 3.1vw;
        top: 2.5vw;
    }

    .counter-box span {
        font-size: 4vw;
    }

    .notification-container {
        left: 4vw;
        bottom: 40px;
    }

    .notification {
        width: 90vw;
        height: 16vw;
        padding: 0px 0 .1vw .9vw;
    }

    .avatar {
        width: 13vw;
        height: 13vw;
        margin-right: 2vw;
    }

    #user-message {
        font-size: 3.5vw;
    }

    .user-title img {
        width: 3vw;
        margin: -1px 0 0 4px;
    }

    #user-time {
        margin: 3px 4vw 0 0px;
        font-size: 2.4vw;
    }

    #user-reward {
        margin: 5px 0 0 0;
        font-size: 2.9vw;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .slider {
        max-width: 100%;
        height: auto;
        /* Auto-adjust for mobile */
    }

    .slide img {

        height: 300px;

    }

}

@media (max-width: 480px) {

    .slider {
        max-width: 100%;
        height: auto;
        /* Auto-adjust for small screens */

    }

    .slide img {

        height: 400px;

    }
}