/* Base */
/* ----------------------------------------------------------*/

* {
	margin: 0;
	padding: 0;
}

html, body { height: 100%; }

body {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 100%;
	line-height: 1.5;
	font-weight: 300;
	background-color: #fdfdfd;
}

section {
	clear: both;
}

h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: 400; color:#205caa;}

a         { color: #2a7ae2; text-decoration: none; outline: 0;}
a:hover   { color: #000; text-decoration: underline; }
a:visited { color: #205caa; }

/* Utility */

.wrap:before,
.wrap:after { content:""; display:table; }
.wrap:after { clear: both; }
.wrap {
	padding: 0em 1em;
	zoom: 1;
}

.wide-wrap:before,
.wide-wrap:after { content:""; display:table; }
.wide-wrap:after { clear: both; }
.wide-wrap {
	width: 100%;
	zoom: 1;
}


/* Layout Styles */
/* ----------------------------------------------------------*/

/* Site header */

#header_logo {
	height: 1.5em;
	vertical-align: middle;
}

.site-header {
	border-top: 5px solid #333;
	border-bottom: 1px solid #e8e8e8;
	height: 4em;
	background-color: white;
	width: 100%;
	display: inline-block;
	overflow: hidden;
}

.site-title,
.site-title:hover,
.site-title:visited {
	display: block;
	color: #333;
	font-size: 150%;
	letter-spacing: -1px;
	float: left;
	line-height: 250%;
	position: relative;
	z-index: 1;
}

/* Site nav bar */

.site-nav {
	float: left;
	line-height: 3em;
	font-size: 120%;
	font-weight: bold;
}

.site-nav .menu-icon { display: none; }

.site-nav .page-link {
	color: #727272;
	letter-spacing: -0.5px;
}

/* Site footer */

.site-footer {
	border-top: 1px solid #e8e8e8;
	padding-left: 18%;
	width: 90%;
	height: 10vh;
	bottom:0;
	position: fixed;
	background-color: white;
}

.footer-heading {
	font-size: 90%;
	font-weight: 300;
	letter-spacing: -.5px;
	margin-bottom: 3%;
}

.site-footer .column { float: left; margin-bottom: 5px; }

.footer-col-1 {
	padding-top: 1vh;
	width: 180px; /*fallback*/
	width: -webkit-calc(25% - 10px);
	width: -moz-calc(25% - 10px);
	width: -o-calc(25% - 10px);
	width: calc(25% - 10px);
}
.footer-col-2 {
	padding-top: 1vh;
	width: 145px; /*fallback*/
	width: -webkit-calc(25% - 10px);
	width: -moz-calc(25% - 10px);
	width: -o-calc(25% - 10px);
	width: calc(25% - 10px);
	margin-right: 1%;
}
.footer-col-3 {
	padding-top: 1vh;
	width: 170px; /*fallback*/
	width: -webkit-calc(25%);
	width: -moz-calc(25%);
	width: -o-calc(25%);
	width: calc(25%);
}

.site-footer ul { list-style: none; }

.site-footer li,
.site-footer p {
	font-size: 80%;
	letter-spacing: -.3px;
	color: #828282;
}

.github-icon-svg,
.twitter-icon-svg {
	display: inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 3px;
}


/* Page Content styles */
/* ----------------------------------------------------------*/

.page-content {
	background-color: #fff;
}

.left-column {
	padding: 2em;
	background-color: #fafafa;
	float: left;
	width: 10em;
	overflow: auto;
	/* height: 36em; */ /* hopefully fluid */
	border: 1px solid #DDD;
	margin: 1em;
}

.center-column {
	padding: 2em;
	padding-bottom: 6em;
	overflow: auto;
	background-color: #fff;
}

.right-column {
	background-color: #fff;
	float: right;
	font-size: 90%;
	width: 10em;
	padding: 2em;
	overflow: hidden;
}


/* Home styles */
/* ----------------------------------------------------------*/

.posts { list-style-type: none; }

.posts li { margin-bottom: 30px; }

.posts .post-link {
	font-size: 100%;
	letter-spacing: -1px;
	line-height: 1;
}

.posts .post-date {
	display: block;
	font-size: 95%;
	color: #818181;
}


/* Post styles */
/* ----------------------------------------------------------*/

.post-header { margin: 10px 0 30px; }

.post-header h1 {
	padding-top:2vh;
	font-size: 200%;
	letter-spacing: -1.75px;
	line-height: 1;
	font-weight: 300;
}

.post-header .meta {
	font-size: 15px;
	color: #818181;
	margin-top: 5px;
}

.post-content { margin: 0 0 30px; }

.post-content > * { margin: 20px 0; }


.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
	line-height: 1;
	font-weight: 300;
	margin: 40px 0 20px;
}

.post-content h2 {
	font-size: 32px;
	letter-spacing: -1.25px;
}

.post-content h3 {
	font-size: 26px;
	letter-spacing: -1px;
}

.post-content h4 {
	font-size: 20px;
	letter-spacing: -1px;
}

.post-content blockquote {
	border-left: 4px solid #e8e8e8;
	padding-left: 20px;
	font-size: 18px;
	opacity: .6;
	letter-spacing: -1px;
	font-style: italic;
	margin: 30px 0;
}

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

.post pre,
.post code {
	border: 1px solid #d5d5e9;
	background-color: #eef;
	padding: 8px 12px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-size: 15px;
}

.post code { padding: 1px 5px; }

.post ul,
.post ol { margin-left: 1.35em; }

.post pre code { border: none; }

/* terminal */
.post pre.terminal {
	border: 1px solid #000;
	background-color: #333;
	color: #FFF;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

.post pre.terminal code { background-color: #333; }

/* Syntax highlighting styles */
/* ----------------------------------------------------------*/

.highlight  { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

.site-nav .trigger-second-level {
	padding-left: 20%;
	font-size: 100%;
	line-height: 200%;
	float:left;
	font-weight: normal;
}

.bibtexnumber a{
	color: black;
}

th,td {
	padding-bottom: 15px;
	padding-right: 5px;
}

/* Other */

.parent {
	display: inline-block;
	text-align: center;
	margin:0;
	padding:0;
	width:160px;
}
.parent .popup {
	display: none;
}

.parent:hover .popup {
	display: block;
	text-align: center;
	position: absolute;
}

.site-header .logo {
	height: 2em;
	display:inline-block;
	padding: 1em 0.5em;
	float:right;
}

/* media queries */
/* ----------------------------------------------------------*/


@media screen and (min-width: 120em) {
	section {
		box-sizing: border-box;
		display: inline-block;
		padding: 0.5em;
		padding-right: 1em;
		/* full width - colums - central column padding - our padding */
		width: calc((100vw - (10em + 4em)*2 - 4em - 2em)/2);
		vertical-align: top;
	}
}
/* Ugh. CSS calc() does not have a way to get a ratio of widths,
 * or to floor them, so we have to do this by hand
 */
@media screen and (min-width: 180em) {
	section {
		width: calc((100vw - (10em + 4em)*2 - 4em - 2em)/3);
	}
}
@media screen and (min-width: 240em) {
	section {
		width: calc((100vw - (10em + 4em)*2 - 4em - 2em)/4);
	}
}

/*
@media screen and (max-width: 780px) {

	.footer-col-1 { width: 50%; }

	.footer-col-2 {
		width: 45%;
		width: -webkit-calc(50% - 10px);
		width: -moz-calc(50% - 10px);
		width: -o-calc(50% - 10px);
		width: calc(50% - 10px);
		margin-right: 0;
	}

	.site-footer .column.footer-col-3 {
		display: none;
	}

	.right-column{display:none;}
	.logo{display:none;}
}
*/


@media screen and (max-width: 780px) {

	body {
		font-size: 80%;
	}
	.post-header h1 { font-size: 36px; }
	.post-content h2 { font-size: 28px; }
	.post-content h3 { font-size: 22px; }
	.post-content h4 { font-size: 18px; }
	.post-content blockquote { padding-left: 10px; }
	.post-content ul,
	.post-content ol { padding-left: 10px; }

	.site-footer {
		width: 100%;
		padding-left: 5%;
	}

	.site-footer .column.footer-col-1 {
		width:40%;
		padding-right:5%;
		padding-left:5%;
	}
	.site-footer .column.footer-col-2 {
		width:40%;
		padding-right:5%;
		padding-left:5%;
	}
	.site-footer .column.footer-col-3 {
		display: none;
	}

	.footer-col-1 { width: 50%; }

	.footer-col-2 {
		width: 45%;
		width: -webkit-calc(50% - 10px);
		width: -moz-calc(50% - 10px);
		width: -o-calc(50% - 10px);
		width: calc(50% - 10px);
		margin-right: 0;
	}
	.site-header .logo {display:none;}

	.right-column {display:none;}

	.left-column {
		display:block;
		border:none;
		width:100%;
		background-color:white;
		height:1px;
		padding:0;
		margin:0;
	}

	.site-nav {
		display: block;
		z-index: 10;
		background-color: white;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		border-radius: 5px;
		border: 1px solid #e8e8e8;
		position: absolute;
		top: 5px;
		right: 5px;
	}

	.site-nav .menu-icon {
		display: block;
		font-size: 24px;
		color: #505050;
		float: right;
		width: 36px;
		text-align: center;
		line-height: 36px;
	}

	.site-nav .menu-icon svg { width: 38px; height: 16px; }

	.site-nav .trigger {
		clear: both;
		margin-bottom: 5px;
		display: none;
	}


	.site-nav:hover .trigger { display: block; }
	.site-nav:hover .trigger-second-level { display: block; }
	/*
	.site-nav:hover .menu-icon { display: none; }
	*/

	.site-nav .page-link {
		display: block;
		text-align: right;
		line-height: 1.25;
		padding: 5px 10px;
		margin: 0;
	}

	.center-column {
		padding: 2em;
		padding-bottom: 6em;
	}
}

