html, body {
    height: 100%;
}

.summary h1 {
    margin-top: -5px;
    margin-bottom: 0;
}

.summary h1 a {
    text-decoration: none;
}

.summary time {
    margin-top: 15pt;
    color: #666666;
    margin-bottom: 0;
    display: block;
    font-size: 0.8em;
}

article time {
    color: #666666;
    margin-bottom: -0.5rem;
    margin-left: 0.2rem;
    font-size: 0.8em;
    display: block;
}

.date_group_title {
    margin-top: 15pt;
    font-size: 2.5em;
}

a {
    color: #C31C1C;
}

a:hover {
    color: #921515;
}

blockquote {
    border-left: 2px solid #C31C1C;
    padding-left: 10px;
    margin-left: 10px;
}

ul {
    list-style: disc;
    margin-left: 1.1em; 
}

header {
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    height: 78px;
}

main {
    min-height: calc(100vh - 78px - 85px - 25px - 50px);
}

footer {
    margin-top: 25px !important;
    height: 85px;
}

footer > p:nth-child(1) {
    margin-bottom: 0; 
}

.contact-links {
    font-size: 1.5em;
}

.contact-links i {
    margin-right: 0.5em; 
}

.logo, .logo img {
    margin: 0;
    padding: 0;
}

.dark-button {
    margin: 0;
    position: absolute;
    top: 50%;
    right: 0;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #222222;
    padding-right: inherit;
}

.dark-button :hover {
    color: #C31C1C;
}

@media (hover:none), (hover:on-demand) {
    .dark-button :hover{ 
        color: #222222;
    }

    body.dark .dark-button :hover {
        color: #eeeeee;
    }
}

.pagination {
    display: flex;
}

.pagination div {
    flex-grow: 1;
    flex-basis: 0;
}

.pagination .page-numbers {
    text-align: center;
}

.pagination .next-page {
    text-align: right;
}

.pagination .prev-page {
    text-align: left;
}

.no-underline, .no-underline a {
    text-decoration: none;
}

img {
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

/* 404 */

._404 {
    text-align: center;
}

._404 h1 {
    color: #C31C1C;
    font-size: 10em;
    font-weight: 700;
}

/* Single */
.single h1 {
    font-weight: 700;
}


/* Dark mode */

body.dark {
    color: #eeeeee;
    background: #222222;
}

body.dark hr {
    border-top-color: #555555;
}

body.dark code {
    background-color: #343434;
    border-color: #444444; 
}

body.dark .header_background a {
    color: #444;
}

body.dark .dark-button {
    color: #eeeeee;
}