/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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 {
    color: #222;
    font-size: 16px;/*1em;*/
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif ;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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: 50px 0;
    padding: 0;
	background-image:url('../img/row-of-dots-HOME.png');
	background-repeat:no-repeat;
	background-position:center center;
	background-size: auto 15px;
	height:15px;


}


/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


section, header, footer {
	min-width:360px;
	max-width:1600px;
	margin:0 auto;
}

header {
	position:relative;
}
footer {
	margin:2em 0;
}
footer div {
	display: inline-block;
	width: 45%;
	text-align: center;
}
section>div {
/*	max-width:900px;
	width:80%;*/
	margin:0 auto;
	clear:both;
	float:none;
}
section>div:after {
    content: " "; /* 1 */
    display: table; /* 2 */
    clear: both;
}
div.whole {
	max-width:900px;
	width:80%;
}
@media only screen and (min-width: 719px) and (max-width: 899px) {
	div.whole {
		width:85%;
	}
}
@media only screen and (max-width: 719px) {
	div.whole {
		width:85%;
	}
}
@media only screen and (max-width: 499px) {
	div.whole {
		width:90%;
	}
}

.logo {
	width:auto;
	height:50px;
}
.menu_icon {
	width:auto;
	height:30px;
}



nav {
	display:block;
	position:fixed;
	top:0;
	/*background-color:#4d4d4d;*/
	/*background-color:rgba(50,50,50,0.4);*/
	background-color:#FFF;
	width:100%;
	padding:10px 0;
	text-align:center;
	z-index:99;
	min-width:360px;
}
nav a {
	display:block;
	/*float:left;*/
	margin-left:0.8em;
	margin-right:0.8em;
	font-size:1.1em;
	font-weight:400;
	letter-spacing:-1px;
}
nav a:link, nav a:visited {
	color:#342e1e;
	text-decoration:none;
}
nav a:hover {
	color:#000;
	text-decoration:underline;
	text-shadow:0px 0px 1px #acf;
}
nav a:active {
	color:#3393c3;
}
nav a.email {
	/*color:#cdd984;*/
	font-style:italic;
	font-weight:400;
}
#menu_button {
	display:none;
}
#top {
	margin-top:70px;
}

@media only screen and (min-width: 1000px) {
	nav a {
		margin-left:1em;
		margin-right:1em;
	}
}
@media only screen and (min-width: 611px) and (max-width: 719px) {
	nav a {
		font-size:0.9em;
	}
}
@media only screen and (min-width: 611px) {
	nav a {
		display:inline-block;
		vertical-align: middle;
		float:none;
	}
}
@media only screen and (max-width: 999px) {
	html {
		font-size: 15px;
	}
}
@media only screen and (max-width: 610px) {

	html {
		font-size: 14px;
	}

	.no-js #menu_button {
		display:none;
	}
	nav {
		padding:0;
		font-size:16px;
	}
	header img {
		height: 2em;
		width: auto;
	}
	nav a {
		font-size:16px;
	}
	.no-js nav {
		font-size:7px;
	}
	#menu_button {
		color:#0073a3;
		line-height:2em;
		display:block;
		width:60%;
		margin: 0 auto;
		cursor:pointer;
		background-color:#fff;
		border:2px solid #4d4d4d;
		border-radius: 10px 10px 0px 0px;
	}
	#menu_button:hover {
		background-color:#ccc;
	}
	#menu.inactive {
		height:2em;
		overflow:hidden;
	}
	#menu a:link, #menu a:visited {
		line-height:2em;
		display:block;
		width:60%;
		margin: 0 auto;
		background-color:#eee;
		border-left:2px solid #4d4d4d;
		border-right:2px solid #4d4d4d;
	}
	nav a:last-of-type {
		border-bottom: 2px solid #4d4d4d;
	}
	#menu a:hover {
		background-color:#ccc;
		border-left:2px solid #111;
		border-right:2px solid #111;
	}
	.logo {
		height:45px;
	}
	#top {
		margin-top:32px;
	}
}

a:hover img {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
	filter: alpha(opacity=75);
	opacity:0.75;
}

h1 {
	font-size:3em;
	font-weight:400;
	color:#1273a3;
}
@media only screen and (max-width: 910px) {
	h1 {
		font-size:2.5em;
	}
}
@media only screen and (max-width: 610px) {
	h1 {
		font-size:2em;
	}
}

h2 {
	max-width:19em;
	font-size:2.2em;
	font-weight:500;
}
@media only screen and (max-width: 910px) {
	h2 {
		font-size:2em;
	}
}
@media only screen and (max-width: 610px) {
	h2 {
		font-size:1.5em;
	}
}

h3 {

}





.box-container {
	display:block;
	text-align:center;
	margin:0 auto;
	max-width:860px;
}
.box-container .box {
	display:inline-block;
	position:relative;
	vertical-align:top;
	width:12.5em;
	height:12.5em;
	margin:0.5em;
	/*background-color:#6fbf59;*/
	color:#FFF;
	font-weight:bold;
}
.box-container .box:nth-of-type(2n+1) {
	background-color:#6fbf59;
}
.box-container .box:nth-of-type(2n) {
	background-color:#3b8cb4;
}
.box-container a:link, .box-container a:visited {
	color:#FFF;
	text-decoration:none;
}
.box-container a:hover, .box-container a:active {
	color:#DDD;
	text-decoration:none;
}
.box-container a:link .bg-primary, .box-container a:visited .bg-primary {
	background-color:rgb(18,115,163);
}
.box-container a:hover .bg-primary, .box-container a:active .bg-primary {
	background-color:rgba(18,115,163,0.75);
}
.box-container a:link .bg-accent, .box-container a:visited .bg-accent {
	background-color:rgb(59,175,41);
}
.box-container a:hover .bg-accent, .box-container a:active .bg-accent {
	background-color:rgba(59,175,41,0.75);
}

.float-container {
	display:block;
	text-align:center;
}
.float-container .left, 
.float-container .center, 
.float-container .right 
{
	float:left;
	width:20%;	
	position:relative;
	vertical-align:top;
	height:6em;

}
.float-container .left {
	padding-left:19%;
}
.float-container .center {
	margin-left:1%;
	margin-right:1%;
}
.float-container .right {
	padding-right:19%;
}

.float-container .box-text {
	font-weight:bold;
	text-align:center;
}

.box-text {
	position: relative;
	width:9em;
	margin: 0 auto;
	text-align:center;
	top: 50%;
	transform: perspective(1px) translateY(-50%) translateZ(0);
	/*fix blurry text*/
	zoom : 100%;
	-webkit-font-smoothing: subpixel-antialiased;
	font-smoothing: subpixel-antialiased;
	backface-visibility: hidden;
}

@media only screen and (max-width: 67.5em) {
	.max9em  {
		font-size:0.9em;
	}
}
@media only screen and (max-width: 61em) {
	.max9em  {
		font-size:0.8em;
	}
}
@media only screen and (max-width: 54em) {
	.max9em  {
		font-size:0.75em;
	}
}
/*
@media only screen and (max-width: 51em) {
	.max9em  {
		font-size:0.7em;
	}
}
*/
/*
@media only screen and (max-width: 47.5em) {
	.max9em  {
		font-size:0.6em;
	}
}
*/
@media only screen and (max-width: 900px) {
/*	.break-900 h1 {
		font-size:2em;
	}*/
	.break-900 .float-container .left, 
	.break-900 .float-container .center, 
	.break-900 .float-container .right 
	{
		float:left;
		width:26%;	
		position:relative;
		vertical-align:top;
		height:6em;
	
	}
	.break-900 .float-container .left {
		padding-left:9%;
	}
	.break-900 .float-container .center {
		margin-left:2%;
		margin-right:2%;
	}
	.break-900 .float-container .right {
		padding-right:9%;
	}
}
@media only screen and (max-width: 579px) {
	.break-900 h1 {
		font-size:1.75em;
	}
	.break-900 .float-container .left, 
	.break-900 .float-container .center, 
	.break-900 .float-container .right 
	{
		float:left;
		width:30%;	
		position:relative;
		vertical-align:top;
		height:6em;
	
	}
	.break-900 .float-container .left {
		padding-left:3%;
	}
	.break-900 .float-container .center {
		margin-left:2%;
		margin-right:2%;
	}
	.break-900 .float-container .right {
		padding-right:3%;
	}
}
@media only screen and (max-width: 499px) {
	.abs-center-container .abs-center.break-900 {
		position:relative;
		margin-bottom:-15%;
	}
}



footer div {
	display:inline-block;
	width:45%;
	text-align:center;
}

.iblock {
	display:inline-block;
	position:relative;
	vertical-align:top;
}

img.maximize {
	width:100%;
	height:auto;
}
.large {
	font-size:2em;
}
.bigger {
	font-size:1.5em;
}

.buffer-top {
	margin-top:1em;
}
.buffer-bottom {
	margin-bottom:1em;
}
.bigbuffer-top {
	margin-top:3em;
}
.bigbuffer-bottom {
	margin-bottom:3em;
}
.buffer-right {
	margin-right:2em;
}
.buffer-left {
	margin-left:2em;
}
.snuggle-down {
	margin-bottom:0;
}
.snuggle-up {
	margin-top:0;
}
.no-margin{
	margin:0;
}
.align-center {
	text-align:center;
}
.align-right {
	text-align:right;
}
.align-left {
	text-align:left;
}
.color-black {
	color:#000;
}
.color-primary {
	color: #1273a3;
}
.color-accent {
	color:#3baf29;
}
.bg-primary {
	background-color:rgb(18,115,163);
	background-color:rgba(18,115,163,0.75);
	color: #FFF;
}
.bg-accent {
	background-color:rgb(59,175,41);
	background-color:rgba(59,175,41,0.75);
	color: #FFF;
}
.clear-border {
	border-left:1% solid transparent;
	border-right:1% solid transparent;
}
.black-font span {
	color:black;
}
p.left {
	margin-bottom:0;
	padding-right:6em;
}
p.right {
	margin-top:0;
	padding-left:6em;
}
@media only screen and (max-width: 52em) {
	p.break-it.left {
		padding-right:0;
		text-align:left;
	}
	p.break-it.right {
		padding-left:0;
		text-align:right;
	}
}
/*
@media only screen and (max-width: 38em) {
	p.break-it.left {
		float:left;
	}
	p.break-it.right {
		float:left;
	}
}
*/
.abs-center-container {
	position:relative;
	text-align:center;
}
.abs-center-container .abs-center {
	position: absolute;
	margin: 0 auto;
	text-align:center;
	top: 50%;
	left:0;
	right:0;
	transform: perspective(1px) translateY(-50%) translateZ(0);
	/*fix blurry text*/
	zoom : 100%;
	-webkit-font-smoothing: subpixel-antialiased;
	font-smoothing: subpixel-antialiased;
	backface-visibility: hidden;
}

.iblock.align img {
	height:2.5em;
	width:auto;
	margin:0.5em 1em;
}
@media only screen and (min-width: 800px) {
	p.adapt span {
		display:block;
	}
}


@media only screen and (max-width: 800px) {
	.large.break-800 {
		font-size:1.5em;
	}
}
@media only screen and (max-width: 550px) {
	.large {
		font-size:1.5em;
	}
	.bigger {
		font-size:1.25em;
	}
	.large.break-800 {
		font-size:1.25em;
	}
}
@media only screen and (max-width: 419px) {
	.large {
		font-size:1.25em;
	}
	.bigger {
		font-size:1.1em;
	}
	.large.break-800 {
		font-size:1.1em;
	}
}










/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These 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 */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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