/* Debbugging */
.debug-line
{
	position: absolute;
	background: yellow;
	width: 100%;
	height: 1px;
	top: 0;
	left: 0;
	z-index: 50;
}

.debug-line-fixed
{
	position: fixed;
	background: blue;
	width: 100%;
	height: 1px;
	top: 0;
	left: 0;
	z-index: 50;
}

/* Anim CSS */
.pillowAnim
{
	position: relative;
	width: 100%;
	height: 1250px;
	margin: auto;
	margin-top: 50px;
	margin-bottom: 200px;
}

.pillowAnim .pillowAnim-content
{
	position: absolute;
	width: 80%;
	height: calc(180.56px * 3.5); /* Layer image height x 3 because animation highest is translateY(-200%) */
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	overflow: hidden;
}

.pillowAnim .pillowAnim-content.fixed
{
	position: fixed;
	top: 0;
}

.pillowAnim .pillowAnim-content.end
{
	top: auto;
	bottom: 0;
}

.pillowAnim .top-text
{
	position: absolute;
	width: 26.5%;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%) translateY(-120%);
	opacity: 1;
}

.pillowAnim .top-text img
{
	width: 100%;
	height: auto;
}

.pillowAnim-layer
{
	position: absolute;
	width: 50%;
	margin: auto;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%);
}

.pillowAnim-layer.lay-1
{
	transform: translateX(-50%) translateY(-86%);
	z-index: 2;
}
.pillowAnim-layer.lay-2
{
	transform: translateX(-50%) translateY(-20%);
	z-index: 1;
}
.pillowAnim-layer.lay-3
{
	z-index: 3;
}

.pillowAnim-layer img
{
	width: 100%;
	height: auto;
}

.pillowAnim .info-text
{
	position: absolute;
	width: 27.5%;
	//bottom: 0;
	opacity: 0;
}

.pillowAnim .info-text-expand
{
	position: absolute;
	width: 9%;
	height: auto;
	padding: 1.5%;
	top: auto;
	left: auto;
	bottom: -7%;
    right: -5%;
	cursor: pointer;
	transition: width .25s, top .25s, right .25s, bottom .25s, left .25s;
}

.pillowAnim .info-text-expand:hover
{
	width: 11%;
}

.pillowAnim .info-text-text
{
	position: absolute;
	display: none;
	width: 75%;
	right: -10%;
	font-family: montserrat;
	font-weight: normal;
	font-size: 11px;
	color: white;
	line-height: 125%;
	text-align: center;
}

.pillowAnim .info-text img:not(.info-text-expand)
{
	width: 100%;
	height: auto;
}

.pillowAnim .info-text.info-text-1
{
	width: 27.5%;
	padding-right: 3%;
	top: -8%;
	right: 3%;
}

.pillowAnim .info-text.info-text-1 .info-text-expand
{
	width: 7.5%;
	bottom: 12.5%;
	right: 17.5%;
}
.pillowAnim .info-text.info-text-1 .info-text-expand:hover
{
	width: 9.5%;
	bottom: 11.5%;
	right: 16.5%;
}

.pillowAnim .info-text.info-text-1 .info-text-text
{
	width: 70%;
	right: 0;
}

.pillowAnim .info-text.info-text-2
{
	width: 22.5%;
	padding-right: 0%;
	top: 45%;
	right: 6%;
}

.pillowAnim .info-text.info-text-2 .info-text-expand
{
	bottom: 5%;
	right: 6.5%;
}

.pillowAnim .info-text.info-text-2 .info-text-expand:hover
{
	bottom: 4%;
	right: 5.5%;
}

.pillowAnim .info-text.info-text-2 .info-text-text
{
	width: 75%;
	right: 6%;
}

.pillowAnim .info-text.info-text-3
{
	width: 23%;
	padding-right: 0%;
	top: 75%;
	right: 5%;
}

.pillowAnim .instruction-overlay
{
	position: absolute;
	background-color: rgba(0, 0, 0, .75);
	width: 60%;
	padding: 1.5rem;
	border-radius: 15px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
	font-size: 1.75rem;
	color: white;
	text-align: center;
	opacity: 0;
}

.pillowAnim .instruction-overlay.inactive
{
	opacity: 0;
	pointer-events: none;
}

.pillowAnim .info-popup
{
	position: fixed;
	display: none;
	background-color: rgba(0, 0, 0, .5);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100;
}

.pillowAnim .info-popup .container
{
	position: absolute;
	background-color: #0A253E;
	width: 90%;
	max-width: none;
	max-height: 100%;
	padding: 2rem;
	border-radius: 20px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 10px rgba(0, 0, 0, .75);
	overflow: auto;
}

.pillowAnim .info-popup .container .popup-close
{
	position: absolute;
	padding: .5rem;
	top: 1rem;
	left: 1.25rem;
	cursor: pointer;
}
.pillowAnim .info-popup .container .popup-close:before
{
	content: "\f00d";
	font-family: "Font Awesome 5 Free";
	font-weight: bold;
	font-size: 2.5rem;
	color: #AAA;
	line-height: 100%;
	transition: color .25s;
}
.pillowAnim .info-popup .container .popup-close:hover:before
{
	color: #555;
}

.pillowAnim .info-popup .container .icon
{
	position: relative;
	width: 50%;
	margin-bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
}

.pillowAnim .info-popup .container .text
{
	font-size: 1.75rem;
	line-height: 120%;
	color: white;
}

@media (max-width: 768px)
{
	.pillowAnim {
		margin-bottom: 75vh;
	}

	.pillowAnim .pillowAnim-content
	{
		width: 100%;
	}

	.pillowAnim .top-text
	{
		position: absolute;
		width: 40%;
		bottom: 2rem;
		left: 50%;
		transform: translateX(-50%) translateY(-185%);
		opacity: 1;
	}

	.pillowAnim-layer
	{
		width: 80%;
	}

	.pillowAnim .info-text
	{
		display: none;
	}
}