/** POP IN ST-VALENTIN **/
.close-pop-in {
	position: fixed;
    bottom: clamp(145px, 27.5vw, 445px);
    right: 15px;
	color: #FFF;
    font-size: 35px;
    font-weight: normal;
    text-decoration: none;
    text-shadow: none;
    opacity: 1;
    z-index: 12;
	cursor: pointer;
}
#StValentin {
    position: fixed;
    right: 35px;
    bottom: clamp(15px, 2.2vw, 35px);
    width: clamp(150px, 30vw, 550px);
    height: auto;
    aspect-ratio: 1049/747;
    -webkit-transform: translate(-50%, -50%) rotate(-3deg);
    -moz-transform: translate(-50%, -50%) rotate(-3deg);
    transform: translate(-50%, -50%) rotate(-3deg);
	animation: up 4s ease-in-out infinite;
    cursor: pointer;
	z-index: 12;
    box-shadow:
      0 1px 1px hsl(0deg 0% 0% / 0.075),
      0 2px 2px hsl(0deg 0% 0% / 0.075),
      0 4px 4px hsl(0deg 0% 0% / 0.075),
      0 8px 8px hsl(0deg 0% 0% / 0.075),
      0 16px 16px hsl(0deg 0% 0% / 0.075)
    ;
}
@keyframes up {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(-3deg);
    -moz-transform: translateY(0) rotate(-3deg);
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    -webkit-transform: translateY(-30px) rotate(-3deg);
    -moz-transform: translateY(-30px) rotate(-3deg);
    transform: translateY(-30px) rotate(-3deg);
  }
}
#StValentin .animated-mail {
    position: absolute;
    height: auto;
    width: clamp(150px, 30vw, 550px);
    aspect-ratio: 1049/747;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    transition: 1s;
}
#StValentin .animated-mail .body {
	position: absolute;
    bottom: 0px;
    width: clamp(150px, 30vw, 550px);
    aspect-ratio: 1049 / 747;
    background-image: url(../../../img/home/st-valentin/front.png);
	image-rendering: -moz-crisp-edges;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
    z-index: 2;
    overflow: hidden;
    background-size: cover;	
}
#StValentin .animated-mail .top-fold, #StValentin .container-center {
    position: absolute;
    top: 0;
    width: clamp(150px, 30vw, 550px);
    height: auto;
    aspect-ratio: 1049 / 406;
	filter: brightness(0.95);
    -webkit-transform-origin: 50% 0%;
    -moz-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-transition: transform 0.6s 0.2s, z-index 0.5s 0.2s, top 0.6s 0.2s, filter 0.2s 0.5s;
    -moz-transition: transform 0.6s 0.2s, z-index 0.5s 0.2s, top 0.6s 0.2s, filter 0.2s 0.5s;
    transition: transform 0.6s 0.2s, z-index 0.5s 0.2s, top 0.6s 0.2s, filter 0.2s 0.5s;
	transition-timing-function: ease-in-out;
    z-index: 3;
}
#StValentin .container-center {
    -webkit-transition: transform 0.6s 0.2s, z-index 0.5s 0.25s, top 0.6s 0.2s, filter 0.2s 0.4s;
    -moz-transition: transform 0.6s 0.2s, z-index 0.5s 0.25s, top 0.6s 0.2s, filter 0.2s 0.4s;
    transition: transform 0.6s 0.2s, z-index 0.5s 0.25s, top 0.6s 0.2s, filter 0.2s 0.4s;
	transition-timing-function: ease-in-out;
}	
#StValentin .animated-mail .top-fold {
    background-image: url(../../../img/home/st-valentin/close.png);
	background-size: cover;
	image-rendering: -moz-crisp-edges;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
}	
#StValentin .animated-mail .back-fold {
    position: absolute;
    top: 0;
    width: clamp(149px, 30vw, 550px);
    height: auto;
    aspect-ratio: 1047 / 398;
    background-image: url(../../../img/home/st-valentin/back.png);
    background-size: cover;
	image-rendering: -moz-crisp-edges;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
    filter: brightness(0.95);
    z-index: 0;
}
#StValentin .animated-mail .letter {
    left: clamp(5px, 1vw, 35px);
    bottom: clamp(10px, 2.15vw, 50px);
    position: absolute;
    width: clamp(138px, 28vw, 500px);
    height: auto;
    aspect-ratio: 978/634;
    background-size: cover;
    z-index: 1;
    overflow: hidden;
    -webkit-transition: 0.55s 0s;
    -moz-transition: 0.55s 0s;
    transition: 0.55s 0s;
    background-image: url(../../../img/home/st-valentin/card.png);
	image-rendering: -moz-crisp-edges;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
    border-radius: 2vw;
}
#StValentin .animated-mail .center {
    position: absolute;
    top: 90%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: clamp(32px, 6vw, 115px);
    aspect-ratio: 213 / 172;
    background-image: url(../../../img/home/st-valentin/heart.png);
    z-index: 5;
	image-rendering: -moz-crisp-edges;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
    background-size: cover;
    -webkit-transition: 0.4s 0.45s;
    -moz-transition: 0.4s 0.45s;
    transition: 0.4s 0.45s;
    opacity: 1;
}
@media (min-width: 1025px) {
	#StValentin:hover {	
		animation-play-state: paused;
	}
	#StValentin:hover .animated-mail .top-fold {
		-webkit-transition: transform 0.6s 0s, z-index 0.2s 0.125s, top 0.6s 0s, filter 0.3s 0.1s;
		-moz-transition: transform 0.6s 0s, z-index 0.2s 0.125s, top 0.6s 0s, filter 0.3s 0.1s;
		transition: transform 0.6s 0s, z-index 0.2s 0.125s, top 0.6s 0s, filter 0.3s 0.1s;
		transition-timing-function: ease-in-out;
		-webkit-transform: rotateX(180deg);
		-moz-transform: rotateX(180deg);
		transform: rotateX(180deg);
		z-index: 0;
		top: 1px;
		filter: brightness(0.6);

	}
	#StValentin:hover .animated-mail .letter {
		bottom: clamp(50px, 11vw, 200px);
		-webkit-transform: rotate(3deg);
		-moz-transform: rotate(3deg);
		transform: rotate(3deg);
		-webkit-transition: 0.7s 0.15s;
		-moz-transition: 0.7s 0.15s;
		transition: 0.7s 0.15s;
		transition-timing-function: ease-in-out;
		box-shadow:
		  0 1px 1px hsl(0deg 0% 0% / 0.075),
		  0 2px 2px hsl(0deg 0% 0% / 0.075),
		  0 4px 4px hsl(0deg 0% 0% / 0.075),
		  0 8px 8px hsl(0deg 0% 0% / 0.075),
		  0 16px 16px hsl(0deg 0% 0% / 0.075)
		;
	}
	#StValentin:hover .container-center {
		-webkit-transition: transform 0.6s 0s, z-index 0.1s 0.3s, top 0.6s 0s, filter 0.2s 0.1s;
		-moz-transition: transform 0.6s 0s, z-index 0.1s 0.3s, top 0.6s 0s, filter 0.2s 0.1s;
		transition: transform 0.6s 0s, z-index 0.1s 0.3s, top 0.6s 0s, filter 0.2s 0.1s;
		transition-timing-function: ease-in-out;
		-webkit-transform: rotateX(180deg);
		-moz-transform: rotateX(180deg);
		transform: rotateX(180deg);
		z-index: -1;
		filter: brightness(0.70);
	}
}
@keyframes up-letter {
  0% , 95%, 100% {
	-webkit-transform: translateY(20px) rotate(0deg);
	-moz-transform: translateY(20px) rotate(0deg);
	transform: translateY(20px) rotate(0deg);
	box-shadow:
		  0 1px 1px hsl(0deg 0% 0% / 0.075),
		  0 2px 2px hsl(0deg 0% 0% / 0.075),
		  0 4px 4px hsl(0deg 0% 0% / 0.075),
		  0 8px 8px hsl(0deg 0% 0% / 0.075),
		  0 16px 16px hsl(0deg 0% 0% / 0.075)
	;
  }
  60%, 70% {
	-webkit-transform: translateY(0) rotate(3deg);
	-moz-transform: translateY(0) rotate(3deg);
	transform: translateY(0) rotate(3deg);
	box-shadow:
		  0 1px 1px hsl(0deg 0% 0% / 0.075),
		  0 2px 2px hsl(0deg 0% 0% / 0.075),
		  0 4px 4px hsl(0deg 0% 0% / 0.075),
		  0 8px 8px hsl(0deg 0% 0% / 0.075),
		  0 16px 16px hsl(0deg 0% 0% / 0.075)
	;
  }
}
@media (max-width: 1024px) {	
	#StValentin {
		animation: none;
		-webkit-transform: translateY(-5px) rotate(-3deg);
		-moz-transform: translateY(-5px) rotate(-3deg);
		transform: translateY(-5px) rotate(-3deg);
		background: #691926;
	}
	#StValentin .animated-mail .top-fold {
		-webkit-transform: rotateX(180deg);
		-moz-transform: rotateX(180deg);
		transform: rotateX(180deg);
		z-index: 0;
		top: 1px;
		filter: brightness(0.6);
	}
	#StValentin .animated-mail .letter {
		animation: up-letter 4s ease-in-out infinite;
		animation-delay: 1s;
		bottom: clamp(50px, 11vw, 200px);
		-webkit-transform: rotate(3deg);
		-moz-transform: rotate(3deg);
		transform: rotate(3deg);
	}
}