/* Falling confetti loop (pieces are built by confetti.js) */

#confetti{
	position: absolute;
	top: 0px;
	right: 0px;
	width: 100%;
	height: 650px;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.confPiece{
	position: absolute;
	top: 0px;
	opacity: 0;
	will-change: transform, opacity;
	-webkit-animation: confFall linear infinite;
	animation: confFall linear infinite;
}

.confPiece img{
	display: block;
	width: 100%;
	height: auto;
	will-change: transform;
	-webkit-animation: confSway ease-in-out infinite alternate;
	animation: confSway ease-in-out infinite alternate;
}

@-webkit-keyframes confFall{
	0%   { -webkit-transform: translate3d(0px, -130px, 0px); opacity: 0; }
	8%   { opacity: 1; }
	55%  { opacity: 1; }
	100% { -webkit-transform: translate3d(var(--dx), var(--fall), 0px); opacity: 0; }
}
@keyframes confFall{
	0%   { transform: translate3d(0px, -130px, 0px); opacity: 0; }
	8%   { opacity: 1; }
	55%  { opacity: 1; }
	100% { transform: translate3d(var(--dx), var(--fall), 0px); opacity: 0; }
}

@-webkit-keyframes confSway{
	0%   { -webkit-transform: rotate(var(--r0)) rotateX(0deg) rotateY(0deg); }
	100% { -webkit-transform: rotate(var(--r1)) rotateX(var(--fx)) rotateY(var(--fy)); }
}
@keyframes confSway{
	0%   { transform: rotate(var(--r0)) rotateX(0deg) rotateY(0deg); }
	100% { transform: rotate(var(--r1)) rotateX(var(--fx)) rotateY(var(--fy)); }
}
