/* Main CSS for Optical Aberration */

html {
    box-sizing: content-box;
}

body {
    background-color: #111;
}

body,
button,
input,
select,
textarea,
p {
  color: #ccc;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: 300;
}

pre {
    display: block;
    padding: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: min(1.5%, 16px);
    margin-right: min(1.5%, 16px);
    background-color: #333;

    border-width: 2px 1px 1px 2px;
    border-style: solid;
    border-left-color: #444;
    border-top-color: #444;
    border-right-color: #888;
    border-bottom-color: #888;

    overflow: scroll;
}
code {
    color: #ddd;
    font-family: "Courier New", monospace;
    font-weight: 300;
    font-size: 90%;
    padding-left: 1px;
    padding-right: 1px;

    background-color: #333;
}

/* content size and centering */
.content, .menu, .header, .footer {
    padding: 8px 16px 8px 16px;
    width: 900px;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
}

.content p {
    line-height: 1.4
}

/* Title */
.site-title {
    height: 100px;
}
.site-title-image {
    display: inline-block;
    margin-right: 8px;
}
.site-title-text {
    display: inline-block;
    vertical-align: top;
}

.header a {
    text-decoration: none;
    color: #ccc;
}

.header a:hover {
    text-decoration: none;
    color: #888;
}


/* Footer */
.footer {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #888;
    margin-top: 32px;
    padding-bottom: 32px;
}

.footer-icon {
    height: 20px;
    width: 20px;
    padding-right: 8px;
    fill: #ccc;
}
.footer-icon:hover {
    fill: #888
}

.footer-icons {
    float: left;
}

.footer-copyright {
    float: right;
}

.footer a {
    text-decoration: none;
    color: #ccc;
}

.footer a:hover {
    text-decoration: none;
    color: #888;
}

/* image links footer */
.frontpage-container {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    max-width: 600px;
    width: 90%;
    padding: 0px;
    border-width: 0px;
}

.frontpage-container td,
.frontpage-container tbody,
.frontpage-container tr {
    padding: 0px;
    border-width: 0px;
}

.frontpage-container img {
    display: inline-block;
    max-width: 100%;
}

/* code highlighting */
.swift-keyword { color: hotpink; }
.swift-string { color: orange; }
.swift-type { color: cyan; }
.swift-call { color: lightblue; }
.swift-number { color: yellow; }
.swift-comment { color: grey; }
.swift-property { color: cyan; }
.swift-dotAccess { color: white; }
.swift-preprocessing { color: lightcoral; }

/* content */
.content a {
    text-decoration: none;
    color: #888;
}

.content a:hover {
    text-decoration: underline;
    color: #888;
}

.content a:active, a:focus {
    box-shadow: none;
    outline: none;
}

.content .brief_header a {
    text-decoration: none;
    color: #ccc;
}

.content .brief_header a:hover {
    text-decoration: none;
    color: #888;
}

.centre img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.article-icon img {
    float: left;
    max-width: 128px;
    padding-right: 16px;
    padding-bottom: 8px;
}

.article-update {
    display: inline-block;
    margin-left: min(1%, 16px);
    margin-right: min(1%, 16px);
    padding: 12px;
    background-color: #222;

    font-size: 90%;
    font-weight: 400;
    color: #aaa;
}

/* tags */
.post_tags {
    padding-top: 8px;
}
.post_tag {
    padding-right: 4px;
    font-size: 80%;
}

/* next previous post */
.prevNextPost {
    padding: 16px 0px;
    font-weight: 600;
    overflow: auto;
}
.prevNextPost a {
    text-decoration: none;
}
.prevPost {
    float: left;
    font-size: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nextPrevPostSeparator {
    float: left;
    width: 5%;
    height: 20px;
}
.nextPost {
    float: right;
    font-size: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}
.prevPost::before {
    content: "\2190\00a0";
    white-space: pre-wrap;
}
.nextPost::after {
    content: " \2192";
}

