/* ------------------------------------------------------------------------
-   Make browsers more friendly with padding and margin. -
-------------------------------------------------------------------------*/
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------------
-  The basics. -
-------------------------------------------------------------------------*/
html, body {
	background: #d1d1d1;
	font-family: 'Open Sans', sans-serif;
	font-size: 24px;
	margin: 0;
}

a {
	text-decoration: none;
	-webkit-transition: color 0.15s ease-in, background 0.15s ease-in;
	-moz-transition: color 0.15s ease-in, background 0.15s ease-in;
	-o-transition: color 0.15s ease-in, background 0.15s ease-in;
	transition: color 0.15s ease-in, background 0.15s ease-in;
}

p { line-height: 1.4; }

.top { text-align: right; }
.inside { padding-left: 15px; }

.module {
	color: #212121;
	margin: 10px;
	overflow: hidden;
	padding: 1.5em;
	position: relative;
	border: 1px solid black;
	border-radius: 10px;
	box-shadow: 3px 3px 0 0 #999;
	background: #f2f2f2;
}

	.main-content .module {
		font-size: 0.7em;
		margin-right: 1em;
		margin-left: 4px
	}

/* ------------------------------------------------------------------------
-  The header (or the left side part of the page). -
-------------------------------------------------------------------------*/
.main-header {
	float: left;
	font-weight: 300;
	line-height: 1.7;
	text-align: center;
	width: 35%;
}

	.main-header h1 {
		font-weight: 300;
		margin: 0;
	}

	.main-header a {
		color: #f5f5f5;
	}

	.main-header a:hover, .main-header a:focus { color: #e1e1e1; }

	.main-header .title { background: #2c3e50; }
	.main-header .description { background: #34495e; color: #e5e5e5;  }

.main-menu {
	background: #7f8c8d;
	padding: 0.1em;
	font-size: 0.9em;
	text-align: center;
}

	.main-menu a {
		padding: 0 0.3em;
	}

	.main-menu a:nth-child(2n) { margin: 5px; }

	.main-menu a:hover, nav a:active {
		border: 0;
		color: #f2f2f2 !important;
		text-decoration: underline;
	}

.recent {
	background: #afbabb;
	text-align: left;
	padding: 0.2em 0 0.3em 0.5em;
	font-size: 80%;
	line-height: 1.4em;
}

	.recent ul {
		margin:0;
		padding-left: 1.5em;
		color: #455;
		white-space: nowrap;
	}

	.recent li a {
		width: 98%;
		overflow: hidden;
		text-overflow: ellipsis;
		float: left;
		margin-left: -3px;
	}

.links {
	padding: 0;
	background: #9AA5A6;
}

	.links a:hover, .links a:active {
		color: #f2f2f2 !important;
		text-decoration: underline;
	}

/* ------------------------------------------------------------------------
-  Pagination. -
-------------------------------------------------------------------------*/
.pagination { text-align: center; }
	.pagination .page_number { color: #888; }
	.pagination .nolink { color: #666; }

/* ------------------------------------------------------------------------
-  The content. -
-------------------------------------------------------------------------*/
.main-content {
	float: right;
	padding: 0 !important;
	width: 65%;
	margin-bottom: 20px;
}

	.main-content a { color: #2c3e50; }
	.main-content a:hover, .main-content a:focus { color: #2980b9; }

.category {
	color: #ccc;
	position: absolute;
	right: 0.75em;
	top: 0.75em;
}

hr {
	border: 0;
	background: #aaa;
	height: 1px;
	margin: 25px 0;
}

article h1 { border-bottom: 1px solid #888; margin-bottom: 1em; padding-bottom: 1em; }
article h2 { border-bottom: 1px solid #CCC; padding-top: .5em; }

article a {
	border-bottom: .1em solid #ccc;
	display: inline;
	padding: 0 0 .07em 0;
}

	article a:hover, article p a:active {
		color: #f2f2f2 !important;
		background: #2c3e50;
		border: 0;
	}

	article a[href$=jpg], a[href$=jpeg], a[href$=jpe], a[href$=png], a[href$=gif] {
		border: 0;
	}

	article a[href$=jpg]:hover, a[href$=jpeg]:hover, a[href$=jpe]:hover, a[href$=png]:hover, a[href$=gif]:hover {
		background: 0;
	}

	article img {
		height: auto;
		max-width: 100%;
		max-height: 25em;
		background: #e5efef;
		box-shadow: 2px 2px 0 0 #c8d2d2;
		border: 1px solid #b0baba;
		border-radius: 5px;
		padding: .6em .7em;
		display: block;
		margin: 0 auto;
	}

	article a img + label {
		padding: 0.1em 0.5em;
		background: #e5efef;
		box-shadow: 2px 2px 0 0 #c8d2d2;
		border-bottom: 1px solid #b0baba;
		display: table;
		position: relative;
		top: -0.1em;
		height: 1.2em;
		line-height: 0.5em;
		color:#212121;
		margin: auto;
	}

	article a:hover img, article a:focus img, article a:active img {
		border-color: #269;
		box-shadow: 3px 3px 0 0 #9ac;
	}

	article a:hover img + legend, article a:focus img + legend, article a:active img + legend {
		color: #269;
	}

/* ------------------------------------------------------------------------
-  Tables -
-------------------------------------------------------------------------*/
table {
	border: 1px solid #999;
	border-collapse: collapse;
	font-size: 0.8em;
	width: 100%;
	box-shadow: 2px 2px 0 0 #bbb;
}

	table tr { border: none !important; }
	table td,th {
		border: 1px solid #999;
		padding: 3px;
	}
	table thead tr { background: #f2f2f2 !important; }
	table tr:nth-child(odd) { background: #f2f2f2; }
	table tr:nth-child(even)  { background: #e1e1e1; }

/* ------------------------------------------------------------------------
-  Social share (end of the post). -
-------------------------------------------------------------------------*/
.social {
	padding: 0 !important;
	text-align: right;
}
	.social ul {
		list-style: none;
		list-style-position: inside;
		margin: 0 !important;
		padding: 0 !important;
	}

	.social li {
		display: inline-block;
		margin: 0 !important;
		padding: 0.5em;
	}

	.social li a {
		color: #f5f5f5;
		display: block;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	.social li a:hover, .social li a:active {
		color: #f5f5f5;
		text-decoration: underline;
	}

	.fb { background: #2c3e50; } .fb:hover { background: #34495e; }
	.tw { background: #2980b9; } .tw:hover { background: #3498db; }
	.gp { background: #c0392b; } .gp:hover { background: #e74c3c; }

#disqus_thread { overflow: hidden; min-height: 108px; display: none; }
#disqus_thread:after { content: ''; display: block; margin-bottom: -60px; }
#disqus_loadbtn { text-align:center; }
#disqus_loadbtn input { padding: 5px; border-radius: 6px; border: 1px solid #000; cursor: pointer; color: #fff; background-color: #345; box-shadow: 3px 3px 0 0 #999; }
#disqus_loadbtn input:hover, #disqus_loadbtn input:focus, #disqus_loadbtn input:active { background-color: #567; }
@media (max-width: 581px) { #disqus_thread:after { margin-bottom: -230px } }

/* ------------------------------------------------------------------------
-  Footer. -
-------------------------------------------------------------------------*/
.footer {
	clear: both;
	color: #777;
	font-size: 0.5em;
	margin: 0em;
	padding: 0.2em;
	text-align: center;
	border-top: 1px dashed #999;
	background-color: #bbb;
}
	.footer a {
		color: #555;
		text-decoration: underline;
	}

	.footer p { margin-top: 2px; }

/* ------------------------------------------------------------------------
-  Blockquote, code, pre. -
-------------------------------------------------------------------------*/
pre, code {
	/* font-size: 0.99em; */
	padding: 0.1em 0.3em;
	word-wrap: break-word;
	top: -1px;
	position: relative;
	background-color: #e5efef;
}

blockquote {
	font-style: italic;
	border-left: 5px solid #ccc;
	margin: 1.5em 10px;
	padding: 0.5em 5px;
	quotes: "\201C""\201D""\2018""\2019";
}

	blockquote:before {
		color: #ccc;
		content: open-quote;
		font-size: 4em;
		line-height: 0.1em;
		margin-right: 0.25em;
		vertical-align: -0.4em;
	}

	blockquote p { display: inline; }

/* ------------------------------------------------------------------------
-  Make things responsive. -
-------------------------------------------------------------------------*/
@media (max-width: 850px) {

	body { font-size: large; }

	.main-header, .main-content {
		padding: 0 0.5em;
		width: 100%;
	}

	.main-header .description {
		padding: 0.2em;
	}

	.main-header .recent { max-height: 9em; }

	.main-header .module { margin-left: 0; }
	.main-content .module { border-radius: 3px;margin: 0 0px 0.5em 0px;border-right-width: 0;border-left-width: 0;padding: 1em; }
	.main-content ol { padding-left: 25px; }

	nav { text-align: center; }
	nav br { display: none; }
	nav a { margin: 0 0.75em; }

	.social { text-align: center; }
	.social li { display: block; width: 100%; }
}

/* ------------------------------------------------------------------------
-   Source code highlighting -
-------------------------------------------------------------------------*/
div.highlight {
	overflow-x: auto;
	background: #e5efef;
	box-shadow: 2px 2px 0 0 #c8d2d2;
	border: 1px solid #b0baba;
	border-radius: 5px;
	padding: .5em .7em;
	margin:  0.3em 0 1em 0;
	line-height: 1.0em;
}
.highlight pre, .highlight code { margin: 0; padding: 0}
.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 */
