.lucky_numbers {
    width: 80%;
    margin: auto;
    margin-top: 1rem;
    z-index: 1;
    position: relative;
    display: none;
}

.lucky_numbers .main_title {
  font-size: 3rem;
    text-align: center;
    font-family: sans-serif;
    font-weight: 600;
    color: #646464;
    text-shadow: 3px 0px 4px #a3a3a3c7;
    line-height: 2rem;
}
.sub_title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  background: url("../images/text_background.png");
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: moveBg 150s linear infinite;
}

@keyframes moveBg {
  0% {
    background-position: 0% 30%;
  }
  100% {
    background-position: 1000% 500%;
  }
}
.lucky_numbers .item_container {
  padding: 0 0.4rem;
    margin: auto;
    border: 0.01rem solid #cdcdcd;
    border-radius: 1rem;
    box-shadow: 2px 1px 6px 0px #a5a5a5;
    background: url("../images/text_background.png");
    /* background-clip: text; */
    /* -webkit-background-clip: text; */
    color: transparent;
    animation: moveBg 150s linear infinite;
}

.lucky_numbers .item {
  box-shadow: inset 1px 1px 4px #2b2b2b;
  border-radius: 0.3rem;
  aspect-ratio: 1;
  text-align: center;
  font-size: 10rem;
  color: #ffb555;
  font-weight: 700;
  background-color: #ffffffd9;
}

.lucky_numbers .item.active {
    background-color: #db0000;
    color: #fff;
}
.header {
  text-align: center;
  margin-top: 1rem;
  z-index: 1;
  position: relative;
}
.header .logo {
  width: 15rem;
}
.custom_button {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  border: none;
  background-color: transparent;
}

.custom_button .icon {
  width: 5rem;
  height: 5rem;
  display: block;
  margin: auto;
  /* box-shadow: 1px 1px 3px #6e6e6e; */
  /* border-radius: 0.5rem; */
}

#start {
  display: none;
}

.prize {
  margin: 0 !important;
    font-size: 1.2rem;
    font-weight: 600;
    color: #767676;
    font-family: system-ui;
    text-transform: uppercase;
}

.custom_button:hover {
    background-color: #f1aa68;
    color: #fff;
}

.custom_button:focus {
  outline: none !important;
  border-color: #f16868;
}

.list-group {
  width: 98%;
  margin: auto;
  margin-top: 1rem;
}

.list-group .list-group-item {
  font-size: 1rem;
  text-shadow: none;
  font-weight: 500;
  color: #6a6a6a;
  padding: 0.5rem;
  text-align: center;
  border-radius: 0.5rem !important;
  border: 0.2rem solid #ffb555;
  cursor: pointer;
  height: 100%;
  box-shadow: inset 1px 1px 5px #727272;
}

.list-group .list-group-item.active {
  background-color: #da0005;
  border: 0.1rem solid #ffb555;
  box-shadow: inset -2px -3px 16px 1px #ffffff;
  background: url(../images/text_background.png);
  color: transparent;
  animation: moveBg 50s linear infinite;
}

.list-group .list-group-item.active .prize{
  color: #ffffff;
}

.list-group .list-group-item:hover {
  background-color: #ffb555;
  color: #6a6a6a;
}

.list-group .list-group-item i {
  font-size: 2rem;
  color: #ffb555;
  margin: 0 1rem;
}

.list-group .list-group-item .emphasize {
  color: #ab6900;
  font-size: 1.2rem;
  width: 100%;
  display: block;
  box-shadow: 1px 1px 4px #ffffff;
  border-radius: 0.3rem;
  /* background-color: #ff0000; */
  padding: 0.5rem;
  text-transform: uppercase;
  background-color: #ffffff;
}

.full_modal_dialog {
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;    
}

.full_modal_dialog .modal-content {
  border: none !important;
}

#winner {
    font-size: 5rem;
    font-weight: 800;
    color: #ff9626;
}

#winner_name {
  font-size: 3rem;
  font-weight: 500;
  color: #dc3545;
}

.lion_img {
  width: 7rem;
  filter: drop-shadow(3px 1px 5px #8c8c8c);
  margin-bottom: -18rem;
  z-index: 1;
  position: relative;
  margin-left: -3rem;
  animation: jump .50s linear alternate infinite;
}

@keyframes jump {
  0%   {transform: translate3d(0,0,0) scale3d(1,1,1);}
  30%  {transform: translate3d(0,5%,0) scale3d(1.2, 1.2, 1.2);}
  60%  {transform: translate3d(0,0%,0) scale3d(1, 1, 1);}
  100% {transform: translate3d(0,5%,0) scale3d(1.1,1.1,1.1);}
}

.item_div {
  padding: 0.8rem 0.4rem !important;
}
/* background animation */
@keyframes backgroundColorPalette {
  0% {
    background: #ffc3c3;
    color: #fff;
  }
  10% {
    background: #ffffff;
    color: #fff;
  }
  20% {
    background: #ffc3c3;
    color: #fff;
  }
  30% {
    background: #ffffff;
    color: #fff;
  }
  40% {
    background: #ffc3c3;
    color: #fff;
  }
  50% {
    background: #ffffff;
    color: #fff;
  }
  60% {
    background: #ffc3c3;
    color: #fff;
  }
  70% {
    background: #ffffff;
    color: #fff;
  }
  80% {
    background: #ffc3c3;
    color: #fff;
  }
  90% {
    background: #ffffff;
    color: #fff;
  }  
  100% {
    background: #ffc3c3;
    color: #fff;
  }
}

.backgroundAnimated{    
  animation-name: backgroundColorPalette;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
/* end background animation */

/* swing image */
/* canvas{
  background:#000;
} */
.swing {
  animation: swing ease-in-out 1s infinite alternate;
  transform-origin: center -20px;
  float:left;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}
.swing img {
  border: 5px solid #f8f8f8;
  display: block;
}
.swing:after{
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid #444444;
  top: -8px;
  left: 48%;
  z-index: 0;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}
/* nail */
.swing:before{
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  top: -14px;
  left: 52.5%;
  z-index: 5;
  border-radius: 50% 50%;
  background: #000;
}

@keyframes swing {
  0% { transform: rotate(3deg); }
  100% { transform: rotate(-3deg); }
}
/* end swing image */

/* CHUC MUNG */
@keyframes confetti-slow {
    0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
    
    100% { transform: translate3d(25px, 105vh, 0) rotateX(360deg) rotateY(180deg); }
  }
  
  @keyframes confetti-medium {
    0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
    
    100% { transform: translate3d(100px, 105vh, 0) rotateX(100deg) rotateY(360deg); }
  }
  
  @keyframes confetti-fast {
    0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
    
    100% { transform: translate3d(-50px, 105vh, 0) rotateX(10deg) rotateY(250deg); }
  }
  
  .container {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    border:1px solid white;
    display:fixed;
    top:0px;
  }
  
  .confetti-container {
    perspective: 700px;
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  
  .confetti {
    position: absolute;
    z-index: 1;
    top: -10px;
    border-radius: 0%;
  
    &--animation-slow {
      animation: confetti-slow 2.25s linear 1 forwards;
    }
    
    &--animation-medium {
      animation: confetti-medium 1.75s linear 1 forwards;
    }
    
    &--animation-fast {
      animation: confetti-fast 1.25s linear 1 forwards;
    }
  }
  
  
  
  
  
  /* Checkmark */
  .checkmark-circle {
    width: 15rem;
    height: 15rem;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-left: auto;
    margin-right: auto;
  }

  .checkmark-circle img {
    position: absolute;
    width: 15rem;
    left: 0;
    top: 0;
    filter: drop-shadow(5px 5px 15px #fff);
  }
  /* .checkmark-circle .background {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #00C09D;
    position: absolute;
  }
  .checkmark-circle .checkmark {
    border-radius: 5px;
  }
  .checkmark-circle .checkmark.draw:after {
    -webkit-animation-delay: 100ms;
    -moz-animation-delay: 100ms;
    animation-delay: 100ms;
    -webkit-animation-duration: 3s;
    -moz-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-timing-function: ease;
    -moz-animation-timing-function: ease;
    animation-timing-function: ease;
    -webkit-animation-name: checkmark;
    -moz-animation-name: checkmark;
    animation-name: checkmark;
    -webkit-transform: scaleX(-1) rotate(135deg);
    -moz-transform: scaleX(-1) rotate(135deg);
    -ms-transform: scaleX(-1) rotate(135deg);
    -o-transform: scaleX(-1) rotate(135deg);
    transform: scaleX(-1) rotate(135deg);
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
  }
  .checkmark-circle .checkmark:after {
    opacity: 1;
    height: 75px;
    width: 37.5px;
    -webkit-transform-origin: left top;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    transform-origin: left top;
    border-right: 15px solid white;
    border-top: 15px solid white;
    border-radius: 2.5px !important;
    content: '';
    left: 25px;
    top: 75px;
    position: absolute;
  } */
  
  @-webkit-keyframes checkmark {
    0% {
      height: 0;
      width: 0;
      opacity: 1;
    }
    20% {
      height: 0;
      width: 37.5px;
      opacity: 1;
    }
    40% {
      height: 75px;
      width: 37.5px;
      opacity: 1;
    }
    100% {
      height: 75px;
      width: 37.5px;
      opacity: 1;
    }
  }
  @-moz-keyframes checkmark {
    0% {
      height: 0;
      width: 0;
      opacity: 1;
    }
    20% {
      height: 0;
      width: 37.5px;
      opacity: 1;
    }
    40% {
      height: 75px;
      width: 37.5px;
      opacity: 1;
    }
    100% {
      height: 75px;
      width: 37.5px;
      opacity: 1;
    }
  }
  @keyframes checkmark {
    0% {
      height: 0;
      width: 0;
      opacity: 1;
    }
    20% {
      height: 0;
      width: 37.5px;
      opacity: 1;
    }
    40% {
      height: 75px;
      width: 37.5px;
      opacity: 1;
    }
    100% {
      height: 75px;
      width: 37.5px;
      opacity: 1;
    }
  }
  
  
  
  .submit-btn {
      height: 45px;
      width: 200px;
      font-size: 15px;
      background-color: #00c09d;
      border: 1px solid #00ab8c;
      color: #fff;
      border-radius: 5px;
      box-shadow: 0 2px 4px 0 rgba(87,71,81,.2);
      cursor: pointer;
      transition: all 2s ease-out;
      transition: all .2s ease-out;
  }
  
  .submit-btn:hover {
      background-color: #2ca893;
      transition: all .2s ease-out;
  }

  .background {
    width: 100%;
    margin: auto;
    text-align: center;
    z-index: -1;
    position: absolute;
    text-align: right;
  }

  .top_background {
    width: 34rem;
    top: -5rem;
    position: relative;
    filter: drop-shadow(2px 1px 5px black);
  }

  .left_background_header {
    width: 15rem;
    top: 0rem;
    position: relative;
    float: left;
    margin: 3rem;
    animation: animFlip 10s linear infinite;
  }

  .left_background {
    position: fixed;
    z-index: -5;
    right: -24rem;
    top: -10px;
    opacity: 0.5;
  }

  .left_background img {
    width: 55rem;
    animation: animName 20s linear infinite;
  }

@keyframes animFlip {
  0%{
    transform: rotateY(0deg);
  }
  100%{
    transform: rotateY(360deg);
  }
}

@keyframes animName {
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}



@media only screen and (max-width : 1200px) {
  /* .header {
    margin-top: -15rem;
  } */

  /* .top_background {
    top: -2rem;
  } */

  .list-group {
    margin-top: 0;
}
}

@media only screen and (max-width : 991px) {
  /* .top_background {
    top: -2rem;
  } */

  .lucky_numbers {
    width: 100%;
    padding: 0 1rem;
  }

  .item_container {
    margin: 0 3rem;
  }

  .lion_img {
    width: 7rem;
    margin-bottom: -18rem;
    margin-left: -1rem;
    z-index: 1;
    position: relative;
  }

  .header {
    text-align: center;
    margin-top: 0;
    z-index: 1;
    position: relative;
  }

  .header .logo {
    width: 9rem;
  }

  .prize {
    font-size: 1rem;
  }

  .list-group .list-group-item .emphasize {
    font-size: 1rem;
  }
  .left_background_header {
    width: 10rem;
    margin: 0;
  }
  .sub_title  {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width : 768px) {
  .custom_button .icon {
    width: 3rem;
    height: 3rem;
  }

  /* .top_background {
    top: -1rem;
  } */

  .header {
    text-align: center;
    /* margin-top: -9rem; */
    z-index: 1;
    position: relative;
  }

  .header .logo {
    width: 6rem;
  }
  .top_background {
    width: 15rem;
    top: -5rem;
  }
}

@media only screen and (max-width : 576px) {
  .header {
    text-align: center;
    z-index: 1;
    position: relative;
  }

  .lucky_numbers .main_title {
    font-size: 1.2rem;
    text-align: center;
    font-family: sans-serif;
    font-weight: 600;
    color: #646464;
    text-shadow: 7px 4px 4px #d3d3d3;
    line-height: 2rem;
  }

  .item_div {
    width: fit-content !important;
    padding: 0.3rem !important;
  }

  .lucky_numbers .item {
    width: 3rem;
    font-size: 2rem;
  }

  .lucky_numbers .item_container {
    display: flex;
  }
}

html {
  overflow: scroll;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 0;  /* Remove scrollbar space */
  background: transparent;  /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
  background: #FF0000;
}
body, ::backdrop {
  background-image: url(../images/full_background.png) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-color: #fff2e1 !important;
}
#fullscreen-button {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  background: #ca0000;
  border: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  box-sizing: border-box;
  transition: transform .3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2000;
}
#fullscreen-button:hover {
  transform: scale(1.125);
}
#fullscreen-button svg:nth-child(2) { 
  display: none;
}
[fullscreen] #fullscreen-button svg:nth-child(1) {
  display: none;
}
[fullscreen] #fullscreen-button svg:nth-child(2) {
  display: inline-block;
}

.frame_container {
  margin: 3rem;
  padding: 1rem;
  /* position: absolute; */
  border: 0.01rem double #ff9000;
  box-shadow: inset 1px 1px 13px 3px #242424;
  border-radius: 1rem;
  height: 90vh;
  overflow: scroll;
  overflow-x: hidden;
}

.full_background {
  z-index: -1;
  position: absolute;
  width: 100%;
}

/* đè code css */
.col-xs-2-10,
.col-sm-2-10 {
  position: relative;
  min-height: 1px;
}

.col-xs-2-10 {
  width: 20% !important;
  float: left;
}

@media (min-width: 768px) {
  .col-sm-2-10 {
    width: 20%;
    float: left;
  }
}

@media (min-width: 992px) {
  .col-md-2-10 {
    width: 20%;
    float: left;
  }
}

@media (min-width: 1200px) {
  .col-lg-2-10 {
    width: 20%;
    float: left;
  }
}

.start_btn_group {
  text-align: center;
  margin: 1rem;
  z-index: 1;
  position: relative;
}

.custom_animation_btn {
  font-size: 1.8rem;
  text-decoration: none;
  color: #fdbd46;
  background-color: #ae0000;
  padding: 0.3rem 6rem;
  border-radius: 3rem;
  border: 0.3rem solid #FFC107;
  box-shadow: inset 1px 1px 7px #404040;
  cursor: pointer;
}

.custom_animation_btn:hover {
  color: #ae0000;
  background-color: #fdbd46;
}

.item_active {
  background-color: #fdbd49 !important;
  animation: animFlip 10s linear infinite;
}

.item_active .prize , .item_active .emphasize {
  color: #ae0000 !important;
}

@keyframes animFlip {
0%{
  transform: rotateY(0deg);
}
100%{
  transform: rotateY(360deg);
}
}