:root {
	--color-bg: #000;
	--color-type: #fff;
	--color-dark-type: #333;
	--color-link: #ff3333;
	--color-accent: #777;
}

*{
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	display: grid;
	grid-template-areas: "aside main";
	grid-template-columns: 230px 1fr;
	background: var(--color-bg);
	color: var(--color-type);
	font-size: 18px;
	font-family: Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace;
}

@media only screen and (max-width: 800px) {
  body {
	grid-template-rows: 160px 1fr;
	grid-template-columns: 1fr;
	grid-template-areas:"aside""main"
  }
}

a,a:visited {
	color: var(--color-link);
	text-decoration: none;
}

h1, h2, h3, h4, p {
	margin-bottom: 1rem;
}

.main {
	grid-area: main;
}

.sidebar {
	grid-area: aside;
	display: grid;
	grid-template-areas:
  	"header header"
	"footer footer";
	grid-template-rows: 1fr 60px;
	grid-template-columns: 0;
	position: fixed;
	width: 200px;
	height: 100%;
}

@media only screen and (max-width: 800px) {
	.sidebar {
		grid-template-rows: 1fr;
		grid-template-columns: 160px 1fr;
		position: relative;
		grid-template-areas:
		"header footer";
		width: 100%;
	}
}

.sidebar .header {
	grid-area: header;
}

.sidebar .header {
	width: calc(100% - 1.2rem);
	margin: 1rem 0 0 1rem;
}

.sidebar .footer {
	grid-area: footer;
	padding-left: 1rem;
}
@media only screen and (max-width: 800px) {
	.sidebar .footer {
		text-align: right;
		padding: 2rem 1rem 0 0;
	}
}

.icn {
	height: 2.2rem;
	margin: 0 .25rem;
}

.posts {
	list-style: none;
	padding: 0;
	max-width: 860px;
}

.posts li {
	padding: 1rem 1rem 4rem 0;
}

@media only screen and (max-width: 800px) {
	.posts li {
		padding: 1rem 1rem 4rem;
	}
}

.posts li img {
	width: 100%;
}

.posts time {
	font-size: .8rem;
	margin-top: 0;
	float: right;
	color: var(--color-accent);
}
.photo-container {
	position: relative;
	max-width: 1200px;
	padding: 1rem;
	padding-bottom: 0;
}

@media only screen and (max-width: 800px) {
	.photo-container {
		padding: 0 1rem;
	}
}


.photo-container img {
	width: 100%;
}

.photo-title {
	text-align: center;
	color: var(--color-accent);
}

/* For TAGLIST.HTML */
.taglist {
	text-align: center ;
	clear: both ;
}

.close em,
#nextart em,
#prevart em { display: none }

.close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 4;
	background: url(/img/icn-close.png) no-repeat center center;
	background-size: 2rem;
	width: 3rem;
	height: 3rem;
}

#nextprev {
	position: absolute;
	top: 0;
	left: 200px;
	width: calc(100% - 200px);
	z-index: 2;
}
#nextart {
	right: 0;
	width: 50%;
	background: url(/img/icn-arrow-right.png) no-repeat 90% center;
}

#prevart {
	left: 0;
	width: 50%;
	background: url(/img/icn-arrow-left.png) no-repeat 10% center;
}

#nextart,
#prevart {
	position: absolute;
	top: 0;
	opacity: 0;
	height: 90%;
	background-size: 3rem;
}

@media only screen and (max-width: 800px) {
	#nextart,
	#prevart { opacity: 1; }
}

#prevart:hover,
#nextart:hover {
	opacity: 1;
}

#prevart {
	float: left ;
	text-align: left ;
}
#nextart {
	float: right ;
	text-align: right ;
}
#nextart,#prevart {
	max-width: 33% ;
}

.about {
	background: white;
	padding: 2rem;
	min-height: calc(100vh - 4rem);
	color: var(--color-dark-type);
}

.about p {
	line-height: 1.5;
	max-width: 600px;
}

.about img {
	width: auto;
	max-width: 200px;
	border-radius: 50%;
	margin: 2rem 0;
}
