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

/* Global Reset */
* {
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }

body {
  font: 14px Helvetica, Arial, sans-serif;
  font-size: small;
  text-align: center;
  background-color: #282828;
}

/* Front Page title */

.top-title {
  margin-top: 0px;
  border-bottom: 1px dotted #545454;
}

h1 {
  font-size: 200%; 
} 
h2 {
  font-size: 150%; 
}
h3 {
  font-size: 120%; 
}
h4 {
  font-size: 100%; 
}
h5 {
  font-size: 90%; 
}
h6 {
  font-size: 80%; 
}

h1 { margin-bottom: 1em; }
p { margin: 1em 0; }

a         { color: #B1C9D1; }
a:hover   { color: #FFF100; }
a:visited { color: #B1B1B1; }

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/
.posts {
  list-style-type: none;
  margin-bottom: 1em;
}

.posts a:hover { color: #FFF100; }

.posts li {
  line-height: 1.75em;
  margin-bottom: .8em;
  border-bottom: 1px dotted #525252;
}

.posts span {
  color: #aaa;
  font-family: Monaco, "Courier New", monospace;
  font-size: 80%;
}

span a { text-decoration: none; }
span a:hover { text-decoration: underline; }

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

.frame {
  width: 95%;
  max-width: 1200px;
  text-align: center;
  padding-top: 20px;
  margin: 0 auto 0;
}

.main_menu {
  float: left;
  text-align: center;
  padding-top: 5px;
  padding-left: 25px;
  max-width: 1000px;
}

.main_menu a {
  color: #aaa;
  font-weight: bold;
  padding: 0 7px 0px;
  text-decoration: none;
  margin: 0em 0.2em 1em;
  white-space: nowrap;
}

.main_menu #rss {
  color: #924F20;
}

.main_menu a.parent {
  color: #aaa;
  font-weight: bold;
  text-decoration: none;
  background-color: #333;
  border-radius: 5px 0px 0 0;
  padding: 0 7px 0;
  margin: 0em 0 1em 0.05em;
}

.main_menu a.parent:hover {
  border-radius: 5px 0px 0 0;
  padding: 0 7px 0;
  margin: 0em 0 1em 0.05em;
}

.main_menu a.child {
  color: #676767;
  font-weight: bold;
  text-decoration: none;
  background-color: #343434;
  padding: 0 7px 0px;
  margin: 0em 0.2em 1em 0em;
  border-radius: 0px 5px 0 0;
}

.main_menu a.child:hover {
  border-radius: 0px 5px 0 0;
  padding: 0 7px 0px;
  margin: 0em 0.2em 1em 0em;
}

.main_menu a:hover {
  color: #f00;
  font-weight: bold;
  text-decoration: none;
  background-color: #5a5a5a;
  border-radius: 5px 5px 0 0;
  padding: 0 7px 0;
  margin: 0em 0.2em 1em;
  border-bottom: 1px solid #505050;
}

.main_menu a.selected {
  color: #c00;
  font-weight: bold;
  text-decoration: none;
  background-color: #444;
  border-radius: 5px 5px 0 0;
  padding: 0 7px 0;
  margin: 0em 0.2em 1em;
  border-bottom: 1px solid #505050;
}

.main_menu a.selected:hover {
  color: #f00;
}

.main_menu a.selected-parent {
  color: #c00;
  font-weight: bold;
  text-decoration: none;
  background-color: #444;
  border-radius: 5px 0px 0 0;
  padding: 0 7px 0;
  margin: 0em 0 1em 0.05em;
  border-bottom: 1px solid #505050;
}

.main_menu a.selected-parent:hover {
  color: #f00;
}

.main_menu a.selected-child {
  color: #c00;
  font-weight: bold;
  text-decoration: none;
  background-color: #444;
  border-radius: 0px 5px 0 0;
  padding: 0 7px 0;
  margin: 0em 0.01em 1em 0;
  border-bottom: 1px solid #505050;
}

.main_menu a.selected-child:hover {
  color: #f00;
}

.title {
  display: inline-block;
  margin-bottom: 0.1em;
}

.title a {
  color: #a00;
}

.title a:hover {
  color: #000;
}

.main_menu a.extra {
  color: #aaa;
  margin-left: 1em;
}

.main_menu a.extra:hover {
  color: #000;
}

.meta {
  color: #aaa;
}

.site {
  clear: both;
  width: 100%;
  min-height: 500px;
  max-width: 1200px;
  text-align: justify;
  border-radius: 15px;
  
  margin: 0px auto 0.1em;
  line-height: 1.5em;
  font-size: 115%;
  padding-top: 5px;

  overflow: hidden;
  background-color: #4a4a4a;
  color: #DDDDD0;
}

.pagination {
  text-align: right;
  margin-right: 25px;
  font-size: 75%;
  line-height: 1em;
  margin-top: 0px;
  margin-bottom: 10px;
  padding: 0px 0px 3px;
}

.pagination a:hover { color: #FFF100; }


.footer {
  clear: both;
  font-size: 80%;
  color: #CFC8C8;
  border-top: 1px solid #808080;
  margin: 0.5em auto 0.5em;
  width: 88%;
  max-width: 1150px;
  overflow: hidden;
}

.footer .banner {
  float: none;
  margin: 0px 10px 0px;
  max-height: 25px;
}

.footer .contact {
  float: center;
}

.footer .contact a {
  color: #C0C4F2;
}

.footer .contact a:hover {
  color: #f00;
}

.footer .rss {
  margin-top: 1.1em;
  margin-right: -.2em;
  float: right;
}

.footer .rss img {
  border: 0;
}

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

.left_side {
  float: left;
  width: 27%;
  margin: 10px auto 0px;
  padding-left: 10px;
  background-color: inherit;
  overflow: hidden;
}

.left_side_content {
  width: 100%;
  float: left;
  font: 13px Helvetica, Arial, sans-serif;
  background-color: inherit;
  margin-bottom: 5px;
  line-height: 1.5em;
  overflow: hidden;
}

.left_side_content a {
  text-decoration: none;
}

.left_side_content a:visited {
  text-decoration: none;
  color: #9C96A3;
}

.left_side_content a:hover { color: #FFF100; }

.right_side {
  text-indent: 1.5em;
  float: left;
  width: 65%;
  margin: 10px auto 10px 15px;
  background-color: inherit;
  border-left: 1px solid #333;
  padding-left: 20px;
}

.blog_feed {
  text-indent: 1.5em;
  float: left;
  margin: 10px;
  padding-right: 15px;
  padding-left: 15px;
  background-color: inherit;
}

.blog_feed li {
  margin-bottom: 1.5em;
}

.left_side_post {
  float: left;
  width: 15%;
  margin: 10px auto 0px;
  padding-left: 10px;
  background-color: inherit;
  overflow: hidden;
}

/* standard */
.post {
  float: left;
  font: 15px Helvetica, Arial, sans-serif;
  width: 75%;
  line-height: 1.4em;
  text-indent: 1em;
  margin: 10px auto 10px 20px;
  background-color: inherit;
  border-left: 1px solid #333;
  padding-left: 25px;
  padding-right: 0px;
  padding-bottom: 10px;
  padding-top: 0px;
}

.post td {
  padding: 5px 10px;
}

.post table {
  border-collapse: collapse;
  border: 1px solid black;
}

.post table td{
  border: 1px solid black;
}

.post .img90pc600px {
  width: 90%;
  max-width: 600px;
}

.post .img90pc800px {
  width: 90%;
  max-width: 800px;
}

.post .img-half {
  width: 40%;
  margin-right: 20px;
}

.post p.meta {
  font-size: xx-small;
}

.post hr {
  margin-top: 1em;
  margin-bottom: 1em;
}

.post blockquote {
  font-style: italic;
}

#disqus_thread { padding-right: 2em; }

@media handheld, only screen and (max-width: 768px), only screen and (max-device-width: 768px) and (orientation:portrait){
  body { font-size: small; }
  .frame { padding-top: 0px; }
  .left_side, .left_side_post  { width: 100%; margin: 0px 0px 0px; border-bottom: 2px solid #333; }
  .left_side_content { font-size: 80%; width: 45%; margin: 5px 1% 5px; }
  .blog_feed { margin: 10px 0px 10px; padding-left: 5px; padding-right: 5px; }
  .right_side { width: 100%; margin: 5px auto 10px; border-left: none; padding-left: 0px; text-indent: 1em;}
  .posts, .about { padding-left: 15px;  padding-right: 15px; }
  .post { width: 95%; border-top: 1px solid #525252; margin: 5px auto 10px; border-left: none; padding-left: 10px;}
  .main_menu a, .main_menu a:hover, .main_menu a:visited, .main_menu a.selected { border-radius: 5px; }
  .main_menu a.parent, .main_menu a.selected-parent, .main_menu a.parent:hover, .main_menu a.parent:visited { border-radius: 5px 0 0 5px; }
  .main_menu a.child, .main_menu a.selected-child, .main_menu a.child:hover, .main_menu a.child:visited { border-radius: 0 5px 5px 0; }
  .post .img-half { width: 35% }
  #front_page { width: 93%; }
  #need-hide { display: none; }
  #latest { padding-left: 10px; border-left: 1px dotted #525252; }
  #disqus_thread { padding-right: 1em; }
}

.post h2, .post h3, .post h4, .post h5, .post h6, .post h7 {
  margin-bottom: 0.8em;
  margin-top: 0.8em;
}
.post #top-header {
  margin-top: 0px;
}

.post h2, .post h3 {
  border-bottom: 1px dotted #666;
}

.post a {
  font-weight: bold;
  text-decoration: none;
}

.post a:hover { 
  font-weight: bold;
  text-decoration: underline;
  color: #FFF100; 
}


.post pre {
  border: 1px solid #ddd;
  background-color: #1E2027;
  text-indent: 0px;
  padding: 0.4em .4em;
  overflow-x: auto;
  max-height: 500px;
}

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

.post ul {
  margin-left: 1em;
}

.post code {
  border: 1px solid #ddd;
  background-color: #1E2027;
  padding: 0 .2em;
  font-size: 95%;
}

.post pre code {
  text-indent: 0px;
  border: none;
}

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

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