
body,div{display:block;margin:0;padding:0;position:absolute;}
body #ad *.In{opacity:1}
body{
	font-family: "Open+Sans", Arial, Helvetica, sans-serif;
	height: 600px;
	left:0;
	top:0;
	width:300px;
}
#ad{
	background: #ffffff;
	border: black 1px solid;
	box-sizing: border-box;
	color: #1e6db6;
	display: block;
	font-size: 15px;
	height: 600px;
	left: 0;
	overflow: hidden;
	top: 0;
	width: 300px;
}

#bgExitArea { 
	cursor:pointer;
	height: 600px; 
	left:0;
	opacity:0;
	top:0; 
	width: 300px;  
	z-index: 1200;
}

/* begin custom code */
body div div *{
	opacity: 0;
}
#bg{
	background: url(bg.jpg) no-repeat;
	height: 600px;
	left: 0;
	opacity: 1;
	top: 0;
	transition: all .8s linear;
	width: 600px;
}
#bg.p2{
	left: -300px;
}
#bg.p3{
	left: -970px;
}

#flo{
	background-position: -0px -375px; 
	height: 225px;
	left: 300px;
	opacity: 1;
	top: 385px;
	width: 220px;
}
#flo.in{
	left: 79px;
	transition: all .25s ease-out;
}
#logo{
	background: url(logo.svg) no-repeat;
	height: 46px;
	left: -26px;
	opacity: 1;
	position: absolute;
	top: 3px;
	transition: all .5s;
	width: 350px;
	-ms-transform: scale(.4); 
    -webkit-transform: scale(.4); 
    transform: scale(.4);
}
#trex,.s1 #trex div,.s2 .body{opacity: 1;}
#trex{
	left: -610px;
	top: 420px;
}
#trex.in{
	animation: bob .15s infinite alternate; 
	left: 300px;
	transition: left 1s linear;
}

#trex.out2{
	left: 300px;
	opacity: 0;
	transition: left .4s linear;
}
.s2 #trex{
	left: -545px;
	opacity: 0;
	transition: none;
}
.s2 #trex div{
	animation: none; 
}
.s2 #trex.end{
	left: -395px;
	/* left: -385px; */
	opacity: 1;
	top: 610px;
	transform: rotate(-36deg);
	transition: left .25s linear;
}

/*sprites*/
#flo, #trex div, .t1, .t2, .t3,.flying{ 
	background-image: url('sprites.png');
	background-repeat: no-repeat; 
	overflow: hidden; 
} 
/* .leg-b{background-position: -367px -243px; width: 48px; height: 80px; }
.body{background-position: -0px -0px; width: 609px; height: 181px;}
.leg-f{background-position: -512px -181px; width: 91px; height: 169px; }
.t1{background-position: -0px -181px; width: 267px; height: 62px; }
.t2{background-position: -267px -181px; width: 245px; height: 62px; }
.t3{background-position: -191px -243px; width: 176px; height: 118px; } */
.body { background-position: -0px -0px; width: 609px; height: 178px; }
.t1 { background-position: -0px -178px; width: 267px; height: 62px; }
.t2 { background-position: -267px -178px; width: 245px; height: 62px; }

#flo { background-position: -0px -347px; width: 220px; height: 253px; }
.leg-f { background-position: -512px -178px; width: 91px; height: 168px; }
.flying { background-position: -367px -240px; width: 63px; height: 49px; }
.jaw { background-position: -430px -240px; width: 62px; height: 53px; }
.leg-b { background-position: -367px -289px; width: 48px; height: 80px; }

/* Positioning separated in case sprite sheet changes */
.leg-b{animation: swing .2s infinite ease alternate; left: 390px; top: 95px; transform-origin: 60% -20%; transform: rotate(-25deg);}
.jaw{
	left: 537px; 
	opacity: 1; 
	top: 46px; 
	transform: rotate(-10deg);
	transform-origin: 5% 20%;
	transition: all .25s;
}
.roar .jaw{
	transform: rotate(5deg);
}
.leg-f{animation: swing .2s .15s infinite ease alternate; left: 303px; top: 20px; transform-origin: 60% 20%; transform: rotate(-25deg);}
#text{
	opacity: 1;
	top: 150px;
}
#text .out{opacity: 0; transition: all .2s;}
.roar #text{animation: shake .1s 8 linear;}
.t1{transform: scale(0)}
.t1.in{transform: scale(1); transition: all .35s linear; }
.s2 .t1{left: -300px; transition: all .8s linear;}
.t2.in,.t3.in,.t4.in{opacity: 1; }
.t1{left: 15px; opacity: 1; top: 30px;}
.t2{left: 25px; top: 30px; transition: all .5s 1s;}

.t1{
	background: url(jurassic_highRates_300x600.svg) no-repeat;
	background-size: contain;
	height: 110px;
	left: 22px; 
	top: 40px; 
	transition: all .5s;
	width: 255px;
	z-index: 1001;
}

.t2{
	background: url(jurassic_saveOsaurus_300.svg) no-repeat;
	background-size: contain;
	height: 70px;
	left: 21px; 
	top: 60px; 
	transition: all .5s;
	width: 255px;
	z-index: 1001;
}

.t3{left: 12px; top: -22px; transition: all .5s;}
.t3{
	background: url(savings_jurassic_300x600.svg) no-repeat;
	background-size: contain;
	height: 172px;
	left: 48px; 
	top: -65px; 
	transition: all .5s;
	width: 200px;
	transform: scale(1.1);
}

#quote{
	background: url(button_ff8a39_134x36.svg) no-repeat;
	top: 375px;
	height: 36px;
	left: 83px;
	opacity: 0;
	position: absolute;
	transition: all .5s;
	width: 134px; 
	-ms-transform: scale(1); 
    -webkit-transform: scale(1); 
    transform: scale(1); 
}
#quote.in {
	opacity: 1;
	position: absolute;
	transition: all .5s;
}

#swoop{
	height: 200px;
	left: 0px;
	opacity: 1;
	top: 0px;
	transform: rotate(25deg);
	transform-origin: 50% 10%;
	transition: all 1.5s 1s linear;
	width: 63px;	
}
.s2 #swoop{
	left: 50px;
	top: -150px;
	transform: rotate(-65deg);
}
.flying{
	left: 0px;
	opacity: 1;
	top: 150px;
	transform: scale(.5,.8) rotate(-10deg);
	transition: all 1s 1s linear;
}
.s2 .flying{
	transform: scale(1,1) rotate(20deg);
}

@keyframes swing{
	0%		{transform: rotate(-25deg);}
	95%,100%{transform: rotate(25deg);}
}
@keyframes bob{
	0%		{transform: translateY(0px)}
	100%	{transform: translateY(5px)}
}
@keyframes shake{
	from	{transform: translateX(0px)}
	to		{transform: translateX(2px)}
}