body {
  background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e);
  background-size: 600% 600%;
  animation: bgMove 15s ease infinite;
  color: white;
    text-align: center;
  align-items: center;
  justify-content: space-between;
}

@keyframes bgMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.tieude_top {
    display:flex
}

.tieude nav {
    margin:  auto;
    text-align: center;
    align-items: center;
    list-style: none;
    top: 5vh;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tieude nav a {
    font-size: 20px;
    background-color: transparent;
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff00cc, #3333ff, #00ffcc, #ffff00);
    background-size: 400% 400%;
    animation: bgGlow 10s ease infinite;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff00cc, 0 0 30px #ffcc00;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tieude nav a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #fff, 0 0 25px #00ffff, 0 0 35px #ff00cc;
  background-position: 100% 0;
}

@keyframes bgGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.tieude {
    width:97%;
    /* background-color: none; */
    font-size: 20px;
    align-items: center;
    text-align: center;
    display:block;
    justify-content: space-between;
    margin:auto;
    text-transform: capitalize;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid rgb(151,255,255);
    border-radius: 10px;
    position:fixed;
    top: 0;
    left: 0;
    z-index: 1;
}
.tieude.sticky {
    background-color: rgb(151,255,255,0.5);
}

.tieude img {
    background-color: transparent;
    width: 10%;
    height: auto;
    margin-left: 5vw;
    margin-right: 5vw;
}
a {
    text-decoration: none;
}
.menu-icon {
    display:none;
}
#login_phone {
    display:none;
}
.tieude nav ul li {
    margin:  auto;
    text-align: center;
    display:flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .tieude {
        width:90%
    }
    /* #navbar {
        display:block;
    } */
    section nav {
        display: none;
        position: absolute;
        top: 5vh;
        left: 0;
        background-color: black;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid #404851;
        color:#ebedf2;
        
    }
    .tieude nav {
        display:none;
        border-radius: 3px solid black;
    }

    section nav.active {
        display: block;
        /* border-radius: 30px solid black; */
        max-height: 0;
        transition: max-height 0.3s ease-in-out;
        border-bottom: 1px solid #404851;
        color:#ebedf2;
        background-color: black;
    }

    section nav ul {
        flex-direction: column;
    }

    section nav ul li {
        margin:  auto;
        text-align: center;
        display:flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;

    }
    /* section a {
        font-size: 2vw;
        text-align: center;
    } */
    .tieude nav a {
        width:50%;
        height:max-content;
        text-align: center;
        align-items: center;
        margin:auto;
        display:block;
        padding-top: 1vh;
        padding-bottom: 1vh;
        border-bottom: 1px solid #404851;
        color:#ebedf2;
        background-color: #333333;
    }
    .tieude img {
        background-color: transparent;
        width: 30%;
        height: auto;
        margin:auto
    }
    #top-right,#top-left {
        display:none;
    }
}
/*------------------ body------------------- */
.glow-text {
  font-size: 28px;
  color: #fff;
  text-shadow:
    0 0 5px #0ff,
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 40px #0ff,
    0 0 80px #0ff;
  animation: pulse 2s infinite alternate;
}
@keyframes pulse {
  0% { text-shadow: 0 0 5px #0ff; }
  100% { text-shadow: 0 0 20px #0ff, 0 0 40px #0ff; }
}
@media (max-width: 768px) {
    .glow-text {
        font-size: 15px;
    }
}
.button-gamer {
  background: linear-gradient(45deg, #ff004f, #3a0ca3);
  color: white;
  padding: 15px 25px;
  border: none;
  font-size: 18px;
  border-radius: 10px;
  box-shadow: 0 0 15px #ff004f;
  transition: all 0.3s ease-in-out;
}

.button-gamer:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px #3a0ca3;
}

.classallimg > img {
    width: 50%;
    height: auto;
    align-items: center;
    padding: 0 5%;
}
.classallimg {
    display:flex;
    margin-top: 10vh;
}
/* danhmuc */
.danhmuc {
    border: 6px solid;
    border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
    animation: danhmuc 4s linear infinite;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    align-items:center;
    width: 90%;
    background-color: #fff;
    box-sizing: border-box;
    background: linear-gradient(270deg, #ff00cc, #3333ff, #00ffcc, #ffff00, #ff6600);
    background-size: 1000% 1000%;
    animation: animatedGradient 20s ease infinite;
    font-family: 'Orbitron', sans-serif; /* Google Font phong cách game thủ */
    overflow-x: hidden;
}
@keyframes danhmuc {
  0% {
    border-image-source: linear-gradient(0deg, red, orange, yellow, green, blue, indigo, violet);
  }
  100% {
    border-image-source: linear-gradient(360deg, red, orange, yellow, green, blue, indigo, violet);
  }
}
@keyframes animatedGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
    .classallimg {
        display:block !important
    }
    .classallimg > img {
        width: 80%;
        padding: 0 10%;
    }
    .danhmuc {

        text-align: center;
        align-items: center;
        margin-top: 5%;
    }
}
.tab-container {
    width: 350px;
    margin: 20px auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-buttons {
display: flex;
border-bottom: 1px solid #ccc;
}

.tab-buttons button {
flex: 1;
padding: 10px;
border: none;
background-color: white;
font-weight: bold;
cursor: pointer;
transition: background 0.3s, color 0.3s;
}

.tab-buttons button.active {
background-color: red;
color: white;
border-radius: 10px 10px 0 0;
}

.tab-content {
display: none;
padding: 10px;
font-size: 10px;
}

.tab-content.active {
display: block;
}
.tab-content p {
    font-size: 1vw;
}
.tab-content span {
    font-size:  1.5vw;
}
.tab-content a {
    font-size:  1.5vw;
    text-decoration: none;
    text-align: center;
    color:black;

}
.tab-content a:hover {
    color:red;
}

.highlight {
color: red;
font-weight: bold;
}

.emoji {
font-size: 15px;
}

hr {
border: none;
border-top: 1px dashed #aaa;
margin: 10px 0;
}
/* list các danh mục */
html {
    scroll-behavior: smooth;
  }
  
.listdanhmuc nav {
    border: 2px solid rgb(161, 73, 73);
    border-radius: 10px;
    background-color: rgba(151,255,255,0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
}
.listdanhmuc nav ul {
    list-style: none;
    padding: 0;
}
.listdanhmuc nav ul li {
    display: inline-block;
    margin-right: 15px;
    margin-top: 10px;
}
.listdanhmuc nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.category-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
  }

.category-btn:hover {
background-color: #0056b3;
}
#tab3 {
    font-size: 1vw;
    text-align: left;
}

@media (max-width: 768px) {
    .listdanhmuc nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .listdanhmuc nav ul li {
        width: 100%; /* chiếm toàn bộ chiều ngang */
        margin: 10px 0;
        justify-content: center;
    }

    .category-btn {
        width: 100%;
        max-width: 100%; /* giới hạn tối đa */
        box-sizing: border-box;
    }
    .tab-content a {
        font-size:  3vw;
        text-decoration: none;
        text-align: center;
        color:black;

    }
    .tab-content p {
        font-size: 2.5vw;
    }
    .tab-content span {
        font-size:3vw;
    }
    #tab3 p {
        font-size: 2vw;
        text-align:left;
    }
    #tab3 a {
        font-size: 2vw;
    }
}



#main p {
    color:#FFFF00;
    font-size: 30px;
    text-align: center;
}
#main {
    font-weight: bold;
}
#event p {
    color:#FFFF00;
    font-size: 30px;
    text-align: center;
}
#event {
    font-weight: bold;
}
.container {
    border: 6px solid;
    border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
    animation: container 4s linear infinite;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    align-items:center;
}
@keyframes container {
  0% {
    border-image-source: linear-gradient(0deg, red, orange, yellow, green, blue, indigo, violet);
  }
  100% {
    border-image-source: linear-gradient(360deg, red, orange, yellow, green, blue, indigo, violet);
  }
}

.section {
    margin-bottom: 40px;
    flex: 1 1 auto;
    text-align: center;
    border: 1px solid #33FFFF;

}
.section img {
    width: 100%;
    max-width: 280px;
    max-height: 180px;
    height: auto;
    border: 2px dashed #FE2E64;
}
.section h3 {
    margin-top: 0;
    text-align: center;
    color:#819FF7;
}
.section button {
    padding: 10px 95px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;

}
.section button:hover {
    background-color: #F7FE2E;
    padding: 15px 95px;
}
#random p {
    color:#FFFF00;
    font-size: 30px;
    text-align: center;
}
#random {
    font-weight: bold;
}
#dichvu p {
    color:#FFFF00;
    font-size: 30px;
    text-align: center;
}
#dichvu {
    font-weight: bold;
}

.custom-alert {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    max-width: 80%;
    max-height: 80%;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0);
    background-color: white;
    border: 2px solid #444;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
    text-align: center;
    transition: transform 0.5s ease-in-out;
    white-space: nowrap;
    overflow:hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
}
.custom-alert.show {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}
.custom-alert p {
    color: #444;
    margin-bottom: 20px;
    padding: 20px 0;
}
.custom-alert button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #444;
    color: white;
    border: none;
    cursor: pointer;
}
.custom-alert button:hover {
    background-color: #666;
}
@media (max-width: 768px) {
    .custom-alert p {
        font-size: 70%;
    }
}
/*-------------------------- footer------------------------ */
#itme p {
    color:#FFFF00;
    font-size: 30px;
    text-align: center;
}
#itme {
    font-weight: bold;
}
footer div{
    background-color:black;
    /* border: 5px solid red; */
    padding: 1% 5%;
}
footer p{
    background-color: transparent;
    color:white;
    text-align: center;
}
.footer {
    /* align-items: center; */
    display:flex;
    justify-content: space-between;
    border:2px solid #33FFFF
}
#footer-left {
    align-items: left;
    text-align: center;
    font-weight: bold;


}
#footer-left img {
    width: 80%;
    height:auto;

}
#footer-center {
    text-align: center;
    font-weight: bold;
    font-size: 1.5vw;
    padding:0;
}
#footer-center img {
    width:80%;
    height:auto;
}
#footer-right {
    align-items: left;
    text-align: center;
    font-weight: bold;

}
#footer-right img {
    width: 80%;
    height:auto;
}
@media (max-width: 768px) {
    .footer {
        display:block;
    }
    #footer-center {
        font-size: 3.5vw;
    }
    /* #footer-left img {
        width:80%;
        height:auto

    }
    #footer-right img {
        width:80%;
        height:auto

    } */
    #footer-center img {
        width: 30%;
        height:auto;
    
    }
}
/* --------------tuyết rơi---------------- */
.snowflake {
    position: absolute;
    top: -10px;
    font-size: 10px;
    color: white;
    animation: fall linear infinite;
}
#top-left{
    position:fixed;
    z-index: 11;
    top:0;
    left:0;
    width:10%;
    height:auto;
}
#top-right{
    position:fixed;
    z-index: 11;
    top:0;
    right:0;
    width:10%;
    height:auto;
}
#bottom-left{
    position:fixed;
    z-index: 22;
    bottom :0;
    left :5% 
}
#bottom {
    position:fixed;
    z-index: 1;
    bottom :0;

}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500vh) rotate(360deg);
        opacity: 0.2;
    }
}
@media (max-width: 768px) {
    #top-left{
        display:none;
    }
    #top-right{
        display:none;
    }
    #bottom-left{
        display:none;
    }
    #bottom {
        display:none;
    
    }
}
/* top nạp tiền */

.leaderboard-container {
    width: 100%;
    max-width: 400px; /* Giới hạn tối đa để không bị tràn */
    margin: auto;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    font-size: 10px;
    white-space: nowrap; /* Tránh xuống dòng */
    overflow: hidden;
    text-overflow: ellipsis; /* Cắt bớt nội dung dài */
}

.top-container {
    /* width: 100%; */
    /* max-width: 450px;  */
    margin: auto;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: black;
}

/* 🏆 Tiêu đề bảng */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffcc00;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 10px;
}

/* 📜 Danh sách top */
.top-list {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 5px;
}
.top-list::-webkit-scrollbar {
    width: 5px;
}
.top-list::-webkit-scrollbar-thumb {
    background: #ff5500;
    border-radius: 5px;
}

/* 🔹 Mục top nạp */
.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    font-size: 10px;
}

/* 🎖️ Xếp hạng */
.rank {
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 50%;
    color: white;
}
.rank-1 { background: red; }
.rank-2 { background: blue; }
.rank-3 { background: orange; }
.rank-4 { background: green; }
.rank-5 { background: purple; }

/* 💰 Số tiền */
.money {
    background: red;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* 🎛️ Nút xem tất cả */
.expand-btn {
    width: 100%;
    background: #ff5500;
    color: white;
    padding: 5px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
}

/* 🎉 Hộp thông báo */
.event-box {
    background: yellow;
    color: black;
    padding: 5px;
    margin-top: 10px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 10px;
}

.messenger-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
.messenger-box img {
    width: 15vw;
    cursor: pointer;
}

/* 📱 Đảm bảo hiển thị tốt trên điện thoại */
@media screen and (max-width: 768px) {
    .top-container {
        max-width: 95%;
        padding: 10px;
    }
    .top-header {
        font-size: 10px;
        padding: 8px;
    }
    .top-item {
        font-size: 13px;
        padding: 10px;
    }
    .expand-btn {
        font-size: 10px;
        padding: 10px;
    }
    .messenger-box {
        bottom: 10px;
        right: 10px;
    }
    .messenger-box img {
        width: 40vw;
    }
}

/* thanh chạy lịch sử nạp */
.marquee-container {
    overflow: hidden;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    padding: 5px 0;
    position: relative;
    z-index: 999;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 50s linear infinite;
    font-size: 18px;
    font-weight: bold;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* Popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
