/*! HTML5 Boilerplate v7.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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: #333;
  font-size: 1em;
  line-height: 1.6;
  font-weight: 300;
}

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

::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
   ========================================================================== */
@font-face {
  font-family: "MV";
  src: url("../fonts/Monthoers/Monthoers-Vintage2-0.woff") format("woff"),
    url("../fonts/Monthoers/Monthoers-Vintage2-0.svg#Swistblnk-Monthoers")
      format("svg"),
    url("../fonts/Monthoers/Monthoers-Vintage2-0.eot"),
    url("../fonts/Monthoers/Monthoers-Vintage2-0.eot?#iefix")
      format("embedded-opentype");
  font-style: normal;
}

@font-face {
  font-family: "MVL";
  src: url("../fonts/Monthoers/Swistblnk-Monthoers.ttf.woff") format("woff"),
    url("../fonts/Monthoers/Swistblnk-Monthoers.ttf.svg#Swistblnk-Monthoers")
      format("svg"),
    url("../fonts/Monthoers/Swistblnk-Monthoers.ttf.eot"),
    url("../fonts/Monthoers/Swistblnk-Monthoers.ttf.eot?#iefix")
      format("embedded-opentype");
  font-style: normal;
}

.mv {
  font-family: "MV", sans-serif;
  letter-spacing: 3px;
  -webkit-font-smoothing: antialiased;
  font-weight: normal;
}

.mvl {
  font-family: "MVL", sans-serif;
  letter-spacing: 3px;
  -webkit-font-smoothing: antialiased;
  font-weight: normal;
}

body {
  font-family: Helvetica, Arial, sans-serif;
}

img {
  width: 100%;
  height: auto;
}

a {
  color: #be3a34;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bg-red {
  background: #be3a34 url(../img/tile.png);
}

.hero {
  background: white url(../img/fire.jpg) center center no-repeat;
  background-size: cover;
  color: white;
  min-height: 90vh;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
}

.shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 50%;
  background: rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero img {
  display: inline-block;
  height: auto;
  margin: 2rem 0 12rem;
  width: 200px;
}

.hero h1 {
  font-size: 5rem;
  position: relative;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  padding: 0;
}

.hero p {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.wrap {
  margin: auto;
  padding: 0 1rem;
  max-width: 1300px;
}

.pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.wrap.narrow {
  max-width: 700px;
}

.lead {
  color: white;
  font-size: 1rem;
  padding: 1rem 0 2rem;
  font-weight: 300;
  text-align: center;
}

.lead strong {
  font-weight: bold;
  text-transform: uppercase;
}

.lead .sub {
  padding-top: 1rem;
  font-size: 1.5rem;
}

.quotes {
  background-color: white;
}

h2 {
  font-size: 3rem;
}

.quotes h2 {
  color: #9a9a9a;
}

.quote {
  position: relative;
  margin-bottom: 4rem;
}

.quote-img {
  width: 60%;
  height: 0;
  padding-bottom: 60%;
  background-position: center center;
  background-size: cover;
  box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.2);
}

.quote-quote {
  box-sizing: border-box;
  position: absolute;
  background-color: #00263a;
  padding: 5rem 4rem 4rem;
  width: 50%;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: white;
  font-size: 1.5rem;
}

.quote-quote .mv {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.quote-quote .author {
  font-size: 1rem;
}

.quote:nth-child(odd) .quote-img {
  margin-left: 40%;
}

.quote:nth-child(odd) .quote-quote {
  left: 0;
  background-color: #009cbd;
}

.block-link {
  display: block;
  padding: 2rem;
  background-color: #f0f0f0;
  text-align: center;
  margin: auto;
  font-size: 1.3rem;
  color: #9a9a9a;
  text-decoration: none;
  width: 50%;
}

.block-link:hover {
  background-color: #d0d0d0;
}

.main {
  padding: 4rem 0 6rem;
  background-color: #f0f0f0;
  text-align: center;
}

.main h2 {
  padding: 2rem 0 0;
}

.main p {
  padding-bottom: 2rem;
}

.main hr {
  margin: 4rem 0 0;
}

.flex {
  display: flex;
  justify-content: space-between;
}

.flex > * {
  padding-bottom: 3rem;
}

.four > * {
  width: 24%;
}

.three > * {
  width: 32.4%;
}

.two > * {
  width: 40%;
}

.one {
  justify-content: space-around;
}

.one > * {
  width: 40%;
}

.footer {
  padding: 6rem 0;
  color: white;
  text-align: center;
}

.footer a {
  color: white;
  text-decoration: underline;
}

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

.footer .links {
  display: flex;
  font-size: 2rem;
  padding: 2rem 0;
  max-width: 840px;
  justify-content: space-between;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.3);
}

.calls a {
  font-size: 1.3rem;
}

.copyright {
  font-size: 0.8rem;
}

.hr .bg-red {
  padding-top: 4rem;
}

.hr .logo {
  display: block;
  width: 180px;
  height: auto;
  margin: auto;
}

.contact {
  padding-top: 6rem;
}

.contact ul {
  list-style: none;
  padding: 0;
}

.sponsors {
  padding-top: 4rem;
  max-width: 440px;
}

.sponsors-links {
  display: flex;
  justify-content: center;
}

.sponsors-links a {
  width: 200px;
}

@media (max-width: 800px) {
  .flex {
    display: block;
  }

  .flex > * {
    width: 100%;
  }

  .flex > * + * {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .quote {
    position: relative;
    margin-bottom: 4rem;
  }

  .quote-img {
    display: block;
    width: 100%;
    padding-bottom: 100%;
  }

  .quote-quote {
    font-size: 1.3rem;
    position: relative;
    padding: 5rem 2rem 2rem;
    width: 100%;
    transform: translateY(0);
  }

  .quote:nth-child(odd) .quote-img {
    margin-left: 0;
  }

  .footer .links {
    display: block;
    font-size: 2rem;
    padding: 2rem 0;
    text-align: center;
  }

  .footer .links > * {
    display: block;
  }
}

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