@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:750px;
	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:750px;
	-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: url(../images/bg.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: relative;
}
.m-img1 em, .m-img1 span {
	display: block;
	position: absolute;
}
/* logo */
.logo {
	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;
	z-index: 99;
}
/* 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 p:nth-child(1) {
	width: 2.99rem;
	height: 1.33rem;
	background: url(../images/btn_start.png) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 82.45%;
	left: 2.255rem;
}
/* rule */
.rule {
	width: 100%;
	height: 100%;
	background: url(../images/rule.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.rule em:nth-child(1) {
	width: 0.94rem;
	height: 1.17rem;
	background: url(../images/hint_hand.png) top left no-repeat;
	background-size: 100% 100%;
	top: 84.78%;
	left: 2.3rem;
	z-index: 2;
	-webkit-animation: moveUpDown 1s infinite;
}
@-webkit-keyframes moveUpDown {
	0% { -webkit-transform: translateY(20px);}
	100% { -webkit-transform: translateY(0);}
}
.rule p:nth-child(2) {
	width: 1.48rem;
	height: 0.9rem;
	background: url(../images/btn_go.png) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 81.18%;
	left: 3.01rem;
	z-index: 1;
}
/* page */
.page {
	width: 6.6rem;
	height: 11.4rem;
	position: absolute;
	top: 7.57%;
	left: 0.42rem;
	display: none;
}
.page p {
	float: left;
	width: 2.2rem;
	height: 3.8rem;
	position: relative;
}
.page p img {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 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);
  }
}







/* right */
.right {
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.6);
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.right span {
	display: block;
	position: absolute;
}
.right span:nth-child(1) {
	width: 100%;
	height: 100%;
	background: url(../images/right.png) center center no-repeat;
	background-size: 100% 100%;
	top: 0;
	left: 0;
	display: none;
	-webkit-animation:pulseRight 1s .6s ease both;
}
.right span:nth-child(2) {
	width: 59%;
	height: 7.72%;
	background: url(../images/next.png) center center no-repeat;
	background-size: 100% 100%;
	top: 80%;
	left: 20.5%;
	display:none;
}
@-webkit-keyframes pulseRight{
0%{opacity:0;-webkit-transform:scale(0.3)}
40%{-webkit-transform:scale(1.6)}
80%{-webkit-transform:scale(0.8)}
90%{-webkit-transform:scale(1.2)}
100%{opacity:1;-webkit-transform:scale(1)}
}
/* end */
.end {
	width:100%;
	height: 100%;
	background-color: #00b5ee;
	position:absolute;
	top:0;
	left:0;
	z-index: 9;
	display: none;
}
.end span:nth-child(1) {
	width: 100%;
	height: 100%;
	background: url(../images/end_bg.png) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-animation:shake 20s .2s linear infinite alternate;
}
@-webkit-keyframes shake{
0%,100%{-webkit-transform:translateX(0);}
10%,30%,50%,70%, 90%{-webkit-transform:translateX(-8px);}
20%,40%,60%,80%{-webkit-transform:translateX(8px);}
}
.end span:nth-child(2) {
	width: 5.85rem;
	height: 6.86rem;
	background: url(../images/end_img.png) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 18.74%;
	left: 0.825rem;
	-webkit-animation:titlePulse .8s .5s ease both;
}
@-webkit-keyframes titlePulse{
0%{opacity:0;-webkit-transform:scale(0.2)}
60%{opacity:1;-webkit-transform:scale(1.5)}
100%{opacity:1;-webkit-transform:scale(1)}
}
.end h4:nth-child(3) {
	width: 1.38rem;
	height: 1.39rem;
	background: url(../images/btn_onceMore.png) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	bottom: 0.3rem;
	left: 3.06rem;
	z-index: 5;
	-webkit-animation: rotate360 10s linear infinite;
}
@-webkit-keyframes rotate360 {
	0% {
		-webkit-transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
	}
}


