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

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

@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/GothamPro.woff2') format('woff2'),
        url('../fonts/GothamPro.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: #000;
  font-size: 14px;
  line-height: 1.4;
  font-family: 'Gotham Pro';
}

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

::-moz-selection {
  background: rgba(206,0,55,0.25);
  text-shadow: none;
}

::selection {
  background: rgba(206,0,55,0.25);
  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;
}

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

@keyframes animatedBackground {
    0% { background-position: 0 0; }
    100% { background-position: 0 -400px; }
}
@-moz-keyframes animatedBackground {
    0% { background-position: 0 0; }
    100% { background-position: 0 -400px; }
}
@-webkit-keyframes animatedBackground {
    0% { background-position: 0 0; }
    100% { background-position: 0 -400px; }
}
@-ms-keyframes animatedBackground {
    0% { background-position: 0 0; }
    100% { background-position: 0 -400px; }
}
@-o-keyframes animatedBackground {
    0% { background-position: 0 0; }
    100% { background-position: 0 -400px; }
}

h1,
h2,
h3,
.counter,
#controls_counter {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 40px;
  line-height: 44px;
  font-weight: bold;
  color: #CE0037;
  margin: 0 0 20px 0;
}

h2,
.counter {
  color: #000;
  font-size: 30px;
  line-height: 32px;
}

h3,
#controls_counter {
  color: #CE0037;
  font-size: 24px;
  line-height: 24px;
  margin: 0 0 10px 0;
}

.counter {
  margin: 20px 0 0 0;
  color: #CE0037;
}

html {
  background-color: #ffffff;
  background-image: url('../img/pattern.png');
  background-size: 400px;
  padding: 0;
  margin: 0;
  min-height: 100%;
  background-position: 0px 0px;
  animation: animatedBackground 10s linear infinite;
  -moz-animation: animatedBackground 10s linear infinite;
  -webkit-animation: animatedBackground 10s linear infinite;
  -ms-animation: animatedBackground 10s linear infinite;
  -o-animation: animatedBackground 10s linear infinite;
}

body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
}

#header,
#footer {
  padding: 20px;
  box-sizing: border-box;
}

#header img {
  width: 180px;
}

#content {
  padding: 20px;
}

#footer {
  font-size: 12px;
  color: #848484;
}

.vote {
  background: rgba(206,0,55,0.1);
  padding: 20px;
  box-sizing: border-box;
  border-radius: 24px;
  width: 100%;
  font-size: 12px;
  color: #CE0037;
}

.primary_btn {
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  background-color: #CE0037;
  padding: 20px;
  border-radius: 32px;
  height: 64px;
  width: 100%;
  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 {
  background-color: #A6192E;
}

.secondary_btn {
  font-weight: 500;
  font-size: 14px;
  color: #CE0037;
  padding: 10px;
  border-radius: 20px;
  height: 40px;
  width: 100%;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  text-align: center;
  margin: 20px 0 0 0;
  border: 1px solid #CE0037;
  transition: all 200ms ease;
}

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

#overlay {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #848484;
  opacity: 0.66;
  z-index: 1;
}

#modal {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#modal_wrapper {
  margin: auto;
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  border-radius: 40px;
  z-index: 2;
  text-align: center;
  padding: 20px 40px;
}

#modal img {
  margin: 20px 0 40px 0;
}

#overlay,
#modal,
#modal_wrapper {
  display: none;
}

#step_2_wrapper {
  display: flex;
  flex-direction: column;
}

#counter_desktop {
  display: none;
}

#gameboard {
  height: 320px;
  width: 320px;
  background-color: #F2F2F2;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

#gameboard .row {
  width: 320px;
  height: 32px;
  display: flex;
  flex-direction: row;
}

#gameboard .row div {
  display: block;
  text-align: center;
  background-color: #F2F2F2;
  font-size: 20px;
  line-height: 32px;
  font-weight: bold;
  color: #00A3E0;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  box-sizing: border-box;
  cursor: pointer;
}

#gameboard .row div:hover {
  transition: all 200ms ease;
  color: #CE0037;
  background: rgba(206,0,55,0.1);
}

#gameboard .row div.founded,
#gameboard .row div.founded:hover {
  color: #fff;
  background-color: #CE0037;
}

#results {
  padding: 20px;
  box-sizing: border-box;
  border-radius: 24px;
  width: 100%;
  font-size: 12px;
  background: rgba(206,0,55,0.1);
  font-size: 12px;
  color: #CE0037;
  margin-bottom: 20px;
  overflow: hidden;
}

#result_2,
#result_3 {
  display: none;
}

#controls {
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#controls {
  border-top: 1px solid rgba(206,0,55,0.1);
  padding: 20px 0 0 0;
}

#controls_counter{
  line-height: 36px;
  height: 36px;
  font-size: 14px;
  margin: 0;
}

#control_prev,
#control_next {
  display: block;
  width: 36px;
  height: 36px;
  transition: all 200ms ease;
  text-decoration: none;
}

#control_prev:hover,
#control_prev:focus,
#control_next:hover,
#control_next:focus {
  opacity: 0.5;
}

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

  @keyframes animatedBackground {
    0% { background-position: 0 0; }
    100% { background-position: 600px 0; }
  }
  @-moz-keyframes animatedBackground {
      0% { background-position: 0 0; }
      100% { background-position: 600px 0; }
  }
  @-webkit-keyframes animatedBackground {
      0% { background-position: 0 0; }
      100% { background-position: 600px 0; }
  }
  @-ms-keyframes animatedBackground {
      0% { background-position: 0 0; }
      100% { background-position: 600px 0; }
  }
  @-o-keyframes animatedBackground {
      0% { background-position: 0 0; }
      100% { background-position: 600px 0; }
  }

  html {
    background-size: 600px;
  }

  body {
    background: linear-gradient(-90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
  }

  #header,
  #content,
  #footer {
    padding: 40px;
  }

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

  #gameboard {
    height: 520px;
    width: 520px;
  }

  #gameboard .row {
    width: 520px;
    height: 52px;
  }

  #gameboard .row div {
    line-height: 52px;
    width: 52px;
    height: 52px;
  }

}

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

  #header,
  #content,
  #footer {
    padding: 60px 0;
    width: 840px;
    margin: 0 auto;
  }

  #step_2_wrapper {
    flex-direction: row;
    justify-content: space-between;
  }

  .step_2_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #counter {
    display: none;
  }

  #counter_desktop {
    display: block;
  }

}

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

  #header,
  #content,
  #footer {
    width: 1160px;
  }

}

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

  #header,
  #content,
  #footer {
    width: 1320px;
  }

}

#step_2,
#step_3 {
  display: none;
}