/* 
Title: Hikari
Description: : A responsive & simple theme for Jekyll
Version: 1.0
Last update: Feb 2014
Author: Mathieu Mayer-Mazzoli http://m3xm.github.io
License: MIT License http://opensource.org/licenses/MIT
*/

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

/* Global Reset */

* {
  margin: 0;
  padding: 0;
}

/* General */

html, body { width: 100%; height: 100%; }

body {
  background: #fff;
  color: #444;
  font: 20px 'SF Compact Display', -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #333;
}

p { margin: 1em 0; }
small { font-size: 50%; }
p, small, blockquote { -webkit-font-smoothing: antialiased; }
ul li { list-style-type: circle; }
ol li { list-style-type: decimal; }
a         { color: #39f; }
a:hover   { color: #444; }
/*a:visited { color: #31f; }*/


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


/* Header */

header {
  width: 100%;
  background: #fff;
}

header .h-wrap {
  padding: 40px;
}

header .h-wrap h1.title {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 26px;
  font-weight: normal;
}

header .h-wrap h1.title a {
  color: #333;
  text-decoration: none;
}

header .h-wrap h1.title a:hover {
  color: #39f;
}

header .h-wrap .menu-icon {
  float: right;
  display: inline-block;
  transition: .3s;
  cursor: pointer;
}

header .h-wrap .menu-icon:hover {
  opacity: 1;
}

header .h-wrap .menu-icon:active {
  transition: 0;
}

header .h-wrap .menu-icon .lines {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #333;
  position: relative;
  -webkit-transition: background .1s .3s ease;
  transition:         background .1s .3s ease;
}

header .h-wrap .menu-icon .lines,
header .h-wrap .menu-icon .lines::before,
header .h-wrap .menu-icon .lines::after {
  border-radius:         10px;
  -webkit-border-radius: 10px;
}

header .h-wrap .menu-icon .lines::before,
header .h-wrap .menu-icon .lines::after {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: #333;
  transition: 0.3s;
  position: absolute;
  right: 0;
  content: '';
  transform-origin:         50% 50%;
  -webkit-transform-origin: 50% 50%;
  transition:         top .3s .6s ease, 
                      transform .3s ease;
  -webkit-transition: top .3s .6s ease, 
                      transform .3s ease;
}

header .h-wrap .menu-icon .lines::before {
  top: 10px;
}

header .h-wrap .menu-icon .lines::after {
  top: -10px;
}

header .h-wrap .menu-icon.hover .lines:before {
  top: -0.0219rem;
}

header .h-wrap .menu-icon.hover .lines:after {
  top: 0.0219rem;
}

header .h-wrap .close .lines {
  -webkit-transition: background .3s 0s ease;
  transition:         background .3s 0s ease;
  background: transparent;
}

header .h-wrap .close .lines::before,
header .h-wrap .close .lines::after {
  top:0;
  width: 30px;
  -webkit-transition: top .3s ease, 
                      transform .3s .5s ease;   
  transition:         top .3s ease, 
                      transform .3s .5s ease;     
}

header .h-wrap .close .lines::before {
  transform:         rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin: 0;
}

header .h-wrap .close .lines::after {
  transform:         rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  margin: 0;
}

/* Off-canvas */

#off-canvas {
  position: relative;
  max-height: 0;
  overflow: hidden;
  padding: 0px 40px;
  background: #fafafa;
  border-bottom: 0px solid #f1f1f1;
  -webkit-transition: max-height .35s ease, 
                      padding-top .35s ease, 
                      padding-bottom .35s ease, 
                      border-width .35s ease;
  transition:         max-height .35s ease, 
                      padding-top .35s ease, 
                      padding-bottom .35s ease, 
                      border-width .35s ease;
}

#off-canvas.toggled {
  max-height: 90%;
  padding: 40px;
  border-width: 1px;
  -webkit-transition: max-height .35s ease, 
                      padding-top .35s ease, 
                      padding-bottom .35s ease, 
                      border-width .35s ease;
  transition:         max-height .35s ease, 
                      padding-top .35s ease, 
                      padding-bottom .35s ease, 
                      border-width .35s ease;
}

#off-canvas #bio {
  width: 70%;
  max-width: 720px;
  display: block;
}

#off-canvas #bio h1 {
  font-size: 140%;
  margin-top: 0;
}

#off-canvas #bio p {
  font-family: "SF Compact Display", -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
  line-height: 160%;
  font-size: 100%;
  margin-bottom: 0;
}

#off-canvas #avatar {
  float: right;
  display: block;
  margin-left: 10px;
  margin-bottom: 5px;
}

#off-canvas #avatar img {
  width: 150px;
  border-radius: 50%;
}


/* Footer */

footer { padding: 40px; text-align: center; }
footer small { text-transform: uppercase; }


/* Font-icons */

@font-face {
  font-family: 'icomoon';
  src:url('../assets/fonts/icomoon.eot');
  src:url('../assets/fonts/icomoon.eot?#iefix') format('embedded-opentype'),
    url('../assets/fonts/icomoon.woff') format('woff'),
    url('../assets/fonts/icomoon.ttf') format('truetype'),
    url('../assets/fonts/icomoon.svg#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

.icon-twitter, .icon-github, .icon-dribbble, .icon-instagram {
  font-family: 'icomoon';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.icon-twitter:before {
  content: "\e002";
}
/*.icon-github:before {
  content: "\e003";
}
.icon-dribbble:before {
  content: "\e004";
}
.icon-instagram:before {
  content: "\e005";
}*/


/*****************************************************************************/
/*
/* Posts List
/*
/*****************************************************************************/


ul.posts { color: #236CC1; overflow: hidden; }
ul.posts li { border-bottom: 1px solid #4492EC; }
ul.posts li:last-child { border-bottom: none; }
ul.posts li .p-wrap { background: #589FF1; padding: 50px 40px; transition: all .15s ease-in; }
ul.posts li .p-wrap:hover { background: #67AAF7; padding-left: 50px; }
ul.posts li .p-wrap:active { background: #569BEA; }
ul.posts li .p-wrap:hover::after { content:'\2192'; margin-left: 10px; }
ul.posts li .p-wrap p { display: inline; margin-bottom: 0; }
ul.posts li .date { color: #2671C8; padding-right: 20px; }
ul.posts li a { color: #fff; text-decoration: none; }


/*****************************************************************************/
/*
/* Post View
/*
/*****************************************************************************/


section#single-wrap {
  width: 100%;
  max-width: 780px;
  margin: 20px auto;
  font-family: 'SF Compact Display', -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
  background: #fff;
  z-index: 1;
}

section#single-wrap .single-content {
  padding: 0 40px;
  overflow: hidden;
}

section#single-wrap .feat {
  text-align: center;
  border-bottom: 1px dotted #E0E1E6;
  margin: 0 20px 50px;
}

section#single-wrap .feat h5.page-date {
  display: inline-block;
  position: relative;
  top: 11px;
  background: #fff;
  font-size: 85%;
  text-align: center;
  font-weight: normal;
  font-style: italic;
  padding: 0 20px;
}

section#single-wrap #share {
  margin: 50px 20px;
}

section#single-wrap .feat a.popup {
  display: inline-block;
  position: relative;
  top: 15px;
  background: #fff;
  font-size: 24px;
  text-align: center;
  text-decoration: none;
  padding: 0 25px;
  transition: all .2s ease;
  -webkit-transition: all .2s ease;
}

section#single-wrap h1.page-title {
  font-size: 180%;
  line-height: 135%;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  margin: 0 0 60px;
  padding: 0 40px;
}

section#single-wrap p {
  padding: 0 40px;
}

section#single-wrap ul,
section#single-wrap ol {
  padding: 10px 80px;
}

section#single-wrap ul li,
section#single-wrap ol li {
  margin-bottom: 15px;
}

section#single-wrap h1,
section#single-wrap h2,
section#single-wrap h3,
section#single-wrap h4,
section#single-wrap h5,
section#single-wrap h6 { 
  padding: 0 40px; 
  margin-top: 40px;
}

section#single-wrap h1 { font-size: 150%; }
section#single-wrap h2 { font-size: 140%; font-weight: bold;}
section#single-wrap h3 { font-size: 130%; font-weight: bold;}
section#single-wrap h4 { font-size: 120%; font-weight: bold;}
section#single-wrap h5 { font-size: 110%; }
section#single-wrap h6 { font-size: 100%; }
section#single-wrap p { line-height: 160%; }

section#single-wrap blockquote {
  font-size: inherit;
  font-family: 'SF Compact Display', -apple-system, BlinkMacSystemFont, 'Open Sans', sans-serif;
  color: #333;
  border-left: 6px solid #39f;
  padding: 0 34px;
  margin: 40px 0;
  line-height: 165%;
}

section#single-wrap blockquote p {
  padding-left: 0!important;
  padding-right: 0!important;
}

section#single-wrap img {
  width: 100%;
  height: 100%;
}

/* pagination */

#prev,
#next {
  position: fixed;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eee;
  padding: 10px;
  line-height: 1;
  border-radius: 25px;
  bottom: 40px;
  color: #333;
}

#prev { left: 40px; }

#next { right: 40px; }

#prev:active, 
#next:active {
  border-color: #39f;
}

#prev:hover::after {
  content: 'older';
  margin-left: 10px;
  margin-right: 5px;
}

#next:hover::before {
  content: 'newer';
  margin-right: 10px;
  margin-left: 5px;
}

/* highlights */

.highlight {
  border: 1px solid #eee;
  border-radius: 3px;
  padding: 10px 25px;
  background-color: #fbfbfb;
  font-size: 80%;
  margin: 60px 40px 40px;
  overflow: scroll;
  color: SlateGrey;
}

.highlight code {
  width: 100%;
}

.highlight code span {
  line-height: 150%;
  font-size: 85%;
}

.highlight code.html::before {
  content: "HTML";
}

.highlight code.css::before {
  content: "CSS";
}

.highlight code.js::before {
  content: "JavaScript";
}

.highlight code.html::before, 
.highlight code.css::before,
.highlight code.js::before {
  position: absolute;
  color: #444;
  margin-top: -42px;
  font-family: 'Open Sans', sans-serif;
  background-color: #fbfbfb;
  border: 1px solid #eee;
  padding: 4px 10px; 
  border-radius: 3px 3px 0 0;
}


/*****************************************************************************/
/*
/* Media Queries
/*
/*****************************************************************************/


/* Viewport width < 920px */

@media only screen and (max-width : 919px) {

  body { font-size: 17px; }
  header .h-wrap { padding: 40px 30px; }
  header .h-wrap .menu-icon { margin-top: 2px; }
  #prev, #next { display: none; } 
  ul.posts li .p-wrap { padding: 30px; }
  ul.posts li .p-wrap p { display: block; }
  ul.posts li .p-wrap:hover { padding-left: 40px; }
  ul.posts li .p-wrap:hover::after { content: none; margin: 0; }
  .highlight { margin: 30px 40px 40px; }
  .highlight code.html::before, 
  .highlight code.css::before,
  .highlight code.js::before {
    display: none; 
  }

}

/* Viewport width < 480px */

@media only screen and (max-width : 479px) {

  body { font-size: 15px; }
  header .h-wrap { padding: 30px 20px; }
  ul.posts li .p-wrap { padding: 20px; }
  ul.posts li .p-wrap:hover { background: #67AAF7; padding-left: 20px; }
  #off-canvas { padding: 0 20px; }
  #off-canvas.toggled { padding: 20px; }
  #off-canvas #bio { width: 100%; }
  #off-canvas #avatar img { width: 120px; }
  section#single-wrap { margin: 0 auto; }
  section#single-wrap .single-content { padding: 0 20px; }
  section#single-wrap h1.page-title { padding: 0 20px; margin: 0 0 30px; }
  section#single-wrap p { padding: 0 20px; }

  section#single-wrap ul,
  section#single-wrap ol {
    padding: 10px 0 10px 35px;
  }

  section#single-wrap h1,
  section#single-wrap h2,
  section#single-wrap h3,
  section#single-wrap h4,
  section#single-wrap h5,
  section#single-wrap h6 { 
    padding: 0 20px; 
    margin-top: 30px;
  }

  section#single-wrap blockquote { padding: 0 20px; border-left: 4px solid #39f; }

  .highlight { padding: 10px 5px; margin: 30px 20px 40px; }

}
