@charset "utf-8";
/*--- Popup Dialogs ---*/
.modalDialog {
	display: none;
	pointer-events: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin-bottom: 23px;	/* don't obscure footer*/
	background: rgba(0, 0, 0, 0.5);
	font-family: "Roboto Slab", serif;
	z-index: 99999;
}
.modalDialog:target {
	display: block;
	pointer-events: auto;
}
.modalDialog > div {
	position: relative;
	top: 50%;
	transform: perspective(1px) translateY(-50%);
	width: 80%;
	margin: 5% auto;
	border: 2px solid #333;
	border-radius: 10px;
	padding: 10px;
	background-color: white;
	box-shadow: 2px 3px 4px rgba(51,51,51,0.5);
}
.modalDialog p {
	margin-bottom: 2px;
}
.modalDialog label {
	display: inline-block;
	width: 60px;
	vertical-align: top;
	text-align: right;
	margin-right: 10px;
	font-weight: bold;
}
.modalDialog ol {
	margin: -3px 20px auto;
}
.modalDialog img {	/* center img */
	display: block;
	margin-top: 5px;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;	/* scale to fit */
	height: auto;
}
.modalDialog sup {
	font-size: larger;
}
.modalDialog span {
	padding-left: 59px;
}
#caterpillar img {	/* overlap transparent part of png */
	margin-top: -55px;
}
#caterpillar p {	/* don't overlap upper-right part of img */
	width: 78%;
}
/*--- Popup Close Button ---*/
.close {
	position: absolute;
	top: 15px;
	right: 18px;
	width: 28px;
	line-height: 28px;
	border-radius: 14px;
	padding-bottom: 2px;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	font-size: 1.8em;
	color: #FFFFFF;
	background: rgba(0,0,0,0.6);
/*	box-shadow: 1px 1px 3px #000;	*/
}
.close:hover {
	color: #333;
	background: #eee;	/* #ddd */
	text-decoration: none;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4);
}
.jsSize {	/* used only by JavaScript for resizing */
	margin-left: 10px;	/* minimum margin values */
	margin-right: 10px;
	font-size: 40px;		/* fudge factor */
	min-width: 640px;		/* minimum popup width (for narrow images) */
}
.blur {
	filter: blur(4px);
	-webkit-filter: blur(4px);
	-moz-filter: blur(4px);
	-o-filter: blur(4px);
	-ms-filter: blur(4px);
}

/*--- Media Queries ---*/
@media (orientation: landscape) {
	.modalDialog > div {
		margin-top: 0;
	}
}

@media (max-width: 667px) {
	.modalDialog > div {
		width: 95%;
		margin: 5px;
		margin-top: 1%;
		padding: 2px 8px 8px;
		font-size: 10pt;
	}
	.modalDialog p {
		margin: 5px;
	}
	.modalDialog label {
		width: 55px;
		margin-right: 4px;
	}
	.close {
		top: 20px;
		right: 9px;
		width: 32px;
		line-height: 32px;
		border-radius: 16px;
		padding-bottom: 3px;
		padding-left: 1px;
		font-size: 3.2em;
	}
	#caterpillar img {
		margin-top: -20px;	/* overlap transparent part of png */
	}
	#caterpillar p {
		width: 80%;	/* don't overlap img */
	}
	.jsSize {
		margin-left: 5px;
		margin-right: 5px;
		font-size: 14px;	/* fudge factor */
	}
}

@media (max-width: 415px) {
	.modalDialog {
		margin-top: -2px;
		margin-left: -5px;	/* -2px when height > view */
	}
	.modalDialog div {
		font-size: 0.7em;
	}
}

@media (min-width: 335px) and (max-width: 640px) {
	.modalDialog {
	margin-bottom: 17px;
	}
	.jsSize {
		margin-left: 3px;
		margin-right: 3px;
		font-size: 14px;	/* fudge factor */
	}
}

@media (max-width: 334px) {
	.modalDialog {
		margin-bottom: 14px;
	}
	.jsSize {
		margin-left: 2px;
		margin-right: 2px;
		font-size: 14px;	/* fudge factor */
	}
}

@media (max-width: 321px) {
	.modalDialog {
		margin-bottom: 16px;
	}
	.jsSize {
		margin-left: 2px;
		margin-right: 2px;
		font-size: 16px;	/* fudge factor */
	}
}
