/*! HTML5 Boilerplate v5.2.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: 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
   ========================================================================== */

*{
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
#wrap{
	background: url('../img/background.png') no-repeat;
	max-width: 974px;
	margin: 0 auto;
	overflow: auto;
	padding-bottom: 70px;
}

header{
	margin-top: 36px;
	text-align: center;
}
header img{
	margin-bottom: 10px;
	max-width: 146px;
}
header h1{
	color: #ffffff;
	font-family: Gentona-Bold;
	font-size: 50px;
	text-transform: uppercase;
	margin: 0;
	font-weight: 100;
	line-height: 47px;
}
header hr{
	width: 30%;
	margin: 0 auto;
  border-top: 1px solid #B92033;
}

#primary{
	background:rgba(21,39,53,0.67);
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
	align-items: center;
	justify-content: center;
	max-height: 325px;
	margin-top: 125px;
}
#primary img{
	max-width: 240px;
}
#primary ul{
	padding: 0;
	display: inline-block;
	max-width: 620px;
}
#primary li{
	color: #ffffff;
	font-family: Gentona-Book;
	font-size: 20px;
	font-weight: 100;
	list-style: none;
	padding: 10px;
}
#primary li span{
	font-family: Gentona-Bold;
}
#primary li:before{
	content: "\2014";
	color: #BF2135;
	font-size: 24px;
	margin-right: 10px;
}

#secondary{
	background:rgba(21,39,53,0.67);
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
	align-items: center;
	justify-content: center;
	max-height: 232px;
	margin-top: 125px;
}
#secondary img{
	max-width: 410px;
}
#secondary ul{
	padding: 0;
	display: inline-block;
	max-width: 500px;
}
#secondary li{
	color: #ffffff;
	font-family: Gentona-Book;
	font-size: 20px;
	font-weight: 100;
	list-style: none;
	padding: 10px;
	display: inline-block;
}
#secondary li span{
	font-family: Gentona-Bold;
}
#secondary li:before{
	content: "\2014";
	color: #BF2135;
	font-size: 24px;
	margin-right: 10px;
	display: inline-block;
}

#tertiary{
	background:rgba(21,39,53,0.67);
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
	align-items: center;
	justify-content: center;
	max-height: 232px;
	margin-top: 85px;
}
#tertiary p{
	color: #ffffff;
	font-family: Gentona-Book;
	font-size: 20px;
	font-weight: 100;
	list-style: none;
	padding: 10px;
	display: inline-block;
	max-width: 555px;
	text-align: center;
}
#tertiary p span{
	font-family: Gentona-Bold;
}
#tertiary .reverse{
	-moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

footer{
	text-align: center;
}
footer a {
	background: #CDCDCF;
	border-radius: 6px;
	color: #0B529C;
	display: inline-block;
	font-family: Gentona-Book;
	padding: 6px 14px;
	text-decoration: none;
	margin: 10px;
	-webkit-transition: all 100ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
	   -moz-transition: all 100ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
	     -o-transition: all 100ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
	        transition: all 100ms cubic-bezier(0.420, 0.000, 1.000, 1.000); /* ease-in */

	-webkit-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
	   -moz-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
	     -o-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
	        transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000); /* ease-in */
}
footer a:hover {
	background: #FFFFFF;
}





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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * 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 (max-width: 820px) {
  /* Style adjustments for viewports that meet the condition */
  header{
    margin-top: 14px;
  }
  header h1{
    font-size: 40px;
		line-height: 37px;
  }
  #primary, #secondary, #tertiary{
    display: block;
    max-height: 100%;
    margin-top: 30px;
  }
	#primary ul, #secondary ul, #tertiary ul {
		padding: 0 20px;
		display: block;
    margin: 10px auto;
	}
	#primary li, #secondary li, #tertiary p{
    color: #ffffff;
    font-family: Gentona-Bold;
    font-size: 15px;
    font-weight: 100;
    list-style: none;
    padding: 0;
    margin: 0px auto;
    display: block;
	}
	#primary img, #secondary img{
    max-width: 130px;
    display: block;
    margin: 0px auto;
	}
	#secondary img{
    max-width: 230px;
	}
	#tertiary img{
		 display: none;
	 }
}

@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:
   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;
    }
}
