/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Box Model Hack */
* {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

/* Clear fix hack */
.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

.clear {
   clear: both;
}

/******************************************
/* LOADING UP LOCAL FONTS
******************************************/
/* yanone-kaffeesatz-200 - latin */
@font-face {
	font-family: 'Yanone Kaffeesatz';
	font-style: normal;
	font-weight: 200;
	src: url('fonts/yanone-kaffeesatz-v23-latin-200.eot'); /* IE9 Compat Modes */
	src: local(''),
		 url('fonts/yanone-kaffeesatz-v23-latin-200.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
		 url('fonts/yanone-kaffeesatz-v23-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
		 url('fonts/yanone-kaffeesatz-v23-latin-200.woff') format('woff'), /* Modern Browsers */
		 url('fonts/yanone-kaffeesatz-v23-latin-200.ttf') format('truetype'), /* Safari, Android, iOS */
		 url('fonts/yanone-kaffeesatz-v23-latin-200.svg#YanoneKaffeesatz') format('svg'); /* Legacy iOS */
  }
  
  /* yanone-kaffeesatz-300 - latin */
  @font-face {
	font-family: 'Yanone Kaffeesatz';
	font-style: normal;
	font-weight: 300;
	src: url('fonts/yanone-kaffeesatz-v23-latin-300.eot'); /* IE9 Compat Modes */
	src: local(''),
		 url('fonts/yanone-kaffeesatz-v23-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
		 url('fonts/yanone-kaffeesatz-v23-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
		 url('fonts/yanone-kaffeesatz-v23-latin-300.woff') format('woff'), /* Modern Browsers */
		 url('fonts/yanone-kaffeesatz-v23-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
		 url('fonts/yanone-kaffeesatz-v23-latin-300.svg#YanoneKaffeesatz') format('svg'); /* Legacy iOS */
  }
  
  /* yanone-kaffeesatz-regular - latin */
  @font-face {
	font-family: 'Yanone Kaffeesatz';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/yanone-kaffeesatz-v23-latin-regular.eot'); /* IE9 Compat Modes */
	src: local(''),
		 url('fonts/yanone-kaffeesatz-v23-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
		 url('fonts/yanone-kaffeesatz-v23-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
		 url('fonts/yanone-kaffeesatz-v23-latin-regular.woff') format('woff'), /* Modern Browsers */
		 url('fonts/yanone-kaffeesatz-v23-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
		 url('fonts/yanone-kaffeesatz-v23-latin-regular.svg#YanoneKaffeesatz') format('svg'); /* Legacy iOS */
  }

/* satisfy-regular - latin */
@font-face {
	font-family: 'Satisfy';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/satisfy-v17-latin-regular.eot'); /* IE9 Compat Modes */
	src: local(''),
		 url('fonts/satisfy-v17-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
		 url('fonts/satisfy-v17-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
		 url('fonts/satisfy-v17-latin-regular.woff') format('woff'), /* Modern Browsers */
		 url('fonts/satisfy-v17-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
		 url('fonts/satisfy-v17-latin-regular.svg#Satisfy') format('svg'); /* Legacy iOS */
  }

  /* Whisper-Regular - latin*/
  @font-face {
	font-family: 'Whisper';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/Whisper-Regular.eot'); /* IE9 Compat Modes */
	src: local(''),
		 url('fonts/Whisper-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
		 url('fonts/Whisper-Regular.woff2') format('woff2'), /* Super Modern Browsers */
		 url('fonts/Whisper-Regular.woff') format('woff'), /* Modern Browsers */
		 url('fonts/Whisper-Regular.ttf') format('truetype') /* Safari, Android, iOS */
		 url('fonts/Whisper-Regular.svg#Satisfy') format('svg'); /* Legacy iOS */
  }
  
  
/******************************************
/* BASE STYLES
/*******************************************/
body{
	background: #dadfe2 url("images/bg06.jpg");
	font-family: 'Yanone Kaffeesatz', Arial, Helvetica, sans-serif;
	color:#dadfe2;
	font-size: 1.3rem;
}
ul{
	list-style: none;
	padding: 0;
}
h1, h2{
	padding-top: 1rem; /*Putting a little space on the top of our boxes*/
	text-align: center;
	font-size: 2em;
}
/**********************************************
/* BASE STYLE HACKS aka MAKING THE CSS BEHAVE in very specific cases.
**********************************************/
.padTop{
	padding-top: 1rem;
}
.padBottom{
	padding-bottom: 1rem;
}
#About .framedImage{
	background: #dadfe2 url("images/bg06.jpg");
	margin-top: 1rem;
}
/********************************************
/* COLORS, BACKGROUNDS, FONTS, AND TEXTURES
*********************************************/
li a{
	color: #5f9fff;
	font-weight: 300;
	font-size: 1.4rem;
}
.letterheadContainer address{
	color: #dadfe2;
	font-style: normal;
	-ms-flex-item-align: end;
	    align-self: flex-end;
}
.letterheadContainer address a{
	font-weight: 400;
}
.letterheadContainer{
	color: #dadfe2;
}
header p{
	color: #000;
	font-weight: 600;
	text-align: center;
	font-size: 2.3em;
	margin-top: 0;
	padding-top: 1em;
	font-family: 'Whisper', Arial, Helvetica, sans-serif;
}
.greenLink{
	color: #00c652; /*I think this looks okay on white background without being too drab*/
}
.paleLink{
	color:#dadfe2;
}
p{
	font-weight: 300;
	line-height: 1.6rem;
}
nav ul, footer{
	background: #3b4346 url("images/bg01.jpg");
	border-top: solid 1px #272e31;
	border-bottom: solid 1px #272e31;
}
.boxWithShadow{
	background: #353d40 url("images/bg02.jpg");
	-webkit-box-shadow: 2px 2px 2px 1px rgba(128, 128, 128, 0.1);
	        box-shadow: 2px 2px 2px 1px rgba(128, 128, 128, 0.1);
	margin-bottom: 2rem;
}
.framedImage{
	border-radius: 5px;
	background: #fff url("images/bg04.png");
	padding: 10px;
}
figure .framedImage{
	max-height: 400px;
}
.twoColContainer figcaption, .fourColContainer figcaption{
	color: #5f9fff;
	font-size: 1.5rem;
}
.twoColContainer figcaption, .fourColContainer figcaption, .officeAddress h3, .officeAddress address{
	color: #00fe6d;
}
.mailingAddress{
	color: #5f9fff;
}
footer{
	color:#828383;
	text-align: center;
	font-size: 1rem;
}
footer a{
	color:#828383;
	font-weight: 300;
}
header{
	background-image: url("../assets/Options-Consulting_Olympia_WA__300_medres.jpg");
	background-size:cover;
	background-position: 50% 27%;
}

/******************************************
/* LAYOUT (That is, making things go in the right place)
/*******************************************/
header{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: reverse;
	    -ms-flex-direction: column-reverse;
	        flex-direction: column-reverse;
	min-height: 360px;
}
.letterheadContainer{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: right;
	    -ms-flex-pack: right;
	        justify-content: right;
	margin-right: 20px;
}
div.letterheadContainer{
	margin-bottom: 12rem;
}
p.letterheadContainer{
	-webkit-box-pack: left;
	    -ms-flex-pack: left;
	        justify-content: left;
}
.twoColContainer, .fourColContainer, .directionsContainer{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}
nav{
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 2;
}
nav ul{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: space-evenly;
	    -ms-flex-pack: space-evenly;
	        justify-content: space-evenly;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	margin-top: 0;
}
header li, nav li{
	margin-top: 10px;
	margin-bottom: 10px;
}
main > section{
	max-width: 90%;
	margin: auto;
}
.framedImage{
	max-width: 90%;
	margin: auto;
}
p{
	margin: 1.3rem;
}
h3, address li{
	margin-left: 1.3rem;
}
footer p{
	margin: 0.5rem;
}
iframe{
	-ms-flex-item-align: center;
	    -ms-grid-row-align: center;
	    align-self: center;
	-ms-grid-column-align: center;
	    justify-self: center;
	aspect-ratio: 5 / 3; /*This is the ratio of the image to the iframe's left.*/
	width: 98%;
	z-index: 1;
	margin-top: 5px;
	/*This line provides people blocking Google Maps with an error message,
	instead of just an empty iframe*/
	background: no-repeat center url("images/errorMessage.png");

}
.mailingAddress{
	padding-bottom: 0.1rem;
}
.mailingAddress > *{
	margin-right: 1rem;
}


/******************************************
/* ADDITIONAL STYLES (Decorations and glam)
/*******************************************/
a, figcaption, h1, h2, h3, p, .mailingAddress, .officeAddress, footer{
	text-shadow: -1px -1px 1px rgba(0,0,0,.75);
}

.letterheadContainer address a, .letterheadContainer{
	text-shadow: 1px 1px 2px #000;
}
a:hover{
	text-decoration: none;
}
.boxWithShadow{
	border-radius: 5px;
}
.fourColContainer section + section{
	border-top: 2px solid #272c30;
}
/*Nav-doesn't-overlap-the-header hack:
/*This actually changes the CSS a little bit when you use the nav,
/*but it's so subtle you wouldn't know unless you were reading this CSS right now.
/*Hi btw.*/
main > section:target:before{
	margin-top: 1px;
	height: 1px;
	display: block;
	content:"";
	visibility: hidden;
}

/******************************************
/* DESKTOP-SPECIFIC STYLES (Making things go in the right place when not on mobile)
/* Also includes an OLD-MOBILE specific style (for the small screens, like my old phone)
/*******************************************/
@media all and (max-width: 550px){
	.letterheadContainer{
		 -webkit-box-orient: vertical;
		 -webkit-box-direction: normal;
		     -ms-flex-direction: column;
		         flex-direction: column;
	}
	header p{
		line-height: 2.2rem;
	}
	li a{
		 font-size: 1.2rem;
	}
	nav li a{
		 font-size: 1rem;
		 margin-left: 0.25rem;
		 margin-right: 0.25rem;
	}
}
@media all and (min-width: 600px){
	#About .twoColContainer{
		 -webkit-box-orient: vertical;
		 -webkit-box-direction: normal;
		     -ms-flex-direction: column;
		         flex-direction: column;
		 -ms-flex-pack: distribute;
		     justify-content: space-around;
	}
	#About img{
		 max-width: 75%;
	}
	.twoColContainer, .fourColContainer{
		 -webkit-box-orient: horizontal;
		 -webkit-box-direction: normal;
		     -ms-flex-direction: row;
		         flex-direction: row;
		 -ms-flex-pack: distribute;
		     justify-content: space-around;
	}
	/*These three lines are a hack to make the updated site work after feature creep*/
	#Directions .twoColContainer{
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	.twoColContainer > section, .fourColContainer > section{
		 max-width: 50%;
	}
	.fourColContainer{
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
	}
	/*fourCol Border shenanigans HERE.*/
	/*Also works when we have six items here. Or any even number, for that matter.*/
	.fourColContainer section:nth-child(2){
		border-top:0;
	}
	.fourColContainer section:nth-child(even){
		border-left: 2px solid #272c30;
	}
	/*End fourCol border shenanigans.*/
}
@media all and (min-width: 780px){
	#About .twoColContainer{
		 -webkit-box-orient: horizontal;
		 -webkit-box-direction: reverse;
		     -ms-flex-direction: row-reverse;
		         flex-direction: row-reverse;
	}
	#About .twoColContainer > *{
		 max-width: 50%;
	}
	#About img{
		 max-height: 250px;
		 margin-right: 1rem;
	}

	#Directions img{
		max-width: 50%;
		margin: 0;
   }
   #Directions .twoColContainer{
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		    -ms-flex-direction: row;
		        flex-direction: row;
		-webkit-box-pack: space-evenly;
		    -ms-flex-pack: space-evenly;
		        justify-content: space-evenly;
		-webkit-box-align: end;
		    -ms-flex-align: end;
		        align-items: flex-end;
	}
   #Directions .twoColContainer > *{
		max-width: 49%;
	}
}
@media all and (min-width: 1000px){
	#About .twoColContainer div{
		 display: -webkit-box;
		 display: -ms-flexbox;
		 display: flex;
		 -webkit-box-orient: vertical;
		 -webkit-box-direction: normal;
		     -ms-flex-direction: column;
		         flex-direction: column;
		 -ms-flex-pack: distribute;
		     justify-content: space-around;
	}
	#About p{
		 font-size: 1.1em;
		 line-height: 1.3;
	}
	.twoColContainer, .directionsContainer, .fourColContainer{
		 -webkit-box-orient: horizontal;
		 -webkit-box-direction: normal;
		     -ms-flex-direction: row;
		         flex-direction: row;
	}
	.directionsContainer div{
		 width: 50%;
	}
}
@media all and (min-width: 1100px){
	#About img{
		 margin-right: auto;
	}
}

@media all and (min-width: 1210px){
	.fourColContainer{
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		    -ms-flex-direction: row;
		        flex-direction: row;
		-ms-flex-pack: distribute;
		    justify-content: space-around;
	}
	.fourColContainer > section{
	max-width: 25%;
	}
	.fourColContainer section + section{
		border-left: 2px solid #272c30;
	}
	.fourColContainer section:nth-child(3){
		border-top:0;
	}
}