* {
    max-width: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    word-wrap: break-word;
    font-family: var(--PageFont);
    color: var(--TitleColor);
    background-color: var(--BackgroundColor);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
a {
    color: var(--AccentColor);
    text-decoration: none;
}
blockquote {
    margin: 1em 0;
    border-left: 0.5ch solid rgba(var(--RGBTitleColor),0.2);
    padding-left: 1em;
}
figure {
    margin: 0;
}
p:empty {
    display: none;
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

body:not(.flag--stickynavigation) .iframe-controls--phone-mobile {
    border-bottom: 1px solid rgba(var(--RGBTitleColor),0.2);
}
#iframe-padding {
    height: 54px;
    width: 100%;
    background-color: inherit;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 98;
    display: none;
}
body.flag--showheaderimage.flag--stretchheaderimage #iframe-padding {
    position: fixed;
}
body:not(.flag--stickynavigation) #iframe-padding {
	border-bottom: 1px solid rgba(var(--RGBTitleColor),0.2);
}
body.tmblr-iframe-overlay #iframe-padding {
    display: block;
}
#title {
    font-family: var(--TitleFont);
    font-weight: var(--TitleFontWeight);
    display: inline;
    line-height: 54px;
    margin: 0 1ch;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: var(--BackgroundColor);
}
#header {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: var(--HeaderHeight);
    z-index: 99;
}
body.flag--stretchheaderimage #header {
    width: 100%;
}
body.flag--stretchheaderimage #header img {
    flex-grow: 1;
}
#headertitle {
    font-family: var(--TitleFont);
    font-weight: var(--TitleFontWeight);
}
body.tmblr-iframe-overlay:not(.flag--showheaderimage) #headertitle {
    display: none;
}

body > nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    color: var(--AccentColor);
    background-color: var(--BackgroundColor);
}
body.flag--stickynavigation > nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}
body.flag--stickynavigation[class*="tmblr-iframe"] > nav {
    top: 54px;
}
body > nav a {
    flex-grow: 1;
    padding: 0.5em;
    border-bottom: 1px solid rgba(var(--RGBTitleColor),0.2);
    font-weight: bold;
    text-decoration: none;
}
body > nav a:not(:hover):not(:active):not(.current-page) {
    color: var(--BackgroundColor);
    background-color: var(--AccentColor);
}
body > nav a.external-page {
    display: none;
}

#container {
    flex-grow: 1;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}
main, aside {
    background-color: var(--BackgroundColor);
}
main {
    flex-grow: 2;
    flex-basis: 70%;
    border-left: 1px solid rgba(var(--RGBTitleColor), 0.2);
    border-right: 1px solid rgba(var(--RGBTitleColor), 0.2);
}
aside {
    flex-grow: 1;
    flex-basis: 20%;
    min-width: 275px;
    color: var(--TitleColor);
    border-right: 1px solid rgba(var(--RGBTitleColor), 0.2);
    padding: 20px;
}
aside a { color: var(--AccentColor); }

main > h2,
main > h3 {
    padding: 0 20px;
}

main article {
    padding: 30px;
}
main article + article,
main article:first-of-type:not(:first-child) {
    border-top: 1ch solid rgba(var(--RGBTitleColor),0.2);
}
main article:last-of-type {
    border-bottom: 1ch solid rgba(var(--RGBTitleColor),0.2);
}

article .media h1 {
    margin-top: calc(0.67em - 30px);
}
article.photo .media figure.tmblr-full {
    max-width: none;
    width: calc(100% + 30px);
    margin-top: -15px;
    margin-left: -15px;
    margin-right: -15px;
}
article.photo .media,
article.photo .media figure {
    text-align: center;
}
.lightbox-image {
    max-width: none;
}
.html_photoset iframe {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
article.quote .media td:first-child {
    vertical-align: text-top;
}
article.audio .media iframe,
article.video .media iframe {
    display: block;
    width: 100%;
    margin: 0 auto;
}
article.answer .media .avatar {
    height: 2em;
    border-radius: 3px;
}
article.answer .media .avatar,
article.answer .media .username {
    vertical-align: middle;
}
article.answer .media .username a {
    font-weight: bold;
    color: var(--TitleColor);
}

article:not(.text) section.info {
    margin-top: 1.5em;
}
article:not(.chat):not(.quote) section.info {
    margin-bottom: 1.5em;
}
article .info p {
    margin: 0;
    margin-bottom: 0.5em;
}
article .info .source img {
    vertical-align: middle;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

article.chat .body,
article.quote .body {
    display: none;
}
article .body {
    line-height: 1.5;
}
article .body .reblog:not(.original) {
    margin: 1em 0;
    padding: 15px;
    padding-bottom: 0;
    border-bottom: 1px solid transparent;
    border-radius: 10px;
    background-color: rgba(var(--RGBTitleColor),0.075);
}
article .body .reblog .user {
    margin-top: 0;
}
article .body .reblog .user a {
    color: inherit;
}
article .body .reblog .user .deactivated {
    opacity: 0.7;
}
article .body .reblog .user .avatar {
    height: 2em;
    border-radius: 3px;
}
article .body .reblog .user .avatar,
article .body .reblog .user .username {
    vertical-align: middle;
}

article .body .npf_row img {
    width: 100%;
}
article .body .original > figure.tmblr-full,
article .body .original .npf_row {
    max-width: none;
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
}
article .body .reblog > figure.tmblr-full,
article .body .reblog .npf_row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
:not(.npf_row) > figure:first-child,
.npf_row:first-child {
    margin-top: 1em;
}
:not(.npf_row) > figure:last-child,
.npf_row:last-child {
    margin-bottom: 1em;
}
:not(.npf_row) > figure.tmblr-full img {
    width: 100%;
    height: auto;
}
.npf-link-block {
    max-width: 700px;
    margin: 0 auto;
}
.npf-link-block a {
    color: var(--TitleColor);
}
.npf-link-block a .bottom .site-name {
    color: rgba(var(--RGBTitleColor), 0.4);
}

article section.meta {
    margin-top: 1.5em;
}
article .tags {
    margin-bottom: -1ch;
}
article .tags a::before {
    content: "#";
}
article .tags a {
    font-size: 85%;
    font-weight: bold;
    display: inline-block;
    margin-right: 1ch;
    margin-bottom: 1ch;
    color: var(--BackgroundColor);
    background-color: var(--AccentColor);
    padding: 0.5ch 1ch;
    border-radius: 2em;
    opacity: 0.7;
}
article .tags a:hover,
article .tags a:active {
    opacity: 1;
}
.permalink {
    margin-bottom: 0;
}

#pagination {
    margin: 0;
    padding: 20px;
}
#pagination:not(:last-child) {
    border-bottom: 1ch solid rgba(var(--RGBTitleColor),0.2);
}
#next, #previous {
    line-height: 1em;
    padding: 10px;
    color: var(--BackgroundColor);
    background-color: rgba(var(--RGBTitleColor), 0.9);
}
#next {
    float: right;
}
#previous {
    float: left;
}
#next::after {
    content: "\2192";
    margin-left: 1ch;
}
#previous::before {
    content: "\2190";
    margin-right: 1ch;
}

#notes {
    padding: 1em 0;
}
ol.notes {
    list-style-type: none;
    padding: 0 20px;
    margin: 0;
}
li.note {
    padding: 4px 0;
}
li.note .avatar_frame {
    position: relative;
    top: 2px;
    margin-right: 1ch;
}
li.note .avatar {
    border-radius: 2px;
}
li.note blockquote {
    margin-left: calc(16px + 1ch);
}
li.note blockquote a {
    color: var(--TitleColor);
}
li.note .answer_content {
    display: block;
    margin: 1em 0;
    margin-left: calc(16px + 1ch);
    border-left: 0.5ch solid rgba(var(--RGBTitleColor),0.2);
    padding-left: 1em;
}

aside section:empty {
    display: none;
}
aside > section {
    margin-top: 2em;
    clear: both;
}
aside > section:first-child,
aside > section > h3 {
    margin-top: 0;
}
#search form input {
    width: calc(100% - 12px);
    color: var(--TitleColor);
    background-color: var(--BackgroundColor);
    padding: 5px;
    border: 1px solid rgba(var(--RGBTitleColor), 0.2);
    border-radius: 3px;
}
#search form input::placeholder {
    color: rgba(var(--RGBTitleColor), 0.8);
}
body:not(.flag--stickynavigation):not(.flag--widgetcode) #about {
    position: sticky;
    top: 20px;
}
body:not(.flag--stickynavigation):not(.flag--widgetcode)[class*="tmblr-iframe"] #about {
    top: 74px;
}
body.flag--widgetcode:not(.flag--stickynavigation) #widget {
    position: sticky;
    top: 20px;
}
body.flag--widgetcode:not(.flag--stickynavigation)[class*="tmblr-iframe"] #widget {
    top: 74px;
}
#avatar {
    max-height: 5em;
    float: left;
    margin-right: 1em;
    margin-bottom: 0.5em;
}
#avatar.circle { border-radius: 100%; }
#avatar.square { border-radius: 5px; }
#description:first-child {
    text-align: center;
}

#popular div {
    text-align: center;
}
#popular a {
    display: inline-block;
    width: calc(50% - 0.5ch);
    max-width: 250px;
}
#popular a::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}


body > footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: rgba(var(--RGBTitleColor), 0.9);
    padding-bottom: 1em;
}
@media only screen and (orientation: portrait) {
    body > footer {
        flex-direction: column;
    }
}
body > footer,
body > footer a {
    color: var(--BackgroundColor);
}
body > footer > * {
    padding: 1em;
    padding-bottom: 0;
}
footer nav {
    display: flex;
    justify-content: space-around;
    align-content: center;
    flex-wrap: wrap;
}
@media only screen and (orientation: landscape) {
    footer nav {
        flex-direction: column;
    }
}
footer nav a {
    font-weight: bold;
    text-decoration: none;
    padding: 0.5em;
}
footer nav a:not(.external-page) {
    display: none;
}
[class^="socicon-"], [class*=" socicon-"] {
    color: white;
    padding: 0.5ch;
    border-radius: 0.5ch;
}
.socicon-twitter {
    background-color: #1da1f2;
}
.socicon-rss {
    background-color: #f26109;
}
#credit {
    text-align: center;
}
#members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
#members a {
    margin: 0 1em;
}
#members img {
    max-height: 40px;
    max-width: 40px;
    border-radius: 3px;
}
