@CHARSET "UTF-8";

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	background-color: #aaa;
}

* {
	font-family: 'Roboto', sans, 'sans-serif';
	color: #333;
}

a {
	font-weight: bold;
}

#photo-header {
	height: 40mm;
	background-color: #000;
	background-image: url('header.jpg');
	background-repeat: no-repeat;
	background-position: 50% 50%;
	
}
@MEDIA screen and (max-height: 180mm) {
	#photo-header {
		height: 20mm;
	}
}

.wrapper {
	width: 100%;
	max-width: 210mm;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	background-color: #fff;
}

header {
	padding: 0 1em;
}
header h1 {
	font-family: 'Space Mono', monospace;
	flex-grow: 0;
	font-size: 12mm;
	margin: .2em 0 0;
	color: #666;
}
header img {
	float: right;
	position: relative;
	bottom: 30px;
	border-radius: 50%;
	box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	margin-bottom: -100px;
	background-color: #fff;
}

#content {
	flex-grow: 1;
	display: flex;
}
#headlines h2 {
	margin: .3em 0 .1em;
}

#snippets {
	padding: 0 0 0 1em;
	width: 40%;
	flex-shrink: 0;
	overflow-y: auto;
}

#snippets section {
	padding-bottom: 1em;
	transition: .4s ease-out;
	padding: 1em;
	cursor: pointer;
}

#snippets section:hover {
	background-color: rgba(0,0,0,.05);
}
#snippets section.selected {
	background-color: rgba(0,0,0,.2);
}

#targets {
	overflow-x: hidden;
}

#targets .noshow {
	display: none;
}

#targets #display {
	position: relative;
	right: -100%;
	transition: .2s ease-out;
	padding: 1em;
}

#targets #display.shown {
	right: 0;
}

footer {
	font-size: 70%;
	flex-grow: 0;
	margin: .5em 1em;
}
footer span {
	float: right;
}

@MEDIA screen and (max-width: 500px) {
	header h1 {
		font-size: 140%;
	}
	header img {
		width: 80px;
		height: 80px;
		bottom: 60px;
	}
	#content {
		font-size: 90%;
	}
	#headlines h2 {
		font-size: 110%;
	}
}
@MEDIA screen and (max-height: 550px) {
	#content {
		font-size: 80%;
	}
	#headlines h2 {
		font-size: 100%;
	}
}