#gamestartMain{
    background: url("http://myccnutest.qiniudn.com/baba-back2.jpg") no-repeat center center;
    background-size:cover;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    -webkit-animation:bgimg 40s linear infinite normal;
    -o-animation:bgimg 40s linear infinite normal;
    -moz-animation:bgimg 40s linear infinite normal;
    animation:bgimg 40s linear infinite normal;

}

@media screen and (max-width: 768px){

    #startgameButton{
        background: url("http://myccnutest.qiniudn.com/baba-notice.png") no-repeat;
        background-size: 100%;
    }
}


.fancy{
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: url("http://myccnutest.qiniudn.com/baba-logo.gif") no-repeat center center;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    opacity: 0;
    width: 50%;
    height: 50%;
    -webkit-animation: fancymodal 2s ease 1s 1 forwards ;
    -o-animation: fancymodal 2s ease 1s 1 forwards ;
    -moz-animation: fancymodal 2s ease 1s 1 forwards ;
    animation: fancymodal 2s ease 1s 1 forwards ;

}

body,html,canvas,div{
    margin:  0;
    padding: 0;
    font-family:'宋体';
}

body{
    background: #fff;
}

a{
    text-decoration: none;

}

h2{
    font-size: 40px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
    display: block;
}

#the{
    display: none;
    margin: auto 0;
    padding: 0;
    bottom: 0;
    vertical-align:middle;
}

#GameStart{
    display: none;
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    top: 0;
    left: 0;
    z-index: 101;
}

#GameOver{
    display: none;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    z-index: 100;
}

#gameoverMain,#gamestartMain{
    position: absolute;
    min-width: 320px;
    min-height: 100%;


}

@-webkit-keyframes bgimg{
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}
@-o-keyframes bgimg{
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}
@-moz-keyframes bgimg{
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}
@keyframes bgimg{
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}

#gameoverText,#gamestartText{
    position: absolute;
    width: 100%;
    text-align: center;

}

#gameoverText{
    color: #34495E;
    top:20%;
}

#gamestartText{
    color: #000;
    top:20%;
}

#yourScore{
    width: 100%;
    text-align: center;
    position: absolute;
    color: #34495E;
    top:40%;
    font-size: 1.1em;
    font-weight: bold;
}

#button{
    margin: 0 auto;
    top: 0; left: 0; bottom: 0; right: 0;
    text-align: center;
    position: absolute;
    top: 60%;
    width: 47%;
    padding-left: 2%;
    min-height: 1px;
    float: left;
    box-sizing:inherit;
}
#button a{
    text-decoration: none;
}


.btn-lg {
    display: block;
    padding: 10px 19px;
    font-size: 17px;
    line-height: 1.471;
    border-radius: 6px;
}

.btn-block {
    white-space: normal;
}

.bluebuttonColor{
    color: #ffffff;
    background-color: #3498db;
}

.col5{
    text-align: center;
    position: relative;
    width: 47%;
    padding-left: 2%;
    margin: 0;
    min-height: 1px;
    float: left;
    box-sizing:inherit;
}


/* game modal */



#startgameButton{
    margin: 0 auto;
    color: #fff;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 75%;
    text-align: center;
    position: absolute;
    top: 50%;
    opacity: 0;
    -webkit-animation: startGameButton 1s ease 3s 1 forwards ;
    -o-animation: startGameButton 1s ease 3s 1 forwards ;
    -moz-animation: startGameButton 1s ease 3s 1 forwards ;
    animation: startGameButton 1s ease 3s 1 forwards ;

}

.redbuttonColor{
    color: #7E442A;
}

@media screen and (min-width: 768px){

    .redbuttonColor{
        color: #fff;
        background-color: #e74c3c;
    }

}

#startgameButton a{

 }

#startgameButton h4{
    /*font-size: 14px;*/
}

#startgameButton p{
    font-size: 12px;
    padding: 20px 10px;
}

@-webkit-keyframes startGameButton{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@-o-keyframes startGameButton{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@-moz-keyframes startGameButton{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes startGameButton{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@-webkit-keyframes fancymodal{
    0%{
        top: -20%;
        opacity: 0;
    }

    100%{
        top: 1%;
        opacity: 1;

    }
}

@-o-keyframes fancymodal{
    0%{
        top: -20%;
        opacity: 0;
    }

    100%{
        top: 1%;
        opacity: 1;

    }
}

@-moz-keyframes fancymodal{
    0%{
        top: -20%;
        opacity: 0;
    }

    100%{
        top: 1%;
        opacity: 1;

    }
}
@keyframes fancymodal{
    0%{
        top: -20%;
        opacity: 0;
    }

    100%{
        top: 1%;
        opacity: 1;

    }
}

/*button*/
.btn {
    border: none;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.4;
    border-radius: 4px;
    padding: 10px 15px;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear;
    transition: border .25s linear, color .25s linear, background-color .25s linear;
}

#Role{
    position: absolute;
    display: none;
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    top: 0;
    left: 0;
    z-index: 101;
    background: url("http://myccnutest.qiniudn.com/baba-gameback.jpg") no-repeat center center;
    background-size:cover;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;

}

#Role .role{
    width: 50%;
    height: 33.3333%;
    float: left;
}

#duoduo,#feynman,#yangyangyang,#grace,#joe,#beier{
    margin: 0 auto;
    height: 210px;
    width: 120px;
    cursor: pointer;
}

#duoduo{
    background: url("http://myccnutest.qiniudn.com/baba-duoduo.gif") no-repeat 0 0;
}

#grace{
    background: url("http://myccnutest.qiniudn.com/baba-grace.gif") no-repeat 0 0;
}

#yangyangyang{
    background: url("http://myccnutest.qiniudn.com/baba-yangyangyang.gif") no-repeat 0 0;
}

#feynman{
    background: url("http://myccnutest.qiniudn.com/baba-feynman.gif") no-repeat 0 0;
}

#joe{
    background: url("http://myccnutest.qiniudn.com/baba-joe.gif") no-repeat 0 0;
}

#beier{
    background: url("http://myccnutest.qiniudn.com/baba-beier.gif") no-repeat  0 0;
}

#share{
    background: url("http://myccnutest.qiniudn.com/baba-share.png") no-repeat;
    background-size: contain;
    width: 150px;
    height: 62px;
    float: right;
    top: 0;
    right: 0;

}

#gameoverMain{
    background: url("http://myccnutest.qiniudn.com/baba-gameback.jpg") no-repeat center center;
    background-size:cover;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    background-color: #fff;
    opacity: 1;
}