/* Base styles */

a strong {
  color: inherit;
}

hr {
  background: none;
  border: none;
  border-bottom: 1px solid #d8dee9;
}

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

pre {
  overflow: auto;
  white-space: pre-wrap;
}

footer {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 4em;
  text-align: center;
}

/* Initial state */

#visited {
  background-color: white;
  bottom: 0;
  color: white;
  display: block;
  left: 0;
  padding: 1em;
  position: fixed;
  right: 0;
  text-align: center;
}

#visited:visited {
  background-color: #e81c4f;
}

#start {
  display: block;
}

/* 00 Content */

html #content {
  display: block;
}

/* 01 Centering */

html #centering {
  display: block;
}

html header,
html main {
  margin: 0 auto;
  max-width: 50em;
}

/* 02 Font family */

html #font-family {
  display: block;
}

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

/* 03 Spacing */

html #spacing {
  display: block;
}

html body {
  line-height: 1.5;
  padding: 4em 1em;
}

html h2 {
  margin-top: 1em;
  padding-top: 1em;
}

/* 04 Color and contrast */

html #color-contrast {
  display: block;
}

html body {
  color: #555;
}

html h1,
html h2,
html strong {
  color: #333;
}

html a strong {
  color: inherit;
}

/* 05 Balance */

html #balance {
  display: block;
}

html code,
html pre {
  background: #eee;
}

html code {
  padding: 2px 4px;
  vertical-align: text-bottom;
}

html pre {
  padding: 1em;
}

/* 06 Primary color */

html #primary-color {
  display: block;
}

html a {
  color: #116fa9;
}

/* Classes */

html a.button {
  border: 1px solid #d8dee9;
  border-radius: 290486px;
  color: #b0bfc7;
  padding: 1em 1.5em;
  text-align: center;
  text-decoration: none;
  -webkit-transition: none 200ms ease-out;
  transition: none 200ms ease-out;
  -webkit-transition-property: color, background;
  transition-property: color, background;
}

html a.button strong {
  color: #e81c4f;
}

.button:hover {
  background: #e81c4f;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.button em {
  display: block;
  font-size: 0.6em;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button strong {
  color: #e81c4f;
  -webkit-transition: color 200ms ease-out;
  transition: color 200ms ease-out;
}

.button:hover strong {
  color: white !important;
}

.button.github strong {
  color: #333;
}

.button.github:hover {
  background: #333;
}

.button.facebook strong {
  color: #3b5998;
}

.button.facebook:hover {
  background: #3b5998;
}

.button.twitter strong {
  color: #55acee;
}

.button.twitter:hover {
  background: #55acee;
}

footer .button {
  font-size: 0.8em;
  padding: 1em 2em;
}

.buttons .button {
  display: block;
  margin-bottom: 1em;
}

.cover {
  text-align: center;
}

.cover .resource {
  display: block;
}

.emoji {
  font-size: 1.125em;
  vertical-align: middle;
}

/* Responsiveness */

@media (min-width: 600px) {
  .buttons {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 1em 0;
  }

  .buttons .button {
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 1em
  }

  .buttons .button:last-child {
    margin-right: 0;
  }

  .resources {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .resource {
    display: block;
    -ms-flex-preferred-size: 0;
        flex-basis: 0;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    -ms-flex-negative: 1;
        flex-shrink: 1;
    text-align: center;
  }

  .resource + .resource {
    margin-left: 1em;
  }

  .resource-icon {
    margin: 0 auto 1em;
  }
}
