
body {
  font: 100%/1.5em 'Nobile', sans-serif;
  color: #333;

  margin: 0; 
  padding: 0;

  background-color: #525855;
  background-image: url(../images/bg-body.gif);
  background-repeat: repeat;
}
#page { 
  width: 100%;
  min-width:968px;
  overflow: hidden;
  background-image: url(../images/maplines2.png);
  background-repeat: no-repeat;
  background-position: center top;
}

/* All content goes inside #container. */
#container {
  width: 968px;
  margin: 0 auto;
}

h1 { font: normal 34px/36px 'Lato', sans-serif; color: black; }
h2 { font: normal 25px/22px 'Vollkorn', serif; letter-spacing: 0.05em; line-height: 26px;}
h3 { font: normal 22px/22px 'Vollkorn', serif; letter-spacing: 0.05em; }
h4 { font: normal 18px/18px 'Vollkorn', serif; letter-spacing: 0.05em; }

.light { font-size: 22px }
h2.light { font-size: 20px; }
h2.title { font-size: 22px; padding-bottom: 10px; }

h2 ol {
  margin-bottom: 0px;
  margin-top: 0px;
}

h2 ol li {
  padding-bottom: 0px;
}

h1 a, 
h2 a,
h3 a, 
h4 a { 
  color: inherit; 
  text-decoration: none; 
}

h1 a:hover, 
h2 a:hover,
h3 a:hover,
h4 a:hover {
  color: #666; 
}

p { 
  padding: 0;
  margin: 0 0 17px 0;
}

p.caption {
  padding-top: 10px;
  font-style: italic;
}

.center { 
  display: block;
  margin: 5px auto;
}

/* Header contains the nav links and the map images. */
header { 
  width: 100%; 
  margin-top: 53px;
  padding-bottom: 8px;
  position: relative;  /* so we can absolute position 'header .arrow' relative to the header */
}


/************************************************************
 * The navigation links at the top of the page.
 ************************************************************/
header #offset {
    width: 858px;
    margin: 0 auto 41px auto;
}

header #links { 
  width: 720px;
  height: 44px;
  font-size:20px;
/*  margin: 0 auto 41px auto;*/
  margin-left: 140px;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;

  /* for abs-positioning #links ul relative to this box */
  position: relative;
  overflow: visible;

  text-transform: uppercase;
  font-family: 'Vollkorn', serif;
}

header #links a { 
  color: #cacaca; 
  text-decoration: none; 
}

#links a:hover, 
#links a.hover,
/* Highlight the link for the currently selected page. */
body.about    #links .about    a,
body.software #links .software a,
body.stories  #links .stories  a,
body.blog     #links .blog     a,
body.other    #links .other    a {
  color: #fff; 
  text-shadow: 0 0 3px #1b1b1b;
}

/* Replace home link with centered logo. */
#links a.home { 
  text-indent: -9999px;
  margin-top: -22px;
  display: block; 
  width: 83px; 
  height: 84px; 
  background-image: url(../images/logo.png); 
  margin-left: -20px;
/*  margin-left: auto; 
  margin-right: auto; */
  z-index: 200;
  position: relative; /* needed to make z-index work */
}

#links #offstamp {
 margin-left: auto;
 margin-right: auto;
 width: 183px;
}

#links ul { 
  position: absolute; 
  left: 5px; 
  top: 8px; 

  width: 100%; 
  padding: 5px 0 0 0; 
  margin: 0; 

  z-index: 100; 
}

/* Float left link-pair left. */
#links .about, 
#links .stories { float: left; }

/* Float right link-pair right. */
#links .other, 
#links .blog,
#links .software { float: right; }


/* Add a bullet between each link pair. */
#links .stories, 
#links .software,
#links .other { 
  background-image: url(../images/bullet.png);
  background-repeat: no-repeat;
}
#links .stories { background-position: 0px 5px; }
#links .other  { background-position: right 5px; }
#links .software { background-position: right 5px; }

#links .about    { padding: 0 20px 0 14px; }
#links .stories { padding-left: 26px; }

#links .software   { padding: 0 26px 0 20px; }
#links .other { padding-right: 26px; } 
#links .blog   { padding: 0 10px 0 20px; }


/************************************************************
 * The navigation map, below the links.
 ************************************************************/

#island {
    position: absolute;
    top: 0px;
    left: 50%;
    display:block;
/*    opacity: 0.5;*/
    opacity: 1.0;

    margin-left: -600px;
}

#island:hover, 
#island.hover { 
  opacity: 1.0; 
}


/* Create the surrounding box for the map. */
#map {
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 7px #1A1A1A;
  border-radius: 4px;
  border-bottom: solid 1px #666;
  border-right: solid 1px #666;
  width: 964px;
  height: 113px;
}

#map ul, 
#map li { 
  padding: 0; 
  margin: 0; 
  display: inline;
}

/* The map effect works by hiding the link text and assigning a part of the map image to each link. 
 * We make the links transparent by default and opaque on hover. */
#map a { 
  display: inline-block;
  text-indent: -9999px; 
  height: 124px; 
  opacity: 0.5;
  background-image: url(../images/map2.png);
  background-repeat: no-repeat;
}

#map a:hover, 
#map a.hover, 
/* Highlight the currently selected page in the map. */
body.about    #map .about    a,
body.software #map .software a,
body.stories  #map .stories  a,
body.other    #map .other    a { 
  opacity: 1.0; 
}

/* We effectively use the map image as a sprite by assigning a part of it to each link. */
#map .about    a { width: 180px; }
#map .software a { width: 170px; background-position: -180px 0; }
#map .stories  a { width: 240px; background-position: -346px -1px; }
#map .other    a { width: 350px; background-position: -595px 0; }

/************************************************************
 * The current-page indicator arrow.
 ************************************************************/
header .arrow { 
  position: absolute; 
  bottom: -1px; 
  display: none; /* hide by default in case no body class assigned */
}

/* The position of the arrow changes depending on the current page. */
body.about    header .arrow { left: 229px;  display: block; }
body.stories  header .arrow { left: 348px; display: block; }
body.other    header .arrow { left: 586px; display: block; }
body.software header .arrow { left: 733px; display: block;}
body.blog     header .arrow { left: 870px; display: block;}

.portrait { 
  padding: 6px; 
  box-shadow: 0px 0px 5px #888; 
  display: block;
}

/************************************************************
 * Rules for conent areas (boxes with borders and shadows).
 * Both .main and #twitter are content-areas.
 ************************************************************/
.content-area {
  float: left;
/*  background-color: #f3f3f3;*/
  background-color: white;
  border: 7px solid #d3d3d3;
  box-shadow: 3px 4px 2px #444;

/* Prepare the content-area for a bookmark image which we will absolute-position above the top border. */
  position: relative;
  overflow: visible;
}
/* Bookmarks icons next to the titles. */
.content-area img.bookmark { 
  /* Use absolute positioning relative to the content-area so that we can pull the image above the top border */
  position: absolute; 
  top: -10px; 
  left: 20px; 
}

.content-area h1 { 
  margin-left: 80px; 
  margin-top: 18px; 
}

/************************************************************
 * Main content-area styles.
 ************************************************************/
.main { 
  width: 662px; 
/*  width: 900px;*/
  float: left; 
  min-height: 680px; 
  padding-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.main h1 { color: #aaaaaa; }

.main article { padding: 2px 30px 2px 22px; }

.main article li {
  padding-bottom: 7px;
}

.main article h2 li {
  padding-bottom: 0px;
}

.main p a, 
.main li a { 
  color: #888;
  text-decoration: none;
}
.main p a:hover,
.main li a:hover { color: #333; }

/************************************************************
 * Twitter sidebar.
 ************************************************************/
#info {
  width: 248px;
  margin-left: 24px;
  overflow: hidden;
  font-size: 75%;
}

#info aside {
  margin: 7px;
  margin-top: 20px;
}

#info p {
  padding: 10px;
}

#info h1 { 
  margin-top: 15px;
  margin-left: 7px; 
  color: #aaaaaa;
}

#info img {
  margin-left: auto;
  margin-right: auto;
}

#contact { 
  border-top: 1px solid #ccc; 
}

#contact ul { 
  list-style: none;
  padding: 11px 0 0 0;
  margin: 0;
}

#contact li {
  padding: 0 0 8px 0; 
  margin: 0;
  margin-left: 6px;
}

#contact a {
  text-decoration: none;
  color: #333;
  background-repeat: no-repeat;
  padding-left: 36px;
  padding-bottom: 10px;
}

#contact a:hover { color: #666; }
#contact .email  a { background-image: url(../images/mail.png); background-position: 0 0; }
#contact .follow a { background-image: url(../images/twitter.png); background-position: 0 0; }
#contact .key    a { background-image: url(../images/key.png); background-position: 0 0; }

#twitter { 
  width: 248px; 
  margin-left: 24px; 
  font-size: 11px; 
  line-height: 17px;
  overflow:hidden;
}
#twitter h1 { 
  margin-top: 15px;
  margin-left: 82px; 
}
#twitter #tweets { 
  padding-top: 10px; 
}

#twitter ul { 
  list-style: none; 
  padding: 0 20px; 
}

/* this is the div containing time, reply, and retweet for each tweet */
#twitter .tweet-links { 
  border-top: 1px solid #999; 
  border-bottom: 1px solid #999; 
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 2px 0;
}

#twitter .tweet_time, 
#twitter .tweet_action { 
  font-size: 10px; 
  line-height: 15px; 
  padding-right: 5px; 
}
#twitter .tweet_action { padding-left: 5px; }

/* The loading message that appears before tweets are loaded. */
#twitter .loading { margin: 20px; }

#twitter .at, 
#tweets a { 
  color: #777; 
  text-decoration: none;
}
#tweets a:hover { color: #333; }

.follow-me {
  overflow: visible;
  height: 1px;
  margin: 30px 20px;
  border-left: 60px solid black; 
  border-right: 60px solid black;
}
.follow-me a { 
  display: inline-block;
  position: relative;
  top: -7px;
  left: 10px;
  vertical-align: middle;
  text-transform: uppercase;
  text-decoration: none;
  color: #333;
}
.follow-me a:hover { color: #666; }



/************************************************************
 * The About page.
 ************************************************************/

#bio { 
  margin-top: 18px;
}

#bio .portrait {
  float: left;
  margin-right: 15px;
}


/************************************************************
 * Software and Stories Subpages 
 ************************************************************/

body.stories-subpage .main,
body.software-subpage .main {
  font-family: 'Nobile', serif;
  font-size: 100%;
  line-height: 1.5em;
}

/************************************************************
 * Software Subpages
 ************************************************************/

.main .links {
  position: absolute;
  right: 15px;
  top: 15px;
}

.main .links,
.main .links a {
  font: normal 13px/17px 'Nobile', sans-serif; 
}

.main .links tr {
  border-top: 1px solid #999999;
  border-bottom: 1px solid #999999;
}

.main .links th {
  text-align: right;
  padding-right: 20px;
  color: #999;
  font-weight: normal;
}

.main .links td {
  min-width: 115px;
  padding: 7px 0;
  font-weight: bold;
}
.main .links td a { 
  color: black;
  text-decoration: none;
}
.main .links td a:hover { color: #666; }


/************************************************************
 * Stories Subpages
 ************************************************************/

body.stories-subpage .main article {
  padding-top: 18px;
}

/* Drop Cap */
body.stories-subpage .main p:first-child:first-letter { 
  float: left; 
  font-weight: bold;

  padding-top: 6px; 
  padding-right: 8px; 

  font-size: 70px;
  line-height: 50px;
  padding-right: 10px;
}

.code {
  font-family: monospace;
  white-space: pre;
  display: block;
}

.highlight pre {
  white-space: pre; 
  overflow-x: scroll;
  word-wrap: normal;
}


/* GitHub Style */

code, tt {
  margin: 0 2px;
  padding: 0 5px;
  white-space: nowrap;
  border: 1px solid #eaeaea;
  background-color: #f8f8f8;
  border-radius: 3px; }
 
pre code {
  margin: 0;
  padding: 0;
  white-space: pre;
  border: none;
  background: transparent; }
 
.highlight pre {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px; }
 
pre {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px; }
  pre code, pre tt {
    background-color: transparent;
    border: none; }


/***********************************************************
 * Blog pages
 **********************************************************/

ul#stacked,
ul#stacked li {
    /* Setting a common base */
    margin: 0;
    padding: 0;
}

ul#stacked li {
    display: inline-block;
    vertical-align: top;
}

body.blog-subpage .main article {
  padding-top: 3px;
}

body.blog-subpage h3.date {
  position: absolute;
  top: -7px;
  right: 15px;
  font-size: 19px;
  color: #bbb;
}

body.blog .rss {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 19px;
  color: #bbb;
}

body.blog .feed {
  opacity: 0.5;
}

body.blog h3.date {
  font-size: 15px;
  font-family: 'Nobile', sans-serif;
  color: #bbb;
  margin-top: -7px;
  margin-left: 5px;
}

body.blog h2:not(.unspaced) {
  font-size: 20px;
}

body.blog-subpage h1 {
    margin-top: 40px;
}

body.blog-subpage img.nice {
    max-width: 100%;
    padding: 6px; 
    box-shadow: 0px 0px 5px #888; 
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}


/************************************************************
 * The Footer
 ************************************************************/
footer {
  width: 662px; /* same as .main */
  clear: both;
  color: #b3b2b2;
  font-size: 11px;
  padding: 10px;
  margin-bottom: 50px;
}

footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover { 
  color: #fff; 
  text-shadow: 0 0 3px #1b1b1b;
}

footer .copyright { float: left; }

footer ul { 
  list-style-type: disc; 
  float: right; 
  padding: 0; 
  margin: 0; 
}

footer li { 
  margin-left: 30px; 
  padding-left: 4px; 
  float: left; 
}

iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 20px;
}

blockquote {
  margin: 1em 40px;
  position: relative;
  text-align: justify;
}

blockquote:before {
  display: block;
  content: "\201C";
  font-size: 80px;
  position: absolute;
  left: -40px;
  top: 20px;
  color: #7a7a7a;
}

ul.follow {
    clear: left;
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    width:300px;
}

ul.follow li {
    display: block;
    float: left;
}

ul.social-buttons{
    float: left;
    list-style: none;
    margin: 5px 0 20px 0;
    padding: 0;
}

ul.social-buttons li{
    display: block;
    float: left;
    margin-right: 10px;
}

li.social-buttons-follow {
    margin-top: -5px;
    margin-left: 7px;
}