﻿html,form, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.hide {
    /*display: none;*/
    opacity: 0;
}

.draw-gift {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .draw-gift .draw-img {
        width: 100%;
        position: relative;
        margin-top: 6.5rem;
    }

        .draw-gift .draw-img .draw-down {
            position: absolute;
            width: 9rem;
            height: 9.9rem;
            background-position: center;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            background-image: url(../img/open-no.png?ver=1.0.0.1);
            left: 50%;
            margin-left: -4.5rem;
            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: 9rem;
    height: 9.9rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../img/open-before.png?ver=1.0.0.1);
    left: 50%;
    margin-left: -4.5rem;
    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% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.draw-gift .draw-img .draw-mid {
    position: absolute;
    width: 3rem;
    height: 3rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../img/open.png);
    left: 50%;
    margin-left: -1.5rem;
    z-index: 100;
    top: 1.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: 9rem;
    height: 4.15rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../img/open-back-1.png);
    left: 50%;
    margin-left: -4.5rem;
    top: 0;
    z-index: 8;
    opacity: 0;
}

.draw-gift .draw-img .draw-up-up {
    position: absolute;
    width: 9rem;
    height: 4.12rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../img/open-back-2.png);
    left: 50%;
    margin-left: -4.5rem;
    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: 6rem;
    height: 6rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../img/draw-list-bg.jpg);
    left: 50%;
    margin-left: -3rem;
    top: 3.2rem;
    opacity: 0;
    z-index: 8;
}

    .draw-gift .draw-img .draw-list img {
        vertical-align: middle;
        position: absolute;
        width: 100%;
        top: 1.6rem;
        /*left: 1%;*/
    }

#divGXFC {
    vertical-align: middle;
    position: absolute;
    width: 100%;
    top: 2.6rem;
    font-size: 1.0rem;
    font-weight:bold;
    text-align: center;
    color: #e04c42;
    line-height: 0.8rem;
}


#divMoney {
    vertical-align: middle;
    position: absolute;
    width: 100%;
    top: 4.0rem;
    font-size: 1.0rem;
    text-align: center;
    color: #e04c42;
    line-height: 0.8rem;
}

        .draw-gift .draw-img .draw-list div span {
            font-size: 0.6rem;
            color: #e04c42;
        }

#draw-btn {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: #333;
    top: 17rem;
    display:none;
}

#divTop {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight:bold;
    color: #f00;
    top: 0.3rem;
}

#divMaxTip {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight:bold;
    color: yellow;
    top: 12rem;
    z-index:110;
    line-height:1.1rem;
}

#divRedPackList {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    top: 17.2rem;
}

#divRedPack2Cash {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    top: 19.5rem;
}

#divRedPackList input,#divRedPack2Cash input {
    width: 80%;
    background-color:#c4352c;
    color:yellow;
    height:1.45rem;
    line-height:1.3rem;
    border:0;
    border-radius:0.7rem;
}

#divButtom {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    font-weight:bold;
    color: #f00;
    top: 21.5rem;
}
