/* ==========================================================================
   Site styles (layered on top of Bootswatch "Yeti" / Bootstrap 3.1.1)
   ========================================================================== */

body {
	background-image: url('/media/img/billie-holiday.png');
	background-repeat: repeat;
}

#container-main {
	background-image: url('/media/img/cream-dust.png');
	max-width: 920px;
	margin-top: 60px;
}

#content {
	margin: 20px;
}

/* Long words, URLs and inline code wrap instead of widening the page. */
#post {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

#post code {
	white-space: pre-wrap;
	word-break: break-word;
}

/* Code blocks and tables scroll sideways inside the page instead. */
#post pre {
	overflow-x: auto;
	word-break: normal;
	word-wrap: normal;
	white-space: pre;
}

#post table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* Line the top bar up with the content box below it. */
.navbar > .container {
	max-width: 920px;
}

/* Top bar: keep the name and "Notes" on one row at every width. */
.navbar-header {
	float: left;
}

.navbar-nav {
	float: left;
	margin: 0;
}

.navbar-nav > li {
	float: left;
}

.navbar-nav > li > a {
	padding-top: 12px;
	padding-bottom: 12px;
}

footer ul {
	overflow: hidden;
}

footer li {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

/* Images never overflow the content box and stay within one screen height. */
#post img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	margin: 10px auto;
}

/* Phones and small tablets. */
@media (max-width: 767px) {
	#container-main {
		margin-top: 45px;
	}

	#content {
		margin: 15px 0;
	}

	h1 {
		font-size: 28px;
	}

	h2 {
		font-size: 22px;
	}

	h3 {
		font-size: 18px;
	}

	#post ul,
	#post ol {
		padding-left: 20px;
	}

	.panel-title {
		font-size: 15px;
		line-height: 1.4;
	}

	footer {
		padding: 0 0 10px;
	}
}
