/*  
Theme Name: FlowingData Modern
Theme URI: http://flowingdata.com/
Description: Responsive with more focus on own projects and tutorials.
Version: 5.0
Author: Nathan Yau
Author URI: http://flowingdata.com
License: Private theme
*/

/* Table of Content
==================================================
	#Reset & Basics
	#Basic Styles
	#Site Styles
	#Typography
	#Links
	#Lists
	#Images
	#Buttons
	#Forms
	#Misc */


/* #Reset & Basics (Inspired by E. Meyers)
================================================== */
	html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline; }
	article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
		display: block; }
	body {
		line-height: 1; }
	ol, ul {
		list-style: none; }
	blockquote, q {
		quotes: none; }
	blockquote:before, blockquote:after,
	q:before, q:after {
		content: '';
		content: none; }
	table {
		border-collapse: collapse;
		border-spacing: 0; }


/* #Basic Styles
================================================== */
	body {
		background: #fff;
		font: 16px/25px "Georgia", "Times New Roman", serif; 
		color: #000;
		-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
		-webkit-text-size-adjust: 100%;
 }


/* #Typography
================================================== */
	h1, h2, h3, h4, h5, h6 {
		color: #181818;
		font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-weight: bold; }
	h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
	h1 { font-size: 46px; line-height: 50px; margin-bottom: 13px;}
	h2 { font-size: 35px; line-height: 39px; margin-bottom: 9px; }
	h3 { font-size: 28px; line-height: 33px; margin-bottom: 6px; }
	h4 { font-size: 21px; line-height: 26px; margin-bottom: 4px; }
	h5 { font-size: 17px; line-height: 24px; }
	h6 { font-size: 14px; line-height: 21px; }
	
  
	p { margin: 0 0 20px 0; line-height: 1.6em; }
	p img { margin: 0; }
	p.lead { font-size: 21px; line-height: 27px; color: #777;  }

	em { font-style: italic; }
	strong { font-weight: bold; color: #333; }
	small { font-size: 80%; }

/*	Blockquotes  */
	blockquote { padding: 20px; margin: 0 20px 20px 20px; background: #fcf5f0; }
	blockquote cite { display: block; font-size: 12px; color: #555; }
/*  blockquote cite:before { content: "\2014 \0020"; }*/
	blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
	blockquote p:last-child { margin-bottom: 0; }
	blockquote.quote { 
    background-image: url('images/quotation.gif');
	  background-repeat: no-repeat;
	  margin: 0 0 20px 0; 
	  padding: 0 0 0 55px; 
	  font-size: 2.0em; 
	  border: none; 
	  background-color: #fff;
	}
  blockquote.quote div.cite, blockquote.quote cite {
    font-size: 12px;
    font-weight: normal;
    margin-top: 0;
    line-height: 1.4em;
  }
  blockquote.quote p {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.3em;
  }

/* Lists */
  .entry ul, .entry ol {
      margin-left: 40px;
      margin-bottom: 1.9em;
  }
  .entry ol { list-style-type: decimal; }
  .entry ul { list-style-type: disc; }
  .entry li { margin-bottom:8px; }


/* #Titles
================================================== */

.line-center {
    margin:0; padding:0 10px;
    background: #fff;
    display: inline-block;
}
.sec-header { 
  text-transform: uppercase; 
  text-align: center; 
  position: relative; 
  z-index: 2; 
}
.sec-header:after {
  content:"";
  position:absolute;
  top:50%;
  left:0;
  right:0;
  border-top: solid 1px #000;
  z-index:-1;
}


/* #Links
================================================== */
	a, a:visited { color: #821122; text-decoration: none; outline: 0; }
	a:hover, a:focus { color: #821122; }
	a img { border:none; vertical-align:top; }


/* Header
================================================== */

#header-wrapper {
  background: #e0e0e0;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

#header {
  font-size: 13px;
  color: #999;
}
  #header #logo img { max-width: 100%; height: auto; }
  #header a { color: #666; font-weight: bold; }
  #header a:hover { color: #821122; border-bottom: 1px solid #821122; }
  #header a.highlight { color: #821122; border-bottom: 1px solid #999; }
  #header a.highlight:hover { border-bottom: 1px solid #821122; }
  #header #logo a { border: none; }
  #nav { margin-top: 7px; text-align: left; }
  #nav ul li {
    display: inline;
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-right: 12px;
    margin-left: 12px;
    font-size: 14px;
  }
  
  #login { text-align: right; margin-top: 8px; }
  #login ul li { display: inline; font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, sans-serif; margin-left: 10px; }
  #login a { text-transform: uppercase; font-size: 13px; }


/* Homepage and archives
================================================== */

.archive-post {
  padding-bottom: 30px;
  margin-bottom: 30px;
}
  .archive-post a { border-bottom: 1px solid #ccc; }
  .archive-post a:hover { border-bottom: 1px solid #821122; }
  .archive-post img {
    max-width: 100%;
    height: auto;
  }
  .archive-post .archive-featured-image { margin-bottom: 10px; }
  .archive-post h1 a, .archive-post h2 a, .archive-post h3 a { border: none; }
  .archive-post h1 a:hover, .archive-post h2 a:hover { border-bottom: 1px solid #821122; }
  
  .archive-post .members-only {
    background-color: #000;
    padding: 1px 10px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    font-size: 0.7em;
    border-bottom: 1px solid #fff;
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  .archive-post .members-only a { color: #fff; border: none; font-weight: bold; }
  .archive-post a.more-link { 
      background-color: #821122;
      color: #fff;
      text-transform: uppercase;
      text-decoration: none;
      text-align: center;
      padding: 0 2px;
      font-size: 0.70em;
      display: block;
      margin: 20px auto 0px auto;
      width: 200px;
      font-weight: bold;
      font-family: Helvetica, Arial, sans-serif;
      border: none;
  }

#recent-posts .archive-post {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}


/* Categories and Tags
================================================== */

.archive #archive-title { 
  text-align: center; 
  text-transform: uppercase; 
  color: #777;
  margin-top: -10px;
  margin-bottom: 35px; 
}
  .archive #archive-title h1 { color: #777; }
  .archive #archive-title .archive-lead-in { 
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; 
    font-size: 0.9em; 
    font-weight: bold; 
  }
.archive .archive-post.column          { margin-left: 15px; margin-right: 15px; }
.archive .column.alpha    { margin-left: 0; }
.archive .column.omega    { margin-right: 0; }
.archive .entry.smaller   { font-size: 0.9em; line-height: 1.4em; }
  .archive .archive-post { margin-bottom: 20px; }
  .archive .archive-post a { border: none; }
  .archive .archive-post a:hover { border-bottom: 1px solid #821122; }
ul.guides { margin-bottom: 30px; }
  ul.guides li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #ccc; }


/* Search
================================================== */

.search-title { margin-bottom: 30px; border-bottom: 1px solid #000; padding-bottom: 10px; color: #777; }



/* Pagination links
================================================== */
.page-links { margin-bottom: 40px; font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.page-links li { 
    font-size: 1.5em;
    list-style-type: none;
    display: inline;
}
.page-links li.page_info { margin-right: 20px; color: #777; }
.page-links li a { 
    padding: 3px 8px;
    border-top: 1px solid #fff;
    margin-right: 1px;
    font-weight: bold;
}
.page-links a:hover {
    background: #e0e0e0;
    color: #821122;
    border-top: 1px solid #821122;
}
.page-links li.active_page a {
    background: #e0e0e0;
}


/* Meta bar
================================================== */

.meta-bar {
    margin: 0 0 10px 0;
	  color: #444;
    line-height: 1.4em;
    font-weight: normal;
    font-size: 13px;
    font-family: Helvetica, Arial, sans-serif;
}
.meta-bar a { color: #444; }
.meta-bar a:hover { color: #821122; }
#single-feature-post .meta-bar, #single-long-post .meta-bar { margin-bottom: 20px; }


/* Author Information
================================================== */

.author-info { 
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 20px 0; 
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
  .author-info h3 { font-size: 20px; margin: 0px; }
  .author-info img {
    float: left;
    margin: 10px 0 10px 0;
    max-width: 100%;
    height: auto;
  }
  .author-info .bio { width: 80%; float: left; font-size:14px; line-height: 21px; }


/* Single Post Basics
================================================== */

#more-actions { border-top: 1px solid #ccc; margin-top: 30px; padding-top: 30px; }


/* Post Content
================================================== */

.entry .embed-container {
  position: relative;    
  padding-bottom: 56.25%; /* 16/9 ratio */   
  padding-top: 30px; /* IE6 workaround*/   
  height: 0;    
  overflow: hidden;
  margin-bottom: 20px;
}
.entry .embed-container iframe, .entry .embed-container object, .entry .embed-container embed {
  position: absolute;
  top: 0;    
  left: 0;    
  width: 100%;    
  height: 100%;
}


/* Post Images
================================================== */

img.img-left, .entry img.imgleft { padding: 5px 1em 1em 0; }
img.img-right, .entry img.imgright { padding: 5px 0 1em 2em; }
img.aligncenter { display: block; margin: 0 auto 1em auto; }
.full-featured-image { margin-left: -200px; width: 960px; margin-bottom: 20px; }
.extrawide, img.extrawide, .extrawideint { 
    max-width: 960px; 
    margin-left: -180px;
}


/* Related Posts
================================================== */

#related { 
    padding: 20px 0 0px 0; 
    border-top: 1px solid #e2e2e2;
}

#related ul { margin: 12px 0 0 18px; }
#related li { 
    list-style-type: disc; 
    margin-bottom: 1.4em;
    line-height: 1.1em;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
}
#related a { color: #821122; font-weight:bold; text-decoration: none; }
#related a:hover img { border: 1px solid #e2e2e2; }
#related .meta { font-size: 0.8em; color: #777; }
#related .meta a { color: #777; font-weight: normal; border: none; }
#related .meta a:hover { border-bottom: 1px solid #777; }




/* Sharing
================================================== */

.share { vertical-align: middle; text-align: center; margin: 20px 0; }



/* Comments
================================================== */

#comments-block {
    border-top: 1px solid #ccc;
    padding: 30px 0 10px 0;
    margin: 23px 0 10px 0;
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
}
#comments-block #respond {  
    margin-top: 0px; 
}
/*#comments-block p { padding-bottom: 1.3em;}*/
#comments-block ul { 
    list-style-type: none; 
    margin: 0; padding: 0; 
}
#comments-block a { color: #821122;text-decoration:none;}
#comments-block label { font-weight: bold; }
#comments-block label small { font-weight: normal; color: #6b6b6b; }
#comments-block input { 
    padding:4px;
    border:1px solid #e2e2e2;
    background: #f0f0f0;
}
#comments-block input#submit { border:none; background: none;}
#comments-block textarea { 
    width: 98%;
    height:80px; 
    padding:1%; 
    font-size:12px;
    line-height:1.3em;border:1px solid #e2e2e2;
    background: #f0f0f0;
}
#comments-block li.comment:first-child, #comments-block li.pingback:first-child, #comments-block li.trackback:first-child {
    border-top: none;
}
#comments-block li.comment, #comments-block li.pingback, #comments-block li.trackback {  
    border-top: 1px dotted #e2e2e2;
    padding: 20px 0 0px 0;
    margin-top: 0;
    margin-bottom: 0px;
}
#comments-block li.pingback, #comments-block li.trackback {
    font-size: 0.95em;
}
#comments-block .commentlist { margin-bottom: 20px; }
#comments-block .comment .avatar { width:50px; float:left; margin: 2px 15px 0 0; }
#comments-block .comment .comment-content { width: 555px; float: left; }
#comments-block .comment .depth-2 .comment-content { width: 490px; }
#comments-block .comment .depth-3 .comment-content { width: 425px; }
#comments-block .comment p { line-height:1.5em; }
#comments-block .comment .vcard { font-weight: bold; }
#comments-block .comment .vcard cite { font-weight:bold; }
#comments-block li.pingback cite a, #comments-block li.trackback cite a {
    font-weight: normal;
}
#comments-block .comment .comment-meta { color: #a1a1a1; }
#comments-block .comment .comment-meta a { color: #a1a1a1; }
#comments-block .comment .comment-meta a:hover { background:none; border-bottom: 1px solid #a1a1a1; }
#comments-block .comment .depth-2 { margin-left: 65px; }
#comments-block .comment .depth-3 { margin-left: 65px; }
#comments-block .comment .reply { 
    margin-bottom: 20px; 
    font-weight: bold;
    font-size: 0.95em;
}
#comments-block .comment-reply-link { 
    font-size: 0.9em;
    color: #333; 
    background-color: #e2e2e2; 
    padding:3px; 
    border: none; 
}
#comments-block .comment-reply-link:hover { background-color: #821122; color: #fff; }
#comments-block #cancel-comment-reply { font-size:12px; }
#comments-block .comment .flowingdata-author .comment-text { 
    border-right: 2px solid #333;
    padding-right: 10px;
}
#comments-block .comment .flowingdata-author .vcard cite { }
#comments-block li.pingback a, #comments-block li.trackback a {
    font-weight: bold;
}
#comments-block #trackbacks { 
    margin-top: 0px;
    margin-bottom: 0px; 
    padding: 0px 0 10px 0;
}
#comments-block #trackbacks ul { border: none; list-style-type: disc; margin-left:15px;}
#comments-block #trackbacks li { line-height: 1.2em; margin-bottom: 15px;}
#comments-block .subscribe-to-comments input { /*vertical-align: middle;*/ }
#comments-block .subscribe-to-comments label { display: inline; /*vertical-align: middle;*/ }


/* Single Long Post
================================================== */
  
  .note-wrapper { margin-bottom: 10px; }
  .members-note { 
    text-transform: uppercase; padding: 3px; background: #e0e0e0; color: #777;
    font-weight: normal; font-size:0.7em; border: 1px solid #e0e0e0;
    font-family: Helvetica, Arial, sans-serif;
    display: inline;
  }
  #single-long-post #top-stuff {
    margin-bottom: 30px;
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  #single-long-post .author { font-size: 0.9em; margin:0 0 1.1em 1px;}
  #single-long-post .author a { color: #000; }
  #single-long-post .author a:hover { color: #821122; }
  #single-long-post .author strong { text-transform: uppercase; font-weight:normal }

  #single-long-post #lead-in-excerpt {
    font-size: 1.7em;
    color: #333;
    margin-bottom: 1em;
    line-height: 1.2em;
    
    font-weight: normal;
  }
  #tut-meta { margin-bottom: 20px; }
  #tut-meta .button-link {
      margin-right: 10px;
      float: left;
  }
  #tut-meta .button-link a {
      padding: 5px;
      background: #821122;
      text-align: center;
      min-width: 115px;
      color: #fff;
      font-weight: bold;
      display: block;
      font-size: 0.8em;
      font-family: Helvetica, Arial, sans-serif;
      text-decoration: none;
  }
  #tut-meta .button-link a:hover {
      background: #af172e;
  }
  #single-long-post .tip {
      display: block;
      width: 260px;
      margin-left: 670px;
      height: 0px;
      font-size: 0.8em;
      font-family: Helvetica, Arial, sans-serif;
      line-height: 1.4em;
  }
  a.subscribe-button { 
      font-size: 1.7em;
      text-decoration: none;
      background: #821122;
      color: #ffffff;
      padding: 0.3em 0.4em;
  }
  #join-now { 
    border-bottom: 1px solid #e2e2e2;
    padding: 30px 0 40px 0;
    text-align: center;
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    }
  #unsubscribed {
      padding: 30px 0 30px 0;
      font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  #unsubscribed h3 { font-size: 20px; }
  #unsubscribed p {
      margin-bottom: 1.9em;
      font-size: 14px;
      line-height: 21px;
  }
  #unsubscribed a { text-decoration: underline; }
  #unsubscribed a:hover { text-decoration: none; }
  #unsubscribed ul { margin-bottom: 30px; list-style-type: disc; }
  #unsubscribed ul li {
      margin: 0 0 10px 30px;
      font-size: 14px;
      line-height: 21px;
  }
  #single-long-post #comments-block { border-top: none; }
  


/* Sidebar
================================================== */

#sidebar { padding-bottom: 50px; }
#sidebar h2.sec-header { font-size: 16px; }
  #sidebar h3 { font-size: 21px; line-height: 1.2em; margin-bottom: 5px;  }
  #sidebar .archive-post .entry { font-size: 14px; line-height: 1.55em; }
.section-small {
  margin-bottom: 30px;
}
#job-board { 
  margin-top: 30px; 
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}
  #job-board a { color: #000; border-bottom: 1px solid #ccc; }
  #job-board a:hover { color: #821122; border-bottom: 1px solid #821122; }
  #job-board .meta {
      font-size: 0.8em;
  }
  #job-board .meta a {
      color: #777; border: none;
  }
  #job-board .meta a:hover {
      color: #821122;
      border-bottom: 1px solid #821122;
  }

  
/* Sponsors
================================================== */

#sidebar .sponsor {
  text-align: center;
  margin-bottom: 30px;
}
.archive .sponsor { margin-bottom: 40px; text-align: center; }
#single-feature-post .entry .sponsor {
  width: 300px;
  float: right;
  margin: 0 -200px 50px 50px;
}
#med-sponsor-bottom {
    width: 300px;
    margin:0 auto;
}


/* Search box
================================================== */


#search { margin: 0; }
#search input { 
    border: 1px solid #e2e2e2;
    background-image: url("images/search-icon.png");
    background-repeat: no-repeat;
    background-position: 98% center;
    font-size: 12px;
    padding: 7px;
    width: 286px;
    margin: 0;
}


/* Thumbnail list
================================================== */

.thumbnail-list li {
  line-height: 1.2em;
  padding-bottom: 1.0em;
  margin-bottom: 1.0em;
  list-style-type: none;
  clear: both;
}
.thumbnail-list li:last-child {
  padding-bottom: 0;
  border: none;
}
.thumbnail-list li a img { border: 1px solid #e0e0e0; float:left; margin-right: 1.0em; }
.thumbnail-list li a:hover img { border: 1px solid #ccc; }
.thumbnail-list li .meta a { color: #999; font-size: 0.95em }
.thumbnail-list a { color: #000; font-size: 16px; font-weight: bold; border-bottom: 1px solid #e0e0e0;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.thumbnail-list a:hover { color: #821122; border: none; border-bottom: 1px solid #821122; }
.thumbnail-list img { max-width: 170px; height: auto; }
.thumbnail-list li div { clear: both; }


/* Learning Page
================================================== */


#learning-page h2.sec-header { margin-bottom: 20px; color: #777; font-size: 24px; }
#learning-page #tut-section { margin-bottom: 30px; }
  #learning-page #book-section .archive-post { padding-bottom: 0; margin-bottom: 40px;}
  #learning-page #book-section .book-image { margin-bottom: 10px; }
    #learning-page #book-section .book-image img { border: 1px solid #e0e0e0; }
  #learning-page #book-section a { color: #000; }
  #learning-page #book-section a:hover { color: #821122; }
  #learning-page #book-section h3 { margin-bottom: 0px; }
  #learning-page #book-section a:hover h3 { color: #821122; }
  #learning-page #book-section .subtitle { 
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; 
    line-height: 1.4em;
  }
  #learning-page .more-link { 
    background-color: #821122;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 5px;
    font-size: 0.70em;
    margin: 0 auto 60px auto;
    width: 200px;
    font-weight: bold;
    font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; 
    border: none;
  }


/* Footer
================================================== */

#footer-wrapper {
  margin-top: 40px;
  border-top: 1px solid #ccc;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  padding-bottom: 30px;
  background: #fff;
  text-align: center;
}
ul#final-links { text-align: center; margin: 7px 0 20px 0; }
ul#final-links li {
  display: inline;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0 12px;
  font-size: 14px;
}
ul#final-links li a { color: #666; font-weight: bold; }
ul#final-links li a:hover { color: #821122; border-bottom: 1px solid #821122; }
#bottom-logo img { max-width: 20px; height: auto; }
#bottom { margin: 30px 0; text-align: center; color: #777; font-size: 12px; line-height: 20px; }


/* Miscellaneous
================================================== */

.clr { clear: both; }
.img-left, .imgleft, .alignleft { float:left; margin:5px 13px 13px 0;}
.img-right, .imgright, .alignright { float:right; margin:5px 0 13px 25px;}
.centered { text-align: center; }
  .centered img { margin: 0 auto; }
