html, body {
	padding:0;
	margin:0;
	background:#ddd7ff;
}

#bgCanvas {
	position: fixed;
	left:0;
	right:0;
	top:10px;
	bottom:0;
}

body {
	border-top:10px solid black;
	position: relative;
	min-height: calc(calc(100vh - 360px) - 1em);
	padding:225px 0;
}

#wrapper {
	margin:0 auto;
	width:60vw;
	max-width: 600px;
	position: relative;
}


.post img {
	image-rendering: pixelated;
	width:100%;
	display: block;
	margin:2em 0;
	border-bottom:1px dotted black;
	padding:0 0 3px 0;
}

.emphasis {
	padding: 1.5em;
	margin:0 0 1.5rem 0;
	border: 1px dashed black;
}

#header {
	position:absolute;
	top:-1em;
	left:2.5em;
	width:0;
}
#header h1 {
	position: absolute;
	bottom:4px;
	right:0;
	text-align: right;
	white-space: nowrap;
	font-weight: 900;
	cursor: pointer;
	user-select: none;
}
#header #screenMark {
	position: absolute;
	bottom:34px;
	left:-14px;
	width:13px;
	height:11px;
	background: url(/static/tv.svg);
	background-size: 13px 11px;
	cursor: pointer;
}
#header #nav {
	position: absolute;
	left:25px;
	bottom:1px;
}

#print {
	position: absolute;
	right:0;
	top:calc(calc(25px + 1.4em) * -1);
	user-select: none;
}

#foot {
	white-space: nowrap;
	position:absolute;
	left:0;
	bottom:0;
	right:0;
	text-align: center;
	overflow: hidden;
	cursor: pointer;
	user-select: none;
}

.breaker {
	display: inline-block;
	width: 100%;
}

@media only screen 
	and (max-device-width: 667px) {
	
	body {
		padding:300px 0;
	}

	#wrapper {
		width:78vw;
	}

	#header {
		position: absolute;
		top:calc(-36pt - 1em);
		left:0;
	}
	#header h1 {
		position: absolute;
		top:0;
		left:0;
		text-align: left;
		white-space: nowrap;
		bottom: unset;
		right:unset;

	}
	#header #nav {
		position: absolute;
		top:-9em;
		left:0;
	}
	#header #nav a {
		display: block;
	}
	#print {
		display: none;
	}
	#header #screenMark {
		position: absolute;
		top:calc(-50pt - 3em);
		bottom:unset;
		left:78vw;
	}

}

@media print {
	@page { 
	    size: auto;
	    margin:30pt 0 60pt 50pt;
	} 
	#wrapper {
		width:360pt;
		margin: 0 0 0;
		position: relative;
	}
	.post a {
		text-decoration:none;
		font-weight: bold;
	}
	/*.post a:after {
	    content: ":" attr(href);
	    word-break: break-all;
	    color: black;
	    font-weight: normal;
	    text-decoration: none;
	    display: inline-block;
	}*/
	.post {
		box-decoration-break: clone;
	}
	body {
		padding:0;
		margin:0;	
		border-top:0;
		min-height:613pt;
	}
	body, html {
		background:unset;
	}
	#header #screenMark {
		position: absolute;
		top:-82pt;
		left:510pt;
		width:13pt;
		height:11pt;
		background: url(/static/tv.svg);
		background-size: 13pt 11pt;
	}
	#header {
		position: unset;
	}
	#header h1 {
		position: unset;
		bottom: unset;
		right:unset;
		text-align: left;
		white-space: nowrap;
	}
	#nav {
		display: none;
	}
	#print {
		display: none;
	}
	#foot {
		display: none;
	}
	.post img {
		display: none;
	}
	#bgCanvas {
		display: none;
	}
	.emphasis {
		border:0;
		padding:0;
	}
}