@keyframes popupShake {
	0%   {
		transform: translateX(0px) translateY(0px);
	}
	25%  {
		transform: translateX(15px) translateY(4px);
	}
	50%  {
		transform: translateX( -3px) translateY( 2px);
	}
	75%  {
		transform: translateX( -17px) translateY( -5px);
	}
	100% {
		transform: translateX( 0px) translateY( 0px);
	}
}
	
#popupsContainer .popupArea {
	position: absolute; top: 0; right: 0; left: 0;
	z-index: 200;
	height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	
	-webkit-transition: height .5s, background .5s;
	-moz-transition: height .5s, background .5s;
	transition: height .5s, background .5s;
}
#popupsContainer .popupArea {
	background: rgba(0, 0, 0, 0);
	text-align: center;
}
#popupsContainer .popupArea:last-child {
	background: rgba(0, 0, 0, 0.5);
	--backdrop-filter: blur(5px);
}
#popupsContainer .popupArea:after {
	content: "";
	display: inline-block;
	height: 100%;
	
	vertical-align: middle;
}
#popupsContainer .popupArea.visible {
	height: 100%;
}
	
#popupsContainer .popupArea .popupBox {
	display: inline-block;
	/*min-height: 250px;*/
	height: 100%;
	min-width: 350px;
	width: 100%;
	
	background-color: #363636;
	background-color: rgba(29, 29, 29, 0.7);
	overflow-x: auto;
	overflow-y: auto;
	vertical-align: middle;
	
	color: #fff;
	transform: scale(0);
	
	-webkit-transition: transform .5s;
	-moz-transition: transform .5s;
	transition: transform .5s;
}
#popupsContainer .popupArea.visible .popupBox {
	transform: scale(1);
}
#popupsContainer .popupArea .popupBox:before {
	content: "";
	display: inline-block;
	/*min-height: 250px;*/
	height: 100%;
	
	vertical-align: middle;
}
#popupsContainer .popupArea.popupShake .popupBox {
	animation: .1s popupShake;
	animation-iteration-count: 4;
}

#popupsContainer .popupArea .popupBox .contentArea {
	display: inline-block;
	vertical-align: middle;
	width: 100%;
}

#popupsContainer .popupArea .popupBox .icon, #popupsContainer .popupArea .popupBox h2, #popupsContainer .popupArea .popupBox .description {
	margin: 20px;
	display: block;
}
#popupsContainer .popupArea .popupBox .icon {
	font-size: 2em;
	margin-bottom: -15px;
}
#popupsContainer .popupArea .popupBox .description {
	text-align: left;
}
	
#popupsContainer .popupArea .buttons button {
	display: inline-block;
	width: 50%;
	padding: 20px 0;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	color: #000;
	background: #ffd54f;
	
	text-align: center;
}
#popupsContainer .popupArea .buttons button.primary {
	background: #fff;
	color: #000;
	font-weight: bold;
}
#popupsContainer .popupArea .buttons button:last-child:nth-child(odd) {
	width: 100%;
}
	
@media (min-width: 768px) {
	#popupsContainer .popupArea .popupBox {
		height: auto;
		width: auto;
		max-height: 90%; max-height: calc(100% - 2*50px);
		max-width: 90%; max-width: min(100% - 2*50px, 900px);
	
		background-color: rgba(29, 29, 29, 0.9);
		border-radius: 5px;
		box-shadow: 5px 5px 15px #000;
	}
	#popupsContainer .popupArea .popupBox:after {
		height: auto;
	}
}
