@import url('https://fonts.googleapis.com/css2?family=Agbalumo&display=swap');
:root {
	--bg-popup1: url('/tetnguyendan/assets/img/bg_popup1.png');
    --bg-popup2: url('/tetnguyendan/assets/img/bg_popup2.png');
	--bg-popup: url('/tetnguyendan/assets/img/bg_popup.png');
	--bg-navbar: url('/tetnguyendan/assets/img/img_m/navbar-top.png');
	--bg-pc: url('/tetnguyendan/assets/img/bg_pc11.webp');
	--bg-mob: url('/tetnguyendan/assets/img/img_m/bg-m.jpg');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

table,
td,
th {
	border: 1px solid;
}

tr:nth-child(1) th{
    text-align: center;
}

table {
	width: 100%;
	border-collapse: collapse;
}


::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	box-shadow: inset 0 0 1px red;
	border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: #dea6a1;
	border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #b30000;
}

#div_copy_1999 {
    color: red;
    font-weight: 700;
    font-size: 20px;
}

.wrapper{
    background-image: url(/tetnguyendan/assets/img/bg-pc.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    height: 158vw;
    /* overflow: hidden; */
    background-color: #fac67d;
}

.snow {
    position: absolute !important;
    width: 100vw;
    height: 100vh;
    left: 50%;
    margin-left: -960px;
}
canvas {
    display: block;
    position: relative;
    height: 225vw;
}

.p1 {
    position: relative;
    height: 53vw;
    /* border: 1px solid red; */
}

.header {
    position: absolute;
    width: 100%;
    height: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #340705;
}

.header a {
    margin: 10px 20px;
	z-index: 1;
}

.header a:first-child{
    margin-top: 5px;
}

.header a:hover , 
.download a:hover, 
.btn-diemdanhvutru img:hover,
.game-item img:hover{
    animation: laclu .5s linear infinite;
}


.doiqua {
	display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 28vw;
}

.doiqua a {
	/* position: absolute; */
    margin: .5vw;
}

.doiqua a:hover {
    animation: laclu .5s linear infinite;

}
.doiqua img {
    width: 8vw;
}
/* .qua1{
	left: 41vw;
    top: 18vw;
}

.qua2{
	left: 53vw;
    top: 18vw;
}


.qua3{
	left: 35vw;
    top: 19vw;
}


.qua4{
	left: 47vw;
    top: 17.5vw;
}

.qua5{
	left: 59vw;
    top: 19vw;
} */
.is_sent {
    filter: none;
}

.is_active {
    filter: none;
    animation: laclu .5s  infinite;
}

.no_active {
    filter: grayscale(1);
}


.box-tienich {
    position: absolute;
    top: 43vw;
    left: 32.5vw;
    display: flex;
}

.download   {
    display: flex;
	justify-content: center;
	align-self: center;
    flex-wrap: wrap;
    width: 20vw;
}

.box-tienich img {
    width: 9vw;
}

.download a {
    margin: .4vw;

}

.btn-napthe img{
    margin-left: 10px;
    width: 6.5vw;

    /* animation: scaleAnimation 2s ease-in-out infinite; */
}


.p2 {
	width: 100%;
	height: 41vw;
	display: flex;
}

.btn-left{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	width: 20%;
	margin-top: 6vw;
	margin-left: 10vw;
	height: 10vw;
}

.btn-left a {
	/* height: 4vw; */
	z-index: 1;
}

.login a:hover,
.btn-left a:hover,
.btn-thele:hover,
.btn-lichsu:hover,
.btn-bxh:hover,
.thuvanmay:hover{
    animation: laclu .5s linear infinite;
}

.btn-login,
.btn-thele,
.btn-lichsu,
.btn-bxh,
.thuvanmay a{
   z-index: 1;
}

.btn-left img{
	width: 15vw;
}

.baucua {
	width: 40vw;
    height: fit-content;
}

.baucua-main {
	position: relative;
	text-align: center;
	margin-top: 8.2vw;
	height: 29vw;
	overflow: hidden;
    padding: 0 1vw;
}

.game-zone {
    margin-top: 4.5vw;
}

.gamelist{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.gamelist.gamelist-bottom{
    margin-top: 8vw;
}

.gamelist img{
    width: 10vw;
    cursor: pointer;
}

.game-item p{
    margin: 0 .5vw 0vw 0;
    text-align: right;
    font-family: 'Agbalumo', sans-serif;
    color: #fff;
    font-size: 3vw;
}

.thuvanmay {
	display: flex;
	justify-content: center;
	align-items: center;
	/* margin-top: 3vw; */
}

.thuvanmay img{
    width: 15vw;
}


.btn-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 30vw;
    margin-top: 6vw;
    height: 15vw;
}

.btn-right a {
	z-index: 1;
}


.soquantien, .sobaolixi {
	width: 10vw;
    height: 2.5vw;
    border-radius: 5px;
    line-height: 2.5vw;
    font-size: 1.5vw;
    z-index: 1;
    background-color: #610502;
    color: #fff;
	text-align: center;
	margin: 10px 0;
}

.soquantien img, .sobaolixi img {
    height: 1.7vw;
    margin-right: 10px;
    margin-bottom: 4px;
}

.btn-right a img{
	width: 10vw;
}


.btn-thele,
.login,
.btn-lichsu,
.soquantien,
.sobaolixi,
.btn-bxh{
    margin: 10px 12vw 10px 4vw;
}


.logout {
    font-size: 1.5vw;
    text-align: center;
    /* padding-left: 3vw; */
    width: 29vw;
}

.p3 {
	width: 100%;
	height: 46vw;
    padding-top: 10vw;
	/* border: 1px solid #000; */
}

.letaynhanhmat {
    margin-top: 8vw;
    position: relative;
    margin: 0 auto;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #fac67d; */
    margin-top: 5vw;
}

.footer img {
    width: 150px;
}

.footer-content {
    text-align: center;
    margin: 0 40px;
	z-index: 1;
}

.mob {
    display: none;
}
@keyframes laclu {
    0% {
        transform: translate(0,0) rotate(0);
    }
    25% {
        transform: translate(-4px,4px) rotate(4deg);
    }
    50% {
        transform: translate(0,0) rotate(0);
    }
    75% {
        transform: translate(-4px,4px) rotate(-4deg);
    }
    100% {
        transform: translate(0,0) rotate(0);
    }

  }

  @keyframes scaleAnimation {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }

  
  @keyframes loader1Anim {
    from,to {
       transform: scale3d(1.15, 0.80, 1);
    }
    42% {
      transform: translateY(-45px) ;
    }
    88%{
      transform: scale3d(1,1,1);
    }
    95%{
      transform:  scale3d(1.05, 0.85, 1);
    }
    98% {
      transform: scale3d(1.15, 0.80, 1);
    }
  }



  #html_dice .swal-modal{
    background-color: transparent;
}
.wrapper_dice img {
    width: 200px;
}
.dice_prize{background:none;}
.dice_prize .swal-footer{display:none;}

.loading{
    position: relative;
    height: 0;
    width: 0;
    left: 50%;
    top: 60px;
  }




  .loading span{
    display: block;
    height: 20px;
    width: 20px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}


.loading span:nth-child(1){
    left: -40px;
    animation: loader1Anim 1.2s linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: forwards;
    
}

.loading span:nth-child(2){
    left:-10px;
      animation: loader1Anim 1.2s linear;
      animation-delay: .2s;
      animation-iteration-count: infinite;
      animation-direction: forwards;
}

.loading span:nth-child(3){
    left: 20px;
      animation: loader1Anim 1.2s linear;
      animation-delay: .4s;
      animation-iteration-count: infinite;
      animation-direction: forwards;
}

.close {
	opacity: 1;
}

.close:hover{
	opacity: 1;
}
/* MODAL USER INFO */
#lichsu .modal-dialog.modal-dialog-centered {
    margin-top: 20vh;
    width: 40vw;
    /* margin-top: calc(50vh - 370px/2); */
}

#lichsu .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#lichsu .modal-bg {
    background-image: url(/tetnguyendan/assets/img/bg_popup1.png);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 370px;
}


#lichsu .modal-text {
    padding: 20px;
    text-align: center;
    color: #fff;
}

#lichsu .modal-text h3 {
    margin-top: 0px;
}

/*  MODAL HISTOTY    */
.modal-dialog.modal-dialog-centered {
    /* margin-top: 30vh; */
    /* margin-top: calc(50vh - 370px/2); */
}

#lichsu .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#lichsu .modal-bg {
    background-image: url(/tetnguyendan/assets/img/bg_popup1.png);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 460px;
}


#lichsu .modal-text {
    padding: 2vw;
    text-align: center;
    color: #fff;
}




.content-table-lichsu {
    height: 19vw;
    overflow-y: scroll;
}

/*  MODAL user info   */
#user_info .modal-dialog.modal-dialog-centered {
    /* margin-top: 30vh; */
    margin-top: calc(50vh - 450px/2);
}

#user_info .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#user_info .modal-bg {
    background-image: url(/tetnguyendan/assets/img/bg_popup2.png);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 460px;
}


#user_info .modal-text {
    padding: 20px;
    text-align: center;
    color: #fff;
}

#user_info .modal-text h3 {
    margin-top: 30px;
}


.content-table-user_info {
    height: 253px;
    overflow-y: scroll;
}


/*  MODAL THELE    */
#thele .modal-dialog.modal-dialog-centered {
    width: 50vw;
    height: 30vw;
}
#thele .modal-dialog.modal-dialog-centered {
    /* margin-top: 30vh; */
    margin-top: calc(50vh - 31vw/2);
}

#thele .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#thele .modal-bg {
    background-image: url(/tetnguyendan/assets/img/bg_popup.webp);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 31vw;
}


#thele .modal-text {
    padding: 20px;
    text-align: center;
    color: #fff;
}

.content-table-thele {
    height: 25.6vw;
    width: 48vw;
    overflow-y: scroll;
    text-align: left;
    padding: 2vw;
    padding-top: 0;
    font-size: 18px;
}


/*  MODAL bxh    */
#bxh .modal-dialog.modal-dialog-centered {
    width: 50vw;
    height: 30vw;
}
#bxh .modal-dialog.modal-dialog-centered {
    /* margin-top: 30vh; */
    margin-top: calc(50vh - 31vw/2);
}

#bxh .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#bxh .modal-bg {
    background-image: url(/tetnguyendan/assets/img/bg_popup.webp);
    background-size: 100%;
    background-repeat: no-repeat;
    height: 31vw;
}


#bxh .modal-text {
    padding: 20px;
    text-align: center;
    color: #fff;
}

.content-table-bxh {
    height: 25.6vw;
    width: 48vw;
    overflow-y: scroll;
    text-align: left;
    padding: 2vw;
    padding-top: 0;
    font-size: 18px;
}


@media only screen and (max-width: 768px) {
    .mob {
        display: block;
    }

    .pc {
        display: none;
    }

    .wrapper{
        background-image: url(/tetnguyendan/assets/img/bg-m.jpg);
        height: 460vw;
    }

    .p1 {
        height: 120vw;
    }

    .btn-menu-m {
        width: 100px;
        height: 100px;
        margin-left: calc(100vw - 100px);
        position: fixed;
        top: 0;
    }

    .menu-m {
        background-image: url(/tetnguyendan/assets/img/bg-menu-mob.png);
        background-repeat: no-repeat;
        background-size: 100%;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 100vw;
        z-index: 1;
        transition: all 1s ease;
    }

    .close-menu {
        width: 100px;
        height: 120px;
    }

    .active-menu {
        left: 0;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        width: 150px;
        margin-left: 200px;
    }
    .menu a {
        margin-bottom: 50px;
    }

    .menu img {
        transform: scale(1.5);
    }

    .box-tienich {
        top: 88vw;
        left: 10vw;
        width: 90vw;
    }

    /* .btn-napthe {
        margin-left: 62vw;
    }

    .btn-napthe img {
        width: 20vw;
    } */

    .download-m {
        position: absolute;
        top: 12vw;
        /* left: 15vw; */
        display: flex;
        justify-content: center;
        align-items: center;


    }

    .download-m a:nth-child(1) img {
        width: 25vw;
        margin-right: 10vw;
    }

    .download-m a:nth-child(2) img {
        width: 45vw;
    }

    .p2 {
        height: 165vw;
        position: relative;
    }

    .btn-left {
        position: absolute;
        top: 142vw;
        width: 100%;
        margin-left: 0;
    }

    .btn-left a{
        margin: 0 5vw;
    }

    .btn-left img {
        width: 40vw;
    }


    .baucua {
        position: absolute;
        top: 20vw;
        width: 100vw;
    }

    .baucua-main {
        margin-top: 46vw;
        height: 65vw;
    }

    .gamelist {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 6vw
    }

    .game-item img {
        width: 22vw;
    }
    
    .game-item p {
        font-size: 10vw;
        margin-right: -1vw;
    }

    .gamelist.gamelist-bottom {
        margin-top: 17vw;
    }

    .thuvanmay img {
        width: 40vw;
    }


    .btn-right{
        position: absolute;
        top: 12vw;
        width: 100%;
    }

    .btn-right a {
        width: 20vw;
        margin: 0;
    }

    .btn-login {
        margin: 2vw 30vw;
    }

    .login{
        margin: 0;
    }
    .logout {
        font-size: 4vw;
        width: 100vw;
    }
    .btn-thele {
        margin: 0vw 10vw 0vw 10vw;

    }
    .btn-lichsu {
        margin: 0vw 10vw 0vw 10vw;
    }
    .btn-right a img {
        width: 30vw;
    }

    .btn-bxh {
        position: fixed;
        top: 68vh;
        right: 20px;
        margin: 0;
    }

    .btn-bxh a img{
        width: 150px;    
    }

    .soquantien, .sobaolixi {
        width: 30vw;
        height: 8vw;
        line-height: 8vw;
        font-size: 5vw;
        margin: 4vw 10vw;
    }

    .soquantien img, .sobaolixi img {
        height: 4vw;
    }

    .p3 {
        height: 130vw;
        padding-top: 20vw;
    }

    .doiqua {
        padding-top: 73vw;
    }

    .doiqua img {
        width: 15vw;
    }

    .doiqua a {
        margin: 2vw;
    }

    /* .qua1 {
        left: 31vw;
        top: 40vw;
    }

    .qua2 {
        left: 55vw;
        top: 40vw;
    }

    .qua3 {
        left: 17vw;
        top: 43vw;
    }

    .qua4 {
        left: 43vw;
        top: 39vw;
    }

    .qua5 {
        left: 66vw;
        top: 42vw;
    } */

    .footer{
        padding: 5vw 0;
        margin-top: 13vw;
    }

    .footer-content {
        margin: 0 20px;
    }

    .footer img {
        width: 100px;
    }



    #thele .modal-dialog.modal-dialog-centered {
        width: 96vw;
        height: 60vw;
    }

    #thele .modal-bg {
        height: 60vw;
    }

    .content-table-thele {
        height: 45vw;
        width: 92vw;
    }


    #lichsu .modal-dialog.modal-dialog-centered {
        margin-top: 30vh;
        width: 97vw;
    }

    #lichsu .modal-text{
        padding: 5vw;
    }

    .content-table-lichsu {
        height: 42vw;
    }

    #thele .modal-dialog.modal-dialog-centered {
        margin-top: 30vh;
        /* margin-top: calc(50vh - 370px/2); */
    }
}

