.lathinh-container button, input, optgroup, select, textarea {
  color: #000;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border-radius: 0px;
}
.lathinh-container a{
  cursor: pointer;
}
.thele-content{
  margin-top: 0px;
  height: 0px;
  overflow-y: scroll;
  color:white;
  font-size: 15px;
}
.thele-content p {
  text-align: left;
}
.thele-content::-webkit-scrollbar {
  width: 3px;
}
.thele-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.thele-content::-webkit-scrollbar-thumb {
  background: #888;
}
.thele-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.thele-content.show{
  height: 230px;
  margin-top: 10px;
  animation: expandHeight 1s forwards;
}
.thele-content.collapsed{
  animation: collapseHeight 1s forwards;
  margin-top: 10px;
}
@keyframes expandHeight {
    from {
        height: 0px;
    }
    to {
        height: 230px;
    }
}
@keyframes collapseHeight {
    from {
        height: 230px;
    }
    to {
        height: 0px;
    }
}
.lathinh-container input, textarea {
  border: 1px solid #e5e5e5;
  width: 100%;
  padding: 8px 10px;
  border-radius: 3px;
  outline: none;
}
.error-phone{
  color: red;
  margin-top: 10px;
  font-size: 14px;
  background: #F2DEE0;
  width: 100%;
  text-align: left;
  padding: 3px 5px;
  line-height: 20px;
  border-radius: 4px;
}
.lat-container{
  display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.lathinh-container {
    display:none;
    position: fixed;
    opacity: 0;
    transition: opacity 0.5s;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    height: 100%;
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}
     .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }
.overlay-new {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }
        .overlay.show {
            display: block;
        }
.overlay-new.show {
            display: block;
        }
.lathinh-container .content-play{
  // height: 490px;
  background: linear-gradient(to right, #9B1A1F, #9B1A1F, #9B1A1F), radial-gradient(circle, #9B1A1F, #9B1A1F, #9B1A1F);
  position: relative;
  width: 400px;
  border-radius: 8px;
  z-index:1000;
}

.lathinh-container .content-play .btn-play{
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -90%);
  padding: 10px 0;
  border-radius: 8px;
  max-width: 300px;
  min-width: 200px;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
}
.lathinh-container .content-play .btn-close{
    position: absolute;
    top: -12px;
    right: -10px;
    padding: 4px;
    width: 30px;
    height: 29px;
    border-radius: 50%;
    background: #9B1A1F;
    border: 2px solid white;
    color: white;
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    line-height: 16px;
}
.lathinh-container.show {
    display: block;
    opacity: 1;
}
.non-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-container .btn-close{
  position: absolute;
  top: -12px;
  right: -10px;
  padding: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #C20728;
  border: 2px solid white;
  color: white;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  line-height: 18px;
}
.lathinh-container .error-content, .success-lucky-content{
  position: relative;
}

.lathinh-container .btn-thele{
  background-image: url(https://file.hstatic.net/1000360022/file/thele.jpg);
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  width: 49%;
}
.lathinh-container .btn-muangay{
  background-image: url(https://file.hstatic.net/1000360022/file/muangay.jpg);
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  width: 49%;
}
.lathinh-container .btn-saochep{
  background-image: url(https://file.hstatic.net/1000360022/file/saochepma.jpg);
 height: 40px;
 background-size: contain;
 background-repeat: no-repeat;
 background-position: center;
 border: none;
 width: 49%;
}
.lathinh-container .btn-nhanqua{
 background-image: url(https://file.hstatic.net/1000360022/file/nhanquangay.jpg);
 height: 40px;
 background-size: contain;
 background-repeat: no-repeat;
 background-position: center;
 border: none;
 width: 49%;
}
.code-content{
  padding: 8px;
  color: black;
  background: white;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 4px;
}
.lathinh-container .btn-content{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px;
}

.lathinh-container .btn-content-3{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.btn-conten-new{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin: 10px 0px;
}
.success-info img{
  border-radius: 24px;
}
.lathinh-container .error-close{
  position: absolute;
  top: -25px;
  right: -22px;
  padding: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #9B1A1F;
  border: 2px solid white;
  color: white;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  line-height: 17px;

}
.lathinh-container .success-close{
  position: absolute;
  top: -25px;
  right: -22px;
  padding: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #D6D6D6;
  border: 2px solid white;
  color: black;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  line-height: 18px;

}
.lathinh-container .dis-none{
  display: none;
}
.lathinh-container .error-content{
  position: relative;
}
.success-lucky{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #9B1A1F;
  width: 390px;
  // max-height: 180px;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000000000;
  box-shadow: 0px 0px 4px 2px #ccc;
  border: 1px solid white;
}
 .success-lucky{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #D6D6D6;
  width: 390px;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000000000;
  // box-shadow: 0px 0px 4px 2px #ccc;
  border: 1px solid white;
}
.lathinh-container .non-content .btn-thele{
  width:100%;
}
@media screen and (max-width: 360px) {
  .error-lucky, .success-lucky{
    width: 330px;
  }
  .btn-saochep{
    font-size: 13px;
  }
.lathinh-container .btn-muangay, .lathinh-container .btn-cancel, .lathinh-container .btn-saochep, .lathinh-container .btn-thele{
  font-size: 13px;
}
}
.lathinh-container .error-content h1,  .error-content p, .success-lucky h1{
   color: white;
  text-align: center;
}
.success-lucky p{
  color: black;
  text-align: left;
  font-size: 15px;
}
.lathinh-container .error-content h1, .success-lucky h1{
  font-size: 22px;
  text-transform: uppercase;
}
.lathinh-container .phone_content{
  // position: absolute;
  background: transparent;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to right, #6C0E1D, #8D0A1D, #CC031B), radial-gradient(circle, #6C0E1D, #8D0A1D, #CC031B);
}
.game-content-bottom img{
      object-fit: contain;
    object-position: center;
}
.game-content-bottom{
  display: flex;
justify-content: space-between;
}
.game-content-left{
    position: absolute;
}



.lathinh-container .phone-close{
  position: absolute;
  background: black;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  line-height: 20px;
  right: -7px;
  top: -10px;
}
.lathinh-container .phone_title{
  font-size: 18px;
  color: white;
  text-align: center;
}
.quay-content{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.lathinh-container #btn-quay{
  background-image: url(https://file.hstatic.net/1000360022/file/button_choi_ngay.png);
  height: 41px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  width: 50%;
}
.lathinh-container .icon-field{
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.lathinh-container .large_form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-top:15px;
}
.lathinh-container .lucky-container{
  position: relative;
}
.lathinh-container .phone-container{
  position: absolute;
  margin: 0 auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000000000
}
.lathinh-container .game-container .game-title{
  text-align: center;
  padding: 10px;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
}
.dis-none{
  display: none;
}
.lathinh-container .error-content{
  position: relative;
}
.lathinh-container .error-lucky{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, #6C0E1D, #8D0A1D, #CC031B), radial-gradient(circle, #6C0E1D, #8D0A1D, #CC031B);
  width: 300px;
  height: auto;
  padding: 15px;
  border-radius: 8px;
  z-index: 1000000000;
}
.lathinh-container .error-content h1,  .lathinh-container .error-content p{
   color: white;
  text-align: center;
}
.lathinh-container .error-content h1{
  font-size: 22px;
  text-transform: uppercase;
}
.lathinh-container .phone-close{
  position: absolute;
  background: black;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  line-height: 20px;
  right: -7px;
  top: -10px;
}
.lathinh-container .phone_title{
  font-size: 18px;
  color: white;
  text-align: center;
}
.lathinh-container .game-container{
  position: relative;
  width: 570px;
  height: 560px;
  margin: 0 auto;
  border: 1px solid #cccccc8f;
  border-radius: 8px;
  background: #9B1A1F;
  z-index: 1000;
  background-image: url(https://file.hstatic.net/1000360022/file/backgound.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}
.lathinh-container .game-container{
  padding: 10px;
}
.lathinh-container .game-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.lathinh-container .card {
  width: 106px;
  height: 106px;
  background-color: #cccccc8f;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  animation-duration: 3s;
  transform-style: preserve-3d;
  background-image: url("https://file.hstatic.net/1000360022/file/hinhanh_card.jpg");
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 8px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  margin: 8px;
  transition: transform 0.5s; 
}

  .lathinh-container .game-container {
    width: 565px;
    height: 530px;
  }
  .game-content-left {
    top: 50%;
    left: 2%;
    transform: translate(-1%, -50%);
  }
  .game-content-bottom {
    display: flex;
    
    padding: 20px 30px;
}

@media screen and (max-width: 480px) {
  .lathinh-container .card {
    width: 75px;
    height: 75px;
  }
  .lathinh-container .game-container{
    padding: 10px;
  }
  .lathinh-container .game-container {
    max-width: 405px;
    max-height: 405px;
  }
  .lathinh-container .card{
    margin: 5px;
  }
    .game-content-left{
            left: 2%;
        top: 50%;
    margin-top: 8px;
  }
  .game-content-bottom{
    justify-content: space-between;
    align-items: center;
    padding: 17px; 
    padding: 7px 17px;
  }
}

.lathinh-container .card.flipped {
    /* background-color: #fff; */
    animation: rotate-y 1s forwards;
    -moz-animation: rotate-y 1s forwards;
    -webkit-animation: rotate-y 1s forwards;
    -o-animation: rotate-y 1s forwards;
    -ms-animation: rotate-y 1s forwards;
}
    @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}
  @keyframes rotate-y {
      0% {
        transform: rotateY(0);
    }
    70% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}
.lathinh-container .card.matched {
    animation: bounce 1s;
}

@media screen and (max-width: 390px) {
  .lathinh-container .card {
    width: 70px;
    height: 70px;
  }
    .game-content-bottom{
    padding: 17px; 
  }
  .success-lucky{
    width: 360px;
  }
  .fireworks {
    top: -14%;
  }
}

.fireworks {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000000000;
}
.fireworks .firework {
  width: 80px;
  height: 80px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 50%;
  animation: shoot 0.5s ease-out forwards;
}
@keyframes shoot {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(4);
        opacity: 1;
    }
}