.header {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    min-height: 3.1em;
    border-bottom: 2px solid #C39BD3;
}

.header a:hover,
.footer a:hover {
    border: none;
}

.footer a,
.header a {
    color: #e4cdba;
}

.header:after {
    content: '';
    clear: both;
    display: block;
}

.logo {
    float: left;
    margin-top: 0.3em;
}

.logo a {
    background-color: #C39BD3;
    color: white;
    padding: 0.2em 0.2em;
    font-size: 1.4em;
}

.logo a:hover {
    color: white;
}

.menu {
    float: right;
    padding: 0;
    margin: 0;
}

.menu li {
    display: inline-block;
    padding: 0.4em 0 0.4em 2em;
}

.menu a {
    font-weight: 600;
}

.main {
    min-height: 18em;
    padding-bottom: 3em;
    border-bottom: 2px solid #C39BD3;
    z-index: 0;
}

.main a {
    border-bottom: 2px solid #D1D1D1;
}

.main p,
.main ul {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.page {
    font-size: 0.95em;
}

.article {
    margin-bottom: 4em;
    font-size: 0.9em;
    line-height: 1.4em;
}

.articleinfo {
    color: #AAA;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.articletitle {
    margin-bottom: 0;
}

.footer {
    padding: 1em 0 2em;
    font-size: .75em;
    color: #e4cdba;
}

.footer .left {
    float: left;
}

.footer .right {
    float: right;
}

* {
    margin: 0;
}

html {
    height: 100%;
    font-family: sans-serif;
    font-size: 1.25em;
}

body {
    margin: 0 auto;
    padding: 3em 3em 1em 3em;
    max-width: 44em;
    line-height: 1.5em;
    color: #e4cdba;
    background: #282e33;
}

#mbg1 {
    position: fixed;
    top: 0;
    right: 0;
    min-height: 100%;
    z-index: -50000;
}

#mbg2 {
    position: fixed;
    bottom: 0;
    left: 0;
    min-height: 100%;
    z-index: -50000;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color .2s, background .2s, border .2s;
}

a:hover {
    border-bottom: 2px solid black;
    color: #2980b9;
}

img {
    max-width: 100%;
}

h1 {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: .5em;
    line-height: 1.25em;
    color: #2980b9;
}

h2 {
    font-size: 1.95em;
    font-weight: 300;
    margin-bottom: .5em;
    line-height: 1.25em;
}

h3 {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: .5em;
    line-height: 1.25em;
}

h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: .5em;
    line-height: 1.25em;
}

blockquote {
    background: none;
    border-left: 3px solid #777;
    color: #777;
    padding: 0 0 0 10px;
    margin-left: 1.2em;
}

hr {
    margin: 2em 0;
    height: 2px;
    background-color: #D1D1D1;
    border: none;
}

pre {
    background-color: #F1F1F1;
    margin-bottom: 0.7em;
    line-height: 1.5em;
}

@media (max-width: 640px) {
    body {
        padding: 1.25em;
    }

    .header {
        padding-bottom: 0;
    }

    .logo {
        float: none;
    }

    .menu {
        float: none;
        margin-top: 2em;
    }

    .menu li {
        display: block;
        padding: 0.2em 0;
        margin: 0.2em;
        border-top: 1px solid #D1D1D1;
    }
}

section {
    display: none;
}

section:target {
    display: block;
}


/* ------- Images Grid ------- */

.grid {
    display: grid;
    grid-gap: 5vmin;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    /* 150px = minimum image size */
    grid-auto-flow: dense;
    padding: 2em 0;
}

.grid a {
    position: relative;
    border: 0;
}

.grid a:hover {
    transform: scale(.975);
}

/* For a square ratio */
.grid a:before {
    content: "";
    display: block;
    padding-top: 100%;
}

.grid a img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dl-button {
    text-decoration: none;
    display: inline-block;
    width: 140px;
    height: 45px;
    line-height: 45px;
    border-radius: 45px;
    margin: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 600;
    color: #524f4e;
    background: white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
}

.dl-button a {
    color: #06202B;
}

.dl-con {
    border: 1px solid;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
    padding: 7px;
    color: #ffffff;
}

.dl-con-copy {
    border: 1px solid;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 7px;
}

.dl-con a {
    color: #e4cdba;
}

.post {
    display: flex;
    flex: 1;
    align-items: center;
    margin: 0 0 2em;
    padding: 5px;
}

.post img {
    margin-right: 4em;
    border: solid 1px;
    border-radius: 100%;
    padding: 0.65em;
    display: block;
    width: 13em;
}

@media screen and (min-width: 980px) {
    .post img {
        align-self: flex-start;
    }
}

img.anivis {
    border-radius: 0;
    border: 0;
}

@media screen and (max-width: 980px) {
    .post {
        flex-direction: column;
        text-align: center;
    }

    .post img {
        width: 12em;
        margin-right: 0;
        margin-top: 2em;
        padding: 0.35em;
    }
}


.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: rgba(76, 175, 80, 0.71);
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* ------- Lightbox ------- */

.lightbox {
    display: none;
}

.lightbox:target {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    align-content: center;
    border: 0;
    z-index: 3;
    backdrop-filter: blur(15px);
}

.lightbox img {
    max-height: 100vh;
    z-index: 4;
}

.lightbox:target:before {
    /* Loading spinner */
    content: "";
    height: 2em;
    width: 2em;
    animation: spin .8s infinite linear;
    border: 1px solid;
    border-right-color: transparent;
    border-radius: 50%;
    display: block;
    position: absolute;
    transform: translateX(-50%);
    opacity: .25;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lightbox:target:after {
    content: "\00D7";
    position: fixed;
    font-size: 2em;
    font-weight: 200;
    line-height: 0;
    top: .75em;
    right: .5em;
    z-index: 4;
}

.centered-div {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}