* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Crimson', serif;
    background-image: url(../img/background.jpg);
    background-size: 100%;
    color: black;
    font-size: 1.2em;
}
a {
    background-color: transparent;
    color: black;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    transition: all 0.1s;
}
a:focus,
a:hover {
    border-bottom: 2px solid #ccc;
    text-decoration: none;
    outline: none;
}
p {
    margin: 0 5px 12px;
}
h1,
h2,
h3,
h4 {
    font-family: inherit;
    line-height: 1.4;
    color: inherit;
    margin-top: 24px;
    margin-bottom: 10px;
}
h1 {
    font-size: 36px;
    font-weight: 700;
}
h2 {
    font-size: 28px;
    font-weight: 700;
}
h3 {
    font-size: 24px;
    font-weight: 500;
}
h4 {
    font-size: 18px;
    font-weight: 500;
}
blockquote {
    box-sizing: border-box;
    margin: 1.75em 0;
    padding: 0 0 0 1.75em;
    border-left: #4A4A4A .4em solid
}
blockquote p {
    margin: .8em 0;
    font-style: italic
}
blockquote small {
    margin: .8em 0 .8em 1.5em;
    font-size: .9em;
    color: #CCC
}
hr {
    height: 1px;
    background: #E2E9ED;
    border: none;
    width: 50%;
    margin: 40px auto;
}

/*
===============================================================================
  Header & Navigation
===============================================================================
*/

.button.faint {
    opacity: 0.5;
    background: grey;
}

header {
    margin: auto;
}

@media screen and (max-width:600px) {
    header.home {
        width: 95%;
    }
}

header .install {
    text-align: center;
    padding-left: 0;
}


header .install li {
    display: inline-block;
}

header #nav {
    text-align: center;
    margin: 0;
    padding: 10px 0 0;
}
header #nav li {
    display: inline-block;
}
header #nav li a.nav {
    display: block;
    color: black;
    font-size: 18px;
    padding: 10px 25px;
    margin: 0px 8px;
    text-decoration: none;
    transition: all 0.1s;
    border: 2px solid #aaa;
    border-radius: 5px;
}
header #nav li a.nav-current {
    background-color: #fff;
    border-color: #ccc;
}

header #nav li a.nav:not(.nav-current):hover {
    border: 2px solid #666;
    border-radius: 5px;
}

header .banner {
    display: block;
    width: 14cm;
    max-width: 100%;
    margin: 2cm auto;
}

header .banner .summary-card-wrapper {
    position: relative;
    overflow: hidden;
}
header .banner .summary-card {
    width: 100%;
    height: auto;
}
header .banner .image-alt-text {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    max-height: 90%;
    overflow: hidden;
}
header .banner h1 {
    color: black;
    font-size: 2.0em;
}

header .banner .blog-description {
    font-size: 1.3em;
    line-height: 1.5;
    margin: 0 auto;
    width: 75%;
}
header .banner .blog-description ul {
    text-align: left;
}

.pagination,
header .banner {
    text-align: center
}

/*
===============================================================================
  Subscribe card
===============================================================================
*/

.index-wrapper section#timeline article .inner.subscribe-card {
    border: dashed 4px lightgrey;
    box-sizing: border-box;
    background-clip: padding-box;
    background-color: rgba(255,255,255,0.3); 
    box-shadow: none;
}
.index-wrapper section#timeline article .inner.subscribe-card:hover {
    box-shadow: none;
}
.index-wrapper section#timeline article.subscribe-card span.date {
    color: gray;
    background-color: #EEE;
}
.index-wrapper section#timeline article .inner.subscribe-card p {
    font-size: 20px;
    margin: 5px 10px 0 10px;
    padding: 0;
}
.inner.subscribe-card .subscribe-card-form {
    margin: 10px;
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    justify-content: center;
}
.inner.subscribe-card .form-group {
    flex-grow: 1;
    min-width: 150px;
    max-width: 300px;
    display: flex;
}
.inner.subscribe-card .form-group .subscribe-card-input {
    flex-grow: 1;
    height: 2em;
    box-sizing: border-box;
    padding-left: 10px;
}
.inner.subscribe-card .subscribe-card-button {
    flex-grow: 0;
    min-width: 100px;
    height: 2em;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid lightgrey;
    border-radius: 5px;
    outline: none;
}

/*
===============================================================================
  Content
===============================================================================
*/

.post-wrapper {
    margin: 60px auto 0;
    background: #fff;
    padding: 50px;
    max-width: 680px;
    box-sizing: content-box;
    line-height: 1.75em;
    overflow: hidden;
    margin-bottom: 30px;
}
.index-wrapper {
    margin-top: 60px;
    line-height: 1.75em
}
a.inner {
    display: block;
}
.index-wrapper section#timeline article .inner,
.post-wrapper {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24)
}
.index-wrapper section#timeline article .inner,
.pagination {
    overflow: hidden;
    transition: all .3s cubic-bezier(.25, .8, .25, 1)
}
.index-wrapper section#timeline {
    width: 80%;
    margin: 20px auto;
    position: relative;
}
.index-wrapper section#timeline:before {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    margin: 0 0 0 -1px;
    width: 2px;
    height: 102%;
    background: #3A4145;
}
.index-wrapper section#timeline article {
    width: 100%;
    margin: 0 0 20px;
    position: relative;
}
.index-wrapper section#timeline article:after {
    content: '';
    display: block;
    clear: both
}
.index-wrapper section#timeline article .inner {
    width: 44%;
    float: left;
    margin: 5px 0 0;
    padding: 10px 5px 15px 5px;
    background: #fff
}
.index-wrapper section#timeline article a.inner:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22)
}
.index-wrapper section#timeline article span.date,
.pagination {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24)
}
.index-wrapper section#timeline article span.date {
    box-sizing: content-box;
    display: block;
    width: 60px;
    height: 50px;
    padding: 5px 0;
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0 0 0 -32px;
    border-radius: 100%;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #3A4145;
    border: 2px solid transparent
}
.index-wrapper section#timeline article span.date span {
    display: block;
    text-align: center;
    line-height: 1.3em
}
.index-wrapper section#timeline article span.date span.day {
    font-size: 12px
}
.index-wrapper section#timeline article span.date span.month {
    font-size: 18px
}
.index-wrapper section#timeline article span.date span.year {
    font-size: 12px
}


.index-wrapper section#timeline article .inner h2 {
    padding: 15px 20px 5px;
    margin: 0;
    font-size: 1.2em;
    position: relative
}
.index-wrapper section#timeline article .inner h2:after {
    content: '';
    position: absolute;
    top: 20px;
    right: -5px;
    width: 10px;
    height: 10px;
    -webkit-transform: rotate(-45deg)
}
.index-wrapper section#timeline article .inner img {
    display: block;
    max-width: 90%;
    max-height: 240px;
    height: auto;
    margin: auto;
}
.index-wrapper section#timeline article .inner p {
    padding: 5px 20px 15px;
    margin: 0;
    font-size: 1em;
    color: #656565;
    border-radius: 0 0 2px 2px
}
.index-wrapper section#timeline article a.inner {
    border: none;
}
.index-wrapper section#timeline article .inner .post-date,
.index-wrapper section#timeline article .inner h1,
.index-wrapper section#timeline article .inner h3,
.index-wrapper section#timeline article .inner h4,
.index-wrapper section#timeline article .inner h5,
.index-wrapper section#timeline article .inner h6 {
    padding-left: 20px;
    margin: 0
}

.index-wrapper section#timeline article .inner.post-excerpt p.excerpt::after {
    content: '… read more';
    color: #999;
    font-style: italic;
}
.index-wrapper section#timeline article .inner.post-excerpt p.description::after {
    content: 'read more';
    color: #999;
    font-style: italic;
    margin-left: 1em;
}

.index-wrapper section#timeline article .inner.micropost {
    border-radius: 0;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, .25);
}


.index-wrapper section#timeline article:nth-child(2n+1) .inner {
    float: right
}
.index-wrapper section#timeline article:nth-child(2n+1) .inner h2:after {
    left: -5px
}
.post-wrapper .cover-img {
    width: 110%;
    margin: -30px 0 20px -30px
}
.post-wrapper img:not(.cover-img) {
    width: 100%;
    margin: 10px 0;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, .25);
}
.post-date {
    color: #9a9a9a;
    margin-bottom: 1.6em
}

/*
===============================================================================
  Pagination
===============================================================================
*/

.pagination {
    max-width: 150px;
    margin: 100px auto;
    border-radius: 5px;
}
.pagination #next {
    color: #3A4145;
    font-size: 1em;
    padding: 15px;
}
#infscr-loading {
    width: 60px;
    height: 50px;
    padding: 5px 0;
    margin: 100px auto;
    text-align: center;
    border-radius: 100%;
    background: #fff;
    z-index: 1100;
    text-transform: uppercase;
    color: #3A4145;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
}
#infscr-loading div {
    line-height: 3.1em;
}
.box {
    background: #F2F2F2;
    width: 70%;
    text-align: center;
    margin: 80px auto 0 auto;
    border: #E2E9ED solid 1px;
}
.author {
    position: relative;
    margin: 0 auto!important;
    width: 100px!important;
    height: auto;
    border-radius: 100%;
    top: -50px;
}
.more-posts {
    position: relative;
    top: -25px;
}
.more-posts p {
    margin: 10px;
}

/*
===============================================================================
  Make it Responsive
===============================================================================
*/

@media screen and (max-width:1000px) {
    .index-wrapper section#timeline article:nth-child(n) .inner {
        float: right
    }
    .index-wrapper section#timeline article span.date,
    .index-wrapper section#timeline:before {
        left: 0
    }
    .index-wrapper section#timeline article .inner {
        width: 90%
    }
    .post-wrapper .cover-img,
    .post-wrapper img {
        width: 100%
    }
}
@media screen and (max-width:600px) {
    .index-wrapper section#timeline article:nth-child(n) .inner {
        float: right
    }
    .index-wrapper section#timeline {
        width: 95%;
    }
    .index-wrapper section#timeline article span.date {
        position: static;
        width: 150px;
        height: auto;
        text-align: center;
        padding: 5px 0 10px 0;
        margin: 5px auto -10px auto;
        border-radius: 100% 100% 0 0;
        border: 2px solid transparent;
        line-height: 1em;
    }
    .index-wrapper section#timeline article span.date span.day,
    .index-wrapper section#timeline article span.date span.month,
    .index-wrapper section#timeline article span.date span.year {
        display: inline;
        margin: 1px;
        font-size: 14px;
    }
    .index-wrapper section#timeline article.subscribe-card span.date {
        display: none;
    }
    .index-wrapper section#timeline:before {
        left: 0;
        display: none;
    }
    .index-wrapper section#timeline article .inner,
    .post-wrapper section#timeline article .inner {
        width: 100%
    }
    .post-wrapper .cover-img,
    .post-wrapper img {
        width: 100%
    }
    header .banner h1 {
        font-size: 1.0em
    }
    header .banner .blog-description {
        font-size: 1em;
        width: 100%;
    }
    .social .min-date {
        display: inline-block
    }
    .social .tag {
        display: none
    }
    .box {
        width: 90%;
    }
}
@media screen and (max-width:350px) {
  header .banner .image-alt-text {
      z-index: unset;
      position: unset;
      top: unset;
      left: unset;
      max-height: unset;
      overflow: unset;
  }
}
