/* ************************************************************************** *\
                                   FONTS
\* ************************************************************************** */

@font-face {
  font-family:"nunito-sans";
  src: url("/fonts/nunito-sans.woff2") format("woff2");
  font-display:auto;
  font-style:normal;
  font-weight:200;
  font-stretch:normal;
}

/* ************************************************************************** *\
                                GLOBAL STYLES
\* ************************************************************************** */

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

body
{
  font-family: nunito-sans, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.4em;
  font-weight: 300;
  color: #333;
}

a
{
  color: #448FAC;
  color: #ff0099;
}

article a
{
  color: #333333;
  text-decoration-color: #ff0099 !important;
  text-decoration: underline;
  transition: all 0.5s ease-out;
}

article a:hover
{
  color: white;
  background-color: #ff0099;
}

article .tags a:hover
{
  background-color: #08d4f5;
}

.homepage article a
{
  text-decoration: none;
}

.homepage article a:hover
{
  color: #333333;
  text-decoration: underline;
}

.navbar-collapse, header, .content, footer
{
  max-width: 1000px;
  margin: auto;
}

header
{
  margin: 8em auto 4em;
  text-align: center;
  color: #ffffff;
}

header h1
{
  font-size: 3.5em;
  line-height: 1em;
  font-family: Raleway,sans-serif;
  font-weight: 200;
}

header p
{
  font-size: 1.2em;
}

.content
{
  max-width: 1000px;
  margin: auto;
  background-color: #ffffff;
  padding: 2em 3em;
}

footer
{
  text-align: center;
  color: #555555;
  padding: 4em;
}

section.news
{
  margin-top: 400px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6
{
  /*font-family: Raleway;*/
  font-size: 26px;
}

section.homepage article h1
{
  font-size: 26px;
}

article img.cover
{
  object-fit: cover;
  height: 400px;
  width: 100%;
}

nav .logo
{
  float: left;
  height: 56px;
  width: 100%;
  position: fixed;
  left: 0;
}

nav .logo a
{
  display: block;
  height: 100%;
  width: 240px;
  margin: auto;
}

.admonition
{
  padding: 10px 20px 4px;
  margin: 20px 0px;
}

.admonition-title
{
  font-weight: bold;
  font-size: 1.1em;
}

.tip
{
  background-color: #eaf6ff;
  color: #70a6d4;
  border-left: 5px solid #70a6d4;
}

.important
{
  background-color: #FFFFEA;
  color: #D4B770;
  border-left: 5px solid #D4B770;
}

.danger,
.caution
{
  background-color: #ffd7d7;
  color: #d94e4e;
  border-left: 5px solid #d94e4e;
}

.note
{
  background-color: #eef0ff;
  color: #7079c9;
  border-left: 5px solid #7079c9;
}

.warning
{
  background-color: #fff2e0;
  color: #d98e36;
  border-left: 5px solid #d98e36;
}

.nbanner {
    background: #e8eff3;
    bottom: 0px;
    position: fixed;
    padding: 8px 12px;
    border-top: #828282 1px solid;
    display: none;
}

.nbanner a {
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 6px;
}

/* ************************************************************************** *\
                                  NAVBAR
\* ************************************************************************** */

.navbar-ninja
{
  transition: all 0.5s;
}

/*.navbar-collapse.in .navbar-collapse
{
  display: block;
  transition: all 0.5s;
}*/

.navbar-ninja .nav>li>a
{
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.10em;
  transition: all .5s;
  border-bottom: 1px solid rgba(255, 255, 255, .0);
  height: 36px;

}

.nav>li>a
{
  padding: 10px 3px;
  margin: 10px 15px;
}

.nav>li>a:hover,
.nav>li>a:focus
{
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

.navbar-ninja
{
  background-color: #333333;
}

.navbar-ninja .fa {
  font-size: 1.4em;
}

nav .color-bar
{
  height: 4px;
  width: 100%;
  float: left;
  position: relative;
  top: 1px;
}

nav .bar1
{
  /*background-color: #93F196;*/
  background-color: #ff0099;
}

nav .bar2
{
  background-color: #93B0F1;
}

nav .bar3
{
  background-color: #F7986A;
}

nav .bar4
{
  background-color: #93E4F1;
}

nav .bar5
{
  background-color: #EDF756;
}

nav .bar2, nav .bar3, nav .bar4, nav .bar5
{
  display: none;
}

.navbar-nav.navbar-right:last-child
{
    margin-right: 0;
}

/* ************************************************************************** *\
                                     LOGO
\* ************************************************************************** */

.glitch {
  color: white;
  font-size: 2.5em;
  font-family: futura, helvetica, sans-serif;
  position: relative;
  width: 160px;
  margin: 0 auto;
}

@keyframes noise-anim {
  0% {
    clip: rect(39px, 9999px, 5px, 0);
  }
  5% {
    clip: rect(41px, 9999px, 32px, 0);
  }
  10% {
    clip: rect(62px, 9999px, 55px, 0);
  }
  15% {
    clip: rect(65px, 9999px, 2px, 0);
  }
  20% {
    clip: rect(47px, 9999px, 98px, 0);
  }
  25% {
    clip: rect(64px, 9999px, 57px, 0);
  }
  30% {
    clip: rect(77px, 9999px, 60px, 0);
  }
  35% {
    clip: rect(44px, 9999px, 1px, 0);
  }
  40% {
    clip: rect(11px, 9999px, 22px, 0);
  }
  45% {
    clip: rect(22px, 9999px, 19px, 0);
  }
  50% {
    clip: rect(66px, 9999px, 94px, 0);
  }
  55% {
    clip: rect(87px, 9999px, 8px, 0);
  }
  60% {
    clip: rect(6px, 9999px, 75px, 0);
  }
  65% {
    clip: rect(92px, 9999px, 25px, 0);
  }
  70% {
    clip: rect(79px, 9999px, 64px, 0);
  }
  75% {
    clip: rect(74px, 9999px, 40px, 0);
  }
  80% {
    clip: rect(98px, 9999px, 29px, 0);
  }
  85% {
    clip: rect(47px, 9999px, 25px, 0);
  }
  90% {
    clip: rect(43px, 9999px, 74px, 0);
  }
  95% {
    clip: rect(94px, 9999px, 62px, 0);
  }
  100% {
    clip: rect(25px, 9999px, 89px, 0);
  }
}
.glitch:after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -1px 0 red;
  top: 0;
  color: white;
  background-color: #333333;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim 15s infinite linear alternate-reverse;
}

@keyframes noise-anim-2 {
  0% {
    clip: rect(47px, 9999px, 9px, 0);
  }
  5% {
    clip: rect(42px, 9999px, 19px, 0);
  }
  10% {
    clip: rect(53px, 9999px, 61px, 0);
  }
  15% {
    clip: rect(65px, 9999px, 71px, 0);
  }
  20% {
    clip: rect(1px, 9999px, 14px, 0);
  }
  25% {
    clip: rect(52px, 9999px, 16px, 0);
  }
  30% {
    clip: rect(5px, 9999px, 67px, 0);
  }
  35% {
    clip: rect(22px, 9999px, 11px, 0);
  }
  40% {
    clip: rect(52px, 9999px, 73px, 0);
  }
  45% {
    clip: rect(28px, 9999px, 60px, 0);
  }
  50% {
    clip: rect(66px, 9999px, 33px, 0);
  }
  55% {
    clip: rect(65px, 9999px, 34px, 0);
  }
  60% {
    clip: rect(80px, 9999px, 6px, 0);
  }
  65% {
    clip: rect(65px, 9999px, 63px, 0);
  }
  70% {
    clip: rect(60px, 9999px, 23px, 0);
  }
  75% {
    clip: rect(16px, 9999px, 43px, 0);
  }
  80% {
    clip: rect(43px, 9999px, 4px, 0);
  }
  85% {
    clip: rect(18px, 9999px, 58px, 0);
  }
  90% {
    clip: rect(98px, 9999px, 59px, 0);
  }
  95% {
    clip: rect(77px, 9999px, 49px, 0);
  }
  100% {
    clip: rect(74px, 9999px, 3px, 0);
  }
}
.glitch:before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: 1px 0 blue;
  top: 0;
  color: white;
  background-color: #333333;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim-2 13s infinite linear alternate-reverse;
}

.glitch span {
  color: #ff0099;
}

.logo a
{
  text-decoration: none;
}

/* ************************************************************************** *\
                                  HOMEPAGE
\* ************************************************************************** */

article h1
{
  font-weight: 200;
  font-size: 3.5em;
}

section.homepage
{
  padding: 0;
  margin: 6em -3em 0;
}

section.homepage .col-md-6
{
  /*min-height: 40em;*/
}

section.homepage article
{
  margin: 1em;
}

section.homepage article .glyphicon-bookmark
{
  position: absolute;
  top: 1px;
  left: 1px;
  font-size: 2em;
  color: #CE3A3A;
}

section.homepage article img
{
  width: 100%;
}

article .tags
{
  min-height: 56px;
}

.post-meta .date
{
  display: inline;
  color: #989898;
}

.post-meta .date:after
{
  content: " - ";
}

.post-meta .author
{
  display: inline;
  color: #CECECE;
}

.page-nav
{
  clear: left;
  height: 5em;
  margin-top: 4em;
}

.page-nav-btn
{
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.4rem;
  color: #66CFE0;
}

.page-nav-btn:hover
{
  color: #FB6161;
}

#page-next
{
  float: right;
}

#page-prev
{
  float: left;
}

/* ************************************************************************** *\
                                  SEARCH
\* ************************************************************************** */

.search
{
  margin-top: 3em;
}

/* ************************************************************************** *\
                                  ARTICLE
\* ************************************************************************** */

.splash img
{
  object-fit: cover;
  height: 400px;
  width: 100%;
  position: absolute;
  left: 0;
}

article .post-content
{
  margin-top: 1.5em;
  font-size: 1.4em;
  line-height: 1.5em;
}

article kbd
{
  border: 1px solid #AFAFAF;
  border-radius: 4px;
  padding: 0.3em;
  background-color: #F9F9F9;
}

article code
{
  /*word-break: break-all;*/
  white-space: pre-wrap;
  color: rgb(80, 80, 80);
  background-color: rgb(240, 240, 240);
}

article pre
{
  border-radius: 1em;
  padding: 1em;
  background-color: #2a2c2d;
  font-size: 1.15em;
}

article pre code
{
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: monospace;
  font-size: 1em;
  border: none;
  background-color: transparent;
  color: #70B395;
}

article mark
{
  color: #B3882D;
  background-color: transparent;
  font-weight: 400;
}

article img
{
  max-width: 100%;
  width: 640px;
}

#disqus_thread
{
  margin-top: 6em;
}

section.news:after
{
  clear: both;
  content: " ";
  display: block;
}

article .social
{
  max-width: 2400px;
  float: right;
  padding-top: 1em;
}

article .social .button
{
  text-decoration: none;
  width: 36px;
  height: 42px;
  padding-right: 0.15em;
  padding-top: 0.2em;
  font-size: 1.5em;
  color: #333333;
}

article .social .button:hover
{
  background-color: transparent;
}

article .social .facebook
{
  background-color: #2D5F9A;
}

article .social .twitter
{
  background-color: #00C3F3;
}

article .social .email
{
  background-color: #FDCD00;
}

article .social .button:hover
{
  opacity: 0.6;
}

article .tags a
{
  display: inline-block;
  padding: 1px 8px;
  background-color: #ff0099;
  color: white;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0% 100%);
}

.about-author, .ask-author {
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 2px 4px 6px #eeeeee;
  padding: 1.8em;
  margin: 2em 0;
  /*font-size: 0.9em;*/
  position: relative;
}

.about-author:before, .ask-author:before {
  content: "About the Author";
  color: #08d4f5;
  font-size: 1.3em;
}

.ask-author:before {
  content: "Questions?";
  font-size: 2em;
}

.about-author:after {
  display: block;
  content: "";
  clear: both;
}

.about-author img {
  height: 92px;
  width: 92px;
  float: left;
  margin-right: 2em;
}

.ask-author div {
  position:relative;
  z-index: 10;
}

.ask-author .bg {
  z-index: 1;
  float: left;
  overflow: hidden;
  max-height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 10%;
  background-image: url(/images/social_bg.png);
  background-repeat: no-repeat;
  background-size: 30%;
  background-position-x: right;
  background-position-y: -40px;
  opacity: .1;
}

/* ************************************************************************** *\
                                MOBILE STYLES
\* ************************************************************************** */

@media screen and (max-width: 768px)
{
  .navbar-header .btn
  {
    color: #ff0099;
    padding: 4px;
  }

  .navbar-ninja .nav>li>a
  {
    color: #89898A;
  }

  .navbar-ninja .nav>li>a:hover
  {
    border-bottom: 1px solid rgba(200, 200, 200, 1);
  }

  section.homepage
  {
    margin: 1em 0 0 0;
  }

  section.homepage .col-md-6
  {
    padding-bottom: 1em;
    min-height: 0;
  }

  section.homepage article
  {
    margin: 2em 0.5em;
  }

  .content
  {
    margin: 0;
    padding: 2em 0.5em;
  }

  article
  {
    padding-top: 0.01em;
  }
}
