﻿section {
	display: flex;
	position: relative;
	z-index: 10;
}

section .content {
	margin: 0 auto;
	display: block;
	max-width: 1080px;
	padding: 160px 0;
	min-height: 600px;
	position: relative;
	align-self: center;
	flex-grow: 1;
}

section .content .text-block{
	max-width: 640px;
	position: relative;
}

section .content::before{
	top: 10%;
	bottom: 10%;
	background-repeat: no-repeat;
	background-size: contain;
	position:absolute; 
	content:'';
	display:block;
}

#section-banner { background-image:url('/img/outcomes/banner.jpg'); background-attachment:fixed; }
#section-banner .text-block { position:relative; color: #fff; }
#section-banner .content {justify-content:center; align-content:center; display:grid;}

#section-results {background-color: #f6f6f8;}
#section-results .text-block { position:relative; color: #211546;}
#section-results .content::before { display:block; background-image:url('/img/outcomes/results.png'); }

#section-contain .content::before { display:block; background-image:url('/img/outcomes/contain.png'); }
#section-contain .text-block { position:relative; color: #211546; }



/******************************/
/* SMALL SCREENS              */
/******************************/

/* Define mobile styles */
@media only screen 
{ 
	section .content .text-block { text-align:center; margin:0 auto; max-width:480px; }
	section .content .buttons { margin-top:24px; }

	#section-banner { }

	#section-results .text-block { }
	#section-results .content::before { background-position:50%; }

	#section-contain .content::before { background-position:50%; }
}
@media only screen and (orientation:portrait) 
{
	#section-contain .content::before { height:160px; }
}
@media only screen and (orientation:landscape) 
{ 
	#section-contain .content::before { height:200px; }
}

/* max-width 640px, mobile-only styles, use when QAing mobile issues */
@media only screen and (max-width:40em) { }


/******************************/
/* MEDIUM SCREENS             */
/******************************/

/* min-width 641px, medium screens */
@media only screen and (min-width:40.063em) 
{ 
	#section-contain .content::before { height:240px; }
}
@media only screen and (min-width:40.063em) and (orientation:portrait) { }
@media only screen and (min-width:40.063em) and (orientation:landscape) { }

/* min-width 641px and max-width 1024px, use when QAing tablet-only issues */
@media only screen and (min-width:40.063em) and (max-width:64em) { }


/******************************/
/* PHONE TO TABLET            */
/******************************/
@media screen and (max-width: 768px) {
	section .text-block h1 {font-size: 1.5em;}
	section .text-block {
		padding: 0 1.25em;
	}

	#section-results .content {display: grid;}
	#section-results .text-block { position:relative; left:0px; width:90%; max-width:480px; padding-top:200px;}
	#section-results .text-block h1 {  font-size: 1em; }
	#section-results .content::before { position:absolute; height: 300px; content:''; display:grid; width:100%; background-image:url('../img/outcomes/results.png'); }

	#section-contain .content {display: grid;}
	#section-contain .text-block { position:relative; left:0px; width:90%; max-width:480px; padding-top:200px;}
	#section-contain .content::before { position:absolute; height: 300px; content:''; display:grid; width:100%; background-image:url('../img/outcomes/contain.png'); }
}
/******************************/
/* LARGE SCREENS              */
/******************************/

/* min-width 1025px, large screens */
@media only screen and (min-width:64.063em) 
{ 
	section .content::before { height:auto; }
	section .content .text-block { text-align:inherit; max-width:640px; margin:0; padding:0; }
	
	#section-banner { background-image:url('/img/outcomes/banner.jpg'); background-attachment:fixed; }

	#section-results .content::before { display:block; margin-left:-25px; left:0; width:40%; height:auto; background-image:url('/img/outcomes/results.png'); background-position:0 50%; }
	#section-results .text-block { position:relative; left:40%; width:60%; }

	#section-contain .content::before { display:block; left:65%; width:35%; height:auto; background-image:url('/img/outcomes/contain.png'); background-position:50% 50%; }
	#section-contain .text-block { position:relative; left:0; width:65%; }

}
@media only screen and (min-width:64.063em) and (orientation:portrait) { }
@media only screen and (min-width:64.063em) and (orientation:landscape) { }

/* min-width 1025px and max-width 1440px, use when QAing large screen-only issues */
@media only screen and (min-width:64.063em) and (max-width:90em) { }



/******************************/
/* XLARGE SCREENS             */
/******************************/

/* min-width 1441px, xlarge screens */
@media only screen and (min-width:90.063em) { }
@media only screen and (min-width:90.063em) and (orientation:portrait) { }
@media only screen and (min-width:90.063em) and (orientation:landscape) { }

/* min-width 1441px and max-width 1920px, use when QAing xlarge screen-only issues */
@media only screen and (min-width:90.063em) and (max-width:120em) { }



/******************************/
/* XXLARGE SCREENS            */
/******************************/

/* min-width 1921px, xxlarge screens */
@media only screen and (min-width:120.063em) { }

