/* Main CSS file */
/*

Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>

*/
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background: #F0F0F0;
}

.hljs,
.hljs-subst {
  color: #444;
}

.hljs-keyword,
.hljs-attribute,
.hljs-selector-tag,
.hljs-meta-keyword,
.hljs-doctag,
.hljs-name {
  font-weight: bold;
}

.hljs-built_in,
.hljs-literal,
.hljs-bullet,
.hljs-code,
.hljs-addition {
  color: #1F811F;
}

.hljs-regexp,
.hljs-symbol,
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #BC6060;
}

.hljs-type,
.hljs-string,
.hljs-number,
.hljs-selector-id,
.hljs-selector-class,
.hljs-quote,
.hljs-template-tag,
.hljs-deletion {
  color: #880000;
}

.hljs-title,
.hljs-section {
  color: #880000;
  font-weight: bold;
}

.hljs-comment {
  color: #888888;
}

.hljs-meta {
  color: #2B6EA1;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.main-wrapper {
  min-height: 100%;
  position: relative;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  overflow-y: scroll;
}

/**
 * Reset some basic elements
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

/**
 * Basic styling
 */
body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure {
  margin-bottom: 15px;
}

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle;
}

/**
 * Figures
 */
figure > img {
  display: block;
}

figcaption {
  font-size: 14px;
}

/**
 * Lists
 */
ul, ol {
  margin-left: 30px;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

/**
 * Links
 */
a {
  color: #2a7ae2;
  text-decoration: none;
}

a:visited {
  color: #1756a9;
}

a:hover {
  color: #111;
  text-decoration: underline;
}

/**
 * Blockquotes
 */
blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/**
 * Code formatting
 */
pre,
code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}

pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(1000px - (30px * 2));
  max-width: calc(1000px - (30px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
  position: relative;
}

@media screen and (max-width: 800px) {
  .wrapper {
    max-width: -webkit-calc(1000px - (30px));
    max-width: calc(1000px - (30px));
    padding-right: 15px;
    padding-left: 15px;
  }
}

.content-wrapper {
  margin-top: 15px;
  padding-bottom: 60px;
}

@media (min-width: 600px) {
  .content-wrapper {
    margin-right: 256px;
    padding-right: 30px;
    border-right: 2px solid #e8e8e8;
  }
}

/**
 * Clearfix
 */
.wrapper:after, .footer-col-wrapper:after {
  content: "";
  display: table;
  clear: both;
}

/**
 * Icons
 */
.icon > svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.icon > svg path {
  fill: #828282;
}

/**
 * Site header
 */
.site-header {
  min-height: 56px;
  position: relative;
  border-bottom: 2px solid #e8e8e8;
}

@font-face {
  font-family: 'titlefont';
  src: url("/fonts/clacon.ttf");
}

.site-title {
  font-family: titlefont;
  font-size: 32px;
  margin-top: 6px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
  max-width: 60%;
}

@media screen and (max-width: 600px) {
  .site-title {
    max-width: 100%;
    font-size: 18px;
    display: block;
    float: none;
  }
}

.site-title a, .site-title a:visited {
  color: black;
}

.site-nav {
  font-family: titlefont;
  float: right;
  line-height: 56px;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: #111;
  line-height: 1.5;
  font-size: 20px;
}

.site-nav .page-link:not(:first-child) {
  margin-left: 20px;
}

@media screen and (max-width: 600px) {
  .site-nav {
    display: block;
    position: relative;
    float: left;
    background-color: #fdfdfd;
    text-align: left;
    padding-bottom: 12px;
  }
  .site-nav .page-link {
    display: block;
    font-size: 26px;
    text-decoration: underline;
  }
  .site-nav .page-link:not(:first-child) {
    margin-left: 0px;
  }
}

/**
 * Site footer
 */
.site-footer {
  height: 60px;
  position: absolute;
  bottom: 0px;
  text-align: center;
  width: 100%;
  color: #828282;
  z-index: -1;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 15px;
  color: #828282;
  margin-left: -15px;
}

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px;
}

.footer-col-1 {
  width: -webkit-calc(35% - (30px / 2));
  width: calc(35% - (30px / 2));
}

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - (30px / 2));
}

.footer-col-3 {
  width: -webkit-calc(45% - (30px / 2));
  width: calc(45% - (30px / 2));
}

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: -webkit-calc(50% - (30px / 2));
    width: calc(50% - (30px / 2));
  }
  .footer-col-3 {
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2));
  }
}

@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2));
  }
}

/**
 * Page content
 */
.page-content {
  padding: 15px 0;
}

.page-heading {
  font-size: 20px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}

.post-list > li {
  margin-bottom: 30px;
}

.post-meta {
  font-size: 14px;
  color: #828282;
}

.post-link {
  display: block;
  font-size: 24px;
}

/**
 * Posts
 */
.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
}

@media screen and (max-width: 800px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  text-align: justify;
  margin-bottom: 30px;
}

.post-content h1 {
  font-size: 32px;
}

@media screen and (max-width: 800px) {
  .post-content h1 {
    font-size: 28px;
  }
}

.post-content h2 {
  font-size: 20px;
}

@media screen and (max-width: 800px) {
  .post-content h2 {
    font-size: 20px;
  }
}

.post-content h3 {
  font-size: 16px;
  font-weight: bold;
}

@media screen and (max-width: 800px) {
  .post-content h3 {
    font-size: 16px;
  }
}

.post-content h4 {
  font-size: 20px;
}

@media screen and (max-width: 800px) {
  .post-content h4 {
    font-size: 18px;
  }
}

.main-content {
  margin-bottom: 30px;
}

.main-content h2 {
  font-size: 32px;
}

@media screen and (max-width: 800px) {
  .main-content h2 {
    font-size: 28px;
  }
}

.main-content h3 {
  font-size: 26px;
}

@media screen and (max-width: 800px) {
  .main-content h3 {
    font-size: 22px;
  }
}

.main-content h4 {
  font-size: 20px;
}

@media screen and (max-width: 800px) {
  .main-content h4 {
    font-size: 18px;
  }
}

.label {
  text-align: center;
  font-style: italic;
}

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

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#right-bar {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 256px;
}

@media (max-width: 600px) {
  #right-bar {
    display: none;
  }
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.sidebar-list li {
  font-size: 12pt;
  margin-bottom: 12px;
}

.media-image-link {
  padding: 0px;
  margin: 0px;
  position: relative;
  height: 18px;
}

.media-image-link > img,
.media-image-link > p {
  display: inline-block;
}

.media-icon {
  position: absolute;
  top: 2px;
  left: 0px;
}

.media-text {
  height: 16px;
  position: absolute;
  top: 0px;
  left: 24px;
}

.pagination-container {
  overflow: hidden;
  padding-top: 60px;
}

.pagination-outer {
  position: relative;
  left: 50%;
  float: left;
}

.pagination-inner {
  position: relative;
  left: -50%;
  float: left;
  font-family: titlefont;
  font-size: 16pt;
}

.pagination-link {
  padding: 5px;
}

.current-pagination-link {
  padding: 5px;
  font-weight: bold;
}

h2 {
  padding-top: 20px;
}

.footer-spacer {
  position: relative;
  height: 60px;
  z-index: -1;
}
