html,body{margin:0; padding:0; height:100vh;}
body{
    -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
    font:normal 16px/1.6em "PingFang SC","Hiragino Sans GB","Microsoft Yahei","Arial",sans-serif;
    color:#333;
    overflow: hidden;
    background-color: #f66;
}
ul,ol,li,em,p,span,h1,h2,h3{margin:0; padding:0; font-weight:normal; list-style:none; font-style:normal}
a {text-decoration: none;}
.hide {display: none !important;}

/* loading box*/
#loading {
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 999;
    background: #000 url(paper-logo-w.png) no-repeat center 95%;
    background-size: 50px auto;
}
.loadwrap{
    position: absolute; width: 100%; left: 0; top: 40%;
    text-align: center;
}
.loadwrap .icon {
    display: inline-block; position: relative;
    width: 100px; height: 100px;
    background: url(icon-loading2.png) no-repeat 0 0;
    background-size: 100% auto;
}
.loadwrap .icon img {
    position: absolute; width: 100%; left: 0; top: 0;
    transform-origin: right 60%;
    -webkit-animation: chuizi 0.6s infinite linear;
    animation: chuizi 0.6s infinite linear;
    z-index: 1;

}
@-webkit-keyframes chuizi{
    0%{-webkit-transform:rotate(0deg);}
    50%{-webkit-transform:rotate(20deg);}
    100%{-webkit-transform:rotate(0deg);}
}
@keyframes chuizi{
    0%{transform:rotate(0deg);}
    50%{transform:rotate(20deg);}
    100%{transform:rotate(0deg);}
}
@-webkit-keyframes fadeInOut{
    0%{opacity: 0;}
    50%{opacity: 1;}
    100%{opacity: 0;}
}
@keyframes fadeInOut{
    0%{opacity: 0;}
    50%{opacity: 1;}
    100%{opacity: 0;}
}

.loadbar{
    width: 160px; height: 3px; position: relative;
    background-color: rgba(255,255,255,0.5);
    border-radius: 3px; overflow: hidden; font-size: 0;
}
.loadbar span{
    height: 3px; float: left;
    background-color: rgba(255,255,255,1);
    border-radius: 3px;
    transition: width 0.3s;
}
.loadtips{
    text-align: center;
    color: #fff; font-size: 10px;
}

/* active-info */
.bgmwrap{
    position: fixed; right:15px; top:15px; width:30px; height: 30px; z-index:99;
}
.bgmwrap.show{
    opacity: 1;
    transition: opacity 1s 3s;
}
.bgmwrap .btns {font-size: 0;}
.bgmwrap a {
  width:30px; height: 30px; overflow: hidden;
  background: transparent url(icon-play.png) 0 0 no-repeat;
  background-size: 100%;
  vertical-align: top;
}
#btnMute {background-position: 0 bottom;}
.bgmwrap .active {display: inline-block;}


/* main */
.container {
    position: relative; height: 100%;
    background: transparent url("../img/bg.jpg") no-repeat left top;
    background-size: cover;
}
.cover {
    position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 5;
    background-color: #000;
}
.videowrap {
    position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 1;
}
.videowrap video {
    width: 100%; height: 100%; object-fit: cover;
}
.btn-skip {
    position: absolute; right: 20px; top: 20px; z-index: 5;
    padding: 4px 15px; border: 1px solid rgba(244,214,186,0.4);
    background-color: rgba(244,214,186,0.2);
    color: rgba(244,214,186,1);
    font-size: 12px; line-height: 1em;
}
.btn-start {
    position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; z-index: 6;
    margin: -30px 0 0 -30px;
    border: 1px solid rgba(244,214,186,0.4);
    color: rgba(244,214,186,1);
    font-size: 14px;
    line-height: 1.2em;
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
}
.btn-start::after {
    content: " ";
    position: absolute; left: -1px; top: -1px; width: 60px; height: 60px; z-index: 1;
    border: 1px solid rgba(244,214,186,0.4);
    border-radius: 50%;
    -webkit-animation: quanzoom 1s infinite linear;
            animation: quanzoom 1s infinite linear;
}

@-webkit-keyframes quanzoom{
    to {-webkit-transform: scale(2,2); opacity: 0;}
}
@keyframes quanzoom{
    to {transform: scale(2,2); opacity: 0;}
}


.wrap {height: 100%; overflow: hidden; position: relative; z-index: 1;}
.wrap canvas {width: 100%; vertical-align: top;}
.oldphone {background-color: #ee5351; text-align: center;}
.oldphone canvas {width: auto; height: 100%;}

#tipsText {
    position: fixed; left: 15px; top: 15px; z-index: 100;
}

/* input page */
.namewrap {
    position:fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: transparent url("../img/bg.jpg") no-repeat left top;
    background-size: cover;
    display:flex;
    justify-content:center;
    align-items:center;
}

.namewrap .input-box{
    width: 72vw;
    height: 8vw;
    background: transparent url("../img/bg-input.png") no-repeat center center;
    background-size: 100% 100%;
    box-sizing: border-box;
    display:flex;
    justify-content:center;
    align-items:center;
    padding-left: 13%;
}
.input-box input{
    color: #000;
    outline: none;
    line-height: 12vw;
    font-size: 18px;
    font-family: "微软雅黑";
    background: transparent none;
    border: 0;
    width: 90%;
}
.input-box input::placeholder{
    color: #333;
}

.btn-create {
    display: block;
    text-align: center;
    margin-top: 30px;
}
.btn-create img {
    width: 24vw;
}

.loading2{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
}
.loading2 img{
    position: absolute;
    left: 50%;
    top: 45%;
    width: 30px;
    margin-left: -15px;
}

/* popup */
.popwrap {
    background: transparent url("../img/bg.jpg") no-repeat left top;
    background-size: cover;
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 100;
    opacity: 0;
    visibility: hidden;
    display:flex;
    justify-content:center;
    align-items:center;
}
.popwrap.active {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.5s 0.5s;
            transition: opacity 0.5s 0.5s;
}
.popwrap .inner {
    width: 96%;
    max-height: 84vh;
    margin: auto 2%;
    position: relative;
    z-index: 1;
    text-align: center;
}

.popwrap .inner .ptext {
    width: 34vh;
    min-height: 72vh;
    margin: 0 auto;
    perspective: 1000px;
}
.ptext img {
    width: 100%; vertical-align: top;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    transform-style: preserve-3d;
    display: inline-block;
    transform: rotateY(-90deg);
}
.ptext.active img {
    transition: transform 0.6s 1s;
    transform: rotateY(0deg);
}
.btnrow {
    text-align: center;
    opacity: 0;
}
.popwrap.active .btnrow {
    opacity: 1;
    transition: opacity 0.5s 2s;
}
.btnrow div {
    padding: 10px 0;
}
.btnrow div img {
    width: 48%; vertical-align: top;
}

.btn-reload {
    display: inline-block;
    margin:0 10px;

}
.btn-reload img {
    width: 15vh;
}

.maker {
    text-align: center;
    margin-top: 10px;
    opacity: 0;
}
.popwrap.active .maker {
    opacity: 1;
    transition: opacity 0.5s 2.3s;
}

.maker > img {
    width: 96px;
}
.maker p {
    font-size: 12px;
    line-height: 1.4em;
}
.maker p em {
    font-style: normal; font-weight: bold;
}

/* iPhone 6/7/8 */
@media only screen
    and (device-width: 375px)
    and (device-height: 667px)
    and (-webkit-device-pixel-ratio: 2) {
        .ptext {width: 32vh;}
}
/* iPhone 6/7/8 plus */
@media only screen
    and (device-width: 414px)
    and (device-height: 736px)
    and (-webkit-device-pixel-ratio: 3) {
        .ptext {width: 32vh;}
}

@media (min-width: 992px){
    .container {margin: 0 auto; width:51.8vh; text-align: center;}
    .popwrap .inner {width: 48vh;}
    .namewrap {
        position:fixed;
        left: 50%;
        top: 0;
        width:51.8vh;
        transform: translateX(-50%);
    }

    .namewrap .input-box{
        width: 36vh;
        height: 40px;
    }
    .input-box input {
        line-height: 40px;
    }
    .btn-create img {
        width: 120px;
    }
}