@import "reset.css";
/*  */
#loading {
	display:block;
	background:#1a1a1a url(../images/loading.gif) center no-repeat;
	width:100%;
	height:100%;
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	z-index:999999;
}
#loading p {
	width:100%;
	height:50px;
	text-align:center;
	position:absolute;
	top:50%;
	margin-top:-15px;
	left:0;
	font-family: Arial, Helvetica, sans-serif;
	font-size:1.5em;
	color:#999;
	z-index:999999999;
}
/* index */
.p-index { 
	position:relative;
	height: 100%;
	width: 100%;
	min-width:320px;
	max-width:640px;
	margin:0 auto;
	overflow: hidden;
	display: none;
	transform-style: preserve-3d;
	-webkit-transform-origin: 0px 0px 0px;
	-webkit-perspective: 200px;
	-webkit-backface-visibility: hidden;
}
.portrait .p-index {
	-webkit-transform: scale(0.4);
	margin-top: -44%;
}
/* m- */
.m-page {
	position:absolute;
	left:0;
	top:0%;
	height:100%;
	width:100%;
	min-width:320px;
	max-width:640px;
	-webkit-transform-origin: 50px 0px 0px;
	display:none;
}
.m-page.cur {
	display:block;
	z-index:3;
}
.m-img {
	width:100%;
	height:100%;
}
/* page0 */
.m-img1 { 
	background-size: 100% 100%;
	position: relative;
}
/* homePage */
.homePage {
	width: 100%;
	height: 100%;
	background: url(../images/homePage.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	/*display: none;*/
}
.homePage em {
	display: block;
	position: absolute;
}
.homePage em:nth-child(1) {
	width: 28%;
	height: 17.09%;
	background: url(../images/logo_babyfs.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1%;
	left: 0;
}
.homePage p:nth-child(2) {
	width: 41%;
	height: 9.97%;
	background: url(../images/start.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 82.5%;
	left: 29.5%;
}
.homePage em:nth-child(3) {
	width: 100%;
	height: 100%;
	background: url(../images/rule.jpg) top center no-repeat;
	background-size: 100% 100%;
	top: 0;
	left: 0;
	display: none;
}
.homePage em:nth-child(4) {
	width: 1.48rem;
	height: 1.33rem;
	background: url(../images/btn_go.png) top center no-repeat;
	background-size: 100% 100%;
	top: 86%;
	left: 3.01rem;
	display: none;
}
/* page */
.page {
	width: 100%;
	height: 100%;
	background: url(../images/bg.jpg) top left no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.page em {
	display: block;
	position: absolute;
}
.page p:nth-child(1) {
	width: 6.88rem;
	height: 0.82rem;
	background: url(../images/question.png) top left no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0.7rem;
	left: 0.62rem;
}
.page em:nth-child(2) {
	width: 1.02rem;
	height: 1.02rem;
	background: url(../images/horn.png) top center no-repeat;
	background-size: 100% 100%;
	top: 0.65rem;
	left: 0.2rem;
}
.page .jigsaw {
	position: absolute;
	top: 2rem;
	left: 0;
}
.page .jigsaw li {
	float: left;
	display: block;
	width: 3.75rem;
	height: 3.75rem;
	position: relative;
	-webkit-tap-highlight-color:rgba(255,255,255,0);
}
.page .jigsaw li img {
	width: auto;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}
.page .jigsaw li img:nth-child(1) {
	opacity: 0;
}
.donut {
	position: absolute;
	-webkit-animation: turn 2s 0s both;
	animation: turn 2s 0s both;
}
.donut-front {
	z-index: 5;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
@-webkit-keyframes turn {
  to {
    -webkit-transform: rotateY(180deg);
  }
}
/*.page .jigsaw li:nth-child(1) {
	top: 2.5rem;
	left: 0;
}
.page .jigsaw li:nth-child(2) {
	top: 2.5rem;
	left: 3.75rem;
}
.page .jigsaw li:nth-child(3) {
	top: 6.25rem;
	left: 0;
}
.page .jigsaw li:nth-child(4) {
	top: 6.25rem;
	left: 3.75rem;
}*/
.page p:nth-child(4) {
	height: 0.6rem;
	position: absolute;
	top: 9.6rem;
	display: none;
}
.page h6:nth-child(5), .page h6:nth-child(6) {
	width: 1.17rem;
	height: 1.17rem;
	position: absolute;
	bottom: 0.2rem;
	display: none;
}
.page h6:nth-child(5) {
	background: url(../images/prev.png) top left no-repeat;
	background-size: auto 100%;
	left: 0.16rem;
}
.page h6:nth-child(6) {
	background: url(../images/next.png) top left no-repeat;
	background-size: auto 100%;
	right: 0.16rem;
}
.page em:nth-child(7) {
	width: 1.02rem;
	height: 1.02rem;
	background: url(../images/horn.png) top center no-repeat;
	background-size: 100% 100%;
	bottom: 0.7rem;
	left: 3.24rem;
	display: none;
}
/* page1 */
.page1 p:nth-child(4) {
	width: 6.15rem;
	background: url(../images/bear_text.png) top left no-repeat;
	background-size: 100% 100%;
	left: 0.675rem;
}
/* page2 */
.page2 p:nth-child(4) {
	width: 5.1rem;
	background: url(../images/bird_text.png) top left no-repeat;
	background-size: 100% 100%;
	left: 1.33rem;
}
/* page3 */
.page3 p:nth-child(4) {
	width: 6.33rem;
	background: url(../images/duck_text.png) top left no-repeat;
	background-size: 100% 100%;
	left: 0.585rem;
}
/* page4 */
.page4 p:nth-child(4) {
	width: 5.86rem;
	background: url(../images/horse_text.png) top left no-repeat;
	background-size: 100% 100%;
	left: 0.82rem;
}
/* clearance */
.clearance {
	width:100%;
	height: 100%;
	background:url(../images/clearanceBg.png) top center no-repeat;
	background-size:100% 100%;
	position:absolute;
	top:0;
	left:0;
	z-index:9;
	display: none;
	-webkit-animation:bounceInDown 1s .2s ease both;
}
.clearance span {
	display: block;
	position:absolute;
}
.clearance span:nth-child(1) {
	width: 28%;
	height: 17.09%;
	background: url(../images/logo_babyfs.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1%;
	left: 0;
}
.onceMore {
	width:56%;
	height:10.11%;
	background:url(../images/btn_onceMore.png) top center no-repeat;
	background-size:auto 100%;
	position:absolute;
	top:78%;
	left:20.5%;
}
@-webkit-keyframes bounceInDown{
0%{opacity:0;
-webkit-transform:translateY(-2000px)}
60%{opacity:1;
-webkit-transform:translateY(30px)}
80%{opacity:1;-webkit-transform:translateY(-10px)}
100%{opacity:1;-webkit-transform:translateY(0)}
}