/** Helper fadein **/
/* Keyframes for the fade-in */
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.fade-in {
  opacity:0;
  opacity: 1 \9; /*just in case ie*/
  -webkit-animation:fadeIn ease-in 1;
  -moz-animation:fadeIn ease-in 1;
  animation:fadeIn ease-in 1;

  -webkit-animation-fill-mode:forwards;
  -moz-animation-fill-mode:forwards;
  animation-fill-mode:forwards;

  -webkit-animation-duration:1s;
  -moz-animation-duration:1s;
  animation-duration:1s;
}

.fade-in.one {
  -webkit-animation-delay: 0.1s;
  -moz-animation-delay: 0.1s;
  animation-delay: 0.1s;
}

.fade-in.two {
  -webkit-animation-delay: .3s;
  -moz-animation-delay: .3s;
  animation-delay: .3s;
}

.fade-in.three {
  -webkit-animation-delay: .6s;
  -moz-animation-delay: .6s;
  animation-delay: .6s;
}
.fade-in.four {
  -webkit-animation-delay: .9s;
  -moz-animation-delay: .9s;
  animation-delay: .9s;
}

.fade-in.five {
  -webkit-animation-delay: 1.2s;
  -moz-animation-delay:1.2s;
  animation-delay: 1.2s;
}

.fade-in.six {
  -webkit-animation-delay: 1.5s;
  -moz-animation-delay: 1.5s;
  animation-delay: 1.5s;
}
.fade-in.seven {
  -webkit-animation-delay: 1.8s;
  -moz-animation-delay: 1.8s;
  animation-delay: 1.8s;
}

.fade-in.eight {
  -webkit-animation-delay: 2.1s;
  -moz-animation-delay: 2.1s;
  animation-delay: 2.1s;
}

.fade-in.nine {
  -webkit-animation-delay: 2.4s;
  -moz-animation-delay: 2.4s;
  animation-delay: 2.4s;
}
.fade-in.ten {
  -webkit-animation-delay: 2.7s;
  -moz-animation-delay: 2.7s;
  animation-delay: 2.7s;
}

.fade-in.eleven {
  -webkit-animation-delay: 3s;
  -moz-animation-delay: 3s;
  animation-delay: 3s;
}

.fade-in.twelve {
  -webkit-animation-delay: 3.3s;
  -moz-animation-delay: 3.3s;
  animation-delay: 3.3s;
}

/** Featured Article Styling **/
.featured-article, .page-template-page-featured-article-php {
    width:100%;
    height:100%;
}
.page-template-page-featured-article-php p {
    font-size:16px;
    line-height:1.5;
    color:#000;
}
.page-template-page-featured-article-php blockquote {
    font-size:22px;
    font-weight:bold;
    border-top:2px solid #009933;
    border-bottom:2px solid #009933;
    border-left:0;
    line-height:32px;
    font-style: italic;
    color:#000;
}
.graphene-down-arrow {
    width:60px;
    height:26px;
    background:transparent url('../img/btn/btn-graphene-down-arrow.png') no-repeat top left;
    position:absolute;
    bottom:20px;
    left:0;
    right:0;
    margin:0 auto;
    cursor: pointer;
}

footer.inverse {
    background-color:#000;
    height:70px;
    line-height:70px;
}

.page-template-page-featured-article-php footer p {
    color:#FFF;
    line-height:inherit;
}

header.inverse {
    font-size:16px;
}

header.inverse .navbar {
    background-color:#000;
    font-family: museo, serif;
    height:70px;
    line-height:70px;
    z-index: 1501;
}
header.inverse .navbar > .container .navbar-brand {
    background:url('../img/logo-medium.png') left no-repeat;
    background-size:contain;
}
header.inverse .navbar .navbar-toggle .icon-bar {
    background-color:#FFF;
}
header.inverse .sub-title {
    font-weight:500;
    color:#FFF;
    display:inline-block;
    font-size:inherit;
    float:left;
    line-height:inherit;
}
footer.inverse .social-links {
    float:right;
}
header.inverse .social-links li a {
    color:#676767;
}
header.inverse .navbar-right {
    padding-right:20px;
}

.chapter-links, .social-links {
    float:left;
}
.chapter-links li a {
    color: #676767;
}
.chapter-links li a.active {
    color: #FFF;
}
.layout-list li {
    float:left;
    list-style-type:none;
    margin-right:10px;
}
.layout-list.social-links li {
    margin-right:20px;
}
.layout-list li:last-child {
    margin-right:0px;
}

.chapter-header {
    color:#FFF;
    text-align:center;
    font-family: museo, serif;
}

.chapter-header h4 {
    font-size:18px;
}
.chapter-header p {
    color:#FFF;
    font-size:22px;
    font-weight:700;
}

.chapter {
    min-height:100%;
    background-color :transparent;
    width:100%;
    height:100vh;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.chapter:after {
    content:'';
    display:block;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.6);
}
.chapter1 {
    background-image: url('../img/featured-article/chapter1.jpg');
    height:92vh;
}
.chapter2 {
    background-image: url('../img/featured-article/chapter2.jpg');
}
.chapter3 {
    background-image: url('../img/featured-article/chapter3.jpg');
}
.chapter4 {
    background-image: url('../img/featured-article/chapter4.jpg');
}
.chapter header {
    position:absolute;
    top:50%;
    left:50%;
    -webkit-transform:translate(-50%, -50%);
    -moz-transform:translate(-50%, -50%);
    -o-transform:translate(-50%, -50%);
    -ms-transform:translate(-50%, -50%);
    transform:translate(-50%, -50%);
    color:#FFF;
    text-align:center;
}
.chapter header * {
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 1);
    color:#FFF;
}
.chapter header h4 {
    font-weight: 500;
}
.chapter header p {
    font-size:52px;
    font-weight:700;
    font-family: museo, serif;
    line-height:55px;
}
.article-sub-title {
    font-weight:700;
    font-size:22px;
    font-style:italic;
    text-align:left;
    color:#000;
    margin-bottom:20px;
}
.article-img {
    margin:30px 0;
    width:100%;
}
.section-break-img {
    width:100%;
    height:560px;
    background-size:cover;
}

.page-template-page-featured-article-php .caption {
    border-bottom: 2px solid #009933;
    padding: 20px 0;
    margin-top:10px;
}

.up-down-nav {
    position:fixed;
    right:0;
    top:50%;
    z-index:99;
    width:50px;
    height:100px;
    cursor:pointer;
    -webkit-transform:translateY(-50%);
    -moz-transform:translateY(-50%);
    -o-transform:translateY(-50%);
    transform:translateY(-50%);
}

.up-down-nav .up, .up-down-nav .down {
    width:50px;
    height:50px;
    background: rgba(0,0,0,0.8) url('../img/btn/btn-graphene-down-arrow.png') no-repeat top left;
    background-size:50%;
    background-position:center;
}

.up-down-nav .up {
    -webkit-transform:rotate(180deg);
    -moz-transform:rotate(180deg);
    -o-transform:rotate(180deg);
    transform:rotate(180deg);
}

@media (max-width: 1024px) and (min-width: 768px)  {
    header.inverse .navbar > .container .navbar-brand {
        width:140px;
    }
}
@media (max-width:1024px) {

}
@media (max-width: 767px) {

    .up-down-nav {
        display:none;
    }
    .container {
        padding-left: 30px;
        padding-right: 30px
    }
    .chapter {
        height:70vh;
    }
    .chapter header p {
        font-size:32px;
        line-height:38px;
    }
    .page-template-page-featured-article-php p {
        font-size:14px;
    }
    .page-template-page-featured-article-php blockquote {
        font-size:18px;
        line-height:22px;

    }
    .article-img {
        margin:10px 0;
    }
    .section-break-img {
        height:230px;
    }

    .navbar .navbar-collapse {
        background-color:rgba(0,0,0,1);
    }
    header.inverse .sub-title {
        float:none;
        text-align:left;
        display:block;
        font-size: 22px;
        padding-left: 45px;
        margin-top: 20px;
    }
    header.inverse .navbar-right {

    }
    .chapter-links, .social-links {
        float:none;
    }
    .chapter-links:before {
        content:'Go to chapter';
        color:#FFF;
        font-weight: bold;
        line-height: 12px;
        margin-top:30px;
    }
    header.inverse .social-links li a {
        color:#FFF;
    }
    header.inverse .social-links li {
        line-height:14px;
    }
    .caption {
        border:0;
        margin-top:0;
        padding:0 0 20px 0;
    }
    footer.inverse .social-links {
        display:none;
    }
    .footer-logo {
        display:none;
    }
}
