@import url("https://mutantfox.net/common/fontawesome-free/css/all.min.css");

* {
    box-sizing: border-box;
}

html {
    font-family: "Open Sans", sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #d3d3d3;
    position: relative;
}

body {
    position: relative;
    background-color: transparent !important;
    font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    -webkit-font-feature-settings:
        "dlig" 1,
        "liga" 1,
        "lnum" 1,
        "kern" 1;
    -moz-font-feature-settings:
        "dlig" 1,
        "liga" 1,
        "lnum" 1,
        "kern" 1;
    -o-font-feature-settings:
        "dlig" 1,
        "liga" 1,
        "lnum" 1,
        "kern" 1;
    color: #2e2e2e;
    line-height: 1.15em;
    margin: 0 0 0.4em 0;
    font-family: "Open Sans", sans-serif;
    word-break: keep-all;
    position: relative;
}

h1,
h2.post-title {
    font-style: italic;
    font-weight: 900;
}

h1.post-title {
    font-size: 4.5rem !important;
}

li {
    margin: 0;
}

p {
    margin-bottom: 2em;
}

p + pre {
    margin-top: -2em;
    margin-bottom: 2em;
}

.site-wrapper {
    z-index: inherit !important;
}

.site-wrapper.single {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MDAgMTUwJyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSdub25lJyBzdHlsZT0naGVpZ2h0OiAyNTBweDsgd2lkdGg6IDEwMCU7Jz48cGF0aCBkPSJNMCwwbDAsNTUuNjAzbDEyNiwzLjg3OWwxLDIxLjk4M2wxODIsLTcuNzU5bDAsLTIwLjY5bDQ1LDMuODc5bDEsMjUuODYybDU5LDI3LjE1NWw0NCwwbDUsNDAuMDg2bDM3LDBsMCwtMTUwIiBzdHlsZT0iZmlsbDojZjVmNWY1OyIvPjxwYXRoIGQ9Ik0wLDBsMCwyOGw0OCwwbDEsOWwxMSwtMWw3LC0xNWw0MCwxbDEzLDE2bDQ0LDFsNywxNWw2MSwwbDgsLTIybDc2LDlsOCwtMTZsMjksNWwyLDE5bDUyLDE4bDI4LC0xMGwyNSw0bDEwLDM3bDE0LDMxbDE2LDNsMCwtMTMybC01MDAsMFoiIHN0eWxlPSJmaWxsOiNkM2QzZDM7Ii8+PC9zdmc+");
    background-repeat: no-repeat;
    background-size: 100% 249px;
}

#devgypsy-wrapper {
    min-height: calc(100vh - 100px);
}

#devgypsy-footer {
    position: relative;
    height: 50px;
    width: 100%;
    text-align: center;
    font-style: normal;
    font-size: 12px;
    background-color: #d3d3d3;
    padding: 15px;
    color: #474747;
    line-height: 1em;
    font-family: "Open Sans", sans-serif;
}

#devgypsy-footer ul li {
    display: inline-block;
    list-style-type: none;
    padding: 5px;
    text-align: left;
}

#devgypsy-footer p {
    margin-bottom: 0;
    line-height: 1em;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    letter-spacing: 0.1px;
    font-feature-settings: normal;
}

#devgypsy-footer a:link,
#devgypsy-footer a:visited {
    background: inherit;
    color: #429c46;
    text-decoration: none;
}

#devgypsy-footer ul li:last-child {
    margin-bottom: 2em;
}

#content.content {
    padding-bottom: 40px;
}

.main-header {
    height: 100vh;
    z-index: 2;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

.main-header.list-header {
    height: 50vh;
}

.main-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(transparent, rgba(0, 0, 0, 2)),
        var(--cover-background-image);
    background-position: center;
    background-size: cover;
    transform: scale(1.05);
    filter: blur(4px) contrast(120%);
    z-index: -1;
}

.main-nav {
    padding: 15px 0 0 0;
    display: flex;
    flex-direction: row;
    justify-content: right;
    gap: 20px;
}

.main-nav a {
    font-family: "Open Sans", sans-serif;
}

.icon-feed::before,
.back-button::before {
    font: var(--fa-font-solid);
    margin-right: 0.5em;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.back-button::before {
    content: "\23";
}

.icon-feed::before {
    content: "\f09e";
}

.icon-location,
.icon-link {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
}

.icon-location::before {
    content: "\f57d";
    font-family: fontawesome;
    margin-right: 8px;
    font-size: 60%;
    font-style: normal;
}

.icon-link::before {
    content: "\f0c1";
    font-family: fontawesome;
    margin-right: 8px;
    font-size: 60%;
    font-style: normal;
}

.back-button,
.menu-button {
    box-sizing: border-box;
    display: inline-block;
    height: 38px;
    padding: 0 15px;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 35px;
    white-space: nowrap;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-button,
.menu-button {
    border: rgba(71, 71, 71, 0.15) 1px solid;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

.site-wrapper.single .back-button,
.site-wrapper.single .menu-button {
    background: #fff;
}

.older-posts,
.newer-posts {
    border: rgba(71, 71, 71, 0.15) 1px solid;
    background: rgba(100, 100, 100, 0.05) !important;
    color: rgba(0, 0, 0, 0.7) !important;
}

.back-button:hover,
.menu-button:hover,
.older-posts:hover,
.newer-posts:hover {
    border-color: #e4e4e4 !important;
    background: #e4e4e4 !important;
    color: #2e2e2e !important;
}

.main-header nav .back-button,
.main-header nav .menu-button {
    color: rgba(255, 255, 255, 0.8) !important;
}

.main-header.no-cover nav .back-button,
.main-header.no-cover nav .menu-button {
    color: rgba(0, 0, 0, 0.7) !important;
}

.main-header nav .back-button:hover,
.main-header nav .menu-button:hover {
    color: #2e2e2e !important;
}

.site-wrapper.single .main-header nav .back-button:hover,
.site-wrapper.single .main-header nav .menu-button:hover {
    color: #f5f5f5 !important;
    background-color: #232323 !important;
}

#tag-list-container {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 5rem;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#tag-list {
    display: flex;
    width: fit-content;
    flex-direction: row;
    justify-content: center;
    gap: 0.5em;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
}

#tag-list::before,
#tag-list::after {
    content: "";
    display: block;
    width: 4em;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    flex-shrink: 0;
}

.post-tag-list {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5em;
}

#container {
    margin-top: 54px;
}

#panel .navbar {
    min-height: 104px !important;
}

#panel .navbar .navbar-default #user_label {
    margin-top: -4px;
}

#panel .navbar .navbar-nav {
    margin-top: 56px;
    margin-bottom: 0;
}

#panel .navbar .navbar-nav .navbar-form {
    margin-top: 4px;
}

#panel .navbar .navbar-nav > li > a {
    padding: 10px;
}

#panel .navbar #logged-in-menu {
    margin: 56px 60px 0 0;
}

#panel .navbar #mobile-menu {
    margin-top: 44px;
}

.page-title {
    font-size: 8rem;
    font-family: "Open Sans", sans-serif;
}

.page-description {
    font-family: "Open Sans", sans-serif;
}

.page-tag {
    margin: 0;
    font-size: 4rem;
    font-weight: 900;
    color: yellow;
    font-family: Testimonia, "Courier New", Courier, monospace;
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: rotate(-5deg);
}

.site-wrapper.single .post {
    margin-top: 5em;
}

.post {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.read-next-story .post {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.post-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.post:after {
    z-index: 10;
}

.post-meta {
    font-family: "Open Sans", sans-serif;
    color: #828c93;
}

.post-extra {
    display: inline-flex;
}

.author-thumb {
    width: 50px;
    height: 50px;
}

p.bio {
    color: #595f66;
}

.post-content a:link,
.post-content a:hover,
.post-content a:visited,
p.bio a:link,
p.bio a:hover,
p.bio a:visited {
    color: #429c46;
    text-decoration: none;
}

.post-content a:not([data-fslightbox]) {
    background-color: transparent;
    border-radius: 4px;
    padding: 0.1em 0.2em;
}

.post-content a:not([data-fslightbox]):hover {
    background-color: rgba(71, 71, 71, 0.15);
}

.post-content h3 {
    margin-top: 4em;
}

.post-content h4 {
    margin-top: 3em;
}

.post-content h3:first-of-type,
.post-content h4:first-of-type {
    margin-top: 2em;
}

.post-content h3 + h4 {
    margin-top: 0 !important;
}

.post-date {
    margin-left: 0;
    margin-right: 0.5em;
    padding-left: 0;
    border-left: none;
}

.post-tag-list a,
#tag-list a {
    border-color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    background: rgba(71, 71, 71, 0.1);
    padding: 2px 6px;
    color: #474747;
    font-size: 1.5rem;
    line-height: 2.2rem;
    text-decoration: none;
}

.post-tag-list a:hover,
#tag-list a:hover {
    text-decoration: none;
    background: #50585d;
    color: #f5f5f5;
}

.post-footer .author {
    padding-right: 10px;
}

.post-footer .share {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-footer .share a {
    margin: initial !important;
    margin-top: 0.5rem !important;
    margin-right: 0.5rem !important;
    color: #474747;
}

.post-footer .share a:hover {
    color: rgba(71, 71, 71, 0.5);
}

pre {
    margin: -1.5em 0 1.75em 0;
    background-color: #fafafa !important;
}

code {
    background: initial !important;
}

code:not(pre > code) {
    color: #d63384;
}

.reading-time {
    margin-left: 0;
}

.reading-time::before {
    content: "\00B7";
}

.extra-meta {
    color: #9eabb3;
}

.extra-post-meta {
    margin-top: 1rem;
}

.float-right em,
a img + em {
    color: #3a4145;
    text-decoration: underline;
}

.float-right em,
img + em {
    text-align: center;
    display: block;
    font-size: 80%;
    margin-bottom: 2em;
}

/* images */
.float-right {
    display: block;
    margin-left: 2em !important;
    float: right;
}

.float-left {
    display: block;
    margin-right: 2em !important;
    float: left;
}

.post-excerpt h3 {
    margin-top: 1em;
}

.post-content img,
.post-excerpt img {
    max-width: 300px !important;
    width: 100% !important;
    display: block !important;
    height: auto;
    margin: 0.6em 0;
    padding: 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.post-content img:hover {
    transform: translateX(-50%) scale(1.05, 1.05);
}

.post-excerpt img + em {
    text-align: initial;
}

.float-right p,
.float-left p {
    text-align: center;
}

.author-profile .author-meta {
    font-family: "Open Sans", sans-serif;
}

.pagination {
    font-family: "Open Sans", sans-serif;
}

.post-excerpt .read-more {
    visibility: hidden;
    position: relative;
    font-size: 0.75em;
    color: #828c93;
}

.post-excerpt .read-more:hover,
.post-excerpt a:hover {
    color: #474747;
}

.post-excerpt .read-more:after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    content: "Read More →";
}

.read-next {
    margin-bottom: 0;
}

.read-next .post {
    margin-bottom: 4rem;
}

.read-next-story {
    background: inherit;
    border: 1px solid rgba(71, 71, 71, 0.8);
}

.read-next-story::before {
    background: rgba(71, 71, 71, 0.9);
}

/* linkopacity */
a.linkopacity img,
a.bloglogo {
    opacity: 1;
    border: none;
    transition: opacity 0.3s ease;
}

a.linkopacity:hover img,
a.bloglogo:hover {
    opacity: 0.4;
    border: none;
}

.highlight pre {
    border-radius: 2px;
    padding: 1em;
    white-space: pre;
    overflow-x: auto;
}

/* end linkopacity */
@media screen and (max-width: 900px) {
    .no-cover.main-header {
        height: 102px;
    }

    .site-wrapper.single .post {
        margin-top: 8em;
    }
}

@media screen and (max-width: 530px) {
    #devgypsy-footer ul li {
        text-align: center;
    }

    #devgypsy-footer ul li:first-child {
        padding: 0;
    }
}

@media screen and (max-width: 736px) {
    .site-wrapper.single {
        background-image: none;
        background-size: initial;
        min-height: 100%;
    }

    .site-wrapper.single .post {
        margin-top: initial;
    }

    #panel #mobile-chats {
        margin: 42px 0 0 0 !important;
        float: left !important;
    }

    #tag-list-container {
        justify-content: flex-end;
        margin-bottom: 15px;
    }

    #tag-list::before,
    #tag-list::after {
        display: none;
    }

    .slideout-menu {
        top: 109px !important;
    }

    .site-wrapper.single .main-header {
        display: initial;
    }

    .main-header {
        height: 40%;
    }

    .main-nav {
        padding: 0;
        background-color: #f2f2f2;
        justify-content: left;
        align-items: end;
        gap: 0;
        height: initial;
    }

    .main-header:not(.no-cover) .icon-feed {
        border-radius: 0 3px 0 0;
    }

    .main-nav.overlay {
        height: 100%;
    }

    .main-nav.overlay {
        bottom: 0;
        top: 0;
    }

    .back-button,
    .menu-button {
        height: 44px;
        line-height: 41px;
        color: #2e2e2e;
    }

    .back-button {
        border-radius: 0;
    }

    .menu-button {
        border-radius: 0 3px 0 0;
    }

    .main-header nav .back-button,
    .main-header nav .menu-button {
        border: none !important;
        background: transparent !important;
    }

    .main-header nav .back-button:hover,
    .main-header nav .menu-button:hover {
        border-color: #e4e4e4 !important;
        background: #e4e4e4 !important;
    }

    .category-head {
        width: auto;
        margin-left: 16px;
    }

    .post-date {
        display: inline-block;
    }
}

@media only screen and (max-width: 500px) {
    .main-header {
        height: 50vh;
    }

    .main-header.list-header {
        height: 40vh;
    }

    .page-title {
        font-size: 6rem;
    }
}

@media screen and (max-width: 414px) {
    .float-right {
        display: block;
        margin: auto !important;
        float: none;
    }

    .float-left {
        display: block;
        margin: auto !important;
        float: none;
    }

    label .title_light {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    label .title_light a {
        font-size: 24px !important;
    }

    label .title_light a::before {
        width: 19px;
        height: 24px;
        display: block;
        float: left;
        margin: 3px 4px 0 0;
    }
}

@media screen and (max-width: 375px) {
    label .title_light a {
        font-size: 20px !important;
    }

    label .title_light a::before {
        width: 16px;
        height: 20px;
        display: block;
        float: left;
        margin: 5px 3px 0 0;
    }
}

@media screen and (max-width: 320px) {
    label .title_light a {
        font-size: 15px !important;
    }

    label .title_light a::before {
        width: 12px;
        height: 15px;
        display: block;
        float: left;
        margin: 7px 2px 0 0;
    }
}

/* dark theme */
@media (prefers-color-scheme: dark) {
    html,
    body,
    .site-wrapper,
    #devgypsy-wrapper {
        color: #e4e4e4;
    }

    html,
    body,
    .site-wrapper {
        background-color: #232323;
    }

    .site-wrapper.single {
        background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MDAgMTUwJyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSdub25lJyBzdHlsZT0naGVpZ2h0OiAyNTBweDsgd2lkdGg6IDEwMCU7Jz48cGF0aCBkPSJNMCwwbDAsNTUuNjAzbDEyNiwzLjg3OWwxLDIxLjk4M2wxODIsLTcuNzU5bDAsLTIwLjY5bDQ1LDMuODc5bDEsMjUuODYybDU5LDI3LjE1NWw0NCwwbDUsNDAuMDg2bDM3LDBsMCwtMTUwIiBzdHlsZT0iZmlsbDojMWUxZTFlOyIvPjxwYXRoIGQ9Ik0wLDBsMCwyOGw0OCwwbDEsOWwxMSwtMWw3LC0xNWw0MCwxbDEzLDE2bDQ0LDFsNywxNWw2MSwwbDgsLTIybDc2LDlsOCwtMTZsMjksNWwyLDE5bDUyLDE4bDI4LC0xMGwyNSw0bDEwLDM3bDE0LDMxbDE2LDNsMCwtMTMybC01MDAsMFoiIHN0eWxlPSJmaWxsOiMxNzE3MTc7Ii8+PC9zdmc+");
    }

    #tag-list-container {
        background-color: rgba(0, 0, 0, 0.1);
    }

    #tag-list::before,
    #tag-list::after {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .post-title a:hover,
    h4 a:hover {
        color: #b4b4b4 !important;
    }

    .post-content a:not([data-fslightbox]):hover {
        background-color: rgba(228, 228, 228, 0.15);
    }

    h4 a,
    .author-meta a:hover {
        color: #e4e4e4 !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p.bio,
    #devgypsy-footer,
    .read-next-story a,
    .read-next-story h2,
    a {
        color: #e4e4e4;
    }

    pre {
        background-color: #282828 !important;
    }

    .post {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .post-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .post-tag-list a,
    #tag-list a {
        color: #9eabb3;
        background: rgba(121, 121, 121, 0.1);
    }

    .post-footer .share a {
        color: #e4e4e4;
    }

    .post-footer .share a:hover {
        color: rgba(255, 255, 255, 0.3);
    }

    .post-excerpt .read-more:hover,
    .post-excerpt a:hover {
        color: #e4e4e4;
    }

    #devgypsy-footer {
        background-color: #171717 !important;
    }

    img {
        filter: grayscale(30%);
    }

    .float-right em,
    a img + em {
        color: #e4e4e4;
    }

    .read-next-story {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .read-next-story::before {
        background: rgba(71, 71, 71, 0.3);
    }

    .read-next-story:hover:before {
        background-color: rgba(0, 0, 0, 0.2);
    }

    .back-button,
    .menu-button,
    .older-posts,
    .newer-posts {
        border: rgba(228, 228, 228, 0.15) 1px solid !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .site-wrapper.single .main-header nav .back-button,
    .site-wrapper.single .main-header nav .menu-button {
        border-color: rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: #f5f5f5 !important;
    }

    .site-wrapper.single .main-header nav .back-button:hover,
    .site-wrapper.single .main-header nav .menu-button:hover {
        color: #232323 !important;
        background-color: #f5f5f5 !important;
    }

    @media only screen and (max-width: 736px) {
        .main-nav {
            background-color: #1e1e1e;
        }

        .site-wrapper.single {
            background-image: none;
            background-size: initial;
            min-height: 100%;
        }

        .site-wrapper.single .main-header nav .back-button,
        .site-wrapper.single .main-header nav .menu-button {
            border-color: transparent !important;
            background: transparent !important;
            color: #f5f5f5 !important;
        }
    }
}
