.center-row {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
	justify-content:center;
	margin:0 auto;
}

.printables-return {
	width: 50%;
	left: 25%;
	position: relative;
}

.printable-banner {
	display: block;
	margin-left: auto;
	margin-right: auto;
}


section.pageant article.pr0 {
	height: 720px;
	background-image: url(https://content.teachingtextbooksapp.com/magentoimages/printables/Certificate+Image.png);
	background-repeat: no-repeat;
	background-size: 50% auto;
	background-position: 50% 35%;
	  padding: 25px;
	  box-sizing: border-box;
	  box-shadow: inset 0 0 0 5px white;
	  border: 15px solid #e4e4e4;
	  width:97.3%;
	  margin:0 auto;
	  margin-bottom:20px;
	  background-color:#E4E4E4;
}

section.pageant article.pr0 h2 {

	height: calc(1vw * var(--h));
	margin: 0;
	padding-top: calc(1vw * var(--p));
	border-bottom: 0.15vw solid #5A82B9;
	font-size: 2.08vw;
	line-height: 1.35;
	font-weight: bold;
	text-align: center;
	color: #5A82B9;
	margin-bottom: 5px;
}

section.pageant article.pr0 p {
	top: 400px;
	position: relative;
}

section.pageant article.pr0 a {
	top: 450px;
	position: relative;
	width: 50%;
	left: 25%;
}

section.pageant article.pr1 {
	height: 780px;
	background-image: url(https://content.teachingtextbooksapp.com/magentoimages/printables/Math+Facts+Image.png);
	background-repeat: no-repeat;
	background-size: 50% auto;
	background-position: 50% 35%;
	  padding: 25px;
	  box-sizing: border-box;
	  box-shadow: inset 0 0 0 5px white;
	  border: 15px solid #e4e4e4;
	  width:97.3%;
	  margin:0 auto;
	  margin-bottom:20px;
	  background-color:#E4E4E4;
}

section.pageant article.pr1 h2 {

	height: calc(1vw * var(--h));
	margin: 0;
	padding-top: calc(1vw * var(--p));
	border-bottom: 0.15vw solid #5A82B9;
	font-size: 2.08vw;
	line-height: 1.35;
	font-weight: bold;
	text-align: center;
	color: #5A82B9;
	margin-bottom: 5px;
}

section.pageant article.pr1 p {
	position: relative;
	top: 440px;
}

section.pageant article.pr1 a {
	top: 450px;
	position: relative;
	width: 50%;
	left: 25%;
}

section.pageant article.pr2 {
	height: 760px;
	background-image: url(https://content.teachingtextbooksapp.com/magentoimages/printables/Coloring+Sheet+Image.png);
	background-repeat: no-repeat;
	background-size: 50% auto;
	background-position: 50% 35%;
	  padding: 25px;
	  box-sizing: border-box;
	  box-shadow: inset 0 0 0 5px white;
	  border: 15px solid #e4e4e4;
	  width:97.3%;
	  margin:0 auto;
	  margin-bottom:20px;
	  background-color:#E4E4E4;
}

section.pageant article.pr2 h2 {
	height: calc(1vw * var(--h));
	margin: 0;
	padding-top: calc(1vw * var(--p));
	border-bottom: 0.15vw solid #5A82B9;
	font-size: 2.08vw;
	line-height: 1.35;
	font-weight: bold;
	text-align: center;
	color: #5A82B9;
	margin-bottom: 5px;
}

section.pageant article.pr2 p {
	position: relative;
	top: 400px;
}

section.pageant article.pr2 ul {
	  top: 425px;
	  position: relative;
	  width: 50%;
	  left: 25%;
}

.certCard {
	background-color:#e4e4e4;
	display:flex;
	flex-direction:column;
	flex-wrap:wrap;
	flex-basis:fit-content;
	margin-top:5px;
	margin-bottom:5px;
	margin-left:15px;
	margin-right:15px;
	padding:15px;
}

.certCard a {
	margin-bottom:20px;
}

.certCard h2 {
	text-decoration:underline;
	color:hsl(210, 40%, 55%);
	font-size:2em;
}

.doubleCertCard {
	display:flex;
	flex-direction:row;
	justify-content:center;
}

.innerCard {
	display:flex;
	flex-direction:column;
	margin-left:25px;
	margin-right:25px;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-width : 320px)
and (max-width : 480px) {
/* Styles */

	h1.pagehead[title='Printables'] {
		width:inherit;
	}
	
	h1.pagehead[title='Certificates'] {
		width:inherit;
	}
	
	h1.pagehead[title='Math Facts'] {
		width:inherit;
	}
	
	section.pageant article.pr0 {
		height:600px;
		background-size: 50% auto;
		background-position: 50% 20%;
	}
	
	section.pageant article.pr0 h2 {
		font-size:0.9em;
	}

	section.pageant article.pr0 a {
		position: relative;
		top: 150px;
		width: 85%;
		left: 0;
	}
	
	section.pageant article.pr0 p {
		position: relative;
		width: 100%;
		font-size:0.9em;
		top:150px;
	}
	
	section.pageant article.pr1 {
		height:800px;
		background-position:50% 10%;
		background-size:50% auto;
	}
	
	section.pageant article.pr1 a {
		position: relative;
		top: 150px;
		width:85%;
		left:0;
	}
	
	
	section.pageant article.pr1 h2 { 
		font-size:0.9em;	
	}
	
	section.pageant article.pr1 p { 
		width: 100%;
		position: relative;
		font-size:0.9em;
		top:150px;
	}
	
	section.pageant article.pr2 {
		height: 700px;
		background-size: 50% auto;
		background-position: 50% 15%;
	}
	
	section.pageant article.pr2 h2 {
		font-size:0.9em;
	}
	
	section.pageant article.pr2 ul {
		position: relative;
		top: 150px;
	}
	
	section.pageant article.pr2 p {	  
		font-size:0.9em;
		top:150px;
	}
	
	section.pageant article.pr2 ul > li {
		padding:0;
	}
	
	section.pageant article.pr2 ul > li > a {
		padding:0;
	}
}
 
/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-width : 768px)
and (max-width : 1024px)
and (orientation : portrait) {
/* Styles */
	
	h1.pagehead[title='Printables'] {
		width:inherit;
	}
	
	h1.pagehead[title='Certificates'] {
		width:inherit;
	}
	
	h1.pagehead[title='Math Facts'] {
		width:inherit;
	}
	
	section.pageant article.pr0 {
		height:500px;
		background-size: 50% auto;
		background-position: 50% 20%;
	}
	
	section.pageant article.pr0 h2 {
		font-size:2.5vw;
	}

	section.pageant article.pr0 a {
		left: 75px;
		position: relative;
		top: 200px;
	}
	
	section.pageant article.pr0 p {
		top: 170px;
		position: relative;
		width: 100%;
	}
	
	section.pageant article.pr1 {
		height:700px;
		background-position:50% 15%;
		background-size:50% auto;
	}
	
	section.pageant article.pr1 a {
		left: 75px;
		position: relative;
		top: 250px;
	}
	
	
	section.pageant article.pr1 h2 { 
		font-size:2.5vw;	
	}
	
	section.pageant article.pr1 p { 
		width: 100%;
		position: relative;
		top: 220px;
	}
	
	section.pageant article.pr2 {
		height: 650px;
		background-size: 50% auto;
		background-position:50% 15%;
	}
	
	section.pageant article.pr2 h2 {
		font-size:2.5vw;
	}
	
	section.pageant article.pr2 ul {
		position: relative;
		top: 200px;
	}
	
	section.pageant article.pr2 p {	  
		position: relative;
		top: 200px;
	}
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) { 
	h1.pagehead[title='Printables'] {
		width:inherit;
	}
	
	h1.pagehead[title='Certificates'] {
		width:inherit;
	}
	
	h1.pagehead[title='Math Facts'] {
		width:inherit;
	}
	
	section.pageant article.pr0 {
		height:600px;
		background-size: 50% auto;
		background-position: 50% 20%;
	}
	
	section.pageant article.pr0 h2 {
		font-size:2.5vw;
	}

	section.pageant article.pr0 a {
		left: 125px;
		position: relative;
		top: 275px;
	}
	
	section.pageant article.pr0 p {
		top: 230px;
		position: relative;
		width: 100%;
	}
	
	section.pageant article.pr1 {
		height:700px;
		background-position:50% 20%;
		background-size:50% auto;
	}
	
	section.pageant article.pr1 a {
		left: 125px;
		position: relative;
		top: 275px;
	}
	
	
	section.pageant article.pr1 h2 { 
		font-size:2.5vw;	
	}
	
	section.pageant article.pr1 p { 
		width: 100%;
		position: relative;
		top: 270px;
	}
	
	section.pageant article.pr2 {
		height: 880px;
		background-size: 50% auto;
		background-position: 50% 15%;
	}
	
	section.pageant article.pr2 h2 {
		font-size:2.5vw;
	}
	
	section.pageant article.pr2 ul {
		position: relative;
		top: 260px;
		left: 125px;
	}
	
	section.pageant article.pr2 p {	  
		position: relative;
		top: 260px;
	}
}