/*
Theme Name: ABC8.loans
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.wrapper {
 
  margin: auto;
  width: 300px;
  height: 200px;
  text-align: center;
left: 50%;

  margin-left: -150px;

z-index: 99999;
position: fixed;
  bottom: 20px;
}
.wrapper h1 {
  margin-top: 15px;
  font-size: 12px;
  color: #f00;
}
.wrapper .bonus {
  position: absolute;
  bottom: 5px;
  left: 50%;
  margin-left: -40px;
  width: 80px;
  height: 100px;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f00;
  transition: all 0.75s ease;
  -webkit-animation-name: shaking;
          animation-name: shaking;
}
.wrapper .bonus:after {
  position: absolute;
  top: 15px;
  left: 0;
  content: '';
  width: 80px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 3px 0 2px #ff0;
  z-index: 3;
}
.wrapper .bonus:before {
  position: absolute;
  top: 22px;
  left: 50%;
  margin-left: -15px;
  content: '$';
  width: 30px;
  height: 30px;
  line-height: 35px;
  font-size: 20px;
  font-weight: 700;
  color: #f00;
  background-color: #ff0;
  border-radius: 50%;
  z-index: 4;
}
.surprises .fly {
  position: absolute;
  top: 45px;
  left: 0;
  color: #f37476;
  z-index: 0;
  opacity: 0;
  font-size: 10px;
  -webkit-animation-duration: 1.65s;
          animation-duration: 1.65s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: normal;
          animation-direction: normal;
  -webkit-animation-delay: 0;
          animation-delay: 0;
  -webkit-animation-play-state: running;
          animation-play-state: running;
  -webkit-animation-name: flying;
          animation-name: flying;
}
.surprises .fly:nth-child(1) {
  -webkit-animation-delay: 1.5s;
          animation-delay: 1.5s;
  left: 150px;
}
.surprises .fly:nth-child(2) {
  -webkit-animation-delay: 1.2s;
          animation-delay: 1.2s;
  left: 130px;
}
.surprises .fly:nth-child(3) {
  -webkit-animation-delay: 0.9s;
          animation-delay: 0.9s;
  left: 165px;
}
.surprises .fly:nth-child(4) {
  -webkit-animation-delay: 1.6s;
          animation-delay: 1.6s;
  left: 110px;
}
.surprises .fly:nth-child(5) {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
  left: 175px;
}
.surprises .fly:nth-child(6) {
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
  left: 137px;
}
.surprises .fly:nth-child(7) {
  -webkit-animation-delay: 1.15s;
          animation-delay: 1.15s;
  left: 185px;
}
.surprises .fly:nth-child(8) {
  -webkit-animation-delay: 0.75s;
          animation-delay: 0.75s;
  left: 118px;
}
.hearts {
  position: relative;
}
.hearts:before,
.hearts:after {
  position: absolute;
  content: '';
  width: 6px;
  height: 10px;
  background: #ff370f;
  border-radius: 3px 3px 0 0;
  transform: rotate(-45deg);
  transform-origin: 10% 50%;
}
.hearts:after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 110% 68%;
}
.jumping,
.shaking {
  -webkit-animation-duration: 1.2s;
          animation-duration: 1.2s;
  animation-time-function: ease;
  -webkit-animation-delay: 0;
          animation-delay: 0;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: normal;
          animation-direction: normal;
  -webkit-animation-play-state: running;
          animation-play-state: running;
}
@-webkit-keyframes jumping {
  0% {
    bottom: 5px;
    transform: rotate(-10deg) scale(0.98);
  }
  10% {
    bottom: 30px;
    transform: rotate(0deg) scale(1);
  }
  50% {
    bottom: 5px;
    transform: rotate(10deg) scale(0.98);
  }
  60% {
    bottom: 30px;
    transform: rotate(0deg) scale(1);
  }
  100% {
    bottom: 5px;
    transform: rotate(-10deg) scale(0.98);
  }
}
@keyframes jumping {
  0% {
    bottom: 5px;
    transform: rotate(-10deg) scale(0.98);
  }
  10% {
    bottom: 30px;
    transform: rotate(0deg) scale(1);
  }
  50% {
    bottom: 5px;
    transform: rotate(10deg) scale(0.98);
  }
  60% {
    bottom: 30px;
    transform: rotate(0deg) scale(1);
  }
  100% {
    bottom: 5px;
    transform: rotate(-10deg) scale(0.98);
  }
}
@-webkit-keyframes shaking {
  0% {
    margin-left: -35px;
  }
  10% {
    margin-left: -45px;
  }
  20% {
    margin-left: -35px;
  }
  30% {
    margin-left: -45px;
  }
  40% {
    margin-left: -35px;
  }
  50% {
    margin-left: -40px;
  }
  65% {
    bottom: 20px;
  }
  100% {
    bottom: 5px;
  }
}
@keyframes shaking {
  0% {
    margin-left: -35px;
  }
  10% {
    margin-left: -45px;
  }
  20% {
    margin-left: -35px;
  }
  30% {
    margin-left: -45px;
  }
  40% {
    margin-left: -35px;
  }
  50% {
    margin-left: -40px;
  }
  65% {
    bottom: 20px;
  }
  100% {
    bottom: 5px;
  }
}
@-webkit-keyframes flying {
  0% {
    transform: rotate(20deg);
    opacity: 0;
  }
  50% {
    transform: rotate(-20deg);
    opacity: 1;
  }
  100% {
    top: -60px;
    transform: rotate(20deg);
    opacity: 0;
  }
}
@keyframes flying {
  0% {
    transform: rotate(20deg);
    opacity: 0;
  }
  50% {
    transform: rotate(-20deg);
    opacity: 1;
  }
  100% {
    top: -60px;
    transform: rotate(20deg);
    opacity: 0;
  }
}
.hob_div {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.hob-inlet {
  position: relative;
  width: 110px;
  height: 113px;
  top: 0;
  z-index: 1;
  cursor: pointer;
}

.hob-inlet-03 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  /* background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    background-image: url(./img/red.png); */
  z-index: 1;
}

.hob-inlet-02 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.hob-inlet-01 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 3;
}

.hob-inlet:not(.disable) .hob-inlet-02 {
  animation: hob_shake 1s infinite;
}

.hob-inlet:not(.disable):hover .hob-inlet-02 {
  animation: hob 1s 1;
}

.for-get-now {
  z-index: 33;
  animation: hob_btn 2.5s infinite;
}

@keyframes hob_shake {
  15%,
  45% {
    -webkit-transform: rotate(3deg);
    transform: rotate(3deg);
    transform-origin: 50% 100%;
  }

  30% {
    -webkit-transform: rotate(-3deg);
    transform: rotate(-3deg);
    transform-origin: 50% 100%;
  }

  60%,
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    transform-origin: 50% 100%;
  }
}

@keyframes hob {
  10%,
  30%,
  50% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }

  20%,
  40% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  60%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes hob_btn {
  10%,
  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }

  20%,
  40%,
  60%,
  80% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.hongbao-wrapper {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.8); */
  z-index: 200;
}

.hongbao-wrapper i {
  display: block;
  position: absolute;
  width: 96px;
  height: 131px;
  top: -200px;
  background-repeat: no-repeat;
  background-size: 100%;
  background-image: url(https://minhngoc.fun/hongbao/images/red.png);
  /* -webkit-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    -o-transform: rotate(20deg);
    transform: rotate(20deg); */
  -webkit-transition: 2s transform;
  -moz-transition: 2s transform;
  -ms-transition: 2s transform;
  -o-transition: 2s transform;
  transition: 2s transform;
}

.hongbao-wrapper i.rotate {
  -webkit-transform: rotate(7200deg);
  -ms-transform: rotate(7200deg);
  -o-transform: rotate(7200deg);
  transform: rotate(7200deg);
}

.hob-cd {
  position: absolute;
  /* color: #fff; */
  color: #eee;
  font-size: 30px;
  top: 100px;
  left: 200px;
}

.hob-close {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 100px;
  right: 200px;
  cursor: pointer;
  z-index: 201;
}

.hob-close::before,
.hob-close::after {
  content: "";
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  top: 19px;
  left: 5px;
  background-color: #eee;
  border-radius: 2px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.hob-close::after {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  [mod-relation="hobCoupon"] h5 {
    font-size: 20px;
  }

  .hobCoupon-img {
    max-width: 100%;
  }

  .hob-cd {
    top: 20px;
    left: 30px;
  }

  .hob-close {
    top: 20px;
    right: 20px;
  }
}

.hb_modal {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100vh;
  /* background-color: rgba(0, 0, 0, 0.8); */
  z-index: 200;
  user-select: none;
}

.hb_modal_main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* width: 100%; */
  /* height: 100vh; */
  position: fixed;
  top: 20%;
   left: 50%; 
   margin-left: -156px;
   z-index: 99; 
}

.hb_content {
  display: block;
  width: 312px;
  height: 339px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(https://y2.webbuilder.vn/wp-content/uploads/script/tc1_2x.png);
  font-size: 18px;
  font-family: ArialMT;
  color: #b5621f;
}

.tips {
  margin: 55px auto 14px;
  width: 100%;
  text-align: center;
}

.hb_banner {
  width: 240px;
  height: 208px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: 100%;
  background-image: url(https://y2.webbuilder.vn/wp-content/uploads/script/tcjf_2x.png);
  font-size: 17px;
  color: #ff3743;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  flex-direction: column;
}

.hb_banner > span:nth-child(1) {
  font-size: 43px;
  font-family: Arial-Black, Arial;
  font-weight: 900;
  color: #fe1826;
  margin-top: 10%;
  line-height: 60px;
}
/* test */
.btn {
  width: 264px;
  height: 53px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(https://y2.webbuilder.vn/wp-content/uploads/script/bott_get2x.png);
  font-size: 18px;
  color: #ffe5b3;
  text-align: center;
  line-height: 53px;
}

.close_icon {
  display: block;
  position: relative;
  top: 50px;
  right: -138px;
  width: 64px;
  height: 64px;
  cursor: pointer;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}