/* 9 october 2016 */

/* TODOs:
- split this up into multiple files
- download all the external CSS and JS and serve it locally
- indent images?
- indent and stylize blockquotes
*/

body {
	font-family: 'LucidaSans';
	font-size: 12pt;
	margin: 0px;
}
/* 1440px is the last size to use 12pt with */
@media all and (min-width: 1441px) {
	body {
		font-size: 16pt;
	}
}

.content {
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 5px;
	margin-bottom: 5px;
}

.page-title {
	font-weight: bold;
	font-size: 26pt;
	margin-top: 10px;
	margin-bottom: 0px;
	border-bottom: 1px solid #404040;
}
@media all and (min-width: 1441px) {
	.page-title {
		font-size: 30pt;
	}
}

.below-page-title {
	margin-top: 0px;
	color: #808080;
}

/* stolen from golang.org */
a {
	color: #375EAB;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 { font-size: 22pt; }
h2 { font-size: 20pt; }
h3 { font-size: 18pt; }
h4 { font-size: 16pt; }
h5 { font-size: 14pt; }
h6 { font-size: 12pt; }
@media all and (min-width: 1441px) {
	h1 { font-size: 26pt; }
	h2 { font-size: 24pt; }
	h3 { font-size: 22pt; }
	h4 { font-size: 20pt; }
	h5 { font-size: 18pt; }
	h6 { font-size: 16pt; }
}

pre, code, tt {
	font-family: 'LucidaTypewriter';
}

pre {
	font-size: 11pt;

	/* stolen from golang.org */
	background: #EFEFEF;
	padding: 10px;
	border-radius: 5px;

	/* https://css-tricks.com/almanac/properties/t/tab-size/ */
	tab-size: 4;
	-moz-tab-size: 4;
	-o-tab-size: 4;
	-webkit-tab-size: 4;
}
@media all and (min-width: 1441px) {
	pre {
		font-size: 15pt;
	}
}

header {
	background-color: #D0D0D0;
	border-bottom: 1px solid #808080;
	font-size: larger;
}

header > div {
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	padding: 5px;
}

header a {
	margin-left: 10px;
	margin-right: 10px;
	text-decoration: none;
	color: #000000;
}

header a:first-child {
	margin-left: 0px;
}

footer {
	background-color: #D0D0D0;
	border-top: 1px solid #808080;
	font-size: smaller;
	bottom: 0px;
}

footer > div {
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	padding: 5px;
}

/* flex suggestion thanks to theskillwithin in irc.freenode.net/#css */
/* TODO autoprefixer or something */
.page-sidebar-content {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	align-content: flex-start;
}

.page-sidebar-content .psc-sidebar {
	display: inline-block;
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 20%;
	padding-right: 5px;
/*
	border-right: 1px solid #404040;
*/
}

.page-sidebar-content .psc-sidebar img {
	width: 100%;
}

.page-sidebar-content .psc-content {
	display: inline-block;
	flex-grow: 1;
	flex-shrink: 0;
	flex-basis: 0;
	vertical-align: top;
	padding-left: 5px;
}

blockquote {
	/* move the margin out of the way of the border and padding */
	margin-left: 30px;
	border-left: 5px solid #D0D0D0;
	padding-left: 5px;
	font-style: italic;
}

/* http://stackoverflow.com/a/25026615/3408572 */
.half-width-image,
.third-width-image,
.quarter-width-image {
	display: inline-block;
}

.half-width-image img {
	width: 50%;
}

.third-width-image img {
	width: 33.3333333333%;
}

.quarter-width-image img {
	width: 25%;
}

/* thanks to preaction and AMcBain in irc.freenode.net #css for help getting this and the associated HTML just right */
.draft-warning {
	/* https://www.w3.org/Style/Examples/007/center.en.html#block */
	display: block;
	margin-left: auto;
	margin-right: auto;

	padding-left: 80px; /* To move out of the way of the icon */

	/* http://cssround.com/ */
	width: 62.5%;
	border-radius: 20px;
	border: 3px solid #000000;
	background-color: #E3715F;
	position: relative;
	font-size: larger;

	padding-top: 10px;
	padding-bottom: 10px;
	padding-right: 10px;
}

.draft-warning::before {
	font-family: ForkAwesome;
	content: '\f071';
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 60px;
}

.draft-warning strong {
	display: block;
}
