/* FONTS */

@font-face {
	font-family: BygonestTypewriter;
	src: url("https://aeseofspades.neocities.org/fonts/Bygonest%20Typewriter.ttf") format("truetype");
}

/* LAYOUT */

body {
	display: flex;
	justify-content: center;
	min-height: 500px;
	background: black;
	font-size: 14px;
	font-family: Garamond, Georgia, serif;
	color: white;
	line-height: 1.2em;
	margin: 50px;
	padding: 25px;
}

.gridlayout {
	width: 800px;
	display: grid;
	grid-gap: 5px;
	grid-template: "header" "main" "footer";
	justify-content: center;
}

header {
	grid-area: header;
	width: auto;
	height: 60px;
	background: darkgray;
	border: 2px solid gray;
	border-radius: 8px;
	margin: 5px;
	padding: 5px;
	text-align: center;
}

main {
	grid-area: main;
	width: auto;
	overflow: hidden;
	border: 2px solid gray;
	border-radius: 2px;
	background: darkgray;
	padding: 5px;
	margin: 5px;
}

footer {
  grid-area: footer;
  width: 400px;
  max-width: 50%;
  border: 2px solid white;
  border-radius: 8px;
  margin: 5px;
  margin-left: auto;
  margin-right: auto;
  padding: 5px;
  text-align: center;
  font-size: 0.75em;
  background: gray;
}

/* TEXT */

.topsection p {
	text-indent: 20px;
}

.inline {
  display: inline-flex;
  justify-content: flex-start;
	margin-left: 25px;
	margin-right: 25px;
	width: auto;
}

mark {
	background-color: inherit;
	text-shadow: 0 0 2px lightblue;
	color: black;
}

blockquote {
	background: rgba(0, 0, 0, 0.3);
	font-family: Courier;
	padding: 5px;
	margin: 1em;
	border-radius: 10px;
}

a {
	text-decoration: underline;
	color: lightblue;
}

a:hover {
	text-decoration: underline;
	text-decoration-style: wavy;
}

.rightalign {
	text-align:right;
}

.leftalign {
	text-align: left;
}

::selection {
	background: rgba(0, 0, 0, 1);
}

/* HEADINGS */

h1 h2 h3 h4 h5 h6 {
	font-family: Garamond, Georgia, serif;
	line-height: 2em;
}

h1 {
	text-align: center;
	font-family: BygonestTypewriter;
	font-size: 2em;
	text-shadow: 3px 3px 1px gray;
	color: black;
}

h2 {
	text-align: center;
	font-family: BygonestTypewriter;
	font-size: 1.75em;
	text-shadow: 2px 2px 1px gray;
	color: black;
}

h3 {
  text-align: center;
  font-family: BygonestTypewriter;
	font-size: 1.5em;
	text-shadow: 2px 2px 1px gray;
}

h4 {
	font-size: 1.3em;
}

h5 {
	font-size: 1.2em;
}

h6 {
	font-size: 1.1em;
}

/* HORIZONTAL RULE */

hr {
  width: 65%;
  border-style: outset;
  border-width: 5px;
  border-color: black;
  margin-left: auto;
  margin-right: auto;
} 

/* COLUMNS & SECTIONS */

.columns {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 100%;
  border-radius: 3px;
  margin: 3px;
}

.topsection {
  background: rgba(0, 0, 0, 0.4);
  max-width: 100%;
  border-radius: 3px;
  padding: 10px;
  margin: 5px;
}

/* BOXES */

.facebox {
	border: 1px solid white;
	background: rgba(0, 0, 0, 0.4);
	width: 400px;
	height: auto;
	max-width: 45%;
	margin: 5px;
	border-radius: 3px;
}

.scrollbox {
  background-color: rgba(0, 0, 0, 0.6);
  padding-left: 10px;
  padding-right: 10px;
  width: 200px;
  height: 200px;
  overflow: auto;
  border: 1px white solid;
  margin: 10px;
  border-radius: 3px;
}

.box {
  background-color: #13092D;
  padding: 5px;
  width: auto;
  height: 100px;
  overflow: auto;
  margin-left: auto;
  margin-right: auto;
}

.box ul {
  list-style: none;
  font-size: .85em;
}

/* IMAGES */

.stamps {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: 100%;
  background: gray;
  border-radius: 3px;
}

.stamps img {
  width: 100px;
  height: auto;
  margin: 5px;
  transition: width 2s, height 2s;
}

.stamps img:hover {
  width: 150px;
  height: auto;
}

.topsection img {
  float: left;
  width: 250px;
  height: 250px;
  margin: 5px;
  box-shadow: 0 0 5px 2px gray;
  border-radius: 3px;
}

.topsection img:hover {
  box-shadow: 0 0 7px 4px gray;
}

.rightimg {
  display: inline-flex;
  justify-content: flex-end;
}

.rightimg img {
  width: 250px;
  height: auto;
  margin: 5px;
  box-shadow: 0 0 5px 2px gray;
  border-radius: 3px;
}

.rightimg img:hover {
  box-shadow: 0 0 7px 4px gray;
}


/* MOBILE RESPONSIVE */

@media (max-width: 800px) {
	.gridlayout {
		width: 100%;
		grid-template: "header" "main";
	}
	
	main {
		max-height: none;
		padding: 15px;
		max-width: 100%;
	}
	
	.columns {
	  flex-wrap: wrap;
	}
	
	header {
	  width: 100%;
	}
	
	body {
	  min-width: 400px;
	}
}