/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html {background: url('../img/slash_it.png') repeat;}
body {font-family: 'Lora', serif; color:#1f1f1f;}

/* ==========  Wrappers  ========== */
.whitewrap, .graywrap, .bluewrap, .ghostwrap {width: 100%!important; height: 100%; height: auto !important; margin: 0 auto; clear:both; overflow:hidden;}
.whitewrap {background: #eceae8;}
.graywrap {background: url('../img/kindajean.png') repeat;}
.bluewrap {background: url('../img/bluetiles.jpg') repeat;}

/* ==========  Colours  ========== */
.black {color:#1f1f1f;}
.white {color:#eceae8;}
.gray {color:#e2e0dd;}
.blue {color:#4044cb;}
.yellow {color:#f6b903;}

.whitewrap {border: 1px solid #fff;}
.whitewrap, .graywrap {color:#1f1f1f;text-shadow: 0px 1px 0px rgba(255, 255, 255, 1);}
.bluewrap, .ghostwrap {color:#eceae8;text-shadow: 0px 1px 0px rgba(0, 0, 0, 1);}

/* ==========  Typography  ========== */
html, body {font-size: 16px;}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, b {font-family: 'Lato', sans-serif;}

h1, .h1 {font-size: 2.5em;}
h2, .h2 {font-size: 1.875em;}
h3, .h3 {font-size: 1.5em; }
h4, .h4 {font-size: 1.125em;}
h5, .h5 {font-size: 2.5em;}
h6, .h6 {font-size: 1.125em;font-weight:300;}

.light {font-weight: 300;}
.up {text-transform: uppercase;}
.justl {text-align:left;}
.justc {text-align:center;}


ul, li {list-style-type: none; display: inline-block;}

a, a:visited {text-decoration: none; color: inherit;
	-moz-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-webkit-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-o-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-ms-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
}
a:hover, a:active, a.curpag {color:#4044cb;}
nav a:active, nav a:focus {position: relative; top: 1px;}

a.opp, a.opp:visited {color: #4044cb;}
a.opp:hover, a.opp:active {color: #4044cb;}

a.txtlnk, a.curpag {color:#4044cb;}
a.txtlnk:hover, a.txtlnk:active {color: #661c3f;}

/* ==========  Sections  ========== */
header, section, footer {width: 97%; max-width: 960px; margin:0 auto; padding:1.5%; display:block;}
header nav {width:100%;}
header h1 {width:100%;}
.oneofone {width:97%; padding:0 1.5%;}
.oneoftwo {width:97%; padding:0 1.5%;}
.oneofthree {width:97%; padding:0 1.5%;}
.twothirds {width:97%; padding:0 1.5%;}
.onethird {width:97%; padding:0 1.5%;}
.twofifths {width:97%; padding:0 1.5%;}
.threefifths {width:97%; padding:0 1.5%;}

header nav, header h1 {display:block; margin:0; vertical-align: middle;}
header nav {padding-top:10px;font-size:0.85em;}
header nav ul {-webkit-padding-start:10px;}
header nav ul li {display: inline-block; font-weight:300;}
header nav ul li + li {margin-left:20px;}
header h1 {text-align:center;}
header h1 img {width:100%;}
header h2 {width:100%; margin:20px auto 0;text-align:center;clear:both;}

section article {margin:40px 0;}
section header {text-align: center; width:97%; padding:1.5%; margin:0 auto;}
section article header, section article hgroup {text-align:left;}
section article h3, section article h4, section article h6 {margin:0;}
section article aside figure {margin:0 0 20px;}
section article aside figure.hero {margin:20px 0;}
section article aside figure img {width:100%;border-bottom:10px solid #2f316e;}
section article aside.logos figure {float:left;display:inline-block;}
section article aside.logos figure img {width:30%;margin:20px;}
section article ul.list li {margin-left:20px;list-style-type:disc!important; display:list-item;margin-bottom:8px;}
section article dl dt, section article dl dd {margin:auto 0 5px;}

section#hero article img {width:182px;}
section#info article p a.aro {margin-top:20px;vertical-align: bottom; display:block;float:right;}
section#info article ul li {display:list-item;margin:8px 0;}
section article a.textlink, section#info article ul li a {text-decoration: underline;}
section#info article ul li a:active, section#info article ul li a:focus {position: relative; top: 1px;}


section#form article {text-align: left;}

div.continfo, div.contform {margin:40px 0;}
div.continfo {width:97%; font-weight: 300;}
div.continfo ul .addy {}
div.continfo ul .reach {}
div.continfo ul li {display: list-item;}
div.continfo ul.soc li {width:36px; height:35px; margin-right:10px; display: inline-block;}
div.continfo ul .soc li img {display:block;}

div.contform {width:97%;}


/*

section#info article {margin:40px 0 80px; padding:20px 0;}
section#info article aside {width:97%; border-bottom:10px solid #e2e0dd; float:left;}
section#info article aside img {width:97%;}
section#info article aside:hover {border-bottom:10px solid #779a9e;
	-moz-transition: border-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-webkit-transition: border-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-o-transition: border-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-ms-transition: border-color 0.35s ease-in-out, color 0.35s ease-in-out;
	transition: border-color 0.35s ease-in-out, color 0.35s ease-in-out;
}
section#info article aside.transtable {width:100%; margin-top:20px;border:none; float:left;}
section#info article aside.transtable figcaption {}
section#info article p, section#info article ul {margin-top:30px!important;}
section#info article p a.aro {margin-top:20px;vertical-align: bottom; display:block;float:right;}
section#info article dl {list-style-type: none;}
section#info article dl dt, section#info article dl dd {margin:0 0 10px;}
section#info article ul.list {}
section#info article ul.list li, section .onethird ul.list li {margin-left:20px;list-style-type:disc!important; display:list-item;}

[role="support-page"] section article {text-align:left;}
[role="support-page"] section article hgroup h4, [role="support-page"] section article hgroup h6 {margin:0;}
*/



footer nav {}
footer nav ul li {display: inline-block; font-size:0.875em; font-weight:300;}
footer nav ul li + li {margin-left:20px;}
footer .creds {}
footer a.backtop {float:right; position:fixed; right:40px; bottom:30px;}


/* Forms */
form { }
		
form,input,textarea,select
	{
		font-size: 0.875em;
		line-height: 1.75em;
		font-weight: 300;
		letter-spacing: 1px;
		color: #3a3939;
		text-shadow: 0 0 0.5px rgba(58,57,57,0.25);
		-webkit-text-stroke: 0.25px;
	}
form input, form select {margin-bottom:15px;}
form label {display: block;margin: 0 0 0.5em 0; color:#eceae8;}
		
form input.text,
form select,
form textarea
{
	-webkit-appearance: none;
	display: block;
	border: 0;
	background: #f5f5f5;
	width: 95%;
	padding: 0.75em;
	-moz-transition: background-color 0.35s ease-in-out;
	-webkit-transition: background-color 0.35s ease-in-out;
	-o-transition: background-color 0.35s ease-in-out;
	-ms-transition: background-color 0.35s ease-in-out;
	transition: background-color 0.35s ease-in-out;
}
form input.text:focus,
form select:focus,
form textarea:focus
{background: #f2f2f2;}

form textarea{height: 8em;}
form input.text {height:3em; width:80%;}
form .formerize-placeholder{color: #5a5959 !important;}
form ::-webkit-input-placeholder{color: #5a5959 !important;}
form :-moz-placeholder{color: #5a5959 !important;}
form ::-moz-placeholder{color: #5a5959 !important;}
form :-ms-input-placeholder{color: #5a5959 !important;}
form ::-moz-focus-inner{border: 0;}
form input.text, form select {line-height: 1em;}
form ul.actions {margin-bottom: 0;text-align: center;}

form input.button, form ul.actions {float:right;}

/* Buttons */

section article a.btn, section article a.btn {width: intrinsic; margin:40px auto; padding: 0.5em 3em; text-transform:uppercase; font-weight:600; border:8px solid #e2e0dd; display:block; font-size:0.875em;}
section article a.btn:hover, section article a.btn:hover {background:#dad8d6;}

.button {width: intrinsic; 
	font-weight:600; 
	border:8px solid #3538a7;
	position: relative;
	display: inline-block;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	outline: 0;
	margin:20px 10px 40px auto;
	padding: 0.5em 3em;
	text-align: center;
	font-size:1.125em;
	text-shadow: 0px 1px 0px rgba(0, 0, 0, 1);
	
}
.button, .button:active, .button:visited {background:#494de6;color:#fff;}
.button:hover {background:#31349a;color:#f6b903;
	-moz-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-webkit-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-o-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	-ms-transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
	transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;}



/* ==========================================================================
   Helper classes
   ========================================================================== */
.fleft {float: left;}
.fright {float:left;}
.gimmespce {padding: 40px 0;}
.nomo {display:none;}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
    section header {width:80%; padding:0 1.5%;}
    header nav {width:60%;}
	header h1 {width:40%;}
    .oneofone {width:97%; padding:0 1.5%;}
	.oneoftwo {width:46.8%; padding:0 1.5%;}
	.oneofthree {width:30%; padding:0 1.5%;}
	.twothirds {width:60%; padding:0 1.5%;}
	.onethird {width:33.2%; padding:0 1.5%;}
	.twofifths {width:39%; padding:0 1.5%;}
	.threefifths {width:55%; padding:0 1.5%;}
	
	header nav {padding-top:10px;font-size:1em;}
	header nav ul, footer nav ul {-webkit-padding-start:0;}
	section article aside figure {margin:0 0 80px;}
	section article aside figure.hero {margin-top:0;}
	section article aside.logos figure img {width:25%;}
	
	/*
	
	section#info article aside {width:43%;}
	section#info article hgroup, section#info article p, section#info article ul {width:52%;}
	[role="support-page"] section#info article hgroup, [role="support-page"] section#info article p, [role="support-page"] section#info article ul {width:62%;}
    section#info article hgroup {margin-top:0;}
    
    */
    
    div.continfo {width:40%;}
    div.contform {width:60%;}
    
    .fleft {float: left;}
	.fright {float:right;}
	.nomo {display:block;}
	
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
