/* defaults */

html {
	margin: 0;
	padding: 0;
}
body {
	margin: 0;
	padding: 0;
	background-color: #333333;
	font-family: sans-serif;
	font-size: medium;
}
div, header, main, nav, aside, footer, article, section {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
h1, h2, h3 {
	margin: 0;
}
p {
	margin-top: 5px;
	margin-bottom: 10px;
}
a {
}

.photo {
	border: 1px solid black;
	border-radius: 6px;
	box-shadow: 4px 4px 3px rgba(0, 0, 0, 0.4);
}

header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 50px;
	padding: 8px;
	background-color: black;
	font-weight: bold;
	color: white;
}

header img {
  float: left;
  border: 1px solid white;
  border-radius: 0px;
}
header h1 {
  float: left;
  margin-left: 10px;
}

header a {
  color: white;
}

header nav a,
header nav a:visited {
  margin-top: 8px;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10px;
  float: right;
  color: white;
  text-decoration: none;
}

#space {
	margin-bottom: 50px;
}

#banner {
	background-image: url('img/banner.png');
	background-size: cover;
	height: 180px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	overflow: hidden;
}

#banner img {
	margin: 10px;
	height: 150px;
}

#notice {
	padding: 8px;
	background-color: #eeeeee;
	text-align: center;
	font-size: small;
	color: dimgrey;
}

#notice a,
#notice a:visited {
	color: dimgrey;
}

#content {
	min-height: 800px;
	padding: 20px;
	display: flex;
	background-color: white;
}

aside {
	color: grey;
	font-style: italic;
}

aside em {
	color: cornflowerblue;
	font-weight: bold;
}

main {
	color: black;
}

main h1 {
	margin-bottom: 10px;
	font-size: x-large;
}

main h2 {
	margin-bottom: 10px;
}

main p a,
main p a:visited {
	color: dimgrey;
}

main h2 {
	font-size: large;
}

main section {
	margin-top: 30px;
}

footer {
	padding-top: 20px;
	display: flex;
	color: silver;
}

footer nav p {
	text-align: center;
}

footer nav p a,
footer nav p a:visited {
	color: silver;
	text-decoration: none;
}

#copyright {
	padding-bottom: 20px;
	text-align: center;
	font-size: small;
	color: grey;
}

.news article {
	margin-bottom: 20px;
	border-bottom: 1px dotted cornflowerblue;
}

.news article h1 {
	margin-bottom: 3px;
	font-size: x-small;
	color: dimgrey;
}

.news article h2 {
	font-size: smaller;
	color: black;
}

.news article p {
}

#os-icons tr {
	height: 30px;
}

#os-icons img {
	margin-top: 4px;
	height: 20px;
}

#os-icons .icon-column {
	width: 30px;
}

#games {
	margin-top: 20px;
	border-collapse: collapse;
}

#games tr {
	border-bottom: 1px dotted cornflowerblue;
	height: 40px;
}

#games th {
	text-align: left;
	font-weight: bold;
	color: black;
}

#games a,
#games a:visited {
	color: grey;
	font-weight: bold;
}

#games .icon-column {
	width: 40px;
	text-align: right;
	white-space: nowrap;
}

#games .name-column {
	width: 400px;
}

#games .year-column {
	width: 100px;
}

#games .genre-column {
	width: 100px;
}

#games .os-icon-column {
	width: 20px;
}

#games .os-column {
	width: 130px;
}

#games .cpu-column {
	width: 200px;
}

#games .size-column {
	width: 100px;
}

#games .download-column {
	width: 250px;
	text-align: right;
}

#games img {
	height: 16px;
	margin-left: 5px;
}

#screenshots img {
	width: 100%;
}

/* desktop */

@media screen and (min-width: 1000px) {

	#content {
		flex-wrap: wrap;
		justify-content: center;
	}

	aside {
		padding-top: 1px;
		margin-right: 20px;
		width: 250px;
		text-align: right;
	}

	main {
		width: 700px;
	}

	footer {
		justify-content: center;
	}

	footer nav {
		margin-left: 50px;
		margin-right: 50px;
	}

	footer nav p {
		width: 150px;
	}
	
	#copyright {
		padding-top: 20px;
	}

}

/* mobile */

@media screen and (max-width: 999px) {

	#content {
		flex-direction: column;
	}

	main {
		margin-top: 20px;
	}

	footer {
		flex-direction: column;
		text-align: center;
	}

	footer nav {
		margin-bottom: 20px;
	}

	footer nav p {
		width: 100%;
	}

}
