body {
  display: grid;
  grid-template-rows: max-content 1fr max-content;
  grid-row-gap: 64px;
  margin: 0;
  padding: 40px 0 40px 96px;
  height: 100vh;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  padding-right: 80px;
}

nav label, nav input, nav img {
  display: none;
}

nav ul {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  grid-column-gap: 40px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  list-style: none;
}

nav li a {
  color: currentColor;
  text-decoration: none;
}

main {
  display: flex;
  justify-content: space-between;
  grid-column-gap: 32px;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
}

div.left {
  align-self: center;
}

h1, h2 {
  margin: 0;
  font-size: 32px;
}

h2 {
  font-weight: normal;
}

p {
  margin: 32px 0 0 0;
  font-size: 14px;
}

div.app-stores {
  margin-top: 32px;
}

div.app-stores img {
  height: 40px;
}

div.app-stores img:last-child {
  margin-left: 8px;
}

img.screenshots {
  height: 100%;
  min-height: 0;
}

div.screenshots {
  display: none;
}

@media screen and (max-width: 600px) {
  body {
    display: flex;
    flex-direction: column;
    grid-row-gap: 32px;
    width: 100vw;
    height: auto;
    padding: 24px 0;
  }

  header, div.left, footer {
    margin: 0 24px;
  }

  header {
    padding: 0;
  }

  nav {
    display: grid;
  }

  nav label, nav input, nav img {
    grid-row: 1;
    grid-column: 1;
    display: initial;
    margin: 0;
    width: 24px;
    height: 24px;
    overflow: hidden;
    z-index: 1;
  }

  nav label, nav input {
    margin: 1px;
    width: 22px;
    height: 22px;
  }

  nav img {
    background: white;
    pointer-events: none;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    grid-row-gap: 24px;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    padding: 72px 36px 0 calc(20vw + 36px);
    background: linear-gradient(to right, transparent 0%, transparent 15%, rgba(0, 0, 0, 0.5) 20%, white 20%, white 100%);
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 300ms;
  }

  input:checked ~ ul {
    transform: translateX(0%);
  }

  main {
    flex-direction: column-reverse;
  }

  h1 {
    margin-top: 40px;
  }

  img.screenshots {
    display: none;
  }

  div.screenshots {
    display: block;
    padding-top: 110%;
    background-image: url(/images/screenshots.png);
    background-size: cover;
    margin-left: 24px;
  }

  h2 {
    font-size: 24px;
  }
}
