@font-face {
    font-family: "pop";
    src: url("../fonts/pop.ttf");
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "微软雅黑";
    font-size: 14px;
}

.main {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-image: url('../images/main.png');
    background-size: 100% 100%;
    text-align: center;
}

.head_img {
    width: 3rem;
    height: 3rem;
    border-radius: 2rem;
    position: absolute;
    left: 0.4rem;
    top: 0.4rem;
    z-index: 2;
}

.music_button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
}

.play_button {
    z-index: 2;
    animation: rotate 1s linear infinite;
    -webkit-animation: rotate 1s linear infinite;
    display: block;
}

.pause_button {
    display: none;
    z-index: 2;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(180deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    font-size: 2.4em;
    color: #FFF;
}

.start_game {
    position: absolute;
    /*width: 40%;*/
    left: 30%;
    bottom: 1.3rem;
    z-index: 3;
    background-color: #d11b2c;
    border-radius: 6px;
    padding: 0.4rem 2rem;
    color: #fff;
    font-size: 0.8rem;
    font-family: "pop";
    box-shadow: 3px 3px 3px #ceced3;
}

.christmas_tree {
    width: 80%;
    height: 83%;
    margin: auto;
    position: relative;
    margin-top: 15%;
    background-image: url('../images/christmas_tree.png');
    background-size: 100% 100%;
    animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    /*animation:tree_move 1s;*/
    /*-moz-animation:tree_move 1s;*/
    /*-webkit-animation:tree_move 1s;*/
    /*-o-animation:tree_move 1s;*/
    transform-origin: 50% 120%;
    -moz-transform-origin: 50% 120%;
    -webkit-transform-origin: 50% 120%;
    -o-transform-origin: 50% 120%;
    display: none;
}

.gift {
    position: absolute;
    top: 0;
    width: 24%;
    height: 12%;
    z-index: 2;
    left: 38%;
    display: none;
}

@keyframes mymove {
    from {
        top: 0px;
    }
    to {
        top: 200px;
    }
}

@-moz-keyframes mymove /* Firefox */
{
    from {
        -moz-top: 0px;
    }
    to {
        -moz-top: 200px;
    }
}

@-webkit-keyframes mymove /* Safari and Chrome */
{
    from {
        -webkit-top: 0px;
    }
    to {
        -webkit-top: 200px;
    }
}

@-o-keyframes mymove /* Opera */
{
    from {
        -o-top: 0px;
    }
    to {
        -o-top: 200px;
    }
}

@keyframes tree_move {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(6deg);
    }
    20% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(-6deg);
    }
    40% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(6deg);
    }
    60% {
        transform: rotate(0deg);
    }
    70% {
        transform: rotate(-6deg);
    }
    80% {
        transform: rotate(0deg);
    }
    90% {
        transform: rotate(6deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@-moz-keyframes tree_move /* Firefox */
{
    0% {
        -moz-transform: rotate(0deg);
    }
    20% {
        -moz-transform: rotate(6deg);
    }
    40% {
        -moz-transform: rotate(-6deg);
    }
    60% {
        -moz-transform: rotate(6deg);
    }
    80% {
        -moz-transform: rotate(-6deg);
    }
    100% {
        -moz-transform: rotate(0deg);
    }
}

@-webkit-keyframes tree_move /* Safari and Chrome */
{
    0% {
        -webkit-transform: rotate(0deg);
    }
    10% {
        -webkit-transform: rotate(6deg);
    }
    20% {
        -webkit-transform: rotate(0deg);
    }
    30% {
        -webkit-transform: rotate(-6deg);
    }
    40% {
        -webkit-transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(6deg);
    }
    60% {
        -webkit-transform: rotate(0deg);
    }
    70% {
        -webkit-transform: rotate(-6deg);
    }
    80% {
        -webkit-transform: rotate(0deg);
    }
    90% {
        -webkit-transform: rotate(6deg);
    }
    100% {
        -webkit-transform: rotate(0deg);
    }
}

@-o-keyframes tree_move /* Opera */
{
    0% {
        -o-transform: rotate(0deg);
    }
    20% {
        -o-transform: rotate(6deg);
    }
    40% {
        -o-transform: rotate(-6deg);
    }
    60% {
        -o-transform: rotate(6deg);
    }
    80% {
        -o-transform: rotate(-6deg);
    }
    100% {
        -o-transform: rotate(0deg);
    }
}

.mask_shake {
    /*background-image: url('../images/shaking.png');*/
    /*background-position: 0 50%;*/
    /*background-repeat: no-repeat;*/
    /*background-size: 100% 55%;*/
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.mask_shake_img {
    margin-top: 6%;
    width: 100%;
    height: 56%;
    animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation: tree_move 1s;
    -moz-animation: tree_move 1s;
    -webkit-animation: tree_move 1s;
    -o-animation: tree_move 1s;
}

.shake_prompt {
    font-size: 1.4rem;
    text-align: center;
    color: #FFF;
    font-family: "pop";
    margin-top: 26%;
}

.rule_button {
    position: absolute;
    top: 16%;
    right: 0;
    width: 1.2rem;
    height: 5rem;
    background-color: #ffff00;
    text-align: center;
    color: #ff3900;
    font-size: 1rem;
    padding-top: 0.5rem;
    border-radius: 0.4rem 0 0 0.4rem;
    font-family: "pop";
}

.rule_div {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.rule-box {
    background-color: #ffffff;
    /*display: none;*/
    position: absolute;
    top: calc(50% - 8rem);
    left: 15%;
    width: 11rem;
    border-radius: 17px;
    font-family: "pop";
}

.rule_header {
    width: 100%;
    height: 4rem;
    background-color: rgb(130, 52, 143);
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    text-align: center;
}

.rule_header img {
    width: 80%;
    height: 100%;
}

.rule-content {
    overflow-x: hidden;
    overflow-y: auto;
    height: 12rem;
    text-align: left;
    font-size: 0.8rem;
    padding: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.close_button {
    position: absolute;
    top: -0.8rem;
    right: -0.4rem;
    width: 1.8rem;
    height: 1.8rem;
    z-index: 6;
}

.prize_button {
    position: absolute;
    bottom: 12%;
    right: 0rem;
    width: 2.2rem;
    height: 2.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    border-radius: 1.1rem;
    background-image: url("../images/mygift.png");
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.prize_div {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.prize_box {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 20%;
    left: 10%;
    background-image: url("../images/frame.png");
    background-size: 100% 100%;
    background-color: #FFF;
    border-radius: 28px;
}

.gift_groups {
    overflow-y: auto;
    position: absolute;
    top: 3%;
    left: 2%;
    width: 96%;
    height: 92%;
}

.gift_item {
    width: 100%;
    height: 5.2rem;
    padding: 1rem 1rem 0 1rem;
    position: relative;
}

.prize_img {
    position: absolute;
    left: 14%;
    width: 30%;
    height: 70%;
    border-radius: 6px;
}

.prize_finish {
    position: absolute;
    left: 14%;
    width: 30%;
    height: 70%;
    border-radius: 6px;
    display: none;
}

.prize_name {
    font-size: 1rem;
    font-family: "pop";
    position: absolute;
    left: 52%;
    top: 20%;
}

.clear_button {
    background-color: #e0ddd5;
    color: #e13e3d;
    font-size: 1rem;
    padding: 0 1rem;
    text-align: center;
    line-height: 2rem;
    border-radius: 0.4rem;
    position: absolute;
    left: 52%;
    top: 45%;
    box-shadow: 3px 3px 3px #ceced3;
}

.prize_img_show {
    width: 60%;
    height: 55%;
    margin-top: 10%;
}

.prize_name_show {
    font-size: 1rem;
    font-family: "pop";
    margin-top: 1rem;
    padding: 1rem;
}

.box_group {
    width: 70%;
    height: 7rem;
    left: 15%;
    position: absolute;
    bottom: 2rem;
    z-index: 2;
}

.merry_text {
    position: absolute;
    width: 80%;
    left: 10%;
    height: 7.4rem;
    top: 25%;
    z-index: 2;
}

.share_times {
    position: absolute;
    left: 14%;
    width: 30%;
    height: 20%;
    top: 70%;
    font-size: 1rem;
    color: #000;
    font-family: "pop";
    background-color: rgba(100, 100, 100, 0.6);
    border-radius: 0 0 6px 6px;
}

.unlock_button {
    background-color: #EEEE00;
    box-shadow: 3px 3px 3px #ceced3;
}
