* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
	border: 0;
}

img.icon {
	box-shadow: 0 0 .25em #ccc;
	border-radius: .25em;
}

a {
	color: #1B689E;
	text-decoration: none;
	font-weight: bold;
	transition: .2s;
}

a:hover {
	color: darkblue;
}

body, html {
  height: 100%;
}

body {
  font-family: "Open Sans", Arial;
  font-size: 1.1em;
  color: #333;
  display: flex;
  flex-direction: column;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: .5em 0;
}

header img {
  width: 180px;
}

main {
  flex: 1;
	border-top: 1px dashed #1B689E;
	border-bottom: 1px dashed #1B689E;
  padding: 1em 0;
  display: flex;
  gap: 3em;
}

footer {
  text-align: center;
  padding: 1em;
}

/* MAIN PAGE */

.game-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: .5em;
}

.game-list a {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
}

.game-list a:hover {
	transform: rotate(-1deg);
  transform-origin: center left;
}

.game-list a:hover .logo {
  max-width: 1.5em;
}

.game-list .logo {
  max-width: 1.3em;
	transition: .2s;
}

/* GAME DETAILS */

.screenshots {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.screenshots img {
	max-width: 300px;
	box-shadow: 0 0 .25em #ccc;
	transition: .2s;
}

.screenshots img:hover {
	opacity: .85;
}

.game-info {
  flex: 1;
}

.game-info h2 {
  color: #9E1B1B;
}

.game-info p {
  margin: 1em 0;
}

.game-info strong {
  margin-right: .25em;
}

.game-info .links {
  display: inline-flex;
  gap: .5em;
}

.game-info .links a:not(:last-child)::after {
  content: ",";
}

@media screen and (max-width: 850px) {
  body {
    font-size: 1em;
    width: 90%;
  }

  header {
    flex-direction: column-reverse;
    gap: 0;
    text-align: center;
  }

  main {
    flex-direction: column-reverse;
    gap: 1em;
  }
}