/*** VARIABLES ***/

:root{
	--font-size-base: 10px;

	/** new **/
	--text-color: #000;
	--link-color: #0052A3;
	--branding-main: #D00000;
	--main-bg: #FFF;
	--secondary-bg:#F2F2F2;
	--shadow-default: 3px 3px 3px rgba(0, 0, 0, 0.16);
}


/*** MAIN CSS ***/

.earlyAccess{
	color: var(--branding-main);
	font-weight: bold;
}

html{
	font-family: 'Arsenal', sans-serif;
	margin: 0;
	padding: 0;
	font-weight: 300;
	color: var(--text-color);
	font-size: var(--font-size-base);
}
header,
main,
footer div.inner{
	max-width: 980px;
	width: 980px;
	margin: 0 auto;
}
body{
	margin: 0;
	font-size: 1.6rem;
}
a{
	text-decoration: none;
	color: var(--link-color);
}
a:hover{
	text-decoration: underline;
}
.accessibilityText{
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}
h1,
h2{
	font-size: 2.4rem;
	font-weight:normal;
	margin: 0;
	padding: 0;
}
h3{
	font-size: 2.4rem;
	font-weight: normal;
	margin: 0;
	padding: 20px 0;
}


/*** HEADER ***/

header{
	margin: 20px auto 50px auto;
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
header .namespace{
	height: 100%;
}
header .namespace a,
header .namespace span{
	display: block;
}
header .namespace a{
	color: var(--text-color);
	text-decoration: none;
	font-size: 2.4rem;
	font-weight: bold;
	text-transform: uppercase;
}
header .namespace span{
	font-size: 1.6rem;
}
header nav ul,
header nav li{
	display: inline-block;
	list-style: none;
	text-transform: capitalize;
	font-size: 1.8rem;
}
header nav li{
	padding: 0 25px;
}
header nav li:last-child{
	padding: 0 0;
}

/*** INDEX ***/

.index section:first-of-type{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.index article{
	width: 60%
}
.index article + figure{
	display: inline-block;
	position: relative;
	width: 275px;
	height: 275px;
	overflow: hidden;
	border-radius: 50%;
	align-self: center;
}
.index figure img{
	width: auto;
	height: 100%;
}

/*** WORK SAMPLES ***/


.workSamples{
	border-top: 1px solid var(--branding-main);
	background-color: var(--secondary-bg);
	padding: 30px 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
}
.workSamples article{
	background: var(--main-bg);
	box-shadow: var(--shadow-default);
	width: 90%;
	height: 150px;
	flex-basis: 90%;
	margin: 20px 0;
}
.workSamples article a{
	display: flex;
	color: var(--text-color);
}
.workSamples article a:hover{
	text-decoration: none;
}

.workSamples article img{
	height: 150px;
	display: inline-block;
	margin-right: 20px;
}
.workSamples article p{
	font-size: 2.4rem;
}
.workSamples article p:first-of-type{
	color: var(--branding-main);
	text-transform: uppercase;
}

/*** FOOTER ***/

footer div.red{
	width: 100%;
	height: 150px;
	background-color: var(--branding-main);
	color: #FFF;
} 
footer .red .inner p{
	margin: 0;
	font-size: 2.4rem;
	padding: 25px 0;
}
footer .red .inner p:first-of-type{
	padding-bottom: 0;
}
footer .red .inner p img{
	height: 24px;
	width: 24px;
	padding: 0 10px;
}
footer div.bottom{
	padding: 30px 0;
}

/*** NEW PROJECT PAGES ***/

#research.background{
	background: url(../Images/pivi.jpg);
	background-size: cover;
	background-attachment: fixed;	
}
#ids.background{
	background: url(../Images/ids-radmin-headline.png);
	background-size: cover;
	background-attachment: fixed;	
}
#hallowish.background{
	background: url(../Images/hallowish_hf.PNG);
	background-size: cover;
	background-attachment: fixed;	
}
#SATrips.background{
	background: url(../Images/flying.jpg);
	background-size: cover;
	background-attachment: fixed;	
}
.background{
	height: 65vh;
	margin-bottom: 40px;
}
.project{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}
.project img{
	max-width: 100%;
}
.project article:first-of-type{
	width: 650px;
}
.project article:last-of-type{
	width: 250px;
}
#ux.project article:last-of-type,
#ux.project article:first-of-type{
	width: 100%;
}
.role h2{
	font-size: 1.6rem;
	font-weight: bold;
	margin: 0;
	padding: 0;
}
.role p{
	font-size: 1.6rem;
}
.role p:first-of-type{
	padding: 0;
	margin: 0;
}
.role p:nth-child(3n){
	margin: 10px 0 0 0;
}
.role p:nth-child(4n){
	margin: 0;
}
.role p strong{
	font-weight: bold;
	display: block;
}
.project figure{
	width: calc(100% - 30px);
	border-top: 1px solid var(--branding-main);
	background: var(--secondary-bg);
	padding: 15px;
	margin: 10px 0;
	text-align: center;
}
.project figure figcaption{
	text-align: left;
}
.project figure img{
	width: 100%;
}	
#ux.project figure img{
	width: auto;
	max-height: 500px;
}

/*** REPLACE THESE WITH NEW STYLES ***/

#research .content{
	background: var(--bg-one);
}
.testImageContainer{
	width: 60%;
	margin: 0 auto;	
}
.testImageContainer img{
	width: calc(50% - 7px);
	display: inline-block;
	margin: 10px;
}
.testImageContainer img.larger{
	width: 100%;
	display: block;
	margin: 0;
}
.testImageContainer img:nth-child(n+2){
	margin-left: 0;
}
.testImageContainer img:nth-child(n+3){
	margin-right: 0;
}
p.test{
	text-align: center;
}
a.testLink{
	display: inline-block;
	padding: 10px;
	border: 1px solid var(--link-color);
	font-size: 2.0rem;
}

#process section figure{
	text-align: center;
}
#process section figure img{
	width: 75%;
}
#process section figure.two img{
	width: 45%;
	display: inline-block;
	padding: 10px;
}
figure.xd{
	text-align: center;
}
figure.xd figcaption{
	padding: 10px 0;
}


/*** MEDIA QUERIES ***/

@media (max-width: 800px){

	header,
	main,
	footer div.inner{
		max-width: 95%;
	}
	.index section:first-of-type{
		flex-direction: column;
	}
	.index article{
		width: 100%
	}
	.index article + figure{
		order: -1;
	}
	.workSamples{
		flex-direction: column;
	}
	.workSamples article{
		width: 90%;
		height: auto;
		margin: 5%;
	}
	.workSamples article a{
		flex-direction: column;
	}
	.workSamples article img{
		height: auto;
		width: 100%;
	}
	.workSamples article div{
		padding: 5px;
	}
	.project{
		flex-direction: column;
	}
	.project article{
		max-width: 100%;
	}
	.project article:last-of-type{
		order: -1;
		width: 100%;
	}
	#ux.project article:last-of-type{
		order: initial;
	}
	#research.background{
		background-position: -700px 0;
	}
	#SATrips.background{
		background-position: -400px 0;
	}

}