body {
    background-image: url('../images/background_share.png');
    background-size: 100% 100%;
}

.photo {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-left: 2rem;
    margin-top: 1rem;

}

#music_btn {
    color: white;
    position: fixed;
    top: 1rem;
    left: 14rem;
}

.frame {
    width: 80%;
    margin-left: 10%;
    /*margin-top: 8%;*/
    background-color: white;
    border-radius: 10%;
    opacity: 0.9;
}

.gift_group {
    position: absolute;
    top: 5rem;
    left: calc(50% - 4.5rem);
    height: 15rem;
    overflow-x: hidden;
    overflow-y: auto;
    /*background-color: #fff;*/
    /*border-radius: 28px;*/
    /*width: 80%;*/
}

.gift_photo {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    float: left;
}

.gift_info {
    float: left;
    margin-left: 1rem;
    font-size: 0.8rem;
}

.gift_name {
    margin: 0.4rem 0;
}

.gift {
    position: relative;
    margin-top: 1rem;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.btn_gift {
    background-color: rgb(253, 253, 174);
    color: #e13e3d;
    width: 4rem;
    height: 2rem;
    display: block;
    font-size: 1.2rem;
    text-align: center;
    line-height: 2rem;
    border-radius: 0.4rem;
    margin-top: 0.4rem;
}

.btn_finish {
    background-color: #ffffff;
    color: rgb(73, 73, 73);
    width: 4rem;
    height: 2rem;
    display: block;
    font-size: 1.2rem;
    text-align: center;
    line-height: 2rem;
    border-radius: 0.4rem;
    margin-top: 0.4rem;
}

.share_rules {
    padding: 0.2rem;
    background-color: #fff;
    color: #e13e3d;
    width: 1.4rem;
    position: absolute;
    font-size: 1rem;
    top: 11rem;
    right: 0rem;
}

.btn_join {
    background-color: rgb(253, 253, 174);
    color: #e13e3d;
    width: 6rem;
    font-size: 1rem;
    line-height: 1rem;
    padding: 0.3rem;
    display: block;
    text-align: center;
    border-radius: 0.4rem;
    margin: 0rem auto;
}

.pause {
    color: white;
    position: fixed;
    top: 1rem;
    left: 14rem;
}

.finish_photo {
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 0.5rem;
    top: 0.6rem;
}

.rule-box {
    display: none;
    position: absolute;
    top: calc(50% - 10.4rem);
    left: 15%;
    z-index: 9999;
    background-color: white;
    width: 70%;
    border-radius: 1rem;
}

.rule_header img {
    width: 100%;
}

.rule_header {
    width: 90%;
    margin-left: 5%;
    height: 4.8rem;
}

.rule-content {
    font-size: 0.8rem;
    padding: 1rem;
    height: 10rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.rule-content p {
    padding-bottom: 0.2rem;
}

.close {
    width: 8rem;
    background-color: rgb(253, 253, 174);
    color: #e13e3d;
    text-align: center;
    font-size: 1.2rem;
    padding: 0.3rem;
    border-radius: 0.4rem;
    margin: 0.5rem auto;
}

.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;
    -moz-animation: rotate 1s linear infinite;
    -o-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);
    }
}

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

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

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