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

/* Global Reset */

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: white;
  font: 13.34px helvetica, arial, clean, sans-serif;
  *font-size: small;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 110%;
  margin-top: 0.50em;
}

h1:not(.nostyle):before {
  content: "#";
}
h2:before {
  content: "+";
}
h1:not(.nostyle):before, h2:before, blockquote:before, dt:before, ul li:before {
  color: #bbb;
  position: absolute;
  width: 50px;
  text-align: right;
  margin-left: -60px;
}
h1 {
  margin-bottom: 0.5em;
  font-size: 14pt;
}
h3 {
  font-size: 100%;
  margin-bottom: 0.25em;
}

h1.nostyle {
  display: inline;
  margin:0px;
  padding:0px;
}

p {
  margin: 1em 0;
}

a {
  color: #6666ff;
}

a:hover {
  color: black;
}

a:visited {
  color: #cc66ff;
}

table {
  font-size: inherit;
  font: 100%;
}

blockquote:before {
  content: ">";
}

blockquote {
  font-size: 14pt;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  text-align: left;
}
dt:before {
  content: "-";
}
dt {
  font-weight: bold;
}
dd {
  margin-left: 10px;
}

ul li:before {
  content: "-";
}

ul {
  list-style-type: none;
}

img {
  max-width: 45em;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/

ul.posts {
  list-style-type: none;
  margin-bottom: 1em;
}

  ul.posts li {
    line-height: 1.75em;
  }

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

/* Homepage items */

.item {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 7px;
}

.side-image {
  width: 100px;
  /*height: 70px;*/
  margin-right: 10px;
/*  display: flex;
  align-items: center;
  flex-direction: row;*/
  line-height: 0;
}

.item-desc {
  flex-grow: 1;
}

.side-image img {
  width: 100px;
  /*height: 100%;*/
}

.item-desc p {
  margin: 0px;
}

.item-desc h3 {
  margin-top: 0px;
}

/*.item {
  position: relative;
  margin-top: 10px;
}

.side-image {
  position: absolute;
  width: 100px;
  left: -120px;
  top: 5px;
}

.side-image a {
  float: right;
}*/

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

.site {
  font-size: 110%;
  text-align: left;
  width: 45em;
  margin: 3em auto 2em auto;
  line-height: 1.5em;
}

.title {
  color: #a00;
  font-weight: bold;
  margin-bottom: 2em;
}

  .site .title a {
    text-decoration: none;
  }

  .site .title .name {
    color: #0e73d6;
    font-size: 17pt;
  }

  .site .title .bubble {
    /*background-image: url('/assets/themes/thume/images/bubble.png');*/
    position: absolute;
    width: 55px;
    margin-left: -65px;
    margin-top: -20px;
  }

  .site .title a:hover {
    color: black;
  }

  .site .title a.extra {
    color: #aaa;
    text-decoration: none;
    margin-left: 1em;
  }

  .site .title a.extra:hover {
    color: black;
  }

  .site .meta {
    color: #aaa;
  }

  .site .footer {
    font-size: 80%;
    color: #666;
    border-top: 4px solid #eee;
    margin-top: 2em;
    overflow: hidden;
  }

    .site .footer .contact {
      float: left;
      margin-right: 3em;
    }

      .site .footer .contact a {
        color: #8085C1;
      }

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

      .site .footer .rss img {
        border: 0;
      }

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

.post {

}

  /* standard */

  .post pre {
    border: 1px solid #ddd;
    background-color: #eef;
    padding: 0 .4em;
    overflow-x: auto;
  }

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

  .post code {
    border: 1px solid #ddd;
    background-color: #eef;
    font-size: 0.9em;
    line-height: normal;
    padding: 0 .2em;
  }

    .post pre code {
      border: none;
    }

  .bigcenter {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  /* terminal */

  .post pre.terminal {
    border: 1px solid black;
    background-color: #333;
    color: white;
  }

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

#related {
  margin-top: 2em;
}

  #related h2 {
    margin-bottom: 1em;
  }

@media only print {
    .title, #related, #disqus_thread {
      display: none;
    }
}

.draftnotice {
  background-color: #fff4de;
  padding: 0.5em 0.5em;
}


/* Calca */

.calca { background-color: #f3faff; padding: 0.3em 0.3em;}
.calca p:first-child { margin-top: 0px; }
.calca code, input { font-family: Menlo, monospace; border: none; background-color: transparent; padding: 0; }
.calca pre { white-space: normal; border: none; background-color: transparent; }
.calca .hidden, .hiddenh1, .hiddenh2, .hiddenh3, .hiddenh4 { color: #BCBCBC; font-weight: normal; }
.calca .ans { background-color: #ECECEC; padding: 0 0.25em 0 0.25em;}
.calca .err { border-bottom: 2px solid #FFB2B2; }
.calca .incl { border-bottom: 2px solid #FFD700; }
.calca .c { color: #A6A6A6; }
.calca .n { color: #1472F0; }
.calca .t { font-weight: bold; }
.calca .d { font-weight: bold; }
.calca .k { color: #9400D3; }
.calca .s { color: #8888E6; }
.calca .u { color: #8888E6; }
.calca .r { font-size: 75%; }
.calca .xml { color: #8888E6; }
.calca .hidden, .hiddenh1, .hiddenh2, .hiddenh3, .hiddenh4 { display: none; }
.calca .c { display: none; }
