@font-face {
    font-family: 'Beeline Sans';
    src: url('../fonts/BeelineSans-Black.woff2') format('woff2'),
        url('../fonts/BeelineSans-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beeline Sans';
    src: url('../fonts/BeelineSans-Medium.woff2') format('woff2'),
        url('../fonts/BeelineSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beeline Sans';
    src: url('../fonts/BeelineSans-Bold.woff2') format('woff2'),
        url('../fonts/BeelineSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beeline Sans';
    src: url('../fonts/BeelineSans-Regular.woff2') format('woff2'),
        url('../fonts/BeelineSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.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: #6E788A;
  font-size: 15px;
  line-height: 20px;
  font-weight: normal;
  font-family: 'Beeline Sans';
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: rgba(255,200,3,0.25);
  text-shadow: none;
}

::selection {
  background: rgba(255,200,3,0.25);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #6E788A;
  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;
}

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

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

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

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

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

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * 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: "";
  display: table;
}

.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: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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;
  }

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

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

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

h1,
h2,
h3 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 900;
  color: #141414;
  margin: 0 0 20px 0;
}

html {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  min-height: 100%;
  text-align: center;
}

body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
}

#header,
#footer {
  box-sizing: border-box;
  position: relative;
}

#header {
  text-align: left;
}

#heroimg {
  width: 70%;
  transition: all 500ms ease;
}

#heroimg.minified {
  width: 200px;
}

#logo {
  display: block;
  text-decoration: none;
  border: 0 none;
  width: 20px;
  height: auto;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 99;
}

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

.hh_logo {
  height: 16px;
  width: 16px;
}

#content {
  padding: 20px;
}

#footer_wrapper {
  text-align: right;
  overflow: hidden;
}

#footerimg {
  width: 200px;
  height: auto;
  position: relative;
  right: 0;
  margin-right: -8px;
  transition: all 500ms ease;
}

#footer_copyright {
  padding: 20px 0;
}

.intro_text {
  font-size: 20px;
  line-height: 26px;
  color: #141414;
}

.vote {
  background: #fff;
  padding: 20px;
  border: 2px #F1F3F5 solid;
  box-sizing: border-box;
  border-radius: 32px;
  width: 100%;
  color: #6E788A;
}

.primary_btn {
  font-weight: 600;
  font-size: 28px;
  color: #141414;
  background-color: #FFC803;
  padding: 0 20px;
  border-radius: 32px;
  height: 64px;
  width: 100%;
  line-height: 64px;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  text-align: center;
  margin: 20px 0;
  transition: all 200ms ease;
}

.primary_btn:hover,
.primary_btn:focus {
  opacity: 0.66;
}

.secondary_btn {
  font-weight: 600;
  font-size: 20px;
  color: #141414;
  background-color: #F1F3F5;
  padding: 0 10px;
  border-radius: 20px;
  height: 40px;
  line-height: 40px;
  width: 100%;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  text-align: center;
  margin: 20px 0 0 0;
  transition: all 200ms ease;
}

.secondary_btn:hover,
.secondary_btn:focus {
  opacity: 0.66;
}

#step_2,
#step_3 {
  display: none;
}

#gameboard {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 15px 0;
}

.game_item {
  background: #F1F3F5;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 20px;
  width: 50%;
  color: #6E788A;
  height: auto;
  cursor: pointer;
  border: 5px #fff solid;
  transition: all 500ms ease;
}

.game_item.selected {
  background: #FFC803;
}

.game_item_story {
  color: #141414;
  font-weight: 500;
  margin-bottom: 10px;
}


.vote_text {
  margin-top: 20px;
}

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

  #heroimg {
    width: 60%;
  }

  #logo {
    right: 40px;
    top: 40px;
  }

  #content {
    padding: 40px 0;
  }

  #step_1,
  #step_2,
  #step_3 {
    max-width: 480px;
    margin: 0 auto;
  }

  #gameboard {
    margin: 35px -5px 35px -5px;
  }

  #footer_copyright {
    padding: 40px 0;
  }

}

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

  .primary_btn,
  .intro_text,
  .vote,
  .vote_text,
  #step_2_header,
  #result {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  #step_1,
  #step_2,
  #step_3 {
    max-width: 640px;
  }

  .game_item {
    width: 33%;
  }

}


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

  h1,
  h2,
  h3 {
    font-size: 54px;
    line-height: 54px;
  }

  #step_2_header {
    max-width: 600px;
  }

  #step_1,
  #step_2,
  #step_3 {
    max-width: 900px;
  }

  .game_item {
    width: 20%;
  }

  #heroimg {
    position: fixed;
    width: 50vw;
    height: auto;
    left: 0;
    top: 0;
    z-index: 10;
  }

  #footer_wrapper {
    position: fixed;
    width: 50vw;
    height: auto;
    left: 0;
    bottom: 0;
    overflow: visible;
    z-index: 9;
    transition: all 500ms ease;
  }

  #footer_wrapper.minified {
    width: 200px;
    right: 0;
    left: auto;
  }

  #footer_wrapper img {
    position: relative;
    width: 33vw;
    height: auto;
    bottom: -8vh;
    right: 0;
    transition: all 500ms ease;
  }

  #footer_wrapper.minified img {
    width: 100%;
    bottom: -33px;
  }

  #content,
  #footer_copyright {
    width: 50%;
    margin: 0 0 0 50%;
    transition: all 500ms ease;
  }

  #content.centered,
  #footer_copyright.centered {
    width: 100%;
    margin: 0;
  }

  .intro_text {
    font-size: 30px;
    line-height: 36px;
  }

  .vote,
  .vote_text {
    font-size: 24px;
    line-height: 30px;
  }

  .vote_text {
    margin-top: 40px;
  }

  .hh_logo {
    height: 24px;
    width: 24px;
  }

  .primary_btn {
    font-size: 40px;
    border-radius: 88px;
    height: 88px;
    line-height: 88px;
    margin-bottom: 40px;
  }

  .secondary_btn {
    font-size: 30px;
    line-height: 60px;
    padding: 0 20px;
    border-radius: 30px;
    height: 60px;
  }

}


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

  #step_1,
  #step_2,
  #step_3 {
    max-width: 1200px;
  }

}