body {
  background-color: #fff;
  display: block;
  width: 100%;
  float: left;
  position: relative;
  -webkit-overflow-scrolling: touch;
  /* font-family: "Roboto", sans-serif; */
  font-family: "Press Start 2P", system-ui;
}
.hf {
  float: left;
  width: 100%;
}
.ns {
  width: 1200px;
  margin: 0 auto;
}
a:hover {
  color: inherit;
  text-decoration: none;
}

/* scroller */
i.shout-icon:before {
  content: url(../images/shout-icon.png);
}
.scroller .ns {
  position: relative;
}
.scroller i.shout-icon {
  position: absolute;
  left: 0;
  top: 7px;
}
.banner-container {
  position: relative;
}
.scroller {
  background: #061222;
  color: #fff;
  font-size: 13px;
  height: 34px;
  position: relative;
  bottom: 1px;
}
.scroller marquee {
  width: 100%;
  float: left;
  margin-left: 30px;
  position: relative;
  top: 7px;
}

/* slick */
.slick-slide img {
  width: 100%;
}
.slick-slider,
.slick-dotted.slick-slider {
  margin-bottom: -6px;
}
.slick-next {
  right: 30px;
}
.slick-next {
  right: 30px;
}
.slick-prev {
  left: 30px;
  z-index: 1;
}
.slick-dots {
  bottom: 15px;
}
/* slick end */

/* swal */
.swal2-popup .swal2-title {
  font-size: 20px;
  color: #fff;
}
.swal2-popup #swal2-content {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.swal2-show {
  background-color: #010092;
}
/* swal end */

/* start */
#page_prelogin {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg_prelogin img {
  height: 100%;
  object-fit: cover;
}
.content_prelogin {
  z-index: 1;
  width: 72%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.game_title {
  width: 90%;
  margin-top: -3.5%;
  margin-bottom: -6.5%;
}
.design_buttons {
  width: 80%;
}
#page_prelogin .logo {
  max-width: 399px;
  width: 30%;
  z-index: 1;
}
#page_prelogin .btns_cont {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 5px;
  z-index: 1;
}
#page_prelogin .btns_cont button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  width: 174px;
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 50%);
  transition: 0.1s;
  position: relative;
  top: 0px;
}
#page_prelogin .btns_cont button:hover {
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 0%);
  top: 3px;
}
#page_prelogin .btns_cont span {
  position: absolute;
  width: 100%;
  z-index: 1;
}
#page_prelogin .btns_cont img {
  width: 100%;
  position: relative;
}
#page_prelogin {
  background-image: url(../images/prelogin_bg.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#loginModal .modal-content {
  background-image: url(../images/login_bg.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  height: 100%;
  background-color: transparent;
  border: none;
}
#loginModal .modal-dialog {
  max-width: none;
  width: 550px;
  height: 396px;
  margin: 10% auto 0;
}
#loginModal .modal-body {
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn-close {
  top: 0;
  right: 0;
  filter: invert(1);
}
#loginModal .login_title {
  font-size: 36px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
  margin-top: 12%;
}
#loginModal input {
  font-family: "Roboto", sans-serif;
  width: 45%;
  text-align: center;
  padding: 5px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 18px;
  color: #000;
}
#loginModal input[type="submit"] {
  background-color: #fff837;
}

#tncModal .modal-content {
  background-image: url(../images/htp_bg.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  height: 100%;
  background-color: transparent;
  border: none;
}
#tncModal .modal-dialog {
  max-width: none;
  width: 693px;
  height: 536px;
  margin: 9% auto 0;
}
#tncModal .modal-body {
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Roboto", sans-serif;
  color: #fff;
  font-size: 14px;
}
.tncModal .btn-close {
  top: 30px;
  right: 30px;
}
#tncModal .modal-body a {
  color: #996600;
  font-weight: bold;
}
#tncModal .tnc_overlow {
  width: 80%;
  height: 413px;
  margin-top: 7%;
  overflow: auto;
  padding-right: 20px;
}
#tncModal .tnc_overlow::-webkit-scrollbar {
  width: 4px;
}
#tncModal .tnc_overlow::-webkit-scrollbar-track {
  background: transparent;
}
#tncModal .tnc_overlow::-webkit-scrollbar-thumb {
  background: #ffe15d;
  border-radius: 10px;
}
#tncModal table {
  margin: 10px auto;
  text-align: center;
}
#tncModal table td {
  border-width: 1px;
  padding: 0px 20px;
}

/* postlogin */
#page_postlogin {
  overflow: hidden;
}
.game_cont {
  position: relative;
  width: 1200px;
  height: 660px;
  left: 50%;
  margin-left: -600px;
  top: 50%;
  margin-top: -330px;
}
.game_bg {
  width: 130%;
  margin-left: -15%;
  top: -270px;
  z-index: -1;
}
.game_upper {
  width: 60%;
  top: 0;
  left: 20%;
}
.post_logo {
  width: 173px;
  position: relative;
  z-index: 1;
}
.post_title {
  width: 688px;
  margin: 0 auto;
  top: -73px;
  position: relative;
}
.game_buttons {
  top: 75%;
  left: 30%;
  display: flex;
  width: 40%;
  justify-content: space-evenly;
}
.game_buttons .game_btn {
  cursor: pointer;
  position: relative;
  transition: 0.1s;
  filter: drop-shadow(2px 4px 6px transparent);
}
.game_buttons .game_btn:hover {
  filter: drop-shadow(2px 4px 6px white);
}
.game_other_btns {
  width: 100%;
  top: 28%;
}
.coins_left {
  position: relative;
  width: fit-content;
  color: #fff;
  text-align: center;
  font-size: 14px;
  left: 15%;
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 50%);
}
.coins_left div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page_postlogin .btn_mechanics,
#page_postlogin .btn_logout {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  width: 174px;
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 50%);
  position: relative;
  top: -36px;
  left: 72%;
  margin: 8px 0;
  transition: 0.1s;
}
#page_postlogin .btn_mechanics:hover,
#page_postlogin .btn_logout:hover {
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 0%);
  top: -34px;
}
#page_postlogin .btn_mechanics span,
#page_postlogin .btn_logout span {
  position: absolute;
  width: 100%;
  z-index: 1;
}
#page_postlogin .btn_mechanics img,
#page_postlogin .btn_logout img {
  width: 100%;
  position: relative;
}
.rewards_cont {
  position: relative;
  width: fit-content;
  color: #fff;
  font-size: 14px;
  text-align: center;
  left: 72%;
  top: -36px;
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 50%);
}
.rewards_cont table.rewards_tbl {
  position: absolute;
  width: 90%;
  height: 80%;
  margin: 7% 5%;
}
.rewards_cont table.rewards_tbl tbody tr td:nth-of-type(1) {
  width: 29%;
  text-align: left;
}
.rewards_cont table.rewards_tbl tbody tr td:nth-of-type(2) {
  width: 12%;
}
.rewards_cont table.rewards_tbl tbody tr td:nth-of-type(3) {
  width: 60%;
  text-align: left;
}
.rewards_cont table.rewards_tbl tbody {
  font-size: 12px;
}
.game_screen {
  width: 513px;
  left: 29%;
  top: 27%;
  height: 273px;
  overflow: hidden;
}
.players_cont .player_names {
  position: relative;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.players_cont .player_names span {
  justify-content: center;
  position: absolute;
  text-transform: uppercase;
  width: 91%;
  text-align: center;
  overflow: hidden;
  height: 68%;
  text-wrap: nowrap;
  display: flex;
  align-items: center;
}
.players_cont {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 30px;
  width: 100%;
  padding: 0 6%;
  gap: 3%;
  font-size: 13px;
}
.game_screen_bg_overlay {
  position: absolute;
  bottom: 0;
  width: 504px;
  left: 5px;
}
.game_hands .hand_left {
  position: absolute;
  top: 32%;
  left: 18%;
  width: 17%;
}
.game_hands img {
  width: 100%;
}
.game_hands .hand_right {
  position: absolute;
  top: 32%;
  left: 64%;
  width: 17%;
}
.bet_hand {
  display: none;
}
.bet_hand.active {
  display: block;
}
.moving_hand {
  display: none;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  transform-origin: bottom center;
}
.moving_hand.show {
  display: block;
}
.hand_right .moving_hand {
  animation-name: shakingRight;
}
.hand_left .moving_hand {
  animation-name: shakingLeft;
}
/* The animation code */
@keyframes shakingRight {
  from {
    transform: rotate(12deg);
  }
  to {
    transform: rotate(-8deg);
  }
}
@keyframes shakingLeft {
  from {
    transform: rotate(-8deg) scaleX(-1);
  }
  to {
    transform: rotate(12deg) scaleX(-1);
  }
}

#resultModal .modal-content {
  height: 100%;
  background-color: transparent;
  border: none;
}
#resultModal .modal-dialog {
  max-width: none;
  width: 360px;
  height: 311px;
  margin: 12% auto 0;
}
#resultModal .modal-body {
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
#resultModal .gameResult {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  background-color: transparent;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 149px;
  gap: 3px;
}
#resultModal .gameResult.win {
  background-image: url(../images/resultBg_win.png);
}
#resultModal .gameResult.lose {
  background-image: url(../images/resultBg_lose.png);
}
#resultModal .gameResult.draw {
  background-image: url(../images/resultBg_draw.png);
}
#resultModal .login_title {
  font-size: 36px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
  margin-top: 12%;
}
#resultModal .gameResult {
  display: none;
}
#resultModal .gameResult.show {
  display: flex;
}
#resultModal .gameResult div:first-child {
  font-size: 30px;
}
#resultModal .gameResult div:last-child {
  background: #000;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 18px;
}

@media only screen and (max-width: 940px) {
  .content_prelogin {
    width: 95%;
    gap: 12px;
  }
  #page_prelogin .btns_cont button {
    font-size: 13px;
  }
  .game_title {
    width: 100%;
    margin-top: -6.5%;
  }
  #page_prelogin .logo {
    width: 42%;
  }
  #loginModal .modal-dialog {
    width: 375px;
    height: 276px;
    margin: 50% auto 0;
  }
  #loginModal .login_title {
    font-size: 16px;
  }
  #loginModal input {
    width: 52%;
    font-size: 14px;
  }
  #loginModal .modal-body {
    gap: 8px;
  }
  .game_cont {
    position: relative;
    width: 375px;
    height: 667px;
    left: 50%;
    margin-left: -187.5px;
    top: 50%;
    margin-top: -333.5px;
  }
  .game_bg {
    width: 215%;
    margin-left: -57.5%;
    top: -77px;
  }
  .game_upper {
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .post_title {
    width: 375px;
    top: -36px;
  }
  .post_logo {
    width: 200px;
    margin-top: 5px;
  }
  .game_screen {
    width: 260px;
    left: 15%;
    top: 22.5%;
    height: 146px;
    overflow: hidden;
  }
  .game_screen_bg_overlay {
    width: 100%;
  }
  .players_cont {
    padding: 1% 4% 0 7%;
    top: 12px;
    font-size: 8px;
  }
  .game_hands .hand_right {
    left: 172px;
    top: 33%;
  }
  .game_hands .hand_left {
    left: 55px;
    top: 33%;
  }
  .game_buttons {
    top: 47.5%;
    left: 18.5%;
    width: 63%;
    gap: 5px;
  }
  .game_other_btns {
    top: 60%;
  }
  .coins_left {
    left: 31%;
    font-size: 12px;
    top: 4.5%;
    position: absolute;
    width: 144px;
    overflow: hidden;
  }
  .coins_left img {
    width: 100%;
  }
  #page_postlogin .btn_mechanics {
    top: 200px;
    left: 10px;
    font-size: 12px;
    width: 154px;
  }
  #page_postlogin .btn_logout {
    top: 164px;
    left: 212px;
    font-size: 12px;
    width: 154px;
  }
  .rewards_cont {
    left: 16%;
    width: 70%;
    top: -13px;
    height: 120px;
    font-size: 12px;
  }
  .rewards_cont img {
    width: 100%;
    height: 100%;
  }
  .rewards_cont table.rewards_tbl {
    margin: 4% 15%;
    width: 70%;
  }
  .rewards_cont table.rewards_tbl tbody tr td {
    text-align: center !important;
    width: auto !important;
    font-size: 10px;
  }
  #resultModal .modal-dialog {
    margin: 42% auto 0;
  }
  #tncModal .modal-content {
    background-image: url(../images/htp_bg_mob.png);
  }
  #tncModal .modal-dialog {
    width: 375px;
    height: 400px;
    margin: 30% auto 0;
  }
  #tncModal .tnc_overlow {
    width: 80%;
    height: 337px;
    margin-top: 12%;
  }
  #page_prelogin {
    background-image: url(../images/prelogin_bg_mob.png);
  }
  #page_postlogin .btn_mechanics:hover {
    top: 200px;
  }
  #page_postlogin .btn_logout:hover {
    top: 164px;
  }
}
