/* Fonts */
@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic);

@font-face {
	font-family: 'BitstreamVeraSansMonoRoman';
	src: url("/fonts/VeraMono-webfont.woff") format("woff");
	font-weight: normal;
	font-style: normal;
}

/* global */
html,body {
	overflow-x: hidden;
	background-color: #f1f0f0;
	font-family: 'PT Sans', helvetica, arial, clean, sans-serif;
	font-size: 100%;
	-webkit-text-size-adjust: none;
}

img,object,embed {
	max-width: 100%;
	display:block;
	margin-left:auto;
	margin-right:auto;  
}

.legend {
  text-align: center;
}

/* Hyphenation */
p {
	text-align: left;
}

pre, code {
	hyphens: none;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	overflow:scroll;
	width: auto;
}

pre:hover, code:hover {
	width: 800px;
}
@media only screen and (max-width: 767px) {
	pre:hover {
		width: 100%;
	}
}

/* Wrapper */
#wrapper {
	margin-top: 3em;
	margin-bottom: 3em;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5em;
	width: 100%;
	max-width: 640px;
}
@media only screen and (max-width: 767px) {
	#wrapper {
		margin-top: 0em;
		margin-bottom: 0em;
		max-width: none;
	}
}

p, h1, h2, h3 {
	margin-top :0;
}

/* Links */

a {
	color: #1430b8;
	text-decoration: none;
}
a:hover {
	color: #b83014;
}

sup {
	line-height: 0.5em;
}

/* Lists */

ol, ul {
	margin-left: 1em;
	padding-left: 1em;
}

/* Header */

#header {
	margin-bottom: 45px;
	font-family: 'PT Sans', sans-serif;
	font-weight: bold;
	font-size: 400%;
}
#header a {
	color: #004;
}
@media only screen and (max-width: 767px) {
	#header {
		margin-top:12px;
		margin-bottom: 0px;
		font-size: 315%;
		float:left;
		width: 100%;
	}
}

/* Hello */

#hello {
	margin-right: 45px;
	margin-left: -175px;
	margin-top: 20;
	width: 130px;
	float: left;
}
#hello p {
	font-size: 80%;
	text-align: right;
	margin-top: 0;
	margin-bottom: 0;
}
@media only screen and (max-width: 767px) {
	#hello {
		margin-top: 12px;
		margin-bottom: 20px;
		margin-left: 29px;
		float: left;
		width: 60%;
	}
	#hello p {
		text-align: left;
		display: inline;
	}
}

/* Menu  */

#menu {
	margin-right: 45px;
	margin-left: -175px;
	width: 130px;
	float: left;
	clear: left;
}
#menu a {
	color: #004;
}
#menu p {
	font-size: 110%;
	margin-top: 1.2em;
	margin-bottom: 0em;
	line-height: 1.2em;
	text-align: right;
	font-weight: bold;
}
@media only screen and (max-width: 767px) {
	#menu {
		margin-left: auto;
		margin-right: auto;
		position: absolute;
		width:30%;
		top: 0px;
		right: 0px;
		margin-top:15px;
		margin-right:8px;
	}
	#menu p{
		margin: 0;
		line-height: 1.3em;
	}
}

/* Container */
#container {
	margin-top:-40px;
	width:100%;
	float:right;
}
@media only screen and (max-width: 767px) {
	#container {
		margin-top:10px;
	}
}

/* Posts */
.post {
	margin-bottom: 2em;
}
.post #title {
	color: #000;
	font-family: 'PT Sans', sans-serif;
	font-weight: bold;
	line-height: 2em;
}
.post #title a {
	color: #004;
}

.post #date {
	text-align: left;
	font-size: 80%;
	margin-bottom: 1em;
}

.post blockquote {
	font-style: italic;
	margin-left: 1em;
	padding-left: 1em;
	border-left: .1em solid #88a;
}

.post h2 {
	margin-top: 2em;
}

.post div.footnotes {
	margin-top: 4em;
	font-size: 90%;
}

/* Post summary */
a.postsummary {
	color: inherit;
}

/* moreposts */
#moreposts {
	font-size:85%;
	margin-top: 10em;
}
#moreposts div.postsummary{
	opacity: 0.5;
}
#moreposts div.postsummary:hover{
	opacity: 1.0;
}

/* Code and Pre */
.post pre, .post code {
	background-color: #e0e0e3;
	font-family: BitstreamVeraSansMonoRoman, monospace;
	font-size: 90%;
	line-height: 1.25em;
}
.post pre {
	padding: 1em;
}

/* Decorations */

#header:before {
	display: inline;
	font-size: 100%;
	color: #004;
	font-family: ZapfDingbatsITC, Arial;
	content: "❝";
}

#container:after {
	display: block;
	font-size: 400%;
	text-align: right;
	color: #004;
	font-family: ZapfDingbatsITC, Arial;
	content: "❞";
	margin-top: 1em;
	margin-bottom: 1em;
}

@media only screen and (max-width: 767px) {
	#container:after {
		font-size: 250%;
		margin-top: .5em;
		margin-bottom: .5em;
	}
}
