@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;
}
.homgPage {
	width: 100%;
	height: 100%;
	background: url(../images/homePage.png) center center no-repeat;
	background-size: 100% 100%;
	position: relative;
	/*display: none;*/
}
.homgPage p:nth-child(1) {
	width: 40%;
	height: 8.24%;
	background: url(../images/btn_start.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 82%;
	left: 30%;
}
.homgPage p:nth-child(2) {
	width: 28%;
	height: 15%;
	background: url(../images/logo_babyfs.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1%;
	right: 0;
}
/* look for */
.lookFor {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.lookFor h2:nth-child(1) {
	width: 82%;
	height: 5.39%;
	background: url(../images/text1.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 3.1%;
	left: 9%;
}
.lookFor p:nth-child(2) {
	width: 36%;
	height: 23.98%;
	background: url(../images/head_pig.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 10.94%;
	left: 4.8%;
}
.lookFor p:nth-child(2).active {
	background: url(../images/head_pig_active.png) top center no-repeat;
	background-size: auto 100%;
}
.lookFor p:nth-child(3) {
	width: 40%;
	height: 17.01%;
	background: url(../images/head_dog.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 44.22%;
	left: 5.2%;
}
.lookFor p:nth-child(3).active {
	background: url(../images/head_dog_active.png) top center no-repeat;
	background-size: auto 100%;
}
.lookFor p:nth-child(4) {
	width: 21%;
	height: 25.71%;
	background: url(../images/head_peacock.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 68.59%;
	left: 12.26%;
}
.lookFor p:nth-child(4).active {
	background: url(../images/head_peacock_active.png) top center no-repeat;
	background-size: auto 100%;
}
.lookFor p:nth-child(5) {
	width: 34%;
	height: 19.49%;
	background: url(../images/tail_peacock.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 14.16%;
	left: 58.4%;
}
.lookFor p:nth-child(5).active {
	background: url(../images/tail_peacock_active.png) top center no-repeat;
	background-size: auto 100%;
}
.lookFor p:nth-child(6) {
	width: 17%;
	height: 18.89%;
	background: url(../images/tail_pig.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 44.52%;
	left: 76%;
}
.lookFor p:nth-child(6).active {
	background: url(../images/tail_pig_active.png) top center no-repeat;
	background-size: auto 100%;
}
.lookFor p:nth-child(7) {
	width: 23%;
	height: 19.71%;
	background: url(../images/tail_dog.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 74.43%;
	left: 67.6%;
}
.lookFor p:nth-child(7).active {
	background: url(../images/tail_dog_active.png) top center no-repeat;
	background-size: auto 100%;
}
.lookFor-p2-animate {
	-webkit-animation:positionChange2 1s .2s ease both;
}
@-webkit-keyframes positionChange2{
0%{opacity:1;
-webkit-transform:translate(0,0)}
100%{opacity:0;
-webkit-transform:translate(100px,280px)}
}
.lookFor-p6-animate {
	-webkit-animation:positionChange6 1s .2s ease both;
}
@-webkit-keyframes positionChange6{
0%{opacity:1;
-webkit-transform:translate(0,0)}
100%{opacity:0;
-webkit-transform:translate(-100px,30px)}
}
.lookFor-p3-animate {
	-webkit-animation:positionChange3 1s .2s ease both;
}
@-webkit-keyframes positionChange3{
0%{opacity:1;
-webkit-transform:translate(0,0)}
100%{opacity:0;
-webkit-transform:translate(100px,30px)}
}
.lookFor-p7-animate {
	-webkit-animation:positionChange7 1s .2s ease both;
}
@-webkit-keyframes positionChange7{
0%{opacity:1;
-webkit-transform:translate(0,0)}
100%{opacity:0;
-webkit-transform:translate(-100px,-200px)}
}
.lookFor-p4-animate {
	-webkit-animation:positionChange4 1s .2s ease both;
}
@-webkit-keyframes positionChange4{
0%{opacity:1;
-webkit-transform:translate(0,0)}
100%{opacity:0;
-webkit-transform:translate(120px,-250px)}
}
.lookFor-p5-animate {
	-webkit-animation:positionChange5 1s .2s ease both;
}
@-webkit-keyframes positionChange5{
0%{opacity:1;
-webkit-transform:translate(0,0)}
100%{opacity:0;
-webkit-transform:translate(-120px,250px)}
}
/* result */
.result {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.result p {
	display: none;
}
.result p:nth-child(1) {
  background-color: rgb(253, 69, 74);
  width: 150%;
  height: 20%;
  -webkit-transform:rotate(-10deg);
  position: absolute;
  top: 22.63%;
  right: -30%;
  opacity: 0;
}
.result p:nth-child(2) {
  background-color: rgb(253, 216, 69);
  width: 150%;
  height: 20%;
  -webkit-transform:rotate(-10deg);
  position: absolute;
  top: 42.63%;
  right: -30%;
  opacity: 0;
}
.result p:nth-child(3) {
  background-color: rgb(49, 170, 255);
  width: 150%;
  height: 20%;
  -webkit-transform:rotate(-10deg);
  position: absolute;
  top: 62.63%;
  right: -30%;
  opacity: 0;
}
/*.result-p2-animate {
	-webkit-animation:fadeIn .8s .2s ease both;
}*/
.result-p1-animate {
	-webkit-animation:bounceInRight .8s .8s ease both;
}
.result-p2-animate {
	-webkit-animation:bounceInRight .8s 1.4s ease both;
}
.result-p3-animate {
	-webkit-animation:bounceInRight .8s 2s ease both;
}
@-webkit-keyframes bounceInRight{
0%{opacity:0;
-webkit-transform:rotate(-10deg) translateX(2000px)}
60%{opacity:1;
-webkit-transform:rotate(-10deg) translateX(-30px)}
80%{opacity:1;-webkit-transform:rotate(-10deg) translateX(10px)}
100%{opacity:1;-webkit-transform:rotate(-10deg) translateX(0)}
}
/* wholeImg */
.wholeImg {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.wholeImg p {
	opacity: 0;
}
.wholeImg p:nth-child(1) {
	width: 70%;
	height: 40.85%;
	background: url(../images/whole_pig.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 30.8%;
	left: 15%;
}
.wholeImg p:nth-child(2) {
	width: 72%;
	height: 32.9%;
	background: url(../images/whole_dog.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 39.58%;
	left: 14%;
}
.wholeImg p:nth-child(3) {
	width: 57%;
	height: 47.75%;
	background: url(../images/whole_peacock.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 28%;
	left: 21.5%;
}
.wholeImg-p-animate {
	-webkit-animation:fadeIn .8s 2.6s ease both;
}
@-webkit-keyframes fadeIn{
0%{opacity:0}
100%{opacity:1}
}
/* thankyou */
.thankyou {
	width: 100%;
	height: 100%;
	background: url(../images/thankYou.png) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.thankyou p {
	width: 22%;
	height: 12.51%;
	background: url(../images/onceMore.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 78.11%;
	left: 39%;
}