
body {
    font-family: "Fira Code", sans-serif;
    font-weight: 400;
    color: #333;
    line-height: 1.8em;
    font-size: 17px;
}

a {
    color: #3700ff;
    text-decoration: none;
    word-break: break-word;
    transition: all 500ms ease-in-out;
    border-bottom: 2px solid transparent;
}

a:hover {
    border-bottom: 2px solid #3700ff;
}

.site-title a {
    border-bottom: none;
}

html,button,input,select,textarea {
    color: #333;
}

::-moz-selection {
    background: #0594cb;
    color: #fff;
    text-shadow: none;
}

::selection {
    background: #0594cb;
    color: #fff;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
    padding: 0;
}

img {
    margin: 10px auto 10px auto;
    max-width: 100%;
    display: block;
}

a img {
    border:none;
}

figure {
    margin: 0;
    text-align: center;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

blockquote {
    margin-left: 1rem;
    font-style: italic;
    font-size: 1.2rem;
    font-family: Georgia,bitstream charter,serif;
    border-left: 4px solid #aaaaaa;
    padding-left: 20px;
}

blockquote cite {
    font-size: 70%;
    opacity: .8;
}

blockquote em {
    font-weight: 600;
}


h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 500;
    line-height: 1.3em;
    margin: 30px 0 20px 0;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .9rem;
}

.align-center {
    text-align: center;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

ul {
    padding-left: 15px;
}

ul.flat {
    margin: 0;
    padding: 0;
}

ul.flat li {
    display: block;
    list-style: none;
    margin-left: 0;
}

.prevent-collapse {
    min-height: .1rem
}

.smaller {
    font-size: 70%;
}

ul {
    list-style: disc inside;
}

.post ul li {
    margin-bottom: 10px;
}

.post ul li p {
    display: inline;
}

.highlight pre {
    margin-bottom: 0;
    margin-top: 0;
    padding: 20px;
    background-color: transparent !important;
    border-left: 4px solid #0594cb;
}

.highlight {
    margin-left: 1rem;
    background: 0 0;
    background-color: #FAFAFA;
}

.wrapper {
    max-width: 760px;
    margin: 0 auto;
}

code {
    
    font-family: 'Fira Code', 'fira mono',cousine,Monaco,Menlo,'source code pro',monospace;
    font-feature-settings: "calt";
    font-variant-ligatures: contextual;
}

p code, li code {
    color: #145ca4;
    background: rgba(25,118,210,.07) !important;
    padding: 2px 5px;
    border-radius: 3px;
}

.container {
    max-width: 800px;
    margin-top: 50px;
}

.header {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.header .avatar {
    float: left;
    margin: -25px 20px 0 0;
}
.header .avatar img {
    width: 64px;
    height: 64px;
    overflow: hidden;
}
.header .site-title {
    margin: 0 0 10px 0;
    line-height: 0.2em;
}
    .site-title a {
        color: #333;
        text-decoration: none !important;
    }
    .site-title a:hover {
        border-bottom-width: 3px;
    }

.header .site-description {
    display: flex;
    justify-content: space-between;
}

.header nav {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.header nav ul,
.header nav li {
    margin: 0;
    padding: 0;
}

.header nav li {
    display: inline-block;
    list-style: none;
    margin: 0 30px 0 0;
}
    .header nav.social a {
        color: #333;
    }
    .header nav.social a:hover {
        color: #3700ff;
    }

.header .site-description nav {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 50px;
    margin-left: 15px;
}

.header .site-description nav ul svg {
    max-height: 15px;
}

.section .section-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.recent-posts .posts .post {
    margin-bottom: 45px;
}

.post-header {
    display: flex;
}
.post-header .meta .date {
    margin-right: 30px;
    width: 64px;
    text-align: center;
}
.post-header .meta .date .day {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    line-height: 0.45em;
    font-size: 3em;
    display: block;
    margin-bottom: 20px;
}
.post-header .meta .date .rest {
    display: block;
    font-size: 0.75em;
}
.post-header h1.title {
    margin: -10px 0 0 0;
}

.post .title.small {
    margin: 0 0 10px 0;
}
.posts .post-header {
    margin-bottom: 30px;
}

div.post > div.tags {

    margin-bottom: 16px;
}

.post .tags a {
    display: inline-block;
    border-radius: 3px;
    padding: 0px 6px;
    line-height: 20px;
    font-size: 0.85em;
    text-decoration: none;
    margin: 0 10px 0 0;
}

.post .tags a.tag {
    border: 1px solid #3700ff;
    color: #3700ff;
}

.post .tags a.category {
    border: 1px solid #ff002b;
    color: #ff002b;
}

.post .tags a.project {
    border: 1px solid #00a2ffb4;
    color: #00a2ffb4;
}

.post .tags a.book {
    border: 1px solid #00ac9d;
    color: #00ac9d;
}

.post .label {

    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    background-color: #f9f2f4;
}

.post .label.draft {
    color: #3700ff;
}

.post .label.recommended {
    color: #00bb1f;
}

.post .label.forwarded {
    color: #f39508;
}

.post .label.sticked {
    color: #ff002b;
}

.post .label.migrated {
    color: #ae00ff;
    font-style: italic;
}

.post .label.outdated {
    color: #000000;
    text-decoration: line-through;
}

.post .migration {

    padding: 8px;
    border-radius: 4px;
    margin-left: 6px;
    font-size: 0.8rem;
    color: #aaaaaa;
    background-color: #fdfdfd;
}

.list .posts .post-header .meta {
    margin-bottom: 0;
    margin-left: 5px;
}

.footer {
    text-align: right;
    font-size: 0.75em;
    color: #999;
    border-top: 1px solid #f4f4f4;
    margin-top: 40px;
    padding: 15px 0;
}
    .footer a {
        color: #666;
    }
    .footer a:hover {
        color: #3700ff;
    }

.tag-cloud {
    margin-top: 20px;
}

.tag-cloud a {
    margin-right: 15px;
}

.pagination {
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.pagination li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination .page-prev {
    margin-right: 20px;
    padding-right: 20px;
}

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

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

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    .container {
        margin-top: 10px;
    }

    .header .nav.social li {
        margin: 0;
    }
    .header .nav li {
        margin: 0 10px 0 0;
        font-size: 14px;
    }
}

.authorization {

    color: #aaaaaa;
    font-size: 0.8rem;
    text-align: right;
    font-weight: bold;
}

.site-title .mirror-tips, .site-title .mirror-tips a {

    font-size: 0.8rem;
    vertical-align: top;
    color: #aaaaaa;
}

.authorization.authorized {

    margin-bottom: 8px;
}

.comments.disabled {

    opacity: 0.6;
    text-align: center;
    font-size: 12px;
}

aside.toc {

    text-align: left;
    border: 1px solid #eeeeee;
    margin-left: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.8rem;
    background-color: #fafafa;
    display: table;
}

aside.toc .toc-title {

    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}

aside.toc ul {

    margin: 0;
    padding: 0;
}

aside.toc li {

    margin: 0;
    padding: 0 0 0 1rem;
}

.chpater-nav {
    display: flex;
    margin-bottom: 16px;
}

.chpater-nav-delimiter {
    margin: 0 0 16px 0;
    border: 0;
    border-bottom: 1px dashed #aaa;
}

.chpater-nav .nav-item {

    flex: 1;
    font-size: 0.8rem;
}

.chpater-nav .no-nav {

    color: #aaaaaa;
}

.chpater-nav .nav-item.next-chapter {
 
    text-align: right;
}

.chpater-nav .nav-item.back-to-catalog {
 
    text-align: center;
}

.chpater-nav .nav-item.prev-chapter {

    text-align: left;
}

.markdown table.mark-el {
    border-left: 1px solid #aaa;
    border-top: 1px solid #aaa;
    width: 98%;
}

.markdown table.mark-el td,
.markdown table.mark-el th {
    border-bottom: 1px solid #aaa;
    border-right: 1px solid #aaa;
    padding: 8px;
}
