html,body{
    height: 100%;
    max-width: 640px;
    margin: 0;
}
*{
    max-width: 640px;
}
.prompt{
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    z-index: 8;
    background-color: rgba(0,0,0,0.6);
}
.prompt img{
    position: absolute;
    width: 80%;
    left: 50%;
    top: 40%;
    transform: translate(-50%,-50%);
}
.card-content{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.card-content img{
    width: 100%;
}
.decorate-content{
    position: fixed;
    width: 100%;
    /*height: 99px;*/
    background: rgba(0,0,0,0.5);
    border-radius: 17px 17px 0 0;
    bottom: 66px; 
}
.decorate-list{
    width: 100%;
    overflow: scroll;
}
.arrow{
    position: absolute;
    width: 41px;
    top: -21px;
    right: 15px;
}
.save{
    position: absolute;
    width: 41px;
    top: -83px;
    right: 17px;
}
.preview{
    position: absolute;
    width: 41px;
    height: 41px;
    top: -147px;
    right: 14px;
    background-image: url("./images/preview.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.decorate-item{
    display: table-cell;
    padding: 19px 8px 8px 8px;
}
.decorate-item img{
    width: 61px;
}
.decorate-active{
    position: relative;
    bottom: 8px;
    box-sizing: border-box;
    color: #ef5992;
    border-bottom: 4px solid;
}
.tabbar{
    position: fixed;
    width: 100%;
    height: 70px;
    bottom: 0;
    background: #fff;
}
.tab-item{
    margin: auto;
    color: #6e6e6e;
    display: inline-block;
    width: 32%;
    text-align: center;
    position: relative;
    bottom: -9px;
}
.tab-item img{
    display: block;
    width: 35px;
    margin: auto;
}
.tab-item span{
    font-size: 16px;
}
.tab-active{
    box-sizing: border-box;
    color: #ef5992;
    border-bottom: 4px solid;
}
.hat-layer{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.hatStamp{
    max-width: 200px;
    height: auto;
    padding: 10px;
    position: absolute;
    /*z-index: 6;*/
}
.hat-stamp-on{
    border: 1px dotted rgba(255, 255, 255, 0.5);
}
.hat-stamp-on  .hat-anchor-ld{
    display: block;
}
.hat-anchor-ld{
    margin-left: -12px;
    margin-top: -12px;
    left: 0;
    top: 0;
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    background-image: url(./images/close.png)
}
.hat-stamp-on .hat-anchor-rd{
    display: block;
}
.hat-anchor-rd{
    display: none;
    margin-right: -12px;
    margin-top: -12px;
    right: 0;
    top: 0;
    background-image: url(../christmashat/images/icon-anchor.png)
}
.hat-anchor-rd,.hat-anchor-ld{
    display: none;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    position: absolute;
    z-index: 217;
}
.hats{
    width: 100px;
}
.page2{
    display: none;
    height: 100%;
    overflow: hidden;
    text-align: center;
}
.result-content{
    margin: 14px auto;
    position: relative;
    max-height: 100%;
}

@media screen and (max-height: 800px){
    .result-content{
        height: 100%;
    }
}
.result-content #result-img{
    max-width: 100%;
    max-height: 98%;
}
@media screen and (max-width: 320px){
    .result-content #result-img{
        max-height: 95%;
    }
}
.result-content #cover{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 12;
}
.result-content .save-tip{
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}