@keyframes zoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0.1;
    }
}

@-webkit-keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@-moz-keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/** Page Setup **/

* {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: #00F260;
    /* fallback for old browsers */
    background: linear-gradient(-45deg, #0575E6, #E73C7E, #23A6D5, #00F260);
    background-size: 200% 200%;
    -webkit-animation: moveGradient 15s ease infinite;
    -moz-animation: moveGradient 15s ease infinite;
    animation: moveGradient 15s ease infinite;
    transition: background-color 0.4s;
}

body.image-view {
    background: #000000;
    animation: none;
    -webkit-animation: none;
    -moz-animation: nonoe;
}

#main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    visibility: hidden;
    z-index: -1;
}


/** Layout **/

#header {
    height: 0;
}

#content {
    box-sizing: border-box;
    width: 1024px;
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
    clear: both;
    height: 550px;
}

#content.border {
    border: 1px solid black;
}

#content li {
    margin: 10px 10px 10px 30px;
}

#content .page-title {
    font-family: "Major Mono Display", monospace;
    position: absolute;
    top: -35px;
    color: white;
    text-shadow: 0 0 10px black;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#content .page-title.vcenter {
    top: 0;
}

#content .post {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 40px;
    overflow-y: auto;
    height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
    background: white;
    position: relative;
    z-index: 1;
}

#content .post h1,
#content .post h2,
#content .post h3,
#content .post h4,
#content .post h5,
#content .post h6 {
    margin: 20px 0;
    font-family: "Major Mono Display", monospace;
    background-color: #f5dcdc;
    color: black;
    padding: 10px 0 10px 10px;
}

#content .post p {
    margin-bottom: 10px;
}

#content .post p:last-of-type {
    margin-bottom: 30px;
}

#content .post strong {
    font-weight: 600;
}

#content .post.with-tags {
    padding-top: 0 !important;
}

#content .post.left {
    width: 66.666%;
}

#content .right-picture {
    background-image: url('');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100%;
    width: 33.334%;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
    z-index: 0;
    transition: background-color 0.4s, width 0.4s;
}

#content .right-picture.fullsize {
    width: 100%;
    height: 118%;
    background-color: #000000;
    background-size: contain;
    z-index: 1;
}

#content .categories {
    height: 30px;
}

#content .categories .category a {
    padding: 6px 10px;
    font-size: 0.8em;
    margin: 0;
    position: relative;
    top: 2px;
    background: #c2273d;
    color: white;
    text-decoration: none;
    pointer-events: none;
}

#content .links {
    width: 100%;
    box-sizing: border-box;
    background: white;
    overflow: hidden;
    margin-bottom: 30px;
}

#content .links li {
    float: left;
    margin: 0 10px 0 30px;
}

#content .links a {
    display: block;
    color: black;
    font-weight: bold;
}

#content .grid {
    width: 1024px;
    margin: 0 auto;
    height: 100%;
    box-sizing: border-box;
    clear: both;
    overflow: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
}

#content .grid.vcenter {
    height: auto;
    transform: translateY(50%);
}

#content .grid .entry {
    display: block;
    width: 33.3333333333%;
    float: left;
    height: 275px;
    overflow: hidden;
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#content .grid .entry h1,
#content .grid .entry h2,
#content .grid .entry h3,
#content .grid .entry h4,
#content .grid .entry h5,
#content .grid .entry h6,
#content .grid .entry p {
    text-align: center;
}

#content .grid .entry .info {
    margin-top: 110px;
}

#content .grid .entry .title {
    text-transform: uppercase;
    border-bottom: 1px solid white;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 3px 2px 5px rgba(0, 0, 0, 0.5);
}

#content .grid .entry .tags {
    padding-top: 5px;
    font-size: 0.8em;
}

#content .grid .entry .image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.4);
    opacity: 0.1;
    animation-name: zoomOut;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

#content .grid .entry .image:hover {
    transform: scale(1);
    opacity: 1;
}

#content .grid .entry:last-of-type {
    margin-right: 0 !important;
}

#content .pagination {
    font-size: 3.3em;
    text-decoration: none;
    color: black;
    font-weight: 800;
    position: absolute;
    text-shadow: 2px 2px 8px black;
    transition: transform 0.5s;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
}

#content .pagination.next {
    position: absolute;
    right: -60px;
    top: 43.5%;
}

#content .pagination.prev {
    position: absolute;
    left: -60px;
    top: 43.5%;
}

#content .pagination:hover {
    transform: scale(0.85);
}

#content .pagination.image-viewer {
    color: white;
}

#menu {
    width: 1024px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

#menu .navigation {
    list-style: none;
    display: table;
    table-layout: fixed;
    width: 100%;
    font-family: 'Major Mono Display', monospace;
}

#menu .nav-item {
    font-weight: 600;
    background: transparent;
    transition: transform 0.5s, background 0.3s;
    display: table-cell;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

#menu .nav-item:first-of-type {
    border-left: 0;
}

#menu .nav-item:last-of-type {
    border-right: 0;
}

#menu .nav-item a {
    box-sizing: border-box;
    display: inline-block;
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    height: 100%;
    font-size: 2.2em;
    line-height: 75px;
    height: 80px;
    transition: color 0.3s;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
}

#menu .nav-item a:hover {
    background: #ff083a;
    color: white;
}

#menu .nav-item.selected a {
    background: #c2273d !important;
    color: white !important;
}

#menu .nav-item:last-of-type {
    margin-right: 0px !important;
}

#footer {
    width: 100%;
    clear: both;
    text-align: center;
    padding: 14px;
    box-sizing: border-box;
}

.mobile-pagination {
    padding: 10px;
    background: white;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    color: black;
    text-transform: uppercase;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.65);
    display: none;
}

@media screen and (max-width: 530px),
screen and (max-height: 415px) {
    body {
        -webkit-animation: none;
        -moz-animation: none;
        animation: none;
    }
    #menu .navigation .nav-item a {
        font-size: 1em !important;
        letter-spacing: 0px;
        height: auto !important;
        line-height: 50px !important;
    }
    #footer {
        margin-bottom: 64px;
    }
    #content {
        width: 100% !important;
    }
    #content .grid {
        width: 100% !important;
    }
    #content .grid.vcenter {
        transform: none;
    }
    #content .post.left {
        padding: 0 14px !important;
    }
    #content .post p:last-of-type {
        margin-bottom: 20px;
    }
    #content .right-picture {
        box-shadow: none;
    }
    #content .links a {
        padding: 0 5px 0 0;
    }
    .pagination {
        display: none;
    }
    .mobile-pagination {
        display: block;
    }
}

@media screen and (max-width: 360px) {
    #menu .navigation .nav-item a {
        font-size: 0.8em !important;
    }
}

@media screen and (max-height: 650px) {
    #content {
        height: 450px;
    }
    #menu .nav-item a {
        font-size: 1.6em;
    }
    .entry {
        height: 225px !important;
    }
    .entry .info {
        margin-top: 85px !important;
    }
}

@media screen and (max-width: 1023px) {
    #main {
        position: relative !important;
        transform: none !important;
        top: 0;
        left: 0;
        height: 100%;
    }
    #footer,
    #menu,
    .post,
    .entry,
    .links {
        width: 100% !important;
    }
    .grid {
        width: 80% !important;
    }
    #content {
        width: 80%;
    }
    .grid.vcenter {
        transform: none !important;
    }
    .entry {
        height: 200px !important;
    }
    .entry .info {
        margin-top: 60px !important;
    }
    .entry:hover {
        transform: none !important;
    }
    #content {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        border: none !important;
        height: auto !important;
        padding-bottom: 60px;
    }
    #content .page-title {
        font-family: "Major Mono Display", monospace;
        position: relative;
        width: 100%;
        top: 0;
        padding: 15px;
        text-transform: uppercase;
    }
    #content .post {
        padding: 10px 20px 20px 20px !important;
        height: auto !important;
        overflow: hidden !important;
    }
    #content .post.with-tags {
        height: auto !important;
    }
    #content .pagination {
        position: fixed !important;
    }
    #content .pagination.next {
        right: 15px !important;
        top: 39.5% !important;
    }
    #content .pagination.prev {
        left: 15px !important;
        top: 39.5% !important;
    }
    #content.fullheight {
        position: static !important;
    }
    .categories {
        left: 20px !important;
    }
    .right-picture {
        height: 200px !important;
        width: 100% !important;
        position: static !important;
    }
    .right-picture.fullsize {
        height: 100% !important;
        position: absolute !important;
    }
    #menu .navigation {
        position: fixed;
        bottom: 0;
        border-top: 3px solid;
    }
    #menu .navigation .nav-item {
        width: 100% !important;
        height: auto !important;
        border: 0 !important;
    }
    #menu .navigation .nav-item a {
        box-shadow: none;
        border: 0 !important;
        font-size: 1.75em;
    }
    #footer {
        margin-bottom: 80px;
    }
}