
/* flex start */
.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;

    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;

    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.flex-row {
    -webkit-box-orient: horizontal;
    -webkit-flex-flow: row nowrap;
    flex-flow: row nowrap;
}

.flex-column {
    -webkit-box-orient: vertical;
    -webkit-flex-flow: column nowrap;
    flex-flow: column nowrap;
}

.flex-align-stretch {
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
}

.flex-justify-space-between {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}
/* flex end */

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #fff7dc url("../img/bg.jpg") 50% no-repeat;
    background-size: 100% 100%;
}

.hide {
    display: none;
}

/* header start */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: .54rem .4rem 0;
}

.logo {
    position: absolute;
    display: none;
    width: .85rem;
    height: .84rem;
    background: url("../img/logo.png") 50% 50% no-repeat;
    -webkit-background-size: 100% auto;
    background-size: 100% auto;
    top: .4rem;
    left: .54rem;
}

.logo-flag {
    position: absolute;
    width: 1.08rem;
    height: 1.22rem;
    background: url("../img/logo-flag.png") 50% 50% no-repeat;
    -webkit-background-size: 100% auto;
    background-size: 100% auto;
    margin-top: -.38rem;
}

.header--loading .logo {
    display: block;
}

.header--loading .logo-flag {
    display: none;
}

.music-switch {
    position: absolute;
    top: .4rem;
    right: .54rem;
    background: url("../img/music.png") 50% 50% no-repeat;
    width: .8rem;
    height: .8rem;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
}

.music-switch:before {
    content: '';
    position: absolute;
    background: url("../img/music-switch.png") 50% 50% no-repeat;
    width: .27rem;
    height: .58rem;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    right: 1px;
    top: -4px;
    -webkit-transform-origin: 82% 0;
    transform-origin: 82% 0;
    -webkit-transform: rotate(-36deg);
    transform: rotate(-36deg);
    -webkit-transition: -webkit-transform ease-out .4s;
    transition: transform ease-out .4s;
}

.music-switch.active:before {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}

/* header end */

/* loading start */
.loading {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
    background: #fff7dc url("../img/bg.jpg") 50% no-repeat;
    background-size: 100% 100%;
}

.loading .loading-progress {
    position: relative;
    width: 4rem;
    height: 4rem;
    background: url("../img/loading_boat.png") 50% 40% no-repeat;
    -webkit-background-size: 2.1rem auto;
    background-size: 2.1rem auto;
    margin-bottom: 1.2rem;
}

.loading .points {
    position: relative;
    width: 100%;
    height: 100%;
}

.loading .point {
    position: absolute;
    width: 4px;
    height: 4px;
    top: 50%;
    left: 50%;
    margin: -2px 0 0 -2px;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    background: rgba(66, 41, 19, 0.5);
    -webkit-transition: -webkit-transform ease-out 2s, background ease-out .6s;
    transition: transform ease-out 2s, background ease-out .6s;
}

.loading .point.active {
    -webkit-transition: -webkit-transform ease-out 0s, background ease-out 0s;
    transition: transform ease-out 0s, background ease-out 0s;
    background: #422913;
}

.loading .percent {
    position: absolute;
    left: 50%;
    bottom: 10%;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.loading-footer {
    font-size: 0;
    background: url("../img/loading_footer.png") 50% 50% no-repeat;
    width: 100%;
    height: .32rem;
    -webkit-background-size: auto 100%;
    background-size: auto 100%;
    position: absolute;
    left: 0;
    bottom: 1rem;
}

/* loading end */

/* main start */
.main {
    position: relative;
    width: 100%;
    height: 100%;
}

.main .stage-texts {
    position: absolute;
    top: 1.3rem;
    left: .7rem;
    z-index: 5;
}

.main .stage-text {
    width: auto;
    -webkit-animation: fadeInDown ease-out .8s both;
    animation: fadeInDown ease-out .8s both;
}

.main .stage-text-1-1 {
    height: .46rem;
}

.main .stage-text-1-2 {
    height: 1.06rem;
}

.main .stage-text-1-3 {
    height: 1.66rem;
}

.main .stage-text-2-1 {
    height: 2rem;
}

.main .stage-text-2-2 {
    height: .46rem;
}

.main .stage-text-2-3-1 {
    height: 1.66rem;
}

.main .stage-text-2-4-1 {
    height: 1.66rem;
}

.main .stage-text-3-1 {
    height: 1.66rem;
}

.main .stage-text-3-2-1 {
    height: 1.06rem;
}

.main .stage-text-3-2-2 {
    height: 1.06rem;
}

.main .stage-text-3-2-3 {
    height: 1.66rem;
}

.main .stage-text-4-1 {
    height: 1.06rem;
}

.main .stage-text-4-2 {
    height: 1.06rem;
}

.main .stage-text-4-3 {
    height: 1.06rem;
}

.main .stage-text-4-4 {
    height: 1.88rem;
}

.main .stage {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
}

.main .paint-area {
    position: absolute;
    background: url("../img/paint-man-area.png") 50% 50% no-repeat;
    width: 3rem;
    height: 4rem;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.main .paint-area .area-tip {
    position: absolute;
    width: 100%;
    color: #99876d;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.main .paint-area .area-canvas {
    width: 140%;
    height: 120%;
    margin: -10% 0 0 -20%;
}

.main-stage, .bg-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-stage {
    z-index: 2
}

.bg-stage {
    z-index: 1
}

.main .sideshow {
    position: absolute;
    width: 1px;
    height: 1px;
    top: 50%;
    left: 50%;
    z-index: 100;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: sideshow ease-in 1s 2 alternate both;
    animation: sideshow ease-in 1s 2 alternate both;
}
/* main end */

/* share start */
.share {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, .4);
    z-index: 7;
}

.share .title {
    background: url("../img/title_end.png") 50% no-repeat;
    height: 3.16rem;
    -webkit-background-size: auto 100%;
    background-size: auto 100%;
    margin-bottom: 1.66rem;
}

.share .btn-wrapper {
    margin-bottom: .16rem;
    text-align: center;
}

.share .btn {
    display: inline-block;
    width: 2.71rem;
    height: 1.08rem;
    background: url("../img/btns_end.png") 50% 0 no-repeat;
    -webkit-background-size: 2.71rem auto;
    background-size: 2.71rem auto;
}

.share .btn.btn-share {
    background-position: 0 -1.08rem;
}

.share .btn.btn-challenge {
    background-position: 0 -2.16rem;
}

.share-popup {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(66, 41, 19, 0.6);
    z-index: 11;
}

.share-popup:before {
    content: '';
    display: block;
    position: absolute;
    top: .74rem;
    right: .52rem;
    background: url("../img/share.png") 50% no-repeat;
    width: 4.31rem;
    height: 3.09rem;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
}

/* share end */

/* coupon start */
.coupon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    background: url("../img/bg_spec.jpg") 50% no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
}

.coupon .coupon-main {
    background: url("../img/coupon.png") 50% no-repeat;
    height: 6.85rem;
    margin: .5rem 0 1rem;
    -webkit-background-size: auto 100%;
    background-size: auto 100%;
}

.coupon .coupon-getTicket {
    display: block;
    background: url("../img/coupon_btn.png") 50% no-repeat;
    height: 1.54rem;
    -webkit-background-size: auto 100%;
    background-size: auto 100%;
}
/* coupon end */

/* qrcode begin */
.qrcode {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 11;
    text-align: center;
    background: rgba(66, 41, 19, 0.8);
}

.qrcode-content {
    position: absolute;
    width: 80%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.qrcode-close {
    position: relative;
    display: block;
    width: 1rem;
    height: 1rem;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin: 1rem auto -1rem;
    background: rgba(255, 255, 255, 0.51);
}

.qrcode-close:before, .qrcode-close:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 80%;
    left: 50%;
    top: 50%;
    background: rgba(66, 41, 19, 0.6);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}

.qrcode-close:after {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.qrcode-img {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
}

.qrcode-img-item {
    width: 100%;
}

.qrcode-text {
    color: #FFFFFF;
    margin-top: .5rem;
}

/* qrcode end */


@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-12px);
        transform: translateY(-12px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-12px);
        transform: translateY(-12px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes sideshow {
    0% {
        opacity: 0.2;
        box-shadow: 0 0 50px 0 #b8a473;
    }

    60% {
        opacity: 1;
        box-shadow: 0 0 80px 1000px #2c1705;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 80px 1000px #2c1705;
    }
}

@keyframes sideshow {
    0% {
        opacity: 0.2;
        box-shadow: 0 0 50px 0 #b8a473;
    }

    60% {
        opacity: 1;
        box-shadow: 0 0 80px 1000px #2c1705;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 80px 1000px #2c1705;
    }
}

