/* page */

.page-body {
    padding: 0px 3rem;
}

.index-page-body,
.message-page-body {
    padding: 0px 1rem;
}

.post-entry {
    border-bottom: 2px dotted rgb(186, 186, 186);
    margin-bottom: 3rem;
}

.post-entry .post-meta,
.postpage .post-meta {
    margin-top: 0.7rem;
    margin-bottom: 1.5rem;
}


/* post-meta */

.post-meta-item-icon,
.post-meta-divider,
.post-meta-item-text a {
    color: #888;
}

.post-meta-divider {
    margin: auto 1% auto;
}

.post-meta-tag-item a {
    color: #888;
    padding: 1px 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tag-cloud-items a:hover,
.cate-cloud-items a:hover,
.post-meta-tag-item a:hover {
    background: rgba(0, 0, 0, 0.03);
}

.tag-cloud-title,
.cate-cloud-title,
.list-cloud-title {
    font-size: 1.5rem;
    padding-top: 1rem;
    color: #777777;
    text-align: center;
}

.list-title,
.tag-title,
.author-title,
.authorindex-title {
    font-size: 1.5rem;
    padding-top: 1rem;
    color: #777777;
}

.cate-cloud-items ul {
    list-style-type: none;
    margin-left: -3em;
}

.tag-cloud-items a,
.cate-cloud-items a {
    color: #888;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 0.5em;
}

.tag-postlist a:before,
.list-postlist a:before,
.author-postlist a:before {
    content: " ";
}

.tag-cloud-items {
    padding: 2em 0;
}


/* post summary */

.post-content-summary {
    margin-bottom: 2rem;
}

.post-content-summary .more {
    text-indent: 0;
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
}


/* read more */

.post-content-summary .more a {
    font-weight: bold;
    font-size: larger;
    color: #444;
    text-decoration: none;
    border-bottom: 3px solid rgba(0, 181, 172, 0.3);
    box-shadow: inset 0 -3px 0 rgba(0, 181, 172, 0.3);
    padding: 0.15em 1em 0.1em;
    transition: background 150ms ease;
}

.post-content-summary .more a:hover {
    background: rgba(0, 181, 172, 0.12);
}


/* post header */

.post-header {
    margin-bottom: 2.5rem;
}

.post-navigation {
    border-top: 1px dotted rgb(186, 186, 186);
    border-bottom: 1px dotted rgb(186, 186, 186);
}

.post-content ul,
.post-content-summary ul,
.post-content ol,
.post-content-summary ol {
    padding-left: 2rem;
}

.post-content ul>li,
.post-content-summary ul>li {
    list-style-type: disc;
}


/* gallery */

.gallerypage #gallery_container {
    margin-top: 1em;
    margin-bottom: 1em;
}


/* archive */

.archivepage ul {
    list-style-type: none;
}

.archivepage .list-items {
    margin-left: -3em;
}


/* ul */

.listpage ul,
.tagpage ul,
.authorpage ul,
.authorindex ul {
    list-style-type: circle;
    margin-left: -1em;
}

.gallerypage ul,
.listingpage ul {
    list-style-type: none;
    margin-left: -3em;
}


/* tag page */

.tag-rssfeed .feedlink,
.author-rssfeed .feedlink {
    margin-top: 1em;
    margin-left: 2em;
}


/* list */

.list-items li {
    padding: 5px 5px;
    border: solid 1px #445458;
    border-radius: 20px;
    margin-bottom: 10px;
}

.list-items a {
    padding-left: 1rem;
}

.list-item-count {
    font-size: 0.9rem;
    padding-top: 5px;
}

.list-item-count:before {
    content: "(";
}

.list-item-count:after {
    content: ")";
}


/* notebook */

#notebook-container {
    width: 100%;
    margin-top: 10px;
}


/* post setction */

.post-content .section,
.post-content-summary .section {
    padding-top: 0;
    padding-bottom: 0;
}


/* print */

@media print {
    .no-print {
        display: none !important;
    }
}


/* background */

body {
    background-image: url('bk.png');
    background-attachment: fixed;
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto;
}


/* background Source https://s3-view.2heng.xin/aws_cached/2018/01/03/sakura.png */


/* main */

.main.body.container {
    padding: 5rem 0 3rem;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 30px -3px rgba(0, 0, 0, 0.3);
}


/* comments */

.active.item.comments,
.active.tab.comments {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 8px 20px -15px rgba(0, 0, 0, 0.3) !important;
}

.active.tab.comments.gitalk {
    border-radius: 0 10px 10px 10px;
}

.active.tab.comments.disqus {
    border-radius: 10px 0 10px 10px;
}

.no-comments-block {
    margin: 1em 0;
    text-align: center;
}


/* footer */

.footer.segment {
    padding: 2rem 0rem;
}

.main.footer.container {
    margin-top: 1.5rem;
}

.footer .extra-block {
    margin-bottom: 0.5rem;
}

.footer.item {
    margin-right: 0.5em;
}

.footer.item a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #444;
    padding: 0.1em 0.7em 0.1em 0.5em;
    border-bottom: 2px solid rgba(33, 111, 134, 0.589);
}

.footer.item a:hover {
    border-bottom-color: rgba(30, 42, 151, 0.671);
}


/* back to up button */

#BtU {
    position: fixed;
    bottom: 5%;
    right: 3%;
    z-index: 99;
    border-radius: 5px;
}


/* figure captino */

.figure .caption {
    color: rgb(120, 121, 119);
}

.figure .caption a {
    color: rgb(130, 133, 129);
    text-decoration: underline;
}


/* scroll */

.scroll-x {
    overflow-x: scroll;
    word-break: keep-all;
}


/*IPython*/

div.code_cell pre {
    white-space: pre;
    word-wrap: normal;
    overflow-x: scroll;
    scrollbar-color: rgba(210, 212, 209, 0.7) transparent;
    scrollbar-width: thin;
}


/* emoji */

@font-face {
    font-family: "Twemoji Mozilla";
    font-display: swap;
    src: url(Twemoji_Mozilla.ttf) format("truetype");
}


/* hidden item */

.hidden.item {
    display: none;
}


/* page-navigation */

.ui.pagination.menu .item {
    min-width: 0;
}

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

.post-content+.post-navigation {
    margin-top: 3rem;
    margin-bottom: 3rem;
}


/* footnote */

a.footnote-reference {
    font-size: smaller;
    vertical-align: super;
}

.footnote.brackets {
    background-color: rgba(228, 194, 193, 0.18);
    padding: 0.5em 1em 1em 1em;
    border-radius: 10px;
}

.footnote.brackets dd {
    margin-bottom: 0.5em;
}

.footnote.brackets dd+dt {
    border-top: 1px dashed #ababab;
}


/* index-featured */

.index-featured {
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    border-bottom: 2px dotted #bababa;
}

.index-featured .image {
    max-height: 20rem;
    overflow-y: hidden;
    margin-bottom: 1rem;
    border-radius: 0.3rem;
}

.index-featured .thumbtack.icon {
    transform: rotate(-45deg);
}

@media only screen and (max-width: 767px) {
    .index-featured div.content>div.cards:first-child {
        margin-top: 1rem;
    }
}


/* contents */

.contents p {
    margin-bottom: 0;
}


/* paragraph */

p {
    font-weight: 300;
}

blockquote+p {
    margin-top: 1.5em;
}


/* post a */

.post-content .reference.external:not(.image-reference),
.post-content-summary .reference.external:not(.image-reference) {
    text-decoration: none;
    color: inherit;
    border-bottom: 3px solid rgba(30, 100, 252, 0.2);
    box-shadow: inset 0 -4px 0 rgba(30, 100, 252, 0.2);
    transition: background 150ms ease;
}

.post-content .reference.external:not(.image-reference):hover,
.post-content-summary .reference.external:not(.image-reference):hover {
    background: rgba(30, 100, 252, 0.2);
}

.post-title a {
    color: inherit;
}

.post-content .reference.external[target="_blank"]::after,
.post-content-summary .reference.external[target="_blank"]::after {
    content: '↗';
    font-family: 'DejaVu Serif', 'Calibri', 'Segoe UI Symbol', 'Segoe UI Emoji', '.LucidaGrandeUI-Bold', 'Lucida Grande', 'Menlo', 'Apple Color Emoji', 'AppleColorEmoji';
    position: relative;
    top: -0.7em;
    font-size: x-small;
    color: brown;
}


/* font */

div[class|="post-content"] p,
div.post-header h1,
div.entry-title,
div.comments {
    font-family: Lato, BlinkMacSystemFont, 'Helvetica Neue', Cambria, Calibri, "Twemoji Mozilla", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Source Han Sans SC", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei UI", "WenQuanYi Micro Hei", Arial, Helvetica, sans-serif;
}


/* over-write code err */

pre.code .err,
.highlight pre .err {
    border: none !important;
}


/* shadow emphasize */

.shadow-em {
    color: rgb(255, 254, 213);
    text-shadow: rgb(51, 51, 51) 1px 1px 0px, rgb(51, 51, 51) 1px -1px 0px, rgb(51, 51, 51) -1px 1px 0px, rgb(51, 51, 51) -1px -1px 0px, rgb(51, 51, 51) 0px 1.4px 0px, rgb(51, 51, 51) 0px -1.4px 0px, rgb(51, 51, 51) -1.4px 0px 0px, rgb(51, 51, 51) 1.4px 0px 0px, rgb(255, 222, 23) 2px 2px 0px, rgb(255, 222, 23) 3px 3px 0px, rgb(255, 222, 23) 3px 1px 0px, rgb(255, 222, 23) 1px 3px 0px, rgb(255, 222, 23) 1px 1px 0px, rgb(255, 222, 23) 2px 3.4px 0px, rgb(255, 222, 23) 2px 0.6px 0px, rgb(255, 222, 23) 0.6px 2px 0px, rgb(255, 222, 23) 3.4px 2px 0px;
}


/* fix mobile */

header>.ui.grid.no-print {
    width: 100%;
}


/* page_navigation */

@media only screen and (min-width: 768px) {
    .page-navigation .pagination.menu.mobile {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .page-navigation .pagination.menu.computer {
        display: none;
    }
}


/* dark theme */

html[theme="dark"] body {
    background-image: url('bk-dark.jpg');
    background-size: cover;
}

html[theme="dark"] .index-featured .ui.blurring.card {
    background-color: rgba(255, 255, 255, 0.87);
}

html[theme="dark"] .footer.item a {
    color: #ddd;
}

html[theme="dark"] .footer.extra-block {
    color: #fff;
}

html[theme="dark"] blockquote {
    background-color: rgba(202, 204, 201, 0.9);
}

html[theme="dark"] pre.literal-block {
    background-color: rgba(190, 219, 239, 0.8) !important;
}

html[theme="dark"] .footnote.brackets {
    background-color: rgba(228, 194, 193, 0.7);
}

html[theme="dark"] .main.body.container {
    background-color: rgba(255, 255, 255, 0.88);
}

html[theme="dark"] .footer.item a {
    border-bottom-color: rgba(192, 238, 252, 0.726);
}

html[theme="dark"] .footer.item a:hover {
    border-bottom-color: rgba(211, 215, 253, 0.808);
}


/* rstdiff */

.diff_add {
    background-color: lightgreen;
    display: block;
    font-family: monospace;
}

.diff_sub {
    background-color: #ffa0a0;
    display: block;
    font-family: monospace;
}

td.diff_header {
    padding-left: 6px;
    padding-right: 6px;
    text-align: right;
}

table.diff {
    white-space: pre;
}

/* post progress */

#progress {
	--scroll: 0%;
	background: linear-gradient(90deg,#e92365 var(--scroll),transparent 0);
	position: fixed;
	width: 100%;
	height: 3px;
    z-index: 120;
    top: 0px;
}

/* code height limite */

.code-limite {
	max-height: 40em;
}