
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
	font-size: 1.1em;
	/* font-family: "Roboto", sans-serif;*/
	/* font-family: "Noto Serif", serif;*/
	/* font-family: "Bitter", serif;*/
	font-family: "Lora", serif;
	color: #444;
    line-height: 1.3;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

blockquote {
	background: #f9f9f9;
	border-left: 10px solid #ccc;
	color: #383838;
	font-style: italic;
	line-height: 1.45;
	margin: 1.5em 10px;
	padding: 0.35em 40px;
	position: relative;
}

blockquote:before {
	color: #ccc;
	content: "\201C";
	display: block;
	font-size: 4.8em;
	left: 0;
	padding-left: 0.05em;
	position: absolute;
	top: -0.25em;
}

blockquote cite {
	color: #999;
	display: block;
	margin-top: 0.5em;
}

blockquote cite:before {
	content: "\2014 \2009";
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   1. Icons - Sets up the icon font and respective classes
   ========================================================================== */

/* Import the font file with the icons in it */
@font-face {
    font-family: 'icons';
    src:url('../fonts/icons.eot');
    src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
        url('../fonts/icons.woff') format('woff'),
        url('../fonts/icons.ttf') format('truetype'),
        url('../fonts/icons.svg#icons') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Apply these base styles to all icons */
.icon-ghost:before,
.icon-feed:before,
.icon-twitter:before,
.icon-google-plus:before,
.icon-facebook:before {
    font-family: 'icons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    text-decoration: none;
	margin: 0 2px 0 2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Each icon is created by inserting the corret character into the
   content of the :before pseudo element. Like a boss. */
.icon-ghost:before {
    content: "\e000";
}
.icon-feed:before {
    content: "\e001";
}
.icon-twitter:before {
    content: "\e002";
    font-size: 1.1em;
}
.icon-google-plus:before {
    content: "\e003";
}
.icon-facebook:before {
    content: "\e004";
}

/* The subscribe icon on the footer */
.subscribe {
    width: 28px;
    height: 28px;
    position: absolute;
    top: -14px;
    left: 50%;
    margin-left: -15px;
    border: #EBF2F6 1px solid;
    text-align: center;
    line-height: 2.4rem;
    border-radius: 50px;
    background: #fff;
    transition: box-shadow 0.5s;
}

/* The RSS icon, inserted via icon font */
.subscribe:before {
    color: #D2DEE3;
    font-size: 10px;
    position: absolute;
    top: 9px;
    left: 9px;
    font-weight: bold;
    transition: color 0.5s ease;
}

/* Add a box shadow to on hover */
.subscribe:hover {
    box-shadow: rgba(0,0,0,0.05) 0 0 0 3px;
    transition: box-shadow 0.25s;
}

.subscribe:hover:before {
    color: #50585D;
}

/* CSS tooltip saying "Subscribe!" - initially hidden */
.tooltip {
    opacity:0;
    display: inline-block;
    padding: 4px 8px 5px 8px;
    position:absolute;
    top: -23px;
    left: -21px;
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    line-height: 1em;
    text-align: center;
    background: #50585D;
    border-radius:20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, top 0.3s ease;
}

/* The little chiclet arrow under the tooltip, pointing down */
.tooltip:after {
    content:"";
    border-width:5px 5px 0 5px;
    border-style:solid;
    border-color: #50585D transparent;
    display:block;
    position:absolute;
    bottom:-4px;
    left:50%;
    margin-left:-5px;
    z-index: 220;
    width:0;
}

/* On hover, show the tooltip! */
.subscribe:hover .tooltip {
    opacity: 1;
    top: -33px;
}


/* ================
    End icon stuff
   ================ */

#container {
	margin: auto;
	max-width: 650px;
	width: 90%;
}

a {
	/* color: #666;*/
	color: #0277bd;
	text-decoration: none;
}

a:hover {
	color: #2694DE;
	/* color: #0277bd;*/
	text-decoration: underline;
}

img {
	max-width: 90%;
	margin: auto;
	display: block;
}

.circle {
	border-radius: 50%;
}

/* ==================
   Site header styles
   ================== */

#site-head {
	text-align: center;
}

#logo {
	background: url('../img/logo.png') no-repeat;
	display: block;
	height: 128px;
	margin: 30px auto 0 auto;
	width: 128px;
}

#logo:hover {
	background: url('../img/logo_hover.png') no-repeat;
}

#site-head h1 {
	margin-bottom: 0;
}

#site-head h2 {
	margin: 0 0 0.83em 0;
	font-family: monospace;
}

nav ul {
	border-bottom: 1px solid #ecf0f1;
	margin: 0;
	padding: 0 0 5px 0;
	width: 100%;
}

nav ul li {
	display: inline;
	padding: 5px 15px;
}

nav a {
	color: #555;
}

/* ===================
   Main content styles
   =================== */

main {
	padding: 10px;
	margin-top: 20px;
}

article h1 { font-size: 1.5em; }
article h2 { font-size: 1.17em; margin: 0; }
article h3 { font-size: 1em; }
article h4 { font-size: 0.83em; }
article h5 { font-size: 0.67em; }
article h6 { font-size: 0.49em; }

article h2 a {
	color: #333;
}

pre {
	white-space: pre;
	word-break: normal;
	word-wrap: normal;
	overflow-x: auto;
}
code {
	font-size: 0.83em;
}
.post-meta {
	color: #ccc;
	font-size: 0.8em;
	margin: 0;
	padding: 0;
}

article footer {
	border-bottom: 1px solid #ecf0f1;
	margin: 30px 20px 50px 20px;
	padding-bottom: 30px;
	text-align: center;
}

article footer a {
	font-size: 1.2em;
}

.flickr {
	width: 600px;
	margin: 0 auto;
}

.post-footer {
	margin: 30px 0 50px 0;
	padding: 20px;
	text-align: left;
}

.post-tags {
	font-size: 0.9em;
	padding-left: 20px;
	background: url('../img/tag.png') no-repeat;
	background-position: bottom left;
}

.projects {
	list-style: none;
	margin: 0 auto;
	width: 90%;
}

.project {
	background: #fefefe;
	border: 2px solid #fcfcfc;
	box-shadow: 0px 1px 2px #333;
	position: relative;
	display: inline-block;
	float: left;
	margin: 1%;
	width: 47%;
}

.project:hover {
	box-shadow: 0px 2px 4px #666;
}

.project h2 {
	font-size: 1.2em;
	text-align: center;
	margin: 0.83em auto 0.5em auto;
	max-width: 90%;
}

.project a {
	color: #333;
}

.project a:hover {
	text-decoration: none;
}

.project img {
	border-bottom: 1px solid #ccc;
	padding-bottom: 15px;
}

.project p {
	margin: 15px auto;
	max-width: 90%;
}

.share {
	text-align: center;
	border-bottom: 1px solid #ecf0f1;
	padding-bottom: 20px;
}

.share a {
	color: #333;
}

.share a:hover {
	text-decoration: none;
}

#author {
	width: 100%;
	text-align: left;
	padding-top: 20px;
}

#author img {
	float: left;
	margin-right: 10px;
}

#author h3 {
	margin: 0;
}

#author p {
	margin-top: 5px;
}
#author #social {
	float: right;
	height: 30px;
	width: 100px;
}

#social img {
	height: 25px;
	width: 25px;
}

.site-footer {
	text-align: center;
	font-size: 0.8em;
	background: #F7FAFB;
    border-top: #EBF2F6 1px solid;
    color: #BBC7CC;
    position: relative;
	padding: 20px 0 20px 0;
}

/* The main wrapper for our pagination links */
.pagination {
    position: relative;
    width: 80%;
    max-width: 700px;
    margin: 4rem auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    color: #9EABB3;
    text-align: center;
}

.pagination a {
    color: #9EABB3;
}


#post-list {
	list-style: none;
}

#post-list li a {
	display: table-cell;
	padding: 0.4em;
	transition: background 0.2s ease-in 0s;
	border-radius: 4px;
}
#post-list li a:hover {
	background: #f9f9f9;
	color: #0277bd;
	text-decoration: none;
}
#post-list li {
	margin: 0.2em;
	display: table;
	width: 100%;
}

#post-list li .post-meta {
	/* float: right;*/
	display: table-cell;
	text-align: right;
	width: 15%;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 34em) {
    /* Style adjustments for viewports that meet the condition */
	main {
		padding: 0 0 25px 0;
	}
	.flickr {
		width: 100%;
	}
	.projects {
		padding: 0;
		width: 100%;
	}
	.project {
		margin: 2% 0;
		width: 100%;
	}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
