/* montserrat-regular - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'),
       url('/fonts/montserrat-v25-latin-regular.woff2') format('woff2'),
       url('/fonts/montserrat-v25-latin-regular.woff') format('woff');
}
/* montserrat-500 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: local('Montserrat'),
       url('/fonts/montserrat-v25-latin-500.woff2') format('woff2'),
       url('/fonts/montserrat-v25-latin-500.woff') format('woff');
}
/* montserrat-700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'),
       url('/fonts/montserrat-v25-latin-700.woff2') format('woff2'),
       url('/fonts/montserrat-v25-latin-700.woff') format('woff');
}

/* varela-round-regular - latin */
@font-face {
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  src: local(''),
      url('/fonts/varela-round-v19-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
      url('/fonts/varela-round-v19-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


body {
  font-family: 'Varela Round', sans-serif;
  margin: 16px;
  background-color: #efefef;
}

#content {
  max-width: min(1000px, 80vw);
  margin: 0 auto;
}

header {
  margin-top: auto 0;
  text-align: center;
}

header.small {
  display: flex;
  margin-bottom: 32px;
}

nav {
  text-align: right;
}

header.small nav {
  vertical-align: middle;
  display: inline-block;
}

nav a {
  display: inline-block;
  color: #000;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
}

nav a:hover {
  color: #000;
  background: #ddd;
}

nav a.selected {
  color: #fff;
  background: #000;
}

h1 img {
  width: 80vw;
  max-width: 600px;
}

header.small h1 {
  margin: 0;
  flex: 1;
  display: inline-block;
  text-align: left;
}

header.small h1 img {
  width: 200px;
  vertical-align: middle;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  margin-left: 8px;
  color: #666;
}

.spacer {
  flex: 1;
}

.logo-large {
  text-align: center;
}

.subpage-content {
  background-color: #fff;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
}

.callout {
  font-size: 3.5rem;
  color: #444;
  margin-bottom: 48px;
  font-weight: 500;
  text-align: center;
}

a.big {
  text-decoration: none;
  color: #fff;
  background-color: #000;
  border-radius: 24px;
  padding: 8px 24px;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
}

button.primary {
  text-decoration: none;
  color: #fff;
  background-color: #000;
  border-radius: 24px;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 28px;
  box-shadow: 0 4px 4px #00000052;
}

a.primary {
  text-decoration: none;
  color: #fff;
  background-color: #000;
  border-radius: 24px;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 28px;
  box-shadow: 0 4px 4px #00000052;
}

.product {
  display: flex;
  flex-direction: row;
  margin: 32px 0;
  background-color: #ddd;
  border-radius: 16px;
  padding: 16px;
}

.product > .image {
  margin: 8px;
  text-align: center;
}

.product > a.image > img {
  width: min(200px, 20vw);
  min-width: 150px;
}

.product > a.image > img {
  
  box-shadow: rgba(0, 0, 0, 0.2) 0 4px 12px;
  margin-top: -32px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(0, 0) rotate(0) scale(1);
}

.product > a.image:hover > img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(0, -12px) rotate(-2deg) scale(1.05);
}

.product > a.image.app > img {
  border-radius: 20%;
}

.product > .details {
  flex: 1;
  padding: 0 32px;
}

.product > .details p {
  font-size: 1.3rem;
  margin-block-end: 0.5em;
}

.product > .details p.small {
  font-size: 1.0rem;
}

.product .completion {
  background-color: #bad6ba;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
}

.product .completion-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 8px;
}

footer {
  text-align: center;
  margin-top: 64px;
}

a {
  color: black;
}

.platform-links {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  padding-bottom: 12px;
}

.platform-links a img {
  width: 48px;
  opacity: 0.5;
  padding: 0 2px;
}

.platform-links a:hover img {
  opacity: 0.8;
}

.learn-more {
  text-align: right;
}

a.join-patreon > img {
  width: 22px;
  vertical-align: text-top;
  filter: invert(100%);
}

.patreon-button {
  text-align: center;
}

/** Menu button */
#menu-button {
  padding: 8px;
  padding-right: 16px;
  padding-top: 6px;
}

#menu-button, #menu-close-button {
  cursor: pointer;
}

#menu-button svg, #menu-close-button svg {
  width: 24px;
  height: 24px;
  fill: #888;
}

#play-daily-box-small {
  display: none;
}

/** Drawer */
#drawer { 
  position: fixed;
  top: 0;
  left: -350px;
  bottom: 0;
  width: min(90vw, 300px);
  background: #fff;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 20px;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  text-align: left;
}

#drawer .drawer-logo {
  text-align: center;
}

#drawer .logo {
  width: 80%;
}

#drawer.open {
  left: 0;
}

#drawer ul {
  padding-left: 12px;
  margin: 0;
}

#drawer li {
  display: block;
  font-size: 1rem;
  padding: 4px 0;
}

#drawer a {
  text-decoration: none;
  color: #000;
}

#drawer hr {
  border-style: solid;
  border-color: #eee;
}

.drawer-top {
  text-align: right;
}

#try-it {
  text-align: center;
  padding: 8px;
}

.steam-widget {
  max-width: 90vw;
}

@media only screen and (max-width: 800px) {
  .product {
    flex-direction: column;
  }

  header.small {
    display: block;
  }

  header.small h1 {
    display: block;
    text-align: center;
  }

  .product > .details {
    padding: 0 8px;
  }
}

@media only screen and (max-width: 480px) {
  .callout {
    font-size: 2rem;
  }

  .product > .details p {
    font-size: 1.3rem;
  }

  .platform-links {
    justify-content: center;
  }

  .learn-more {
    text-align: center;
  }
}