/* ------ Includes ------ */

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

/* ------ Color Variables ------ */
:root {
	--jc-beige: rgb(242,234,227);
	--jc-sand: rgb(242,210,182);
	--jc-dark-aqua: rgb(37,43,55);
	--jc-aqua: rgb(60,70,89);
	--jc-blue: rgb(65,108,166);
	--jc-dark-gray: rgb(135,121,120);
	--jc-gray: rgb(171,162,161);
	--jc-light-gray: rgb(197,208,217);
}

/* ------ Universal and Root ------ */

* {
	margin:0px;
	padding: 0px;
	background-color: rgb(255,255,255);
	color: var(--jc-dark-aqua);
	font-family: arial, sans-serif;
}

body {
	width: 100%;
	min-height: 100vh;
	line-height: 1.4em;
	background-image: url('https://assets.justincodd.com/imgs/mountain.jpg');
	background-repeat: no-repeat;
	background-position: left top;
	background-attachment: fixed;
	background-size: 100vw auto;
}

a {
	color: var(--jc-blue);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	margin: 0;
	padding: 0;
	width: 100%;
	height: auto;
}

/* ------ Top-Level Layout ------ */

nav {
	position: sticky;
	top: 0px;
	padding: 1em;
	z-index: 100;
}

header {
	width: 100%;
	position: relative;
	background-color: transparent;
	height: 300px;
	margin: 0px;
	padding: 0px;
}

header.header-big {
	height: 78vh;
}

#sub-nav {
	padding: 2em 1em;
	text-align: center;
}

main {
	width: 100%;
	height: 100%;
	min-height: 56vh;
	margin-top: 0px;
	margin-bottom: -50px; /* neg. of footer height */
	padding: 2em 0;
}

main:after {
  content: "";
  display: block;
  margin-bottom: 70px; /* same as footer height */
}

footer {
	padding: 1em;
	height: 50px;
	border-top: 1px solid var(--jc-beige);
}

/* ------ Responsive Grid ------ */

.grid-container {
	width: 100%;
	max-width: 1200px;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: 1em;
	row-gap: 2em;
	margin: 0 auto 2em auto;
}

.grid-container-2 {
	width: 100%;
	margin: 0.5em 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 1em;
}

.grid-item {
	padding: 1em;
}

.single-column {
	grid-column: span 12;
	padding: 0 0 0 0.3em;
}

.three-quarters {
	grid-column: span 9;
}

.two-thirds {
	grid-column: span 8;
}

.half {
	grid-column: span 6;
}

.one-third {
	grid-column: span 4;
}

.one-quarter {
	grid-column: span 3;
}

.middle {
	grid-column: 2 / span 9;
}

.two-rows {
	grid-row: 2 / span 2;
}

.role {
	margin: 0 0 2em 0;
	padding: 0;
}

.role-primary {
	display: block;
	float: left;
	width: 63%;
	padding: 0 2%;
	border-left: 1px solid var(--jc-sand);
}
.role-secondary {
	display: block;
	float: left;
	width: 28%;
	padding: 0 2%;
	text-align: right;
}


@media screen and (max-width: 920px) { /* change the number based on need */
	.grid-container {
		grid-template-columns: repeat(1, 1fr);
		width: 100%;
	}
	
	.single-column, .three-quarters, .two-thirds, .half, .one-third, .one-quarter, .middle {
		grid-column: span 1;
	}
	
	.filler {display:none;}
	
	header h1 {
		font-size: 15vw !important;
		position: absolute;
		bottom: -0.25em !important;
	}
	
	#sub-nav {
		padding: 0em;
		text-align: left;
	}
	
	#sub-nav a {
		padding: 0.5em 0em;
		display: block;
		width: 100%;
		clear: right;
	}
}



/* ------ Layout Area-Specific Elements ------ */

/* Nav */

.print {display:none;}

.logotype  {
	font-weight: 700;
}

/*  Responsive Nav Styles */

.topnav {
  overflow: hidden;
}

.topnav a, .logotype {
  float: left;
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#sub-nav a {
	padding: 1.4em 1em;
}

.topnav a:hover {
  text-decoration: underline;
}

.topnav a.active {
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  
  	header h1 {
		font-size: 12vw !important;
		position: absolute;
		bottom: 3em !important;
		margin-bottom: 0px;
	}
	
	#sub-nav {
		padding: 0em;
		text-align: left;
	}
	
	#sub-nav a {
		padding: 0.5em 0em;
		display: block;
		width: 100%;
		clear: right;
	}
}


/* ------ Headings ------ */

header h1 {
	background-color: transparent;
	position: absolute;
	bottom: -35px;
	width: 100%;
	text-align: center;
	font-size: 8em;
	color: rgb(255,255,255);
	line-height: 1.1em;
}

h2 {
	color: var(--jc-aqua);
	box-shadow: -5px 0px var(--jc-beige);
}

h3 {
	margin-bottom: 0.5em;
	padding-bottom: 0.5em;
	border-bottom: solid 1px var(--jc-beige);
}

.role h3 {
	padding-bottom: 0px;
	border-bottom: none;
}

.role-secondary h3 {
	color: var(--jc-gray);
}

.role h4 {
	margin-bottom: 0.5em;
}

/* ------ Other Text ------ */

p {
	margin-bottom: 1em;
}

.role-primary p {
	margin-bottom: 0.5em;
}

.graytext {
	color: var(--jc-gray);
}

.legend {
	font-size: 0.9em;
	color: var(--jc-dark-gray);
}


/* ------ Other Elements ------ */

.clear {clear: both;}

ul {
	list-style-position: inside;
}

ul.skills-list {
	list-style-type: square;
}

ul.skills-list li {
	float: left;
	margin-right: 1.1em;
}

ul.leaders {
	list-style-type: none;
	overflow-x: hidden;
}

ul.leaders li:before {
	float: left;
	width: 0;
	white-space: nowrap;
	content:
	". . . . . . . . . . . . . . . . . . . . "
	". . . . . . . . . . . . . . . . . . . . "
	". . . . . . . . . . . . . . . . . . . . "
	". . . . . . . . . . . . . . . . . . . . ";
}

ul.leaders span:first-child {
padding-right: 0.33em;
background: white;
}

ul.leaders span + span {
float: right;
padding-left: 0.33em;
background: white;
}

table.contact td {
	padding: 0.5em;
	vertical-align: middle;
}

#surprise {
	padding: 0.5em;
}

#SurpriseBUTTon {
	font-size: 0.8em;
	margin: 0;
	padding: 0.3em;
	background-color: var(--jc-beige);
}

.copyButton {
	width: auto;
	height: 1em;
	vertical-align: text-bottom;
}


/* ------ Print Styles ------ */

@media print {
	.print {display:block;}
	nav, header, footer, h2 {display:none;}
	* {font-size: 12px;}
	.grid-container {row-gap: 0em;}
	.pagebreak {break-after: page;}
}


