/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */

html, body { height: 100%; }

body {
  background-color: #FFFFFF;
  text-align: left;
  padding: 0;
  margin: 0;
  font-size: 105%;
  font-family: "Courier New", monospace;
  color: #303030;
}

@font-face {
    font-family: 'press_start_2pregular';
    src: url('../fonts/pressstart2p-regular-webfont.woff2') format('woff2'),
         url('../fonts/pressstart2p-regular-webfont.woff') format('woff'),
         url('../fonts/pressstart2p-regular-webfont.tff') format('truetype');
    font-weight: normal;
    font-style: normal;
}

a {
  color: #303030;  
}

a:hover {
  color: #0a4177;
}



/*****************************************************************************/
/*
/* Header
/*
/*****************************************************************************/

#header {
    background-color: #0a4177;
    color: white;
    border-bottom: 9px solid black;
    width:100%;
}

#headertitle {
    position: relative;
    height: 6.6rem;
}

#headertitle h1, #headertitle h1 a, #headertitle p {
	font-size: 3rem;
	font-family: 'press_start_2pregular', monospace;
	font-style: normal;
    font-weight: normal;
}

#headertitle h1 {
    position: absolute;
    left: 0;
    top: 2.5rem;
    z-index: 100;
    margin: 0;
    padding: 0;
}

#headertitle p {
    position: absolute;
    margin: 0;
    padding: 0;
}

#headertitle p.o {
    left: 0.2rem;
    top: 2.3rem;
    z-index: 90;
}

#headertitle p.y {
    left: 0.4rem;
    top: 2.1rem;
    z-index: 80;
}

#headertitle p.g {
    left: 0.6rem;
    top: 1.9rem;
    z-index: 70;
}

#headertitle p.b {
    left: 0.8rem;
    top: 1.7rem;
    z-index: 60;
}

#headertitle p.v {
    left: 1.0rem;
    top: 1.5rem;
    z-index: 50;
}

@media screen and (max-width: 650px) {
    #headertitle h1, #headertitle h1 a, #headertitle p {
	    font-size: 1.5rem;
    }
}

@media screen and (max-width: 300px) {
    #headertitle h1, #headertitle h1 a, #headertitle p {
	    font-size: 1.3rem;
    }
}


#headertitle a {
    text-decoration: none;
}

#nav_container {
    clear: both;
    width: 100%;
}

#nav {
  display:inline;
  margin: 0;
  padding: 0;
  list-style-type: none;
}


#nav li {
  display:inline;
  margin-right: 1em;
  padding: 0;
  font-family: 'press_start_2pregular', monospace;
  font-weight: normal;
}

#nav li a,
#nav li a:visited {
  color: white;
  text-decoration: none;
}


#nav li a:hover {
  color: white;
  text-decoration: underline;
}

div.headercontentleft {
    float: left;
    width: 70%;
}

div.headercontentright {
    float: right;
    text-align: right;
    width: 20%;
    /*margin-right: 10%;*/
}

div.headercontentright ul {
    list-style-type: none;
}

div.headercontentright ul li {
    display: inline;
    padding-right: 5px;
}

div.headercontentright ul li img {
    width: 16px;
    height: 16px;
}

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

#site_container, #headercontent {
    margin-left: auto;
    margin-right: auto;
    max-width: 1024px;
    padding-left: 10px;
    padding-right: 10px;
}

#sidebarcontent h1, #sidebarcontent h2, #sidebarcontent h3,
#content h1, #content h2, #content h3 {
    font-family: "Courier New", monospace;
    font-weight: bold;
}

#content {
    /*margin-left: 10%;*/
    line-height: 1.5;
    hyphens: auto;
    text-align: justify;
}

#content h1 a,
#content h2 a,
#content h3 a {
    text-decoration: none;
}


#content h1 {
	/*font-family: 'press_start_2pregular', monospace;*/
    font-family: "Courier New", monospace;
    letter-spacing: 0.15em;
    font-weight: bold;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
/*    border-bottom: 3px solid #303030; */
    font-size: 1.4em;
}

#content h2 {
    /*font-family: 'press_start_2pregular', monospace;*/
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 1.25em;
    letter-spacing: 0.05em;
}

#content h3 {
    font-size: 1.1em;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

.content_w_sidebar {
    float: left;
    width: 66%;
}

/*.content_full {
    margin-right: 10%;
}*/

#sidebar {
    float: left;
    width: 33%;
    /*max-width: 200px;*/
}


#sidebarcontent {
    padding-left: 1em;
    padding-top: 6em;
}

#sidebarcontent h3 {
    width: 100%;
    text-align: center;
    margin-top: 0;
}

#sidebarcontent ul {
    padding: 0 0 0 2em;
}

#sidebarcontent ul.links {
    list-style-type: none;
    text-align: center;
    padding: 0;
}

#sidebarcontent ul.links img {
    max-height: 32px;
    text-align: center;
}

#sidebarcontent ul.links li {
    font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
    font-size: 80%;
    text-align: center;
    padding-bottom: 1.5em;
}

#sidebarcontent ul.links li a {
    text-decoration: none;
}

#sidebarcontent ul.links p {
    margin: 0;
}

#sidebar_projects {
    list-style-type: none;
    margin-left:0;
    padding-left:0;
}

#sidebar_projects li {
    margin-left:0;
    padding-left:0;
    margin-bottom:1em;
}

#sidebar_projects li.back_link {
    margin-top:2em;
}

#sidebar_projects li span {
    font-style: italic;
}

#footer {
    margin-top: 2em;
    margin-bottom: 2em;
    border-top: 1px solid black;
    clear: both;
    font-size: 67%;
    text-align: center;
}

@media screen and (max-width: 768px) {
   #content,
   #sidebar,
   #footer {
        float: none;
        width: auto;
   }
 }

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

#projects_list h2 {
    margin-bottom: 0;
}

#posts_list {
    display: table;
    width: 100%;
}

#posts_list .post {
    display: table-row;
}

#posts_list .post > div {
    display: table-cell;
    padding-bottom: 0.75em;
}

#posts_list .post .date {
    white-space: nowrap;
}

#posts_list .post .title {
    padding-left: 0.5em;
}

.post_item {
    margin-bottom: 2.5em;
}

#projects_list div.left {
    float:left;
    width: 160px
}

#projects_list div.left img {
    margin-top: 5px;
}

#projects_list div.right {
    margin-left: 170px;
}


p.meta, div.meta_left, div.meta_right {
    font-style: italic;
    margin-top: 0px;
}

div.meta_left {
    float:left;
    text-align:left;
}

div.meta_right {
    float:right;
    text-align:right;
}

ul.tags {
    list-style-type:none;
    display:inline;
    margin: 0;
    padding: 0;
}

ul.tags li {
    display:inline;
    margin: 0;
    padding: 0;
}

h1.post {
    margin-bottom: 0;
}

img.framed {
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 3px;
    border: 1px solid #AAAAAA;
}

img.framed-left {
    float: left;
    margin-right: 0.5em;
    margin-bottom: 1em;
    padding: 3px;
    border: 1px solid #AAAAAA;
}

img.framed-right {
    float: right;
    margin-left: 0.5em;
    margin-bottom: 1em;
    padding: 3px;
    border: 1px solid #AAAAAA;
}

div.imgbox {
    width: 100%;
}

div.imgbox div {
    padding: 3px;
    background-color: white;
    border: 1px solid #AAAAAA;
    text-align:center;
    font-size: 80%;
    display: table;
    margin: 0 auto;
}

div.imgbox img {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

div.player {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#content iframe {
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 3px;
}

#content blockquote {
    font-style: italic;
}

#content hr {
  border: 0;
  width: 80%;
  color: #AAAAAA;
  background-color: #AAAAAA;
  height: 1px;
}

div.footnotes {
    font-size: 80%;
}

div.post_disclaimer {
    font-size: 80%;
}

.post_nav {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 80%;
/*    padding: 5px 5px 5px 5px;*/
}

.post_nav:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.post_nav_prev {
    width: 33%;
    float: left;
    text-align: left;
}

.post_nav_all {
    width: 33%;
    float: left;
    text-align: center;
}

.post_nav_next {
    width: 33%;
    float: right;
    text-align: right;
}

/* standard */
.post pre {
  border: 1px solid #000;
  background-color: #0a4177;
  padding: .8em;
  overflow: auto;
  margin-left: auto;
  margin-right: auto;
  white-space: pre; 
  color: white;
}

.post ul, .post ol {
  margin-left: 1.35em;
}

.post code {
  padding: 0 .2em;
  white-space: pre;
}

.post pre code {
  border: none;
}

/* terminal */
.post pre.terminal {
  border: 1px solid #000;
  background-color: #0a4177;
  color: #FFF;
}

.post pre.terminal code {
  background-color: #0a4177;
}

/*****************************************************************************/
/*
/* Gallery
/*
/*****************************************************************************/

div.gallery {
    min-width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    clear: both;
}

div.gallery:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

ul.gallery-list {
    list-style-type: none;
}

ul.gallery-list li {
    display: inline;
    float: left;
    font-size: 67%;
    font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
    text-align: center;
}

ul.gallery-list li img {
    display: block;
    margin: 3px;
    padding: 3px;
    border: 1px solid #AAAAAA;
}

ul.gallery-list li span {

}

/*****************************************************************************/
/*
/* Publications
/*
/*****************************************************************************/

ul.publist p.header {
	margin-top: 0;
	margin-bottom: 0.33em;
	font-weight: bold;
	margin-top: 0;
	margin-bottom: 0;
}

ul.publist p.authors {
	margin-top: 0;
	margin-bottom: 0;
}

ul.publist p.info {
	margin-top: 0.5em;
	margin-bottom: 1em;
}

ul.publist p.info, ul.publist p.authors {
	font-size: 80%;
}

/*****************************************************************************/
/*
/* Other
/*
/*****************************************************************************/

div.clear {
    clear: both;
}

.gist-data {
    max-height: 200px;
}
