/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}



/*************************
Global styles
*************************/

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body { 
	background: #f1e8d5;
	font-family: 'Raleway', sans-serif;
	font-weight:400;
	font-size:1em;
	color: #424242;
}

.bold {
	font-family: 'Raleway', sans-serif;
	font-weight:600;
}

a:link, a:visited {
	color:#f1e8d5;
	text-decoration:underline;
}

a:hover {
	text-decoration:none;
}

h1, h2 {
	font-family: 'Satisfy', cursive;
}

h2 {
	font-size:6em;
	font-size:7vw;
	text-align:center;
	margin:1em 0 1.5em;
	text-shadow: 3px 2px 0px rgba(0, 0, 0, .2);
}

h3, h4 {
	font-size:2.25em;
	text-transform:uppercase;
	margin-top:1.25em;
}

h4 {text-align:center; letter-spacing:1px;}

p {
	font-size: 1.25em;
	line-height:1.3em;
	margin:1em 0;
}

ul {
	margin-left:1em;
	list-style-type:disc;
	font-size: 1.25em;
	line-height:1.3em;
}

li {
	margin:1em 0;
}

.wrapper {
	width:100%;
}

.container {
	width:100%;
	max-width:1200px;
	margin:0 auto;
	padding:6em 2%;
}

.col {
	margin:2vw 2%;
	padding:1%;
	float:left;
}

.col1 {
	width:12.6%;
}

.col2 {
	width:29.2%;
}

.col3 {
	width:45.8%;
}

.col4 {
	width:62.4%;
}

.col6 {
	width:96%;
}

.clear {
	clear:both;
}

.text-center {text-align:center;}



/*************************
Nav
*************************/
#nav-container{position:relative; z-index:99;}

nav {
	text-align:right;
	padding:1em;
	position:fixed;
	width:100%;
	background: rgba(255, 255, 255, .2);
	font-size:1em;
	
}

nav a:link, nav a:visited {
	color:#424242;
	text-decoration:none;
}

nav a:hover {
	text-decoration:underline;
}


/*************************
Header
*************************/
#header {
}

#header .container {
	width:100%;	
	padding:6em 2% 0;
}

h1 {
	font-size:16vmin;
	text-align:center;
	color: #ff723a;
	margin:.25em 0 .5em;
	padding:0 .25em;
}

#Logo-Defs {
	width:0;
	height:0;
}

#Logo {
  width:60vmin;
  margin: auto;
  display:block; 
  fill: #aa7f3d;
  fill: url("#MyGradient");
  stroke: #777;
  stroke-miterlimit: 5;
}

.Animate-Draw {
  fill-opacity: 0;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration: 1;
  
  animation-name: DrawLine, FadeStroke, FillIn;
  animation-duration: 3s, 1s, 1s;
  animation-delay: 0s, 2s, 2s;
}

#Draw-fox {
  stroke-dashArray: 1100;
  stroke-dashoffset: 1100; 
}


#Draw-Text { 
  animation-delay: .5s, 2s, 2s; 
  animation-duration: 2s, 1s, 1s; 
  stroke-dashArray: 300;
  stroke-dashoffset: 300;
  //animation-duration: 3s;
}

@keyframes DrawLine {
  to { stroke-dashOffset: 0; }
}

@keyframes FadeStroke {
  to { stroke-opacity: 0; }
}

@keyframes FillIn {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}

#ms-logo {display:none;}



/*************************
Principles section
*************************/

#principles {
	background-color:#85bfa4;
}

#principles h2 {
	color:#f1e8d5;
	font-size:4em;
	font-size:5vw;
	text-shadow:none;
}

#principles .col2:nth-of-type(odd) {
	margin-left:18.6%;
	clear:left;
}

#principles p {
	margin:.1em 0 6em .1em;
	font-size:1.4em;
}

#principles h3:first-of-type {
  	margin-top:1em;
}

#principles svg {
	display:block;
	margin:0 auto 3em;
}



/*************************
Work section
*************************/

#work {
	background-color:#f1e8d5;
	color:#5E5E5E;
	text-align:center;
}

#work img {
	width:100%;
	vertical-align:bottom;
}



#work a:link, #work a:visited {
	text-decoration:none;
	color:#5E5E5E;
	position:relative;
	-webkit-box-shadow: 0px 0px 23px 0px rgba(0,0,0,0.19);
	-moz-box-shadow: 0px 0px 23px 0px rgba(0,0,0,0.19);
	box-shadow: 0px 0px 23px 0px rgba(0,0,0,0.19);
	padding:0 0 .5em 0;
	background-color:#edeae4;
}

#work a:hover {
	text-decoration:underline;
	text-decoration:underline;
	-webkit-box-shadow: 0px 0px 23px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 0px 23px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 0px 23px 0px rgba(0,0,0,0.5);
}

#work a img {
	margin-bottom:.5em;
}

#work figure:hover {
	
}

.flexbox-container {
	display: -ms-flex;
	display: -webkit-flex;
	display: flex;
	flex-wrap: wrap;
}

.flexbox-container a {
    width: 29.2%;
}    

a.button:link, a.button:visited, button.button {
	padding:1em;
	border:3px solid #74a78f;
	border-radius:50px;
	color: #424242;
    margin: 1em 0;
    background-color: #85bfa4;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    font-size: 1.25em;
    display:inline-block;
}

a.button:hover, button.button:hover {
	border:3px solid #86bfa4;
    background-color: #98d7ba;
}

#work .graphics-container a:link, #work .graphics-container a:visited {
   padding:0;
   width:8.5%;
   max-width:100px;
}    

#work .graphics-container a img {
	margin-bottom:0;
}





/*************************
Me section
*************************/

#me {
	background-color:#f1895f;
	color: #f1e8d5;	
}

#me h2 {
	margin:1em 0;
}

#me .col4, #contact .col4 {
	margin:0 18.8%;
}





/*************************
Contact section
*************************/

input, textarea, select, option {
	width:100%;
	border-radius:50px;
	border:2px solid #ccc;
	padding:.5em;
	margin:.5em 0 2em;
	color:#424242;
	font-size:.9em;
}

textarea {
	border-radius:15px;
}

button.button {
	margin: 0 auto;
	display:block;
}

select {height:2.5em;}

#form-messages {
	font-weight:bold;
	text-align:center;
	line-height:1.25em;
	margin-top:1.5em;
}




/*************************
footer section
*************************/
#footer {
	background-color:#F1895F;
	text-align:center;
}
#footer a:link, #footer a:visited {
	color:##3B3B3B;
}



/*************************
popups
*************************/
/* Styles for dialog window */
#contact a {
	color: #424242;
}
.small-dialog {
background: #fff;
padding: .5em 0;
text-align: left;
width:90%;
margin: 40px auto;
position: relative;
border-radius: 10px;
border: fpx solid #ccc;
color:#424242;
max-width:1250px;
}
.small-dialog.black {
	background: #000;
}

.small-dialog img { 
  width:100%;
  max-width:540px;
  display:block;
  margin:0 auto 2em;
}
.small-dialog.graphic img { 
  margin:2em auto;
}
.small-dialog li { 
  margin:.5em 0;
}

.small-dialog a { 
  text-decoration:underline;
}
.small-dialog a:hover { 
  text-decoration:none;
}
.small-dialog .col { 
  padding:0 1%;
}
.small-dialog p.extra-pad { 
  padding:1em;
}
.mfp-close-btn-in .mfp-close {
 	color:#999;
 	display:inline;
 	margin:0;
}
/**
 * Fade-zoom animation for first dialog
 */

/* start state */
.my-mfp-zoom-in .small-dialog {
opacity: 0;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-ms-transform: scale(0.8);
-o-transform: scale(0.8);
transform: scale(0.8);
}
/* animate in */
.my-mfp-zoom-in.mfp-ready .small-dialog {
opacity: 1;
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
/* animate out */
.my-mfp-zoom-in.mfp-removing .small-dialog {
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-ms-transform: scale(0.8);
-o-transform: scale(0.8);
transform: scale(0.8);
opacity: 0;
}
/* Dark overlay, start state */
.my-mfp-zoom-in.mfp-bg {
opacity: 0;
-webkit-transition: opacity 0.3s ease-out;
-moz-transition: opacity 0.3s ease-out;
-o-transition: opacity 0.3s ease-out;
transition: opacity 0.3s ease-out;
}
/* animate in */
.my-mfp-zoom-in.mfp-ready.mfp-bg {
opacity: 0.8;
}
/* animate out */
.my-mfp-zoom-in.mfp-removing.mfp-bg {
opacity: 0;
}
/**
 * Fade-move animation for second dialog
 */

/* at start */
.my-mfp-slide-bottom .small-dialog {
opacity: 0;
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
-webkit-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
-moz-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
-ms-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
-o-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );
}
/* animate in */
.my-mfp-slide-bottom.mfp-ready .small-dialog {
opacity: 1;
-webkit-transform: translateY(0) perspective( 600px ) rotateX( 0 );
-moz-transform: translateY(0) perspective( 600px ) rotateX( 0 );
-ms-transform: translateY(0) perspective( 600px ) rotateX( 0 );
-o-transform: translateY(0) perspective( 600px ) rotateX( 0 );
transform: translateY(0) perspective( 600px ) rotateX( 0 );
}
/* animate out */
.my-mfp-slide-bottom.mfp-removing .small-dialog {
opacity: 0;
-webkit-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg );
-moz-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg );
-ms-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg );
-o-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg );
transform: translateY(-10px) perspective( 600px ) rotateX( 10deg );
}
/* Dark overlay, start state */
.my-mfp-slide-bottom.mfp-bg {
opacity: 0;
-webkit-transition: opacity 0.3s ease-out;
-moz-transition: opacity 0.3s ease-out;
-o-transition: opacity 0.3s ease-out;
transition: opacity 0.3s ease-out;
}
/* animate in */
.my-mfp-slide-bottom.mfp-ready.mfp-bg {
opacity: 0.8;
}
/* animate out */
.my-mfp-slide-bottom.mfp-removing.mfp-bg {
opacity: 0;
}



@media screen and (min-width: 1201px) {  
	.col {
		margin:24px 2%;
	}
	h2 {
		font-size:6em;
	}
	#principles h2 {
		font-size:4em;
	}
} 

@media screen and (max-width: 800px) {  
	h1 {
		text-shadow: 2px 1px 0px rgba(179, 168, 161, .7);
	}
	h2, #principles h2 {
		font-size:4em;
		line-height:1.25em;
	}
	#principles h2 {
		font-size:3em;
	}
	.flexbox-container a {
	   	 flex: 0 1 45.8%;
	} 
	.col {float:none;}
	
	.col3 {width:96%;}
	
	#principles .col {float:left;}
	#principles .col2 {width:45.8%;}
	#principles .col2:nth-of-type(odd) {
		margin-left:2%;
	}
	#me .col4, #contact .col4 {
		margin:0 2%;
		width:96%;
	}
	nav {font-size:.9em;     
		background: rgba(255, 255, 255, .5);
	}
	#work .graphics-container a:link, #work .graphics-container a:visited {
	   width:12.6666%;
	}   
	#work .graphics-container .col {float:left;}

}

@media screen and (max-width: 500px) {  
	body { 
		font-size:.9em;
	}
	.col {
		margin:24px 2%;
	}
	h3, h4 {font-size:1.75em;}
	.flexbox-container a {
	   	 width: 96%;
	} 
	#principles .col {float:none;}
	#principles .col2 {width:96%; text-align:center;}
	#principles p {
		margin:.1em 0 1em .1em;
		
	}
	.small-dialog {
		padding: .5em;
	}
	a.button:link, a.button:visited, button {
		padding:.5em;
		font-size:.9em;
	}
	#work .graphics-container a:link, #work .graphics-container a:visited {
	   width:21%;
	} 
}


/* hack for lame microsoft browsers */

/* Microsoft Edge Browser 12+ (All) - @supports method */
@supports (-ms-ime-align:auto), @supports (-ms-accelerator: true) {
  	#ms-logo {
		display:block;
		margin: 0 auto;
		width:70%;
		max-width:725px;
	}
	#Logo {
		display:none;
	}
}



@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10 & IE11 CSS styles go here */
    #ms-logo {
		display:block;
		margin: 0 auto;
		width:70%;
		max-width:725px;
	}
	#Logo {
		display:none;
	}
}
