/* @group HTML5 Boilerplate */

/*
 * 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 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 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;
}

/* @end */



/* ==========================================================================
   Author's custom styles by Kevin Yeoh
   ========================================================================== */

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
}

img,
object,
embed {
  max-width: 100%;
  height: auto; }
  
/*object, embed {height: 100%; }*/
img {-ms-interpolation-mode: bicubic; }
a img {border: none; }
div, article, section {overflow: auto;}

::selection {
  background: #b50000;
  text-shadow: none;
  color: #ffffff;
}

::-moz-selection {
  background: #b50000;
  text-shadow: none;
  color: #ffffff;
}

body {
  font-size: 16px;
  line-height: 1.8em;
  font-weight: 300;
  color: #ffffff;
  text-align: center;
}


h1, h2, h3, h4, h5, h6 {
	font-style: normal;
	/*font-weight: 100;*/
	line-height: 1.2em;
  margin: 0;
	clear: both;
	/*font-smooth: always;*/
	/*-webkit-font-smoothing: antialiased;*/
	color: #ffffff;
  padding-bottom: 1em;
  padding-top: 1em;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
	color: inherit;
}

h1 {
  text-align: center;
  font-size: 9vw;
  text-transform: uppercase;
  font-style: italic;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}

h2 {
  text-align: center;
  font-size: 8.5vw;
  text-transform: uppercase;
  font-style: italic;
}

h3 {
  text-align: center;
	font-size: 6vw;
}

h4 {
	font-size: 5.5vw;
}

h5 {
	font-size: 5vw;
}
@media only screen and (min-width:769px) {
  h1 {
    font-size: 4em;
  }
  h2 {
    font-size: 3.5em;
  }
  h3 {
    font-size: 1.5em;
  }
  h4 {
  	font-size: 1.3em;
  }
  h5 {
  	font-size: 1em;
  }
}

h6 {
  padding-bottom: 0;
  font-size: 1em;
	line-height: 1.8em;
	font-weight: bold;
}

p {
  margin: 0 0 1em;
}

strong, b {
  font-weight: bold;
}

a, a:active .hyperlink {
	color: #b50000;
	text-decoration: none;
}

a:visited, .visited {
	color: #a26161;
}

a:hover, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, .mouseover {
	color: #ff0000;
}

hr {
  clear: both;
  border-top: 1px solid #ffffff;
  opacity: 0.3;
}

ul, ol {
	padding-left: 2em;
  margin: 0 0 1em;
  text-align: left;
}

dl {
  padding: 0;
  margin: 0 0 1em;
}

dl>dt {
  padding: 0;
  margin: 0;
  font-weight: bold;
}

dl>dd {
  padding: 0;
  margin: 0 0 1em;
}

blockquote {
	font-size: 1.6em;
	font-style: italic;
	line-height: 1.25em;
  margin: 0 0 0.25em;
  /*font-smooth: always;*/
	/*-webkit-font-smoothing: antialiased;*/
}

blockquote p {
  margin-bottom: 0.75em;
}

blockquote p:first-of-type::before {
	content: "\“";
}

blockquote p:last-of-type::after {
	content: "\”";
}

body, html {
  height: 100%;
  min-width: 320px;
  background-color: #8f8f8f;
  z-index: 0;
}

button,
.button, .button:link, .button:visited {
  font-size: 1em !important;
	font-style: normal !important;
  display: inline-block;
	padding: 0.5em 1em;
  -webkit-border-radius: 4px !important;
     -moz-border-radius: 4px !important;
          border-radius: 4px !important;
  -webkit-transition-duration: 0.5s !important;
     -moz-transition-duration: 0.5s !important;
          transition-duration: 0.5s !important;
  border: 1px solid #ffffff !important;
  margin: 0;
  color: #ffffff;
  background: none;
	line-height: 1.2em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
.button:hover {
  background-color: #ffffff;
  color: #ff0000 !important;
  text-shadow: none;
  transition-duration: 0.5s !important;
  -webkit-transition-duration: 0.5s !important;
  -moz-transition-duration: 0.5s !important;
  text-decoration: none;
}

/* Font Awesome button icon */
button>i.fa, .button>i.fa {
  margin: 0 0.5em 0 0;
}

button>i.right, .button>i.righticon {
  margin: 0 0 0 0.5em;
}

.intro {
	font-size: 1.6em;
	line-height: 1.5em;
  text-align: center;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}

.error {
  color: #b14949;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.safe-space {
	padding-right: 20px;
	padding-left: 20px;
}

.clear {
	clear: both;
}

.vertical-middle {
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
     -moz-transform: translateY(-50%);
          transform: translateY(-50%);
}

.autocol {
  column-count: 1;
  -webkit-column-count: 1;
  -moz-column-count: 1;
  column-gap: 40px;
  -webkit-column-gap: 40px;
  -moz-column-gap: 40px;
  overflow: hidden;
}

.fullheight {
  min-height: 100%;
  overflow: hidden;
}
.fullwidth {
  min-width: 100%;
  overflow: hidden;
}
.narrow {
  max-width: 600px !important;
  margin-right: auto;
  margin-left: auto;
}

.nowrap {
  white-space: nowrap;
}

.socialmedia {
  font-family: fontawesome !important;
  font-smooth: always;
  	-webkit-font-smoothing: antialiased;
}

.socialmedia>a {
  margin: 0.25em;
}

.ruler {
  background: url(../images/ruler.png) left top no-repeat;
}

header {
  width: 100%;
  position: absolute;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  z-index: 100;
  text-align: left;

  /*translucent background */
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);  
}

section {
  padding-top: 70px;
  padding-bottom: 70px;
	position: relative;
}

#headerlogo img {
  height: 70px;
  margin: 0 0;
}

/* @group Main Menu */

#nav {
  position: absolute;
  width: 100%;
  height: auto;
  text-transform: uppercase;
  top: 0;
  right: 0;
	font-size: 1em;
}

#nav #main-menu {
  background-color: rgba(0, 0, 0, 0.9);
  top: 70px;
  position: absolute;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  text-align: center;
}

#nav #main-menu a {
  color: #ffffff;
  text-decoration: none;
  line-height: 50px;
  display: block;
  padding: 0 1em;
}

#nav #main-menu a:hover {
  color: #ff0000;
  background-color: rgba(255, 255, 255, 0.05);
}

#nav #open-btn, #nav #close-btn {
  display: block;
  position: absolute;
  text-decoration: none;
  padding-right: 1em;
  padding-left: 1em;
  color: #ffffff !important;
  background: none !important;
  right: 0;
	line-height: 0 !important;
	margin-top: 25px;
}

#nav #open-btn {
  display: none;
}

#nav #close-btn {
  top: -70px;
}

#nav #close-btn::after {
  content: "";
  display: block;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(0, 0, 0, 0.9);
  width: 0;
  height: 0;
  margin-top: 15px;
}

#nav:not(:target) #main-menu {
  height: 0;
  overflow: hidden;
}

#nav:not(:target) #open-btn {
  display: block;
}

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

#nav:not(:target) #main-menu {
  height: auto;
}

#nav {
  max-width: 900px; /* set accordingly to menu length */
  float: right;
  position: relative;
/*  background-color: #8e1e1e;
  height: 10px;*/
}

#nav #main-menu {
  width: auto;
  background: none;
	right: 0;
  text-align: right;
	top: 0;
}

#nav #main-menu a {
  padding: 0;
  margin-left: 1.5em;
	margin-top: 45px;
	margin-bottom: 45px;
	display: inline-block;
	line-height: 30px;
	font-size: 18px;
}

#nav #main-menu a:first-child {
  margin-left: 0;
}

#nav #open-btn, #nav #close-btn {
  display: none !important;
}

#nav #main-menu a:hover {
  background: none;
}

#headerlogo img, #footerlogo img {
  height: 100px !important;
  margin: 10px 0 !important;
}

section {
  padding-top: 120px;
  padding-bottom: 120px;
}


}

/* @end */

/* @group Back to Top */

#back-top {
  margin: 0;
	position: fixed;
	bottom: 0;
  right: 5%;
  z-index: 100;
}
#back-top a {
	width: 50px;
	display: block;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
  background-color: #8f8f8f;
  padding: 0.5em;
  font-size: 12px;
  line-height: 1em;
  opacity: 0.8;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  transition: 0.5s;
}
#back-top a:hover {
  opacity: 1;
}

/* @end */

/* @group Next Section */

.nextsection {
  display: none;
  width: 50px;
  height: 50px;
  position: absolute;
  text-align: center;
  bottom: 10px;
  left: 50%;
  font-size: 50px;
  color: #ffffff !important;
  opacity: 0.3;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
          transform: translateX(-50%);
}

.nextsection::after {
  font-family: FontAwesome;
  content: "\f107";
}

.nextsection.negative {
  color: #ffffff !important;
}

.nextsection:hover {
	opacity: 1;
}
.fullheight .nextsection {
  display: block;
}

/* @end */

/* @group Center content */

.centercontent {
  padding: 20px;
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  -webkit-transform: translate(0,0);
}

@media only screen and (min-width:641px) and (min-height:641px) {

.centercontent {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  -webkit-transform: translate(-50%,-50%);
     -moz-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}

}

/* @end */

/* @group Footer */

footer {
  /*font-size: 0.75em;*/
	text-align: center;
	background-color: rgba(0, 0, 0, 0.7);
	padding-top: 40px;
	padding-bottom: 20px;
}

footer, footer a, footer a:link, footer a:visited {
  color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
  color: #ffffff;
}

#footerlogo img {
  height: 50px;
  margin-bottom: 20px;
}

footer nav {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}

footer nav a {
  display: block;
}

footer span.socialmedia {
  display: block;
  margin-bottom: 20px;
}

footer #copyright {
	font-size: 0.8em;
}

footer #author {
	font-style: italic;
	font-size: 0.8em;
}

/* @end */

/* @group Table elements */

table {
  /*background-color: #dedede;*/
}

table>caption {
  padding: 1em 0;
  font-size: 1.5em;
}

tr:nth-of-type(2n+1) {
  background-color: rgba(0, 0, 0, 0.02);
}

td {
  margin: 0;
  padding: 0.2em;
}

/* @end */

/* @group Form elements */

form {
  margin: 0;
}

input, textarea, select {
	margin: 0.5em 0;
	box-sizing: border-box !important;
  color: #8f8f8f;
  font-size: 1em;
  line-height: 1.2em;
}

input[type="text"], 
input[type="password"], 
input[type="tel"], 
input[type="email"], 
input[type="number"], 
input[type="date"], 
input[type="time"], 
input[type="datetime"], 
input[type="datetime-local"], 
input[type="week"], 
input[type="month"], 
input[type="url"], 
input[type="search"], 
textarea, 
select {
  padding: 0.5em;
  border: 1px solid #dbdbdb;
  background-color: #ffffff;
  width: 100%;
  display: block;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  -webkit-border-radius: 0;
     -moz-border-radius: 0;
          border-radius: 0;
}

input.button {
  margin-left: 0;
}

input[type="file"] {
  display: block;
  width: 100%;
}

input[type="search"] {
background-image: url(../images/input-search.png);
background-repeat: no-repeat !important;
background-position: left center !important;
background-size: 36px !important;
padding-left: 36px !important;
}

input[type="radio"],
input[type="checkbox"] {
	margin-right: 0.5em;
	margin-left: 2px;
}

select {
  background-image: url(../images/input-dropdown.png);
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 36px !important;
  padding-right: 36px !important;
}

/* @end */



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

body {
  font-size: 18px;
}

.column-2, .column-4 {
	width: 50%;
	float: left;
}


.two-column div, .four-column div {
  width: 50%;
  float: left;
}

.two-column div:nth-child(2n+1), .four-column div:nth-child(2n+1) {
  clear: both;
}

.column-left {
  width: 50%;
  text-align: left;
  float: left;
  display: block;
  clear: both;
}

.column-right {
  width: 50%;
  text-align: right;
  float: right;
  display: block;
}

footer {
  text-align: left;
}

}

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

.autocol {
  column-count: 2;
  -webkit-column-count: 2;
  -moz-column-count: 2;
}

.column-3 {
	width: 33.3333%;
	float: left;
}

.three-column div {
  width: 33.3333%;
  float: left;
}

.three-column div:nth-child(3n+1) {
  clear: both;
}

}

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

.container {
  max-width: 1024px;
}

.column-4 {
	width: 25%;
	float: left;
}

.four-column div {
  width: 25%;
  float: left;
}

.four-column div:nth-child(2n+1) {
  clear: none;
}

.four-column div:nth-child(4n+1) {
  clear: both;
}

}

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

body {
  font-size: 20px;
}

/* @group Large navigation */

/* Make header maximize width with 5% padding on left and right sides */
header>div.container {
  max-width: 100% !important;
  padding-left: 5vw;
  padding-right: 5vw;
}

.nextsection::after {
	font-size: 70px;
}

}


/* @group Helper Classes */

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

/*
 * 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: 150%;
}

/*
 * 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.
   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 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;
    }



}


/* @end */