/*
 * Web Fonts from fontspring.com
 *
 * All OpenType features and all extended glyphs have been removed.
 * Fully installable fonts can be purchased at http://www.fontspring.com
 *
 * The fonts included in this stylesheet are subject to the End User License you purchased
 * from Fontspring. The fonts are protected under domestic and international trademark and 
 * copyright law. You are prohibited from modifying, reverse engineering, duplicating, or
 * distributing this font software.
 *
 * (c) 2010-2016 Fontspring
 *
 *
 *
 *
 * The fonts included are copyrighted by the vendor listed below.
 *
 * Vendor:      Canada Type
 * License URL: https://www.fontspring.com/licenses/canada-type/webfont
 *
 *
 */

@font-face {
    font-family: 'fontellaregular';
    src: url('fonts/fontella-webfont.eot');
    src: url('fonts/fontella-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/fontella-webfont.woff2') format('woff2'),
         url('fonts/fontella-webfont.woff') format('woff'),
         url('fonts/fontella-webfont.ttf') format('truetype'),
         url('fonts/fontella-webfont.svg#fontellaregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* General Rules */
html, body, .page {margin:0;
	padding:0; 
	height:100%;
	}
	
html {background-image: url(images/swirl.png);}
	
body {font-family: "Trebuchet MS", "Nimbus Sans L", Verdana, Helvetica, sans-serif;
	display: table;
	width: 100%;
	font-size: 1em;
	line-height: 1.4;
	color: #333333;
	background-color: rgba(154, 154, 238, 0.2);/* same as #9A9AEE */
	}
	
.page {display: table;	
	width: 100%;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 2px 2px 4px #444;
	}
	
@media screen and (min-width: 500px){
	
	.page {width: 96%;
		max-width: 60em;
		}	
	
}

/* For sticky footer */	
header, footer, main {display: table-row;}

header, footer {height:1px;}
/* height 1px on the header and footer is the sticky footer technique */

/*main {box-sizing: border-box;}*/

.inner-wrapper {display: table;
	width: 100%;
	height: 100%;
	}

article, section {display: table-row;}

aside, .aside-inner {display: table;
	width: 100%;
	table-layout: fixed;
	}

.container {display: table-cell;
	padding: 0.5em;
	}
	
aside {text-align: center;
	}
	
aside p {margin: 0 auto;
	padding-top: 0;
	}
	
aside img {border-radius: 50%;
	width: 100%;
	max-width: 150px;
	height: auto;
	}

/* Fall-back for browsers which don't support Flex: */
@media screen and (min-width: 750px) {

	article, section, aside {display: table-cell;
		vertical-align: middle;
		}
	
	article, section {width: 70%;
		padding: 1em 0.75em 1em 1.5em;
		}
		
	.container {display: block;
		padding: 0;
		}

	aside {padding: 0.5em;}

	aside img {max-width: 180px;
		}

}

/* Flex Version */
@media screen and (min-width: 750px) {
	
	article, section, aside {display: table-cell;
		vertical-align: middle;
		height: 100%;
		}
		
	article, section {width: 70%;
		padding: 1em 0.75em 1em 1.5em;
		}
		
	article.portfolio {width: 100%;}
	
	.aside-inner {display: flex;
		flex-direction: column;
		justify-content: space-around;
		height: 100%;
		padding: 0 0.75em;
		}
		
	.container {display: block;}
			
	aside {padding: 0.75em 0.2em;}

	aside img {max-width: 180px;
		}
		
	aside p {padding-bottom: 0.75em;}

}


/* Header Rules */

h1, h2 {font-family: fontellaregular, Verdana, Helvetica, sans-serif;
	color: #484899;
	}

h1 {font-size: 1.8em;}

h2 {font-size: 1.5em;
padding-left: 1em;
}
				 
h1, h1 span {
	width:280px;
	height:76px;
	display:block;
	text-align: center;
	overflow:hidden;
	margin:0 auto;
	position:relative;
	line-height:1.0;
	}
	
h1 span {
	position:absolute;
	left:0;
	top:0;
	background:url(images/logo-small.gif) no-repeat 0 0;
	}

@media screen and (min-width: 620px){


	h1, h1 span {width:600px;
		height: 163px;
		}
	
	h1 span {background:url(images/logo.gif) no-repeat 0 0;}
	

}
/* End Header Rules */		    

/*Navigation Rules*/

nav {box-shadow: inset 1px 1px 25px #9A9AEE;
	box-sizing: border-box;
	padding: 0.5em;
	width: 100%;
	}

nav ul {text-align: center;
	font-weight: bold;
	margin:0;
	padding:0;
	list-style-type:none;
	}
				 
nav li {display: inline-block;
	padding: 0 1em;
	}
				 
nav a {
	display:block;
	line-height:2em;
	color:#484899;
	text-decoration:none;
	}
	
@media screen and (min-width: 600px) {	
	
	nav {display: table;
		table-layout: fixed;
		}
	
	nav ul {display: table-row;
		}
					 
	nav li {display: table-cell;
		}

}

.current {border: 1px solid #9A9AEE;
	border-radius: 5px;
	}
	
nav a:hover, nav a:focus{text-decoration:underline;}
						
.current a:hover, .current a:focus {text-decoration: none;}

nav a:visited {color: #006500;}

/*End Navigation Rules*/
 

article p, section p {padding: 0 1.5em;}


footer {text-align: center;
	box-shadow: inset 1px 1px 25px #9A9AEE;
	}
	
footer > p {font-size: 0.8em;
	padding-top: 1em;
	}

.hole {text-indent: -5000px;
	font-size: 0.5em;
	padding: 0;
	margin: 0;
	}
	
.centre-pic {text-align: center;
	padding: 1em 1.5em;
	}
	
.centre-pic img {width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 12px;
	}

/*End General Rules*/

/*Portfolio Rules*/

h3 a {color:#484899;}

h3 a:visited {color: #006500;}

.portfolio {display: flex;
	flex-direction: column-reverse;
	padding: 0.75em 1em;
	}
		
.portfolio img {width: 100%;
	max-width: 450px;
	height: auto;
	border: 2px solid #9A9AEE;
	}
		
.text h3, .portfolio .image {text-align: center;}	


@media screen and (min-width: 680px) {

	.portfolio {
		flex-direction: row;
		}
		
	.portfolio.reverse {flex-direction: row-reverse;}
	
	.text, .image {width: 50%;
		padding: 0.5em;
		}
		
}

/*End Portfolio Rules*/



/*Contact and 404 Rules*/

section {padding: 1em;}

@media screen and (min-width: 750px) {

	.contact{padding: 1em;
		box-shadow: inset 1px 1px 6px #9A9AEE;
		}
		
}

.address {padding-left: 3em;}

.hidden {display: none;}

.label {display: inline-block;
	width: 6em;}

textarea {display: block;
	width: 100%;
	}

.form-credit {font-size: 0.7em;}

.success p, .not-found p {padding: 0 1.5em;}

.not-found .centre-pic img {border: 1px solid #9A9AEE;}

/*End Contact and 404 Rules*/			  
  

