@font-face {
  font-family: 'countdown';
  src: url('https://qn.mktzr.com/dtzh/font/countdown.ttf');
}

@font-face {
  font-family: 'level';
  src: url('https://qn.mktzr.com/dtzh/font/level.ttf');
}
html {
  font-size: calc(100vw / 7.5);
  font-size: -webkit-calc(100vw/7.5);
  -webkit-text-size-adjust: 100%;
   background-color: #ffeeb6;
}

li {
  list-style: none;
  display: inline-block;
}

body,
.body {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-color: #ffeeb6;
  margin: 0;
  padding: 0;
}
.body{
  height: 100vh !important;
  overflow-y: scroll;
}
/*消除ios点击阴影*/
html,
body {
  -webkit-text-size-adjust: 100% !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* ios 滑动 */
  -webkit-overflow-scrolling: touch !important;
  user-select: none;
  -webkit-user-select: none;

}
body {
  -webkit-text-size-adjust: 100% !important;

}

/*消除ios动画抖动*/
* {
  -webkit-backface-visibility: hidden;
}

::placeholder{
  color:#0068a6 !important;
}
/* 清除浮动 */
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  *zoom: 1;
}


input {
  -webkit-user-select: text !important;
  background: transparent;
  outline: none;
  border: none;
}

input::-webkit-input-placeholder {
  /* placeholder颜色  */
  color: #dedede;
}

/* 页面切换动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter,
.fade-leave-to

/* .fade-leave-active below version 2.1.8 */
  {
  opacity: 0;
}
.page {
  width: 7.5rem;
  min-height: 14.51rem;
  position: absolute;
  top: 0;
  left: 0;
 background-color: #ffeeb6;
  overflow-y: scroll;
  z-index: 1;
}

.dialog {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  overflow: hidden!important;
}

.dialog .frame {
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
}

.home-page {
  width: 7.5rem;
  height: 14.51rem;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url('https://qn.mktzr.com/dttbird/images/index-bg.jpg');
  z-index:1;
  position: relative;
}
.home-page .btn{
  width: 1.58rem;
  height: 0.64rem;
  right:0.2rem;
}
.home-page .btn.btn-rule{
    background: url('https://qn.mktzr.com/dttbird/images/btn-rule.png') no-repeat center center;
  background-size: 100%;
  top: 0.2rem;
}
.home-page .btn.btn-viewAward{
  background: url('https://qn.mktzr.com/dttbird/images/btn-prize.png') no-repeat center center;
  background-size: 100%;
  top:0.9rem;

}

.home-page .btn.btn-start{

  width: 3.67rem;
  height: 1.3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 11.8rem;
  z-index: 2;

}

 .game-page {
            position: relative;
            width: 100%;

            height: 100vh;

        }
        /* 媒体查询 - 移动设备适配 */
        @media (max-width: 768px) {
            .game-page {
                max-height: 100vh;
                height: 100vh;
                max-width: 100%;
                border-radius: 0;
            }

            #gameCanvas {
                border-radius: 0;
                border: none;
            }


        }
        @media (max-height: 500px) and (orientation: landscape) {

            .game-page {
                display: none;
            }
        }
        @media (max-width: 480px) {

        }
        #gameCanvas {
            width: 100%;
            height: 100%;
            display: block;

        }



.result-page{
  width: 7.5rem;
  height: 15.51rem;
  background: url('https://qn.mktzr.com/dttbird/images/result-bg.jpg?v=1') left  top no-repeat;
  background-size: 100% 100%;
  position: relative;
  overflow-y: auto;

}

.result-page .back{
  width: 1.11rem;
  height: 0.54rem;

  position: absolute;

  top: 0.3rem;
  right: .4rem;
}

.result-text{
   width: 5.81rem;
  height: 1.14rem;
  position: absolute;
  top: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
}
.result-page .score{
position: absolute;
    left: 2.2rem;
    top: 2.85rem;

    font-size: 0.4rem;
    font-weight: bold;
    color: #1964bf;
}
.header{
     width: 6.56rem;
    height: 7.21rem;
    position: absolute;
    top: 2.95rem;
    left: calc(50% - 5.8rem / 2)


}
.text-bg{
    width: 6.6rem;
    height: 2.9rem;
    letter-spacing: 0.03rem;
    font-size: 0.28rem;
    overflow-y: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10.55rem;
    color: #fff;
}

.lottery {
  width: 2.47rem;
  height: 0.89rem;
  background: url(https://qn.mktzr.com/dttbird/images/btn-chou.png) left top
  no-repeat;
  background-size: 100% 100%;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: .6rem;

}
.viewprize {
  width: 2.47rem;
  height: 0.89rem;
  background: url(https://qn.mktzr.com/dttbird/images/btn-view.png) left top
  no-repeat;
  background-size: 100% 100%;
 position: fixed;
  left: 0.6rem;
  bottom: .6rem;

}
.result-page .btn-back{
 width: 2.47rem;
  height: 0.89rem;
  background: url(https://qn.mktzr.com/dttbird/images/btn-back.png) left top
  no-repeat;
  background-size: 100% 100%;
  position: fixed;
  right: 0.6rem;
  bottom: .6rem;

}
.result-page .btn-try{
 width: 2.47rem;
  height: 0.89rem;
  background: url(https://qn.mktzr.com/dttbird/images/btn-retry.png) left top
  no-repeat;
  background-size: 100% 100%;
  position: fixed;
  left: 0.6rem;

  bottom: .6rem;

}
.result-page .btn-risk{
    width: 1.56rem;
    height: 0.46rem;
    background: url(https://qn.mktzr.com/dttbird/images/btn-risk.png) left top no-repeat;
    background-size: 100% 100%;
    position: absolute;
    left: 5.5rem;
    top: 3.2rem;
    z-index:99
}














.flex{
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame{
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.captcha-div{
  position:absolute;
}
.risk-dialog .frame{
    width: 6.12rem;
    height: 10.74rem;
    background:url(https://qn.mktzr.com/dttbird/images/risk-dialog.png) no-repeat left top;
    background-size: 100%;
    transform: translate(-50%, -50%);
}
.risk-dialog .frame .back-btn{
    width: 3.43rem;
    height: 0.9rem;
    left: 50%;
    transform: translateX(-50%);

    top:9.3rem
}
.tip-dialog .frame{
  width: 6.12rem;
  height: 6.68rem;
  background:url(https://qn.mktzr.com/dttbird/images/dialog-tips.png) no-repeat left top;
  background-size: 100%;
  transform: translate(-50%, -50%);

}
.tip-dialog .frame .back-btn{
   width: 3.43rem;
    height: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    top:5.1rem
}
.rule-dialog .frame{
  width: 6.12rem;
  height: 8.84rem;
  background:url('https://qn.mktzr.com/dttbird/images/dialog-rule.png?v=3') no-repeat left top;
  background-size: 100%;

}
.rule-dialog .frame .back-btn{
width: 4rem;
    height: 1rem;
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
  transform: translateX(-50%);
}

.fail-dialog .frame{
  width: 6.12rem;
  height:6.33rem;
  background:url('https://qn.mktzr.com/dttbird/images/dialog-fail.png') no-repeat left top;
  background-size: 100%;

}
.fail-dialog .frame .back-btn{
    width: 3.43rem;
    height: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    top:4.6rem
}





.login-dialog .frame{
  width: 6.12rem;
  height: 7.3rem;
  background:url('https://qn.mktzr.com/dttbird/images/dialog-login.png') no-repeat left top;
  background-size: 100%;
}
.login-dialog .frame input{
height: 0.9rem;
    line-height: 0.9rem;
    left: 0.8rem;
    text-align: center;
    font-size: .27rem;
    padding: 0 0.2rem;
    box-sizing: border-box;
    color: #0068a6;
}
.login-dialog .frame input.mobile{
width: 4.6rem;
    top: 2.1rem;
}
.login-dialog .frame input.verifyCode{
       width: 2.55rem;
    top: 3.35rem;
}
.login-dialog .frame .get-sms-btn{
    width: 1.9rem;
    height: 0.9rem;
    right: 0.55rem;
    top: 3.35rem;
    color: #0068a6;
    font-size: 0.25rem;
    line-height: 0.9rem;
    text-align: center;
}
.login-dialog .frame .login-btn{
    width: 3.53rem;
    height: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    top: 5.1rem;
}


.captcha_mask{
  position:fixed;
  left:0;
  top:0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(0,0,0,.5);
  display: none;
}
.captcha_mask .captcha_main{
  position: absolute;
  top: 4.2rem;
  z-index: 2001;
  left: 3.7rem;
  width: 2.7rem;
  height: 1.5rem;
  padding: 0.1rem 0.1rem;
  background: #ccc;
  border-radius: 0.2rem;
  font-size: 0;
}
.captcha_mask .captcha_main::after{
  content: "";
  display: block;
  width: 0;
  height: 0;
  border:0.1rem solid transparent;
  border-top-color: #ccc;
  position: absolute;
  /* top: 0; */
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.2rem;
  z-index: 3;
}
.captcha_mask .captcha_main .captcha_img{
  width:100%;
  height:0.77rem;
  margin:0;
}
.captcha_mask .captcha_main .captcha_value{
  width: 1.39rem;
  margin-top: 0.15rem;
  text-align: center;
  color: #999999;
  vertical-align: baseline;
  background: white;
  height: 0.5rem;
}
.captcha_mask .captcha_main .sendSms{
  margin-left: 0.1rem;
  text-align: center;
  padding: 0.1rem;
  color: white;
  background-color: #0072ff;
  width: 0.64rem;
  height: 0.33rem;
  border-radius: 15%;
  display: inline-block;
  line-height: 0.33rem;
  font-size: 0.2rem;

}
.captcha_mask .captcha_main .captcha_value::placeholder{
  font-size:0.2rem;
}

.red-dialog .frame{
  width: 6.12rem;
  height: 7.3rem;
  background:url('https://qn.mktzr.com/dttbird/images/dialog-red.png') no-repeat left top;
  background-size: 100%;
}

.red-dialog .bonus{
  width: 3rem;
  color: #f45454;
  font-weight: bold;
  font-size: 0.48rem;
  left: 50%;
  transform: translateX(-50%);
  top: 4rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.red-dialog .bonus:after{
  font-size:0.48rem;
  content: "元";
}

.red-dialog .back-btn{
    width: 3.43rem;
    height: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    top: 5.2rem;

}



.music_btn{
  left: 4.2rem;
  width: 0.58rem;
  height: 0.59rem;
  top: 0.3rem;
  z-index: 1100;
}
.music_btn.active{
  animation: rotate 2s linear infinite;
}
@keyframes rotate {
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

