/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  width: 100%;
  display: block;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select,
optgroup {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre,
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
  * Restore the focus styles unset by the previous rule.
  */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1em 0 0;
}

p {
  margin: 1em 0;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Merriweather", serif;
  font-size: 18px;
  line-height: 1.7;
}

body {
  background: #f3f0e7
}

body > header,
body > footer {
  background: #000;
  text-align: center;
  padding: 1rem 0;
  color: #fff;
}

body > main {
  min-height: 70vh;
}

body > header > nav {
  text-align: center;
}

body > header > nav a {
  color: #ddd;
  text-decoration: none;
  display: inline-block;
  padding: 0.5em 1em;
  white-space: nowrap;
  transition: all 200ms ease-in-out;
}

body > header > nav a:hover,
body > header > nav a:focus,
body > header > nav a.active-nav {
  color: #f8b032;
}

article.single-page {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2em 1em;
}

article.single-page header {
  text-align: center;
}

article.single-page header h1 {
  font-size: 1.8rem;
  margin: 1em 0;
}

article.single-page img {
  text-align: center;
  margin: 0 auto;
}

article.single-page header img {
  max-height: 60vw;
  width: auto;
}

.single-page iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
}

.game-card {
  display: flex;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 1em;
  box-shadow: 0 6px 12px -2px rgba(50, 50, 93, 0.25),  0 3px 7px -3px rgba(0, 0, 0, 0.3);
  transition: all 200ms ease-out;
}

.game-card:hover, .game-card:focus {
  box-shadow: none;
  transform: translateY(3px);
}

.game-card img {
  max-width: 15ch;
  border-radius: 8px;
  margin-right: 1em !important;
}

.game-card h2 {
  margin: 0;
  transition: all 200ms ease-in-out;
}

.game-card p {
  margin-top: 0;
  color: initial;
}

.game-card a {
  text-decoration: none;
  transition: all 200ms ease-in-out;
}

.game-card a:hover h2,
.game-card a:focus h2 {
  color: #f8b032;
}

form label,
form input,
form textarea {
  display: block;
  width: 100%;
}

form input,
form textarea {
  padding: 0.5em;
  font-size: inherit;
  background: #fff;
  border: 1px solid #a9a9a9;
  border-radius: 8px;
}

form button {
  background: #f8b032;
  padding: 0.5em 1em;
  font-size: inherit;
  border: none;
  border-radius: 8px;
  margin: 1px auto;
}

form label,
form button {
  margin-top: 0.5em;
}

.home-page header {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-page header > a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-page header > a svg {
  width: 50%;
  height: auto;
  max-width: 512px;
}

.home-page main,
.home-page footer {
  display: none;
}

img.google-play {
  width: 256px;
}

.single-page small {
  font-size: 10px;
  font-style: italic;
  text-align: center;
  display: block;
}

footer ul {
  list-style: none;
}

footer ul li {
  display: inline-block;
  margin: 0 8px;
}

footer ul li a {
  background: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-block;
}

footer ul li a img {
  width: 48px;
  position: relative;
  top: -1px;
  left: -1px;
}

.featured-section {
  background: black;
  color: white;
  padding: 0.25em 0.5em;
  border-radius: 1em;
  margin: 2em 0;
}

.featured-section h1 {
  color: #f8b032;
  text-align: center;
  margin: 0 0 1em;
}

.featured-section div a {
  color: white;
}

.featured-section div img{
  text-align: left;
    width: auto;
    margin: 0;
}

@media only screen and (max-width: 28em) {
  .game-card {
    display: block;
  }
  .game-card img {
    max-width: none;
  }
}