@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: url(../images/bg.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: relative;
}
/* rule */
.rule {
	width: 100%;
	height: 100%;
	background: url(../images/rule.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: relative;
	/*display: none;*/
}
.rule p {
	width: 41%;
	height: 6.74%;
	background: url(../images/btn_start.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 87%;
	left: 29.5%;
}
.logo {
	width: 28%;
	height: 17.09%;
	background: url(../images/logo_babyfs.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1%;
	left: 0;
	z-index: 9;
}
/* part */
.part {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.part p:nth-child(1) {
	width: 54%;
	height: 36.88%;
	background: url(../images/kid.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 70.31%;
	left: 26%;
}
.part p:nth-child(2) {
	width: 36%;
	height: 21.06%;
	background: url(../images/thinkDeeply.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 58%;
	left: 54%;
	opacity: 0;
}
.part p:nth-child(3) {
	width: 44%;
	height: 23.53%;
	position: absolute;
	top: 18%;
	left: 8.26%;
	opacity: 0;
}
.part span:nth-child(4) {
	font-size: 1.2rem;
	color: rgb(106,57,6);
	line-height: 2rem;
	text-shadow: .5px 1px 2px rgb(0,0,0);
	position: absolute;
	top: 42%;
	opacity: 0;
}
.part p:nth-child(5) {
	width: 44%;
	height: 23.53%;
	border-radius: 30px;
	position: absolute;
	top: 18%;
	left: 52.66%;
	opacity: 0;
}
.part span:nth-child(6) {
	font-size: 1.2rem;
	color: rgb(106,57,6);
	line-height: 2rem;
	text-shadow: .5px 1px 2px rgb(0,0,0);
	position: absolute;
	top: 48%;
	opacity: 0;
}
.part em:nth-child(7) {
	display: block;
	width: 33%;
	height: 20%;
	border-radius: 80px;
	background-color: rgba(0,0,0,0.6);
	position: absolute;
	top: 19.6%;
	left: 11%;
	display: none;
}
.part em:nth-child(8) {
	display: block;
	width: 25%;
	height: 13.04%;
	background: url(../images/wrong.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 46.92%;
	left: 15%;
	opacity: 0;
}
.part em:nth-child(9) {
	display: block;
	width: 29%;
	height: 12.81%;
	background: url(../images/right.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 46.47%;
	left: 60%;
	opacity: 0;
}
.part p:nth-child(10) {
	width: 96%;
	height: 52.77%;
	background: url(../images/light.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 58%;
	left: -5%;
	display: none;
}
.part p:nth-child(11) {
	width: 86%;
	height: 45.5%;
	background: url(../images/kid_no2.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 63.26%;
	left: 19.2%;
	display: none;
}
.part p:nth-child(11) em {
	display: block;
	width: 33%;
	height: 43.82%;
	background: url(../images/kid_no_hand.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 10.78%;
	left: 60%;
	/*opacity: 0;*/
}
.part p:nth-child(12) {
	width: 76%;
	height: 40.32%;
	background: url(../images/kid_yes.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 66%;
	left: 15%;
	display: none;
}
.part p:nth-child(13) {
	width: 91%;
	height: 45.5%;
	position: absolute;
	top: 18.36%;
	left: 11.86%;
	display: none;
}
.part p:nth-child(14) {
	font-size: 1.5rem;
	color: rgb(106,57,6);
	line-height: 2rem;
	text-shadow: .5px 1px 2px rgb(0,0,0);
	position: absolute;
	top: 5%;
	left: 34%;
	display: none;
}

.part h5.btn_prev {
	width: 12%;
	height: 6%;
	background: url(../images/btn_prev.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	bottom: 1.2%;
	left: 3.3%;
}
.part h5.btn_next {
	width: 25%;
	height: 4.12%;
	background: url(../images/btn_next.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	bottom: 1.2%;
	right: 3.3%;
}
/* part1 */
.part1 {}
.part1 p:nth-child(3) {
	background: url(../images/part1_no.png) top left no-repeat;
	background-size: auto 100%;
}
.part1 span:nth-child(4) {
	left: 9%;
}
.part1 span:nth-child(6) {
	left: 58%;
}
.part1 p:nth-child(5) {
	background: url(../images/part1_yes.png) top left no-repeat;
	background-size: auto 100%;
}
.part1 p:nth-child(13) {
	background: url(../images/part1_yes_right.png) top left no-repeat;
	background-size: auto 100%;
	opacity: 0;
}
/* part2 */
.part2 {}
.part2 p:nth-child(3) {
	background: url(../images/part2_no.png) top left no-repeat;
	background-size: auto 100%;
}
.part2 span:nth-child(4) {
	left: 6%;
}
.part2 span:nth-child(6) {
	left: 54%;
}
.part2 p:nth-child(5) {
	background: url(../images/part2_yes.png) top left no-repeat;
	background-size: auto 100%;
}
.part2 p:nth-child(13) {
	background: url(../images/part2_yes_right.png) top left no-repeat;
	background-size: auto 100%;
	opacity: 0;
}
/* part3 */
.part3 {}
.part3 p:nth-child(3) {
	background: url(../images/part3_no.png) top left no-repeat;
	background-size: auto 100%;
}
.part3 span:nth-child(4) {
	left: 6%;
}
.part3 span:nth-child(6) {
	left: 58%;
}
.part3 p:nth-child(5) {
	background: url(../images/part3_yes.png) top left no-repeat;
	background-size: auto 100%;
}
.part3 p:nth-child(13) {
	background: url(../images/part3_yes_right.png) top left no-repeat;
	background-size: auto 100%;
	opacity: 0;
}
/* part4 */
.part4 {}
.part4 p:nth-child(3) {
	background: url(../images/part4_no.png) top left no-repeat;
	background-size: auto 100%;
}
.part4 span:nth-child(4) {
	font-size: 1.1rem;
	left: 4%;
}
.part4 span:nth-child(6) {
	font-size: 1.1rem;
	left: 48%;
}
.part4 p:nth-child(5) {
	background: url(../images/part4_yes.png) top left no-repeat;
	background-size: auto 100%;
}
.part4 p:nth-child(13) {
	background: url(../images/part4_yes_right.png) top left no-repeat;
	background-size: auto 100%;
	opacity: 0;
}
/* part5 */
.part5 {}
.part5 p:nth-child(3) {
	background: url(../images/part5_no.png) top left no-repeat;
	background-size: auto 100%;
}
.part5 span:nth-child(4) {
	left: 3%;
}
.part5 span:nth-child(6) {
	left: 50%;
}
.part5 p:nth-child(5) {
	background: url(../images/part5_yes.png) top left no-repeat;
	background-size: auto 100%;
}
.part5 p:nth-child(13) {
	background: url(../images/part5_yes_right.png) top left no-repeat;
	background-size: auto 100%;
	opacity: 0;
}
.thinkDeeply-animate {
	-webkit-animation:fadeInUp 1s .2s ease both;
}
@-webkit-keyframes fadeInUp{
0%{opacity:0;
-webkit-transform:translateY(20px)}
100%{opacity:1;
-webkit-transform:translateY(0)}
}
.noImg-animate {
	-webkit-animation:rotateInDownLeft 1.4s .6s ease both;
}
@-webkit-keyframes rotateInDownLeft{
0%{
	opacity:0;
	-webkit-transform-origin:left center;
	-webkit-transform:rotate(-180deg) translateX(-200px);
}
100%{
	opacity:1;
	-webkit-transform-origin:left center;
	-webkit-transform:rotate(0) translateX(0);
}
}
.yesImg-animate {
	-webkit-animation:rotateInDownRight 1.4s .6s ease both;
}
@-webkit-keyframes rotateInDownRight{
0%{
	opacity:0;
	-webkit-transform-origin:right center;
	-webkit-transform:rotate(180deg) translateX(200px);
}
100%{
	opacity:1;
	-webkit-transform-origin:right center;
	-webkit-transform:rotate(0) translateX(0);
}
}
.text-animate {
	-webkit-animation:fadeIn 1s 1.2s ease both;
}
@-webkit-keyframes fadeIn{
0%{opacity:0}
100%{opacity:1}
}
.fadeIn {
	-webkit-animation:fadeIn 1s ease both;
}
.hand-animate {
	-webkit-animation:beckon .6s linear infinite alternate;
}
@-webkit-keyframes beckon{
0%{
	-webkit-transform-origin:center bottom;
	-webkit-transform:rotate(5deg) translateX(-5px);
}
100%{
	-webkit-transform-origin:center bottom;
	-webkit-transform:rotate(-5deg) translateX(5px);
}
}
.light-animate {
	-webkit-animation:rotate360 6s linear infinite;
}
@-webkit-keyframes rotate360{
0%{
	-webkit-transform:rotate(0deg);
}
100%{
	-webkit-transform:rotate(360deg);
}
}
.imgBig-animate {
	-webkit-animation:pulse1 1.6s .2s ease both;
}
@-webkit-keyframes pulse1{
0%{opacity:0;-webkit-transform:scale(0.8);}
30%{opacity:1;-webkit-transform:scale(1.2);}
60%{opacity:1;-webkit-transform:scale(0.6);}
100%{opacity:1;-webkit-transform:scale(1);}
}
/* end */
.end {
	width: 100%;
	height: 100%;
	background: url(../images/end_bg.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.end span, .end em {
	display: block;
	position: absolute;
}
.end span:nth-child(1) {
	width: 17%;
	height: 8.47%;
	background: url(../images/star.png) top left no-repeat;
	background-size: auto 100%;
	top: 51%;
	left: 26%;
	-webkit-transform:rotate(-10deg);
	-webkit-animation:star1Animate 1s .2s ease-out both;
}
.end span:nth-child(2) {
	width: 17%;
	height: 8.47%;
	background: url(../images/star.png) top left no-repeat;
	background-size: auto 100%;
	top: 49.02%;
	left: 43.2%;
	-webkit-animation:star2Animate 1s .6s ease-out both;
}
.end span:nth-child(3) {
	width: 17%;
	height: 8.47%;
	background: url(../images/star.png) top left no-repeat;
	background-size: auto 100%;
	top: 51.49%;
	left: 59.06%;
	-webkit-transform:rotate(15deg);
	-webkit-animation:star3Animate 1s 1.2s ease-out both;
}
.end em:nth-child(4) {
	width: 20%;
	height: 10.41%;
	background: url(../images/btn_onceMore.png) top center no-repeat;
	background-size: auto 100%;
	top:80.95%;
	left: 40%;
	-webkit-animation:rotate360 3s linear infinite;
}
@-webkit-keyframes rotate360{
0%{-webkit-transform:rotate(0deg)}
100%{-webkit-transform:rotate(360deg)}
}
.end em:nth-child(5) {
	width: 30%;
	height: 15%;
	background: url(../images/btn_showShare.png) top left no-repeat;
	background-size: auto 100%;
	top: 2%;
	right: 2%;
}
.showShare-animate {
	-webkit-animation:pulse 1.6s ease infinite;
}
@-webkit-keyframes pulse{
0%{-webkit-transform:scale(1)}
50%{-webkit-transform:scale(1.1)}
100%{-webkit-transform:scale(1)}
}
@-webkit-keyframes movement {
	0%{-webkit-transform: translateX(0)}
	30%{-webkit-transform: translateX(3px)}
	60%{-webkit-transform: translateX(0px)}
	100%{-webkit-transform: translateX(-3px)}
}
@-webkit-keyframes star1Animate {
	0%{-webkit-transform: translate(-300px,500px)}
	100%{-webkit-transform: translate(0)}
}
@-webkit-keyframes star2Animate {
	0%{-webkit-transform: translate(300px,500px)}
	100%{-webkit-transform: translate(0)}
}
@-webkit-keyframes star3Animate {
	0%{-webkit-transform: translate(500px,500px)}
	100%{-webkit-transform: translate(0)}
}
/* sharePage */
.sharePage {
	width: 100%;
	height: 100%;
	background: url(../images/share_bg.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: none;
}
.sharePage em {
	display: block;
	position: absolute;
}
.sharePage p:nth-child(1) {
	width: 53%;
	height: 28.93%;
	position: absolute;
	top: 44.9%;
	left: 23.5%;
	z-index: 2;
}
.sharePage p:nth-child(1) img {
	width: auto;
	height: 100%;
}
.sharePage p:nth-child(2) {
	width: 36%;
	height: 11.84%;
	background: url(../images/btn_share.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 2%;
	right: 1%;
	-webkit-animation:fadeInUp01 1.6s ease infinite;
}
.sharePage em:nth-child(3) {
	display: block;
	width: 11%;
	height: 5.24%;
	background: url(../images/close.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1.5%;
	left: 2.5%;
}
@-webkit-keyframes fadeInUp01{
0%{
-webkit-transform:translateY(-10px)}
50%{
-webkit-transform:translateY(0px)}
100%{
-webkit-transform:translateY(-10px)}
}
.sharePage-animate {
	-webkit-animation:shareSizeChange 1s .2s ease both;
}
@-webkit-keyframes shareSizeChange {
	0%{opacity:1;-webkit-transform:scale(1) translate(0)}
	100%{opacity:0;-webkit-transform:scale(0.3) translate(300px,-800px)}
}

/* sony+mi */
@media only screen and (min-width: 360px) and (max-width: 383px) {
	.part p:nth-child(11) em {
		left: 54%
	}
	.part em:nth-child(7) {
		left: 9%;
	}
}
/* 5s*/
@media only screen and (min-width: 320px) and (max-width: 359px) {
	.part2 span:nth-child(6) {
		left: 46%;
	}
	.part4 span:nth-child(6) {
		font-size: 1.1rem;
		left: 44%;
	}
	.part5 span:nth-child(6) {
		left: 46%;
	}

}