.maskbox{
    position:fixed;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    min-width: 1000px;
    z-index:99988;
    zoom: 99999;
    background-color: #000;
    opacity: 0.85;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-position: center 0;
}
.showbox{
    position: fixed;
    top:35%;
    left: 50%;
    z-index:99999;
    width: 500px;
    height: 300px;
    margin-left: -250px;
    background: #fff;
    opacity: 0.75;
    border-radius: 5px;
}


/*html, body {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/
.hide {
    /*display: none;*/
    opacity: 0;
}

.draw-gift {
    /*height: 100%;*/
    /*overflow: hidden;*/
    position: fixed;
    top:30%;
    left: 50%;
    z-index:99999;
    width: 340px;
    height: 100%;
    /*margin:0 auto;*/
    margin-left: -170px;
    opacity: 1;
    border-radius: 5px;
}

.draw-gift .draw-img {
    width: 100%;
    position: relative;

    /*position: fixed;*/
    /*top:35%;*/
    /*left: 50%;*/
    /*z-index:99999;*/
    /*width: 500px;*/
    /*height: 300px;*/
    /*margin-left: -250px;*/
    /*background: #fff;*/
    /*opacity: 0.75;*/
    /*border-radius: 5px;*/
}

.draw-gift .draw-img .draw-down {
    position: absolute;
    width: 340px;
    height: 379px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/open-no.png);
    left: 50%;
    margin-left: -170px;
    z-index: 10;
    /*-webkit-animation:draw-down 0.5s ease 1.2s 1 alternate;*/
    /*-webkit-animation-timing-function:cubic-bezier(0.25,0.1,0.25,1);*/
}

@-webkit-keyframes draw-down {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.draw-gift .draw-img .draw-down2 {
    position: absolute;
    width: 340px;
    height: 379px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/open-before.png);
    left: 50%;
    margin-left: -170px;
    z-index: 10;
    /*-webkit-animation:draw-down2 0.5s ease 1.4s 1 alternate;*/
    /*-webkit-animation-timing-function:cubic-bezier(0.25,0.1,0.25,1);*/
}

@-webkit-keyframes draw-down2 {
    0% {
        opacity: 0;
    }
    50% {../images/open-hagen.jpg
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.draw-gift .draw-img .draw-mid {
    position: absolute;
    width: 8rem;
    height:8rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/open.png);
    left: 50%;
    margin-left: -4rem;
    z-index: 100;
    top: 5.9rem;
    /*animation:open 0.3s linear 1s 3 alternate;*/
}

.draw-gift .draw-img .draw-mid-move {
    -webkit-animation: open 0.2s linear 0.5s infinite alternate;
    -webkit-animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: open 0.2s linear 0.5s infinite alternate;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes open {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.9);
    }
}

@-webkit-keyframes open {
    0% {
        -webkit-transform: scale(1);
    }
    100% {
        -webkit-transform: scale(0.9);
    }
}

.draw-gift .draw-img .draw-up {
    position: absolute;
    width: 340px;
    height: 138px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/open-back-1.png);
    left: 50%;
    margin-left: -170px;
    top: 0;
    z-index: 8;
    opacity: 0;
}

.draw-gift .draw-img .draw-up-up {
    position: absolute;
    width: 340px;
    height: 136px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/open-back-2.png);
    left: 50%;
    margin-left: -170px;
    top: 0;
    /*-webkit-transform: rotateX(180deg);*/
    /*-webkit-transform-style: flat;*/
    /*-webkit-transform-origin: bottom;*/
    /*-webkit-animation: draw-up-up 1s linear 0s 0.5 normal;*/
    /*backface-visibility: visible;*/
    /*-webkit-animation-timing-function:cubic-bezier(0.25,0.1,0.25,1);*/
    opacity: 0;
    z-index: 3;
}

.draw-gift .draw-img .draw-list {
    position: absolute;
    width: 12rem;
    height: 12rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/draw-list-bg.jpg);
    left: 50%;
    margin-left: -6rem;
    top: 3.5rem;
    opacity: 0;
    z-index: 9999;
    color: #fff;
}

.draw-gift .draw-img .draw-list img {
    vertical-align: middle;
    position: absolute;
    width: 70%;
    top: 1.6rem;
    left: 15%;
}
.draw-gift .draw-img .draw-list h3{
    vertical-align: middle;
    position: absolute;
    width: 70%;
    top: 1.2rem;
    left: 18%;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6rem;
    padding:0.1rem;
}


#draw-btn {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: #333;
    top: 17rem;
}

#open-pop {
    position:absolute;
    width:100%;
    text-align: center;
    font-size: 0.65rem;
    color:#333;
    top:18rem;
}
