@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");

/* Reset */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

body {
    -webkit-text-size-adjust: none;
}

/* Box Model */
*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Basic */
body {
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.75em;
    background: #302e2f;
    overflow: hidden;
}

a {
    -moz-transition: border-color 0.2s ease-in-out;
    -webkit-transition: border-color 0.2s ease-in-out;
    -ms-transition: border-color 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out;
    border-bottom: dotted 1px;
    color: inherit;
    outline: 0;
    text-decoration: none;
}

a:hover {
    border-color: transparent;
}

/* Icon */

.icon {
    text-decoration: none;
    position: relative;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
}

.icon > .label {
    display: none;
}

/* Main */

#main {
    height: 100%;
    left: 0;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
}

#main:before {
    content: '';
    display: inline-block;
    height: 100%;
    margin-right: 0;
    vertical-align: middle;
    width: 1px;
}

/* Header */

@-moz-keyframes header {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@-webkit-keyframes header {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@-ms-keyframes header {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes header {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@-moz-keyframes nav-icons {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@-webkit-keyframes nav-icons {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@-ms-keyframes nav-icons {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes nav-icons {
    0% {
        -moz-transform: translate3d(0, 1em, 0);
        -webkit-transform: translate3d(0, 1em, 0);
        -ms-transform: translate3d(0, 1em, 0);
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }

    100% {
        -moz-transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

#header {
    -moz-animation: header 0.75s 0.75s forwards;
    -webkit-animation: header 0.75s 0.75s forwards;
    -ms-animation: header 0.75s 0.75s forwards;
    animation: header 0.75s 0.75s forwards;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    cursor: default;
    display: inline-block;
    opacity: 0;
    position: relative;
    text-align: center;
    top: -1em;
    vertical-align: middle;
    width: 90%;
}

#header h1 {
    font-size: 4.35em;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1em;
}

#header p {
    font-size: 1.25em;
    margin: 0.75em 0 0.25em 0;
    opacity: 0.75;
}

#header nav {
    margin: 1.5em 0 0 0;
}

#header nav li {
    -moz-animation: nav-icons 0.5s ease-in-out forwards;
    -webkit-animation: nav-icons 0.5s ease-in-out forwards;
    -ms-animation: nav-icons 0.5s ease-in-out forwards;
    animation: nav-icons 0.5s ease-in-out forwards;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    display: inline-block;
    height: 5.35em;
    line-height: 5.885em;
    opacity: 0;
    position: relative;
    top: 0;
    width: 5.35em;
}

#header nav li:nth-child(1) {
    -moz-animation-delay: 1.5s;
    -webkit-animation-delay: 1.5s;
    -ms-animation-delay: 1.5s;
    animation-delay: 1.5s;
}

#header nav li:nth-child(2) {
    -moz-animation-delay: 1.65s;
    -webkit-animation-delay: 1.65s;
    -ms-animation-delay: 1.65s;
    animation-delay: 1.65s;
}

#header nav li:nth-child(3) {
    -moz-animation-delay: 1.8s;
    -webkit-animation-delay: 1.8s;
    -ms-animation-delay: 1.8s;
    animation-delay: 1.8s;
}

#header nav li:nth-child(4) {
    -moz-animation-delay: 1.95s;
    -webkit-animation-delay: 1.95s;
    -ms-animation-delay: 1.95s;
    animation-delay: 1.95s;
}

#header nav li:nth-child(5) {
    -moz-animation-delay: 2.1s;
    -webkit-animation-delay: 2.1s;
    -ms-animation-delay: 2.1s;
    animation-delay: 2.1s;
}

#header nav li:nth-child(6) {
    -moz-animation-delay: 2.25s;
    -webkit-animation-delay: 2.25s;
    -ms-animation-delay: 2.25s;
    animation-delay: 2.25s;
}

#header nav li:nth-child(7) {
    -moz-animation-delay: 2.4s;
    -webkit-animation-delay: 2.4s;
    -ms-animation-delay: 2.4s;
    animation-delay: 2.4s;
}

#header nav a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    border: 0;
    display: inline-block;
}

#header nav a:before {
    -moz-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    border-radius: 100%;
    border: solid 1px #fff;
    display: block;
    font-size: 1.75em;
    height: 2.5em;
    line-height: 2.5em;
    position: relative;
    text-align: center;
    top: 0;
    width: 2.5em;
}

#header nav a:hover {
    font-size: 1.1em;
}

#header nav a:hover:before {
    background-color: rgba(255, 255, 255, 0.175);
    color: #fff;
}

#header nav a:active {
    font-size: 0.95em;
    background: none;
}

#header nav a:active:before {
    background-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

#header nav a span {
    display: none;
}


/* Mobile */

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

    /* Basic */
    body {
        min-width: 320px;
    }

}

/* Mobile (Portrait) */
@media screen and (max-width: 480px) {

    /* Header */
    #header nav {
        padding: 0 1em;
    }
}

/* ==============================
   Blog Styling (Fixed Layout Mimic - Static HTML)
   ============================== */

/* Apply to body tag on blog pages */
body.blog-page {
    /* Ensure the dark background is applied */
    background: #302e2f;
    /* Body remains overflow: hidden */
  }
  
  /* Hide the original header content when on a blog page */
  body.blog-page #header {
    display: none;
  }
/* ==============================
   Blog Styling (Fixed Layout Mimic - Static HTML - Full Width)
   ============================== */

/* Apply to body tag on blog pages */
body.blog-page {
    /* Ensure the dark background is applied */
    background: #302e2f;
    /* Body remains overflow: hidden */
  }
  
  /* Hide the original header content when on a blog page */
  body.blog-page #header {
    display: none;
  }
  
  /* Wrapper - Modified for full width and height */
  .blog-view-wrapper {
    display: block; /* Ensure block display */
    width: 100%;    /* Use full width */
    max-width: none;  /* No max-width constraint */
    position: relative; /* For positioning the back button */
    text-align: left; /* Reset text alignment for content */
    height: 100vh;  /* Use full viewport height */
    overflow: hidden; /* Hide anything overflowing the wrapper */
    padding-top: 50px; /* Consistent padding for back button */
    margin: 0;      /* Remove any auto margins */
    box-sizing: border-box; /* Include padding in height/width */
  }
  
  /* The actual scrollable content area - Modified padding */
  .blog-scrollable-content {
    height: 100%; /* Fill the wrapper height */
    overflow-y: auto; /* Enable VERTICAL scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
    padding: 10px 30px 40px 30px; /* Add sufficient side padding */
    color: #ddd; /* Light text */
    font-family: inherit; /* Inherit 'Source Sans Pro' */
    line-height: 1.75em; /* Match body */
    box-sizing: border-box; /* Include padding in height */
  }
  
  /* Custom scrollbar for webkit browsers (Optional) */
  .blog-scrollable-content::-webkit-scrollbar {
    width: 8px;
  }
  .blog-scrollable-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  .blog-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  .blog-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  
  
  /* Blog content styling (headings, paragraphs, etc.) */
  .blog-scrollable-content h1,
  .blog-scrollable-content h2,
  .blog-scrollable-content h3,
  .blog-scrollable-content h4,
  .blog-scrollable-content h5,
  .blog-scrollable-content h6 {
      color: #fff;
      font-weight: 900;
      letter-spacing: -0.035em;
      margin-top: 1.5em;
      margin-bottom: 0.8em;
      line-height: 1.3;
  }
  .blog-scrollable-content h1 {
      border-bottom: 2px solid #555;
      padding-bottom: 0.4em;
      margin-top: 0;
      font-size: 2.2em;
  }
  .blog-scrollable-content h2 { font-size: 1.6em; }
  .blog-scrollable-content h3 { font-size: 1.3em; font-weight: 300; letter-spacing: normal; }
  
  .blog-scrollable-content p,
  .blog-scrollable-content li {
      margin-bottom: 1em;
      color: #ccc;
  }
  
  .blog-scrollable-content ul,
  .blog-scrollable-content ol {
      padding-left: 25px;
      margin-bottom: 1.5em;
      list-style-position: outside;
  }
  .blog-scrollable-content ul { list-style-type: disc; }
  .blog-scrollable-content ol { list-style-type: decimal; }
  .blog-scrollable-content li { margin-bottom: 0.5em; }
  
  
  /* Links within blog content */
  .blog-scrollable-content a {
      color: #7fbfed;
      border-bottom: dotted 1px rgba(127, 191, 237, 0.5);
  }
  .blog-scrollable-content a:hover {
      color: #a1d3f1;
      border-color: transparent;
  }
  
  /* Code blocks styling */
  .blog-scrollable-content pre {
      padding: 1em;
      border-radius: 5px;
      overflow-x: auto;
      line-height: 1.45;
      margin: 1.5em 0;
      font-size: 0.9em;
  }
  
  /* Inline code styling */
  .blog-scrollable-content code {
      font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
      font-size: 0.9em;
      background-color: rgba(255, 255, 255, 0.08);
      padding: 0.2em 0.4em;
      border-radius: 3px;
      color: #eee;
  }
  
  /* Code inside pre blocks (handled by Prism) */
  .blog-scrollable-content pre code {
      background-color: transparent !important;
      padding: 0;
      border-radius: 0;
      font-size: inherit;
      color: inherit;
      font-family: inherit;
      border: none;
      line-height: inherit;
  }
  
  /* Ensure Prism theme applies correctly */
  .blog-scrollable-content pre[class*="language-"] {
      margin: 1.5em 0 !important;
      border-radius: 5px !important;
      border: 1px solid #555;
      /* Background comes from Prism theme CSS */
  }
  
  /* Blog Index List Specific Styles */
  .blog-scrollable-content .blog-list {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  .blog-scrollable-content .blog-list li {
      margin-bottom: 2em;
      padding-bottom: 1.5em;
      border-bottom: 1px solid #444;
  }
  .blog-scrollable-content .blog-list li:last-child { border-bottom: none; }
  .blog-scrollable-content .blog-list h2 { margin-top: 0; margin-bottom: 0.3em; }
  .blog-scrollable-content .blog-list h2 a {
      border-bottom: none; /* Remove underline from list titles */
  }
  .blog-scrollable-content .blog-list h2 a:hover {
      border-bottom: none;
      text-decoration: underline; /* Add underline on hover only */
  }
  .blog-scrollable-content .blog-list .post-meta { font-size: 0.9em; color: #999; margin-bottom: 0.5em; }
  
  .blog-scrollable-content hr { border: 0; height: 1px; background-color: #444; margin: 2em 0; }
  
  /* Back Button Styling */
  .blog-back-button {
      position: absolute;
      top: 10px; /* Adjust base position */
      left: 15px; /* Adjust base position */
      border: 0;
      color: #fff;
      opacity: 0.7;
      transition: opacity 0.2s ease-in-out;
      font-size: 1.5em;
      text-decoration: none;
      z-index: 10;
  }
  .blog-back-button:before { /* FontAwesome icon is applied via class */ }
  .blog-back-button:hover { opacity: 1.0; border: 0; }
  .blog-back-button .label { display: none; }
  
  
  /* ==============================
     Blog Responsive Adjustments (Full Width)
     ============================== */
  
  @media screen and (max-width: 768px) { /* Target tablets and phones */
  
    .blog-view-wrapper {
      padding-top: 55px; /* Adjust top padding for button */
      /* Width/Height remain 100%/100vh */
    }
  
    .blog-scrollable-content {
      padding: 10px 20px 30px 20px; /* Reduce side padding */
    }
  
    /* Adjust heading sizes */
    .blog-scrollable-content h1 { font-size: 1.8em; }
    .blog-scrollable-content h2 { font-size: 1.4em; }
    .blog-scrollable-content h3 { font-size: 1.15em; }
  
    /* Adjust code block font size */
    .blog-scrollable-content pre,
    .blog-scrollable-content code { font-size: 0.85em; }
  
    /* Adjust back button position/size */
    .blog-back-button {
      top: 15px;
      left: 15px;
      font-size: 1.4em;
    }
  
    body.blog-page #header { display: none !important; }
  }
  
  @media screen and (max-width: 480px) { /* Target smaller phones */
  
      .blog-view-wrapper {
          padding-top: 50px; /* Adjust top padding */
          /* Width/Height remain 100%/100vh */
      }
  
      .blog-scrollable-content {
          padding: 5px 15px 20px 15px; /* Further reduce side padding */
      }
  
      /* Adjust heading sizes */
      .blog-scrollable-content h1 { font-size: 1.6em; }
      .blog-scrollable-content h2 { font-size: 1.3em; }
  
      /* Adjust back button position/size */
      .blog-back-button {
          top: 12px;
          left: 12px;
          font-size: 1.3em;
      }
  }  
