*{
    margin:0;
    padding:0;
}
body{
    position: relative;
    color: #fff;
    font: 12px/1.5 "Hiragino Sans GB","Microsoft YaHei",tahoma,arial,\\5b8b\4f53,sans-serif;;
}
body,body #dialog{
    background: url(http://zq83.tecenet.com/game/hyjj/images/game-bg.jpg) no-repeat center bottom #cceaf8;
    -webkit-background-size: 100% auto;
    background-size: 100% auto;
}
.hide{
    display: none;
}
.grid{
}
.page{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


#loading{
    display: block;
    font-size: 30px;
    line-height: 500px;
    text-align: center;
    color: #074285;
}

#index .logo{

}
.logo img{
    width: 9rem;
    display: block;
    margin: 0.5rem auto;
}
.pause-logo img{
    display: block;
    margin: 0.5rem auto;
    width: 3.95rem;
}
.gameover .pause-logo img{
    margin: 0 auto 0.5rem;
}


#index .banner{
    width: 8.5rem;
    height: 9.25rem;
    margin: 0 auto;
    background: url(http://zq83.tecenet.com/game/hyjj/images/banner.png) no-repeat center top;
    -webkit-background-size: 8.5rem auto;
    background-size: 8.5rem auto;
}


#room{

}

#room header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 16px;
    color: #074285;
}
#room header .lv{
    position: absolute;
    width: 80px;
    height: 50px;
    left: 10px;
    top: 0;
}
#room header .lv em{
    font-style: normal;
}
#room header .btn-pause{
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.95rem;
    height: 0.95rem;
    padding: 0;
    margin: 0;
    background-position: 0 -9rem;
}
#room header .time{
    font-size: 20px;
    font-weight: bold;
    background-color: #74b7d7;
    color: #074285;
    padding: 5px 10px;
    border-radius: 0.25rem;
}
#room header .time.danger{
    color: #FF0505;
    background-color: #fff;
}

#room .logo{
    position: absolute;
    bottom:0.2rem;
    left: 50%;
    margin-left: -4.5rem;

}
#help{
    height: 30px;
    font-size: 16px;
    color: #FFA1A1;
    text-align: center;
}

#box{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background-color: #ddd;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
}
#box span{
    display: block;
    float: left;
    border-radius: 10px;
    cursor: pointer;
    border: 5px solid #ddd;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

#box.lv2 span{
    width: 50%;
    height: 50%;
}
#box.lv3 span{
    width: 33.33%;
    height: 33.33%;
}
#box.lv4 span{
    width: 25%;
    height: 25%;
}
#box.lv5 span{
    width: 20%;
    height: 20%;
    border-width: 3px;
}
#box.lv6 span{
    width: 16.666%;
    height: 16.666%;
    border-width: 3px;
}
#box.lv7 span{
    width: 14.28%;
    height: 14.28%;
    border-width: 3px;
}
#box.lv8 span{
    width: 12.5%;
    height: 12.5%;
    border-width: 3px;
}
#box.lv9 span{
    width: 11.111%;
    height: 11.111%;
    border-width: 3px;
}
#box span img{
    width: 100%;
}

#dialog{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
#dialog .inner{
    height: 100%;
    width: 100%;
    text-align: center;
    font-size: 20px;
}
#dialog .inner .content{
    position: relative;
    padding-top: 1.25rem;
    z-index: 2;
}
#dialog .inner h3{
    line-height: 60px;
    font-size: 40px;
    margin: 0;
    color: #321;
}
#dialog .inner .pause h3{
    color: #074285;
}

#dialog .inner p{
    color: #074285;
}

#dialog .gameover h3{
    color: #de382c;
}
#dialog .gameover .btn-jd{
    background-position: 0 0;
    letter-spacing: 0;
}

.xc-box{
    font-size: 0.35rem;
    margin-top: 0.75rem;
    color: #074285;
}
.xc-box .links{
    margin-top: 0.5rem;
}
.xc-box .links>a{
    display: inline-block;
    padding: 0.2rem 0.4rem;
    margin: 0 0.2rem;
    background-color: #074285;
    color: #fff;
    border-radius: 0.125rem;
    box-shadow: 0px 2px 0px #002e5a;
    text-shadow: 1px 1px 0px rgba(0,0,0,.4);
}
#dialog #msg p{
    display: inline-block;
    padding: 0.25rem 0.375rem;
    margin-top: 0.25rem;
    background-color: #e2bc80;
    color: #3a230a;
    font-size: 0.4rem;
    border-radius: 0.25rem;
}

.btns{
    text-align: center;
}
.btn {
    position: relative;
    display: inline-block;
    width: 5.0rem;
    height: 1.625rem;
    margin: 0.1rem 0.75rem;
    padding: 0;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1.625rem;
    letter-spacing: 0.05rem;
    background-image: url(http://zq83.tecenet.com/game/hyjj/images/btn-bg.png);
    background-repeat: no-repeat;
    background-color: transparent;
    -webkit-background-size: 5.0rem auto;
    background-size: 5.0rem auto;
    text-shadow: 1px 1px 0px rgba(0,0,0,.4);
    color: #fff;
    border: none;
    border-radius: 7px;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
}
a.btn {
    text-decoration: none !important;
}

.btn.play-btn{
    background-position: 0 0;
}
.btn.game-info,.btn-wechat{
    background-position: 0 -1.625rem;
}
.gameover .btn.btn-wechat{
    background-position: 0 -3.25rem;
}
.btn.btn-restart{
    background-position: 0 -1.625rem;
}


.btn.btn-bottom{
    position: absolute;
    width: 300px;
    padding: 0;
    bottom: 20px;
    left: 50%;
    margin-left: -150px;
}



.btn-wrap .boyaa-logo{
    display:block;
    height: 50px;
    width: 100px;
    margin: 0 auto;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
}
.btn-wrap .boyaa-logo img{
    max-width: 100%;
}

.dialog-wrap{
    position: absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background-color: rgba(0,0,0,.5);
}

.dialog{
    position: fixed;
    top:50%;
    left:50%;
    width: 7.5rem;
    height: 10.75rem;
    margin:  -5.0rem 0 0 -3.75rem; 
    background: url(http://zq83.tecenet.com/game/hyjj/images/dialog-bg.png) no-repeat center top;
    -webkit-background-size: 7.5rem 10.75rem;
    background-size: 7.5rem 10.75rem;
}
.dialog-box{
    margin: 1.4rem 0.6rem 0 0.6rem;
    font-size: 0.4rem;
    color: #996425;
}
.dialog-box .hd{
    font-weight: bold;
    margin-top: 0.2rem;
}
.dialog-box .btn-close{
    position: absolute;
    right: -0.08rem;
    top: 0.55rem;
    margin: 0;
    display: block;
    width: 0.625rem;
    height: 0.625rem;
    background-position: -3.25rem -8.125rem;
}
.dialog-box .bd{
    font-size: 0.35rem;
    text-align: justify;
}
.dialog-box .bd p{
    line-height: 1.7;
    margin-top: 0.125rem;
}
.dialog-box .btn-ft-close{
    display: block;
    width: 2.25rem;
    height: 0.8rem;
    margin: 0.2rem auto;
    background-position: 0 -8.125rem;
}
.hualala{
    position: absolute;
    width: 3rem;
    left: 0;
    top:1rem;
    z-index: 1;
}

.wechat-share-guide{
    position: fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:99;
    background: rgba(0,0,0,0.7);
}
.wechat-share-guide img{
    width:95%;
    margin:2.5%;
}
.wechat-share-guide .close-btn{
    display: block;
    width:80px;
    height:80px;
    margin:20px auto 0;
    background-color: #fff;
    color: #7faa13;
    font-size: 30px;
    text-align: center;
    line-height:80px;
    border-radius:50%;
    text-decoration: none;
}

@media all and (orientation:landscape) {
    #room header{
        height: 100%;
        width: 80px;
    }
    #room header .lv{
        left: 0;
    }

    #room header .time{
        display: inline-block;
        height: 50px;
        width: 100%;
        padding: 0;
        position: absolute;
        top: 50%;
        left: 0;
        margin-top: -25px;
    }
    #room header .btn-pause{
        top: auto;
        bottom: 15px;
    }

    #box{
        top: 0;
        left: 80px;
    }

    #dialog{
        padding-top: 0;
        padding-left: 80px;
    }
    #dialog .inner .content{
        padding-top: 100px;
    }
}

@media all and (max-width: 361px){

    #box.lv1 span,#box.lv2 span,#box.lv3 span,#box.lv4 span{
        border-width: 2px;
        border-radius: 5px;
    }

    #box.lv5 span,#box.lv6 span,#box.lv7 span,#box.lv8 span,#box.lv9 span{
        border-width: 1px;
        border-radius: 3px;
    }
}

