/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.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 {
	font-family: "PT Sans",Helvetica,Arial,sans-serif;
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets 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 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
   ========================================================================== */

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

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

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

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * 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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

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

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    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;
    }

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

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

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

li {
	list-style: none;
}

h3 i {
	padding-top: 11px;
	text-align: center;
	width: 47px;
	height: 47px;
	border-radius: 40px;
	background: #3067a8;
}

.header {
	box-shadow:  0 2px 3px rgba(0,0,0,0.3);
	background: #353535;
}

.logo img {
	position: relative;
	top: 10px;
}

.nav-main {
	float: right;
	margin: 0;
}

.nav-main a{
	float: left;
	text-transform: uppercase;
	color: #fff;
	display: block;
	padding: 30px;
	transition-duration: .4s;
}

.nav-main a:hover {
	text-decoration: none;
	background: #1b1b1b;
}

.nav-main a:active {
	background: #1a1b1f;
}

.header-image {
	width: 30%;
	float: left;
	text-align: center;
	color: #fff;
	font-size: 25px;
}

.content {
	margin: 0 auto;
	padding: 40px 20px 0px;
	font-size: 1.2em;
	max-width: 1170px;
}

.content .text p:after {
	border: none;
}

.content p {
	color: #000;
	padding-top: 15px;
}

.content p:after {
	content: ' ';
	display: block;
	width: 50%;
	border-bottom: 2px dotted #7cb2f4;
	margin: 15px auto 0px;
}

.content h1 {
	line-height: 1.7em;
	text-indent: 10px;
}

.content h1:after {
	content: ' ';
	display: block;
	border-bottom: 3px solid #3066A8;
	width: 100%;
}

.content h2, .content h3 {
	text-indent: 15px;
}

.content p, ul {
	transition: .2s ease-in;
	border-radius: 5px;
}

.content p:hover {
	padding-left: 2px;
	background-color: rgba(236,239,241, .5);
}



.footer {
	margin-top: 40px ;
	padding: 40px 20px 20px;
	background: #353535;
	color: #fff;
	font-size: 1.2em;
}

.block-footer {
	color: #CCC;
	height: auto;
	padding: 0px 20px 20px 20px;
	display: block;
	background: #303030;
	transition-duration: .3s;
}

.block-footer a {
	color: inherit;
}

.block-footer li {
	padding-left: 15px; 
	transition-duration: .3s;
	display: block;
}

.block-footer li a:hover {
	text-decoration: none;
}

.block-footer li:hover {
	padding-left: 10px;
	color: #3066A8;
	background: #1b1b1b;
}

.block-footer ul {
	padding-left: 0;
	font-size: .9em;
	padding-bottom: 10px;
	border-bottom: 1px solid #bbb;
}


.block-footer span {
	padding: 10px;
	line-height: 40px;
}

.block-footer .fa {
	color: #fff; 
}

.block-footer:hover {
	background: #292929;
}

.wrap {
	width: 67%;
	margin: 0 auto;
}

@media only screen and (max-width: 1285px) {
	.nav-main a {
		padding: 30px 20px 30px 20px;
	}
}

@media only screen and (max-width: 1104px) {
	.nav-main a {
		padding: 30px 15px 30px 15px;
	}
}
@media only screen and (max-width: 1050px) {
	.nav-main a {
		padding: 30px 10px 30px 10px;
	}
	
}

@media only screen and (max-width: 990px) {
	.header-nav {
	}
	.header-image {
		float: left;
		width: 30%;
		margin: 0 auto;
	}
	
}

@media only screen and (min-width: 767px) {
	.menu-phone {
		display: none;
	}
	
}

@media only screen and (max-width: 767px) {
	
	.header {
		min-height: 80px;
	}
	.container-fluid {
		padding: 0px !important;
	}	
	.header-image {
		width: 100%;
	}
	.logo img{
		width: 70%;
		background: url('img/logo.png');
		float: left;
	}
	.menu-phone {
		position: relative;
		top: 12px;
		left: -20px;
		float: left;
		width: 20%;
	}
	.content {
		padding: 20px 10px;
	}
}

@media only screen and (max-width: 767px) {
	.wrap {
	width: 100%;
	}
	.content h1 {
		font-size: 1.2em;
		margin-top: -10px;
	}
	
	.content p {
		font-size: .9em;
		padding-top: 5px;
		line-height: 20px;
	}
	.footer {
		margin-top: 0px ;
		padding: 0px 0px 0px;
		font-size: 1em;
	}

	.block-footer {
		padding: 0px 5px 5px 10px;
		transition-duration: 0s;
	}
	
	.block-footer li {
		transition-duration: 0s;
	}
	
	.block-footer ul {
		padding-bottom: 0px;
	}

}

.nav-phone li {
	text-align: left;
	cursor: pointer;
	height: 28px;
	overflow: hidden;
}

.nav-phone li:hover {
	text-align: left;
	width: 250px;
	height: 220px;
	overflow: visible;
}

.nav-phone li a {
	padding: 10px;
	font-weight: bolder;
	font-family: "PT Sans", Arial, sans-serif;
	font-size: 18px;
	line-height: 20px;
	display: block;
	cursor: pointer;
	color: #fff;
	background: #1b5193;
	padding-left: 10px;
	margin-top: 2px;
	border-radius: 5px;
	
}

.nav-phone li a:before {
	content: '> ';
}

.nav-phone li a:first-child {
	margin-top: 40px;
}

