/* game objects */
.box {
  width: 100px;
  height: 100px;
  position: absolute;
  top: -150px;
  transition: transform 1.5s linear;
  cursor: pointer;
  z-index: 100;
}

.move {
  transform: translateY(120vh);
}

.box-upward {
  width: 100px;
  height: 100px;
  position: absolute;
  bottom: -110vh;
  transition: transform 1.5s linear;
  cursor: pointer;
  z-index: 100;
}

.move-upward {
  transform: translateY(-120vh);
}

/* global css */
html {
  font-size: 100px;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: -webkit-linear-gradient(left top, #e6007d 10%, #00609d);
  background: linear-gradient(left top, #e6007d 10%, #00609d);
  font-family: "FSAlbertPro";
  font-size: 0.14rem;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@font-face {
  font-family: "FSAlbertPro";
  src: url("../assets/FSAlbertPro.eot");
  src: url("../assets/FSAlbertPro.eot?#iefix") format("embedded-opentype"),
    url("../assets/FSAlbertPro.svg#FSAlbertPro") format("svg"),
    url("../assets/FSAlbertPro.ttf") format("truetype"),
    url("../assets/FSAlbertPro.woff") format("woff"),
    url("../assets/FSAlbertPro.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FSAlbertPro-ExtraBold";
  src: url("../assets/FSAlbertPro-ExtraBold.eot");
  src: url("../assets/FSAlbertPro-ExtraBold.eot?#iefix")
      format("embedded-opentype"),
    url("../assets/FSAlbertPro-ExtraBold.svg#FSAlbertPro-ExtraBold")
      format("svg"),
    url("../assets/FSAlbertPro-ExtraBold.ttf") format("truetype"),
    url("../assets/FSAlbertPro-ExtraBold.woff") format("woff"),
    url("../assets/FSAlbertPro-ExtraBold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FSAlbertPro-Bold";
  src: url("../assets/FSAlbertPro-Bold.eot");
  src: url("../assets/FSAlbertPro-Bold.eot?#iefix") format("embedded-opentype"),
    url("../assets/FSAlbertPro-Bold.svg#FSAlbertPro-Bold") format("svg"),
    url("../assets/FSAlbertPro-Bold.ttf") format("truetype"),
    url("../assets/FSAlbertPro-Bold.woff") format("woff"),
    url("../assets/FSAlbertPro-Bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.btn {
  padding: 0.12rem;
  min-height: 0.4rem;
  border-radius: 0.04rem;
  font-weight: 600;
  font-family: "FSAlbertPro-Bold";
  line-height: 1.14;
}

.btn-primary {
  background: #e6007d;
}

.btn-block {
  margin: 0.08rem;
  box-sizing: border-box;
}

.btn-ghost {
  border: 2px solid #ffffff;
}

.flex_blank {
  flex: 1;
}

.guide_link a {
  color: #ffffff;
  text-decoration: underline;
  margin-bottom: 0.08rem;
  display: inline-block;
}
.card {
  background: #ffffff;
  margin: 0 0.16rem;
  border-radius: 0.04rem;
  padding: 0.16rem;
  line-height: 1.5;
  color: #333333;
  text-align: left;
  margin-top: 0.16rem;
  margin-bottom: 0.32rem;
}
.scoreboard {
  margin-top: 0.32rem;
}
.scoreboard + div {
  margin-top: -0.24rem;
}
.card--rank {
  font-family: "FSAlbertPro-Bold";
  font-size: 0.2rem;
}
.card--point {
  font-size: 0.16rem;
  display: inline-block;
  margin: 0.04rem 0;
}
.card--point em {
  font-family: "FSAlbertPro-Bold";
  font-style: normal;
}
.card--description {
  color: #888888;
}

.card--title {
  font-family: "FSAlbertPro-Bold";
  font-size: 0.2rem;
  color: #ffffff;
  padding: 0 0.16rem;
}

.card_item {
  display: flex;
  align-content: center;
  padding: 0.24rem 0;
  border-bottom: solid 1px #d8d8d8;
}
.card_item:last-of-type {
  border: none;
}
.card_item--content {
  margin-left: 0.16rem;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.card_item--title {
  font-family: "FSAlbertPro-Bold";
  font-size: 0.16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card_item--image {
  width: 0.48rem;
  height: 0.48rem;
}
.card_item--image > img {
  width: 100%;
  height: 100%;
  max-width: 0.48rem;
  max-height: 0.48rem;
}

/* entrance screen */
#entrance_screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-content: center;
  color: #ffffff;
  text-align: center;
  display: none;
}

#entrance_screen-logo {
  width: 2rem;
  height: 2rem;
  background: url("../assets/logo.png") center no-repeat;
  background-size: contain;
  margin: 0 auto;
  margin-top: 0.2rem;
}
#entrance_screen-title {
  margin-top: 0.24rem;
  font-size: 0.24rem;
  font-family: "FSAlbertPro-ExtraBold";
}
#entrance_screen-description {
  font-size: 0.16rem;
  padding: 0.08rem 0.41rem;
  line-height: 1.5;
}

/* game screen */

#game_screen {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-content: center;
  justify-content: center;
  color: #ffffff;
  flex-direction: column;
  display: none;
  overflow: hidden;
}
#game_screen-count_down {
  font-size: 0.64rem;
  font-family: "FSAlbertPro-ExtraBold";
  text-align: center;
  width: 100%;
}
#game_screen-game_board {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}
#game_screen-game_board--count_down {
  margin-top: 0.72rem;
  font-size: 0.24rem;
  margin-bottom: 0.08rem;
}

/* score_screen */
#score_screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-content: center;
  color: #ffffff;
  text-align: center;
  display: none;
}

#score_screen-title {
  margin-top: 0.72rem;
  font-family: "FSAlbertPro-ExtraBold";
  font-size: 0.24rem;
  line-height: 1.3;
}
#score_screen-score {
  font-size: 0.16rem;
  line-height: 1.4;
  margin-top: 0.08rem;
}
/* leaderBoard screen */
#leaderboard_screen {
  display: none;
  min-height: 100vh;
  box-sizing: border-box;
}
.leaderboard_screen-card--prize .card_item {
  border: none;
}
#leaderboard-list {
  display: none;
}
/* dialog */
#dialog {
  display: none;
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
#dialog_backdrop {
  position: absolute;
  z-index: 100;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.38);
}
#dialog_body {
  display: flex;
  align-content: center;
  justify-content: space-around;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#dialog_body--wrapper {
  margin: 0 0.4rem;
  background: #ffffff;
  padding: 0.24rem;
  box-sizing: border-box;
  border-radius: 0.02px;
}
#dialog_body--title {
  font-size: 0.2rem;
  color: rgba(0, 0, 0, 0.87);
  font-weight: 500;
}
#dialog_body--content {
  color: rgba(0, 0, 0, 0.54);
  margin: 0.16rem 0;
  line-height: 1.5;
}
#dialog_body--footer {
  display: flex;
  justify-content: flex-end;
  align-content: center;
  color: #ec458b;
  font-size: 0.14rem;
  font-weight: 500;
  line-height: 2;
}
#dialog_body--confirm_btn {
  width: 0.32rem;
  text-align: center;
}

#preload_screen {
  display: none;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  justify-content: space-between;
  align-content: center;
  flex-direction: column;
}
#preload_screen-banner {
  width: 100%;
  height: 2.48rem;
  background: url("https://img.goshop.com.my/image/contents/EngagementGame/tap+and+win/Tap+N+Win_Banner_640x440.jpg")
    center no-repeat;
  background-size: cover;
}
#preload_content-title {
  font-size: 0.16rem;
  font-weight: 500;
  text-align: center;
  color: #212121;
  margin-top: 0.24rem;
  font-family: "FSAlbertPro-Bold";
}
#preload_content-description {
  padding: 0 0.48rem;
  text-align: center;
  line-height: 1.38;
  font-size: 0.16rem;
  font-weight: 200;
}
#preload_content-period {
  color: #e6007d;
  font-size: 0.12rem;
  text-align: center;
  margin-top: 0.08rem;
}
#preload_content-btn {
  width: 100%;
  height: 0.56rem;
  text-align: center;
  box-shadow: 0 -3px 6px 0 rgba(0, 0, 0, 0.2);
}
#preload_content-btn > span {
  display: block;
  margin: 0.08rem 0.16rem;
  background: #e6007d;
  color: #ffffff;
  height: 0.4rem;
  line-height: 0.4rem;
  font-weight: 500;
  border-radius: 4px;
}

#error_screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-content: center;
  color: #ffffff;
  text-align: center;
  display: none;
}

#error_screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-content: center;
  color: #ffffff;
  text-align: center;
  display: none;
}

#error_screen-message {
  margin-top: 50vh;
  font-size: 0.16rem;
}

#loader_screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-content: center;
  color: #ffffff;
  text-align: center;
  display: none;
}

#loader_screen-message {
  margin-top: 50vh;
  font-size: 0.16rem;
}

.share {
  width: 25px;
  height: 25px;
  top: 20px;
  left: 20px;
  background-image: url(../assets/share.png);
  background-size: 25px 25px;
  background-repeat: no-repeat;
  position: absolute;
}

.terms {
  color: #ffffff;
  margin-bottom: 10px;
}
