@charset "utf-8";
@keyframes popIn {
	0% {
		opacity: 1;
		transform: scale(.0);
	}
	
	
	70% {
		transform: scale(.9);
	}
	
	100% {
		transform: scale(1);
	}
}
@keyframes popOut {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	
	
	60% {
		transform: scale(0.9);
		opacity: 1;
	}
	100% {
		transform: scale(0);
		opacity: 1;
	}
}
@keyframes popInbeard {
	0% {
		opacity: 1;
		transform: scale(.0);
	}
	25% {
		opacity: 1;
		transform: scale(.3);
	}
	
	50% {
		transform: scale(1.2);
	}
	75% {
		transform: scale(0.9);
	}
	
	100% {
		transform: scale(1);
	}
}

@keyframes talk {
	0%, 5%, 30%, 60%, 80%, 100% {
		bottom: 38%;
	}
	45%, 70% {
		bottom: 36%;
		left: 47.5%;
	}

	15%, 90% {
		bottom: 35%;
		left: 49%;
	}
}
@keyframes blink {
	0%, 40%, 50% , 100% {
		top: 40%;
		height: 7%;
	}
	43%, 44%  {
		top: 39.7%;
		height: 7.6%;
	}
	45%, 49% {
		top: 42.5%;
		height: 0%;
	}
}
#popupcontainer div{
	-webkit-transform:translate3d(0px,0,0);
	transform:translate3d(0px,0,0);
}
#popupcontainer {
	position:absolute;
	display: block;
	*background:#0C3;
	transition:all 0.4s ease 0.1s;
	pointer-events: none;
	z-index:10;
}
#popcerrar {
		display:block;
	position:absolute;
	width:60px ;
	height:60px ;
	left:50% ;
	top:50% ;
	margin-left:-30px ;
	margin-top:-30px;
	border-top-left-radius: 40px;
	border-top-right-radius: 40px;
	border-bottom-left-radius: 40px;
	border-bottom-right-radius: 40px;
	background:transparent url('../images/i_close2.png') center no-repeat;
	transition:background 0.2s;
	background-size: 0px;
}
#popcerrar:hover {
	background:#000 url('../images/i_close2.png') center no-repeat;
	background-size: 42px;
}
#popuphead {
	position:relative;
	display: block;
	width: 140px;
	height: 140px;
	*background:#666;
	overflow:hidden;
	opacity: 0;
	animation: popOut 0.4s;
	**z-index:500;
}
#popuphead.active {
	animation: popIn 0.3s;
	opacity: 1;
}
#popuphead.active #popcerrar{
	pointer-events: all ;
	cursor: pointer;
}
#popuphead.active .beard {
	animation: popInbeard 0.6s;
}
#popuphead.active #eyelid {
	left: 35%;
	width: 30%;
}
#popuphead.active #eyelidleft {
	left: 35%;
}
#popuphead.active #eyelidright {
	left: 50%;
}
#popuphead.active #eyeleft {
	left: 39%;
	animation: blink 4s infinite;
}
#popuphead.active #eyeright {
	left: 54%;
	animation: blink 4s infinite;
}
#popuphead.active .mouthleft {
	left:-50%;
}
#popuphead.active .mouthright {
	right:-50%;
}
#popuphead.active #mouthdown {
	bottom: 38%;
	animation: talk 1s infinite;
}
#eyelid {
	background:#FFF;
	display:;
	position:absolute;
	top: 35%;
	left: 42.5%;
	width: 15%;
	height: 15%;
	transition:all 0.3s ease 0.1s;
	**z-index:500;
    border-radius: 10000px; 
}
.mouth {
	background:#fff;
	display:;
	position:absolute;
	bottom: 43%;
	left: 48%;
	width: 4%;
	height: 4%;
	transition:all 0.3s ease 0.1s;
	**z-index:500;
}
.mouthleft , .mouthright {
	background:#fff;
	position:absolute;
	width: 100%;
	height: 100%;
	-webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px; 
	transition:all 0.3s ease 0.1s;
	**z-index:500;
}
.mouthleft {
	left:0%;
}
.mouthright {
	right:0%;
}
#eyelidleft, #eyelidright {
	background:#FFF;
	position:absolute;
	top: 35%;
	left: 42.5%;
	width: 15%;
	height: 15%;
	-webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px; 
	transition:all 0.3s ease 0.1s;
	**z-index:500;
}
#eyeleft, #eyeright {
	background:#000;
	position:absolute;
	top: 40%;
	left: 47.5%;
	width: 7%;
	height: 7%;
	-webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px; 
	transition:all 0.3s ease 0.1s;
	**z-index:500;
}
#center {
	background:#000;
	display:;
	position:absolute;
	top: 25%;
	left: 25%;
	width: 50%;
	height: 50%;
	-webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px; 
	**z-index:500;
}
.beard {
	position:absolute;
	width: 30%;
	height: 30%;
	background:#000;
	-webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px; 
	**z-index:500;
}
#a.beard {
	top: 15%;
	left: 25%;
}
#b.beard {
	top: 15%;
	right: 25%;
}
#c.beard {
	top: 25%;
	left: 15%;
}
#d.beard {
	top: 25%;
	right: 15%;
}
#e.beard {
	bottom: 25%;
	left: 15%;
}
#f.beard {
	bottom: 25%;
	right: 15%;
}
#g.beard {
	bottom: 15%;
	left: 25%;
}
#h.beard {
	bottom: 15%;
	right: 25%;
}
#balloon {
	position:absolute;
	display:block;
	opacity:0;
	color:#000;
	background:#fff;
	top: 5px;
	right:80%;
	white-space:nowrap;
	margin-top:20px;
	padding:25px;
	font-size:0.8em;
    border-radius: 25px;
	transition:all 0.3s ease, opacity  0s ease 0.2s;
}
#balloontext{
	display:block;
	overflow:hidden;
}
#balloon.active{
	display:block;
	margin:20px;
	opacity:1;
	right:80%;
	transition:all 0.3s ease 0.3s, opacity  0s ease 0.3s;
}

#balloon:before {
content:'';
display:block;
position:absolute;
bottom:15px; /*should be set to 100% */
right:-25px;
width:0;
height:0;
border-color:transparent  transparent  transparent #fff  ; /*border color should be same as div div background color*/
border-style: solid;
border-width: 10px 15px;
}

