* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 97%;
  color: black;
  background: white;
  text-align: justify;
}

body {
  font-family: monospace;
  width: 90%;
  margin-left: 5%;
  margin-top: 2em;
  margin-bottom: 2em;
  quotes:"\00BB" "\00AB" "\203A" "\2039";
  font-size: 1.2em;
}

q:before { content: open-quote }
q:after  { content: close-quote }

header, footer, aside, nav, article, section {
  display: block;
}

a {
  text-decoration: none;
  color: #666;
}

a:visited {
  color: gray;
}

a:hover {
  text-decoration: underline;
}

/**
 * Header
 **/
body > header { }

body > header hgroup {
  display: block;
  margin-bottom:  0.7em;
}

body > header h1 {
  font-size: 2em;
  display: inline;
}

body > header h2:before {
  content: "| "
}

body > header h2 {
  font-size: 1.5em;
  display: inline;
}

/**
 * Menü
 **/
body > nav {
  border-bottom:  1px solid gray;
  border-top:     1px solid gray;
  padding-top:    0.5em;
  padding-bottom: 0.5em;
  font-size:      1.1em;
  margin-bottom:  1em;
}

body > nav ul { }

body > nav li {
  display: inline;
  padding-left: 5px;
  padding-right: 5px;
}

/***********
 * Article
 ***********/
#maincontent > header h1 { 
  font-size: 2.0em;
  margin-top: 0.4em;
}
#maincontent > header h2 {
  font-size: 1.5em;
  margin-bottom: 0.4em;
}

.articlelisting > aside,
#maincontent > aside {
  font-size: 0.8em;
  text-align: right;
}

.maintext > h1:before { content: counter(h1counter) " "; }
.maintext > h2:before { content: counter(h1counter) "." counter(h2counter) " "; }

/*
.maintext > h1:after { content: " \003C a href=\"#"counter(h1counter)"\"\003E#\003C /a\003E" }
.maintext > h2:after { content: " <a href=''>#</a>" }
*/


.maintext > p {
/*  text-indent:    1.0em; */
  margin-top:     0.6em;
  margin-bottom:  0.6em;
}
  
.maintext em {
  font-style: italic;
}

/*
.maintext > h1 + p         { text-indent: 0em; }
.maintext > h2 + p         { text-indent: 0em; }
.maintext > p:first-child  { text-indent: 0em; }
*/

.maintext > h1 {
  font-size: 1.3em;
  counter-increment: h1counter;
  counter-reset: h2counter;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

.maintext > h2 {
  font-size: 1.2em;
  counter-increment: h2counter;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

.maintext > h3 {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  font-size: 1.1em;
}

.maintext > aside {
  border-bottom: 1px dotted gray;
  border-top: 1px dotted gray;
  padding: 0.4em;
  float: right;
  max-width: 20%;
  min-width: 10%;
  margin: 1em;
}

.maintext > aside h1 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid gray;
  padding-bottom: 0.1em;
  margin-bottom: 0.3em;
}

.maintext > aside figure > dt {
  text-align: center;
}


/*************
 * comments
 *************/
#comments {
  margin-top: 2em;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

#comments > header h1 {
  border-bottom: 1px solid gray;
  font-size: 1.5em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

#comments article                  { display: table;      }
#comments article aside            { display: table-cell; }
#comments article .commentcontent  { display: table-cell; }
#comments article footer           { display: table-caption; }

#comments article footer           { caption-side: bottom; text-align: right;}

#comments article {
  margin-top: 1.5em;
  padding: 0.5em;
  width: 100%;
}

#comments article aside {
  text-align: center;
  vertical-align: top;
  width: 20%;
  min-width: 80px;
}

#comments article footer:before {
  content: ">>";
}
#comments article footer {
  font-size: 0.8em;
  margin-right: 1em;
  margin-top:  0.3em;
  margin-bottom:  1em;
}

.commentcontent > p {
/*  text-indent:    1.0em; */
  margin-top:     0.6em;
  margin-bottom:  0.6em;
}

/**********
 * form
 **********/
#commentform form        { display: table;      }
#commentform form > div  { display: table-row;  }
#commentform input       { display: table-cell; }
#commentform label       { display: table-cell; }


#commentform {
  border-top: 4px double gray;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 2em;
}

#commentform > header h1 {
  font-size: 1.5em;
  margin-left: 0.5em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

#commentform form {
  margin-left: 5%;
}

#commentform label {
  width: 20%;
  vertical-align: middle;
  text-align: right;
  padding-right: 2em;
  font-weight: bold;
}

#commentform textarea {
  height: 10em;
}

#commentform input, textarea {
  width: 80%;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

#commentform input[required]:after {
  content: "*";
}

#commentform div {
  vertical-align: middle;
}

textarea {
  border:  1px solid #333333;
}

input[type="url"], input[type="email"], input[type="text"]  {
  border:         1px solid #eeeeee;
  border-bottom:  1px solid #333333;
}

/*********
 * aside
 *********/
#maincontent {
  float: right;
  width: 80%;
}

#sidebar {
  float: left;
  width: 18%;
  min-width: 8em;
  overflow: hidden;
}

#sidebar > section h1 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid gray;
  padding-bottom: 0.1em;
  margin-bottom: 0.3em;
}

#sidebar > section {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-right: 0.5em;
}

#sidebar ul {
  list-style-type: none;
}
#sidebar li {
  text-align: left;
}

.small {
  line-height: 1;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}

small {
  font-size: 0.8em;
}

code {
  font-family: monospace;
  font-size: 0.7em;
}

body > footer {
  clear: both;
}

input[type="submit"] {
  border: 1px solid black;
}

strong {
  font-weight: bold;
}

#sidebar p, #sidebar li {
  font-size: 0.8em;
}

figure > dt {
  text-align: right;
}

.articlelisting {
  border-bottom: 1px solid gray;
  padding-bottom: 0.7em;
  margin-bottom: 1em;
}

.articlelisting h1 {
  font-size: 1.3em;
  margin-top: 0.25em;
}

.articlelisting h2 {
  font-size: 1.1em;
}


.histogram td * {
  background-color: #eee;
}

.histogram table {
  width:100%;
}
.histogram th {
  width: 6.25%;
  text-align: center;
  border: 1px solid #000;
}
.histogram td {
  text-align: center;
  border:1px solid #000;
  vertical-align:top;
  background-color: #eee;
  overflow:hidden;
}
.histogram .empty {
  border: 0px solid #000;
  background-color: #fff;
}

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

.activityitems .Delicious {
  background-image: url(/images/delicious.png);
  background-repeat: no-repeat;
  background-position: -0px;
  padding-left: 30px;
}

.activityitems .Git {
  background-image: url(/images/git.png);
  background-repeat: no-repeat;
  background-position: -0px;
  padding-left: 30px;
}

.activityitems .Librarything {
  background-image: url(/images/librarything.png);
  background-repeat: no-repeat;
  background-position: -0px;
  padding-left: 30px;
}

.activityitems .Microblog {
  background-image: url(/images/microblog.png);
  background-repeat: no-repeat;
  background-position: -0px;
  padding-left: 30px;
}

.activityitems .Identica {
  background-image: url(/images/identica.ico);
  background-repeat: no-repeat;
  background-position: -0px;
  padding-left: 30px;
}

.activityitems li {
  margin-top: 0.9em;
  margin-bottom: 0.9em;
}

td {
  padding-left: 5px;
  padding-right: 5px;
}

