html {
  box-sizing: border-box;
  height: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Nunito Sans", sans-serif;
}

body {
  height: 100%;
  background-color: #fff;
  color: #555;
}

a {
  text-decoration-line: none;
}

h1 {
  margin: 0 auto;
  padding: 0 30px;
  max-width: 860px;
}

#name {
  display: inline-block;
  transform: rotate(-10deg);
  font-family: "Nunito Sans", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #0062b3;
}

header {
  margin: 30px 0 30px;
}

img {
  width: 100%;
}

#story {
  margin-bottom: 20px;
  width: 100%;
  background-color: #fff;
}

#story-content {
  margin: 0 auto;
  padding: 0 30px 30px;
  max-width: 860px;
  overflow: hidden;
  transition: height 1s ease-in-out;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#expand-story-button, #collapse-story-button {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(#fff0 0%, #ffff 50%);
  font-weight: 500;
  cursor: pointer;
}

#expand-story-button {
  height: 50px;
  padding-top: 25px;
}

.story-image {
  order: 3;
  width: 300px;
}

.story-1 {
  order: 1;
  margin-bottom: 20px;
}

.story-2 {
  order: 2;
}

.story-3 {
  order: 4;
}

#story-content p {
  text-align: justify;
  hyphens: auto;
  line-height: 1.75;
  text-indent: 25px;
}

h2, h3 {
  font-family: "Nunito Sans", sans-serif;
}

#games-made {
  width: 100%;
  padding: 40px 0 80px;
  background-color: #eee;
  box-shadow: 0 3px 5px inset #00000040, 0 -3px 5px inset #00000040;
}

#games-made-content {
  margin: 0 auto;
  max-width: 820px;
  padding: 0 10px;
}

#games-made-content h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #0062b3;
}

#games-made-content>div {
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 5px 10px #00000060;
}

#games-made-content>div:not(:last-child) {
  margin-bottom: 30px;
}

#games-made-content>div>a, #games-made-content>div>a>img {
  display: block;
}

#games-made-content>div>a>img {
  border-bottom-left-radius: 50% 5%;
  border-bottom-right-radius: 50% 5%;
}

#games-made-content>div>div {
  padding: 10px;
}

#games-made-content h3 {
  margin-bottom: 5px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #555;
}

#games-made-content p {
  font-size: 14px;
  color: #767676;
}

#games-made-content>div>div>a {
  display: inline-block;
  border-radius: 15px;
  padding: 10px 12px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  color: #fff;
}

#games-made-content>div>div>a:first-of-type {
  margin: 20px 10px 10px 0;
  background-color: #808080;
  box-shadow: 0 2px 0 inset #cccccc40, 0 1px 3px #00000080;
}

#games-made-content>div>div>a:last-of-type {
  margin: 0 0 10px 0;
  background-color: #0062b3;
  box-shadow: 0 2px 0 inset #00b2ff40, 0 1px 3px #00000080;
}

#fine-print {
  margin: 10px auto;
  max-width: 820px;
  padding: 0 10px;
}

#fine-print p {
  font-size: 12px;
}

footer {
  margin: 0 auto;
  max-width: 820px;
  padding: 0 10px 50px;
}

footer hr {
  border-top: 1px solid #767676;
  border-bottom: 0;
}

footer p {
  font-size: 16px;
}

@media (min-width: 500px) {
  #games-made-content {
    max-width: 860px;
    padding: 0 30px;
  }

  #games-made-content>div>div {
    padding: 15px;
  }

  #games-made-content h3 {
    font-size: 36px;
  }

  #games-made-content p {
    font-size: 18px;
  }

  #games-made-content>div>div>a {
    border-radius: 20px;
    padding: 14px 18px;
    font-size: 20px;
  }

  #games-made-content>div>div>a:first-of-type {
    margin: 20px 20px 10px 0;
  }

  #fine-print {
    max-width: 860px;
    padding: 0 30px;
  }

  footer {
    max-width: 860px;
    padding: 0 30px 50px;
  }
}

@media (min-width: 600px) {
  #story-content {
    display: block;
  }

  .story-2 {
    margin-bottom: 20px;
  }

  .story-image {
    display: inline-block;
    shape-outside: polygon(0 40%, 30% 0, 100% 0, 100% 100%, 70% 100%, 30% 80%, 30% 65%, 0 55%);
    float: right;
  }
}

@media (min-width: 750px) {
  #story-content p {
    line-height: 2;
  }

  #games-made-content>div>a>img {
    border-bottom-left-radius: 0;
    border-top-right-radius: 25% 50%;
    border-bottom-right-radius: 25% 50%;
  }

  #games-made-content>div {
    display: flex;
  }

  #games-made-content>div>a, #games-made-content>div>div {
    flex: 1 1 0;
  }

  #games-made-content>div>div {
    padding: 0px;
  }

  #games-made-content h3 {
    margin: 20px 0 5px 20px;
    font-size: 28px;
  }

  #games-made-content p {
    margin: 0 0 20px 20px;
    font-size: 14px;
  }

  #games-made-content>div>div>a {
    border-radius: 15px;
    padding: 10px 12px;
    font-size: 16px;
  }

  #games-made-content>div>div>a:first-of-type {
    margin: 0 10px 10px 20px;
  }
}

.game h1, #privacy-policy h1, #page-not-found h1 {
  margin: 0 auto;
  padding: 0 10px;
  max-width: 520px;
}

.banner {
  width: 100%;
  background-color: #0062b3;
  color: #fff;
}

.banner h2 {
  margin: 0 auto;
  max-width: 520px;
  padding: 20px 10px;
  font-size: 28px;
  line-height: 1;
}

.breadcrumb {
  margin: 0 auto 20px;
  max-width: 520px;
  padding: 0 10px;
}

.breadcrumb ul {
  list-style: none;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  padding: 0 10px;
}

.breadcrumb li a {
  display: inline;
  color: #0062b3;
  text-decoration: none;
}

.game-details {
  margin: 0 auto;
  max-width: 520px;
  padding: 10px;
}

.game-details img {
  display: block;
  margin-bottom: 10px;
  border-radius: 15px;
}

.game-details p {
  text-indent: 25px;
  text-align: justify;
  hyphens: auto;
  line-height: 1.75;
}

.game-details p:not(:last-of-type) {
  margin-bottom: 10px;
}

.game-details a {
  display: inline-block;
  margin: 20px 0 20px 0;
  border-radius: 20px;
  padding: 14px 18px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background-color: #0062b3;
  box-shadow: 0 2px 0 inset #00b2ff40, 0 1px 3px #00000080;
}

.game #fine-print {
  margin: 10px auto;
  max-width: 520px;
  padding: 0 10px;
}

.game footer, #privacy-policy footer, #page-not-found footer {
  margin: 0 auto;
  max-width: 520px;
  padding: 0 10px 50px;
}

#privacy-policy {
  max-width: 1000px;
}

#privacy-policy-details, #page-not-found-details {
  margin: 0 auto;
  max-width: 520px;
  padding: 10px;
}

#privacy-policy h3 {
  margin: 25px 0 15px;
  font-size: 22px;
}

#page-not-found p {
  margin: 0 0 50px;
}
