body {
  margin: 4px;
  font-size: 16px;
  font-family: Calibri, Arial, sans-serif;
}

a img {
  border: none;
}

.page {
  min-width: 720px;
  max-width: 1280px;
  min-height: 100%;
  margin: 4px auto;
  border: 2px solid #4ab;
  padding: 6px;
}

.page-header {
  top: 0px;
  height: 38px;
  padding: 0px 0px 10px 0px;
  border-bottom: 3px solid #4ab;
  margin-bottom: 16px;
}

.page-header h1 {
  margin: 0;
}

.page-header a.title, .page-header a:hover.title {
  color: #000;
  border-bottom: none;
  font-size: 32px;
}

.pagename {
  font-size: 32px;
}

.twocols {
  display: table;
  width: 100%;
}

.col-main {
  vertical-align: top;
  padding-right: 20px;
  display: table-cell;
}

.col-right {
  display: table-cell;
  width: 200px;
}

.col-right .avatar {
  width: 100%;
  height: 180px;
  background-image: url('/richard/img/avatar.png');
  background-repeat: no-repeat;
  background-position: center;
}

.col-right p {
  margin: 3px 0;
  text-align: center;
}

.col-right .heading {
  font-size: 20px;
  font-weight: bold;
  border-top: 1px solid #4ab;
  border-bottom: 1px solid #4ab;
}

.col-right .link {
  font-size: 16px;
  font-style: italic;
}

table#entries {
  width: 100%;
  border-spacing: 0px;
  border-collapse: collapse;
  margin-top: 20px;
}

table#entries td, th {
  text-align: left;
  margin: 0px;
  padding: 2px 6px;
  border: 1px solid #4ab;
}

table#entries td.date, th.date {
  width: 160px;
}

.archiveyear {
  font-size: 28px;
  font-weight: bold;
  border: 1px solid #4ab;
  padding: 6px 10px;
  margin: 18px 24px 12px 4px;
}

.thisyear {
  font-size: 28px;
  font-weight: bold;
  border: 3px solid #4ab;
  padding: 5px 9px;
  margin: 18px 24px 12px 4px;
}

.butcont {
  width: 100%;
}

.butcont td {
  text-align: center;
}

.buttons {
  margin-right: auto;
  margin-left: auto;
}

.buttons td {
  vertical-align: middle;
  padding: 0px 3px;
}

.buttons td a {
  border-bottom: none;
}

a, a:visited {
  color: inherit;
  border-bottom: 1px dotted #000;
  text-decoration: none;
}

a:hover {
  color: #4ab;
  border-bottom: 1px solid #4ab;
}

.commentcount {
  float: right;
}

div.comment {
  color: #444;
}

div.comment .byline {
  width: 100%;
  height: 42px;
  border-top: 1px solid #4ab;
  border-bottom: 1px solid #4ab;
  padding: 2px 4px;
}

div.comment .gravatar {
  float: left;
  width: 40px;
  height: 40px;
  border: 0px;
}

div.comment .author {
  margin: 4px 8px;
  font-size: 20px;
  font-weight: bold;
}

div.comment .date {
  float: right;
  font-size: 11px;
  padding-top: 3px;
}

h2.comments-open-header {
  font-size: 20px;
  margin-bottom: 10px;
  color: #444;
}

form#comments-form label {
  display: block;
  font-size: 14px;
}

form#comments-form input, form#comments-form textarea {
  display: block;
  width: 80%;
  border: 1px solid #4ab;
  background-color: #f8f8f8;
  margin-bottom: 10px;
}

.license {
  margin-top: 20px;
  font-size: 11px;
  line-height: 15px;
  display: block;
  width: 100%;
  text-align: center;
}

pre {
  white-space: pre-wrap;
  display: block;
  width: 98%;
  margin: 0 1%;
  padding: 4px;
  border: 1px solid #ada;
  background: #fafffa;
}

code {
  font-size: 13px;
}

pre code {
  font-size: 10px;
}

.gravatar {
  border: 1px solid #4ab;
}

.search {
  width: 100%;
  text-align: center;
}

.search .text {
  border: 1px solid #4ab;
  font-family: Calibri, Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  margin-right: 10px;
  margin-bottom: 10px;
  width: 50%;
}

.search .submit {
  border: 1px solid #4ab;
  font-family: Calibri, Arial, sans-serif;
  font-size: 20px;
}

.search-nav {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  width: 100%;
  text-align: center;
}

.nofind {
  font-weight: bold;
  font-size: 16px;  
}

@media (max-width: 768px) {
  .page {
    min-width: 0;
    max-width: none;
    min-height: auto;
    margin: auto;
    border: none;
    padding: auto;
  }

  .page-header {
    top: 0px;
    padding: 0px;
    height: 24px;
    border-bottom: 2px solid #4ab;
  }

  .page-header a.title, .page-header a:hover.title {
    color: #000;
    border-bottom: none;
    font-size: 18px;
  }

  .pagename {
    font-size: 18px;
  }

  .twocols {
    display: inline;
    width: auto;
  }

  .col-main {
    padding-right: 0px;
    display: inline;
  }

  .col-right {
    display: block;
    padding-top: 10px;
    width: 100%;
    text-align: center;
  }

  .col-right .avatar {
    width: 100%;
    height: 90px;
    background-image: url('/richard/img/avatar90.png');
    background-repeat: no-repeat;
    background-position: center;
  }

  .sideblocks {
    display: table;
    margin: 8px auto 0px auto;
  }

  .sideblock1 {
    display: table-cell;
    width: 200px;
    padding-right: 10px;
    border-right: 1px solid #4ab;
  }

  .sideblock2 {
    display: table-cell;
    width: 200px;
    padding-left: 9px;
  }

  .col-right p {
    margin: 2px 0;
  }

.col-right .heading {
    font-size: 16px;
  }

  .col-right .link {
    font-size: 14px;
  }

  h1 {
    font-size: 1.33em;
  }

  h2 {
    font-size: 1.25em;
  }

  h3 {
    font-size: 1.15em;
  }

  .archiveyear, .thisyear {
    font-size: 18px;
    padding: 6px;
    margin: 4px 12px 12px 4px;
  }

  table#entries td, table#entries th {
    font-size: 75%;
  }

  table#entries td.date, table#entries th.date {
    width: 1%;
  }
  
    .search .text {
    border: 1px solid #4ab;
    font-family: Calibri, Arial, sans-serif;
    font-weight: bold;
    font-size: 1em;
    margin-right: 8px;
    margin-bottom: 8px;
    width: 80%;
  }

  .search .submit {
    border: 1px solid #4ab;
    font-family: Calibri, Arial, sans-serif;
    font-size: 1em;
  }
}

@media (max-width: 430px) {
  .sideblock1, .sideblock2 {
    display: block;
    width: 100%;
    padding: 0px;
    border: none;
    max-width: 200px;
  }
}