
#hints-envelope{
	transform: rotate(2deg);
	position: relative;
	cursor: pointer;
	margin: 50px auto;
	width: 250px;
	height: 176px;
	transition: top 1s ease;
	top: 0;
}
#hints-envelope > div{
	background-size: 100% auto;
	width: 100%;
	height: 100%;
	position: absolute;
	transition: transform 1s ease;
}
#hints-envelope-top{
	transition: transform 1s ease, z-index 0.3s ease, filter 1s ease !important;
	transform-origin: center 1px;
	background: url(/img/envelope-top.png) center top no-repeat;
	z-index: 30;
}
#hints-envelope-bot{
	background: url(/img/envelope-bot.png) center top no-repeat;
	z-index: 20;
}
#hints-envelope-bg{
	background: url(/img/envelope-bg.png) center top no-repeat;
	z-index: 10;
}

#hints-envelope:not(.forbidden):hover > #hints-envelope-top{
	transform: rotateX(20deg);

}
#hints-envelope.open{
	top: 250px;
}
#hints-envelope.open > #hints-envelope-top{
	transform: rotateX(170deg) !important;
	filter: brightness(0.45);
	z-index: 14;
}


#hint{
	transition: all 1.5s ease !important;
	font-family: 'Cookie', Helvetica, sans-serif;
	font-size: 24;
	color: #777788;
	padding: 15px;
	background-image: url(img/hint.png);
	background-size: 100% 100% !important;
	height: auto!important;

	width: 250px;
	z-index: 15;
	transform: scaleY(0);
	bottom: 0;
	transform-origin: bottom;
}
#hints-envelope.open #hint{
	transform: scaleY(1);
	bottom: 150px;
}

#hints-envelope.forbidden::before{
	content: 'Si quieres obtener pistas debes estar registrado';
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.4);
	text-align: center;
	padding-top: 10px;
	color: white;
	font-size: 20px;
	display: block;
	position: absolute;
	z-index: 100;
}
#hints-envelope.unavailable::before{
	content: 'No disponible';
	padding-top: 50px;
}

#hints-envelope #hints-envelope-confirm-open{
	border-radius: 5px;
	z-index: 10000;
    background: rgba(90, 100, 115, 0.91);
    text-align: center;
    padding: 20px 10px;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    width: auto;
    height: auto;
}
