body {
    font-family: "Segoe UI", Helvetica, sans-serif, Tahoma, Arial, Geneva, Georgia, Palatino, "Times New Roman", "Hiragino Sans GB", "冬青黑体", "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "WenQuanYi Micro Hei", "文泉驿雅黑", Dengxian, "等线体", STXihei, "华文细黑", "Liberation Sans", "Droid Sans", NSimSun, "新宋体", SimSun, "宋体";
    color: #222222;
    background: #F5F5F5;
}

a {
    word-break: break-all;
}

.viki-img-package {
    text-align: center;
}

img.viki-img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

span.viki-img-caption {
    min-width: 20%;
    max-width: 80%;
    display: inline-block;
    padding: 10px;
    margin: 0 auto;
    border-bottom: 1px solid #c0c0c0;
    color: #6c6c6c;
    text-align: center;
    line-height: 1.5;
}

/* View Image */
.viki-view-image,.viki-view-svg {
    transition: 0.3s;
}

.viki-modal-box {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(234, 234, 234);
    background-color: rgba(234, 234, 234, 0.95);
    z-index: 2000;
}

.viki-modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    cursor: move;
}

/* Add Animation */
.viki-modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
span.viki-modal-close {
    position: absolute;
    z-index: 2002;
    top: 15px;
    right: 35px;
    color: #666666;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

span.viki-modal-close:hover,
span.viki-modal-close:focus {
    color: #222222;
    text-decoration: none;
    cursor: pointer;
}
/* View Image */

pre {
    display: block;
    overflow-y: hidden;
    overflow-x: auto;
}

code {
    font-family: Consolas, Monaco, Monospace, Courier;
    color: #8E24AA;
    word-break: break-all;
}

pre code {
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    color: #222222;
    background-color: #E0E0E0;
    border-left: .5em solid #00897B;
    font-family: Consolas, Monaco, Monospace, Courier;
    white-space: pre;
}

pre code.viki-markdown-metadata {
    border-left: .5rem solid #80CBC4;
}

blockquote {
    color: #666;
    border-left: .5em solid #7a7a7a;
    padding: 0 1em;
    margin-left: 0;
}

blockquote p {
    color: #666;
}

div.viki-mermaid-diagram {
    margin: 16px 0px 16px 0px;
    overflow-y: hidden;
}

div.viki-flowchart-diagram {
    padding: 0px 5px 0px 5px;
    margin: 16px 0px 16px 0px;
    width: fit-content;
    overflow: hidden;
}

div.viki-wavedrom-diagram {
    padding: 0px 5px 0px 5px;
    margin: 16px 0px 16px 0px;
    width: fit-content;
    overflow: hidden;
}

div.viki-plantuml-diagram {
    padding: 5px 5px 0px 5px;
    margin: 16px 0px 16px 0px;
    width: fit-content;
    overflow: hidden;
}

table {
   padding: 0;
   margin: 1rem 0.5rem;
   border-collapse: collapse;
}

table tr {
   border-top: 2px solid #cccccc;
   background-color: white;
   margin: 0;
   padding: 0;
}

table tr:nth-child(2n) {
   background-color: #f8f8f8;
}

table tr th {
   font-weight: bold;
   border: 2px solid #cccccc;
   margin: 0;
   padding: 6px 13px;
}

table tr td {
   border: 2px solid #cccccc;
   margin: 0;
   padding: 6px 13px;
}

table tr th :first-child, table tr td :first-child {
   margin-top: 0;
}

table tr th :last-child, table tr td :last-child {
   margin-bottom: 0;
}

/* For Highlight.js Line Number */
table.hljs-ln tr {
    border: none;
    background-color: transparent;
}

table.hljs-ln tr td {
    border: none;
    background-color: transparent;
}

table.hljs-ln tr td.hljs-ln-numbers {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    text-align: center;
    color: #AAA;
    border-right: 1px solid #CCC;
    vertical-align: top;
    padding-right: 5px;
    white-space: nowrap;
}

table.hljs-ln tr td.hljs-ln-code {
    padding-left: 10px;
}
/* For Highlight.js Line Number */

/* Mathjax */
x-eqs {
    display: flex;
    flex-direction: row;
    align-content: space-between;
    align-items: center;
}

x-eqs > x-eqn {
    width: 100%;
    margin-left: 3rem;
}

x-eqs > span {
    text-align:right;
}
/* Mathjax */

.viki-toc {
    position: -webkit-sticky;
    position: sticky;
    top: 4rem;
    height: calc(100vh - 4rem);
    overflow: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: .875rem;
    white-space: nowrap;
}

.viki-toc > ul {
    border-left: 1px solid #ddd;
}

.viki-toc ul {
    list-style-type: none;
}

.viki-toc ul ul {
    padding-left: 1.5rem;
}

.viki-toc a {
    color: #808080;
}

.viki-navbar {
    min-height: 4rem;
    background-color: #00796B;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05), inset 0 -1px 0 rgba(0,0,0,.1);
}

.navbar-brand-icon {
    border: 1px solid transparent;
    border-radius: 5px;
}

.viki-navbar .navbar-nav-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-top;
}

.viki-navbar .navbar-nav-icon:hover {
    transform: scale(1.2);
}

.viki-navbar .navbar-nav .nav-link {
    padding-right: .5rem;
    padding-left: .5rem;
    color: #B2DFDB;
}

@media (min-width: 768px) {
    .viki-navbar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1071;
    }
}

.viki-content > h1[id], .viki-content > h2[id], .viki-content > h3[id], .viki-content > h4[id], .viki-content > h5[id], .viki-content > h6[id] {
    pointer-events: none;
}

.viki-content > h1[id] > a, .viki-content > h2[id] > a, .viki-content > h3[id] > a, .viki-content > h4[id] > a, .viki-content > h5[id] > a, .viki-content > h6[id] > a {
    pointer-events: auto;
}

.viki-content > h1[id] > div, .viki-content > h2[id] > div, .viki-content > h3[id] > div, .viki-content > h4[id] > div, .viki-content > h5[id] > div, .viki-content > h6[id] > div {
    pointer-events: auto;
}

.viki-content {
    margin-top: 1rem;
}

/* Tricks for sticky header. */
@media (min-width: 768px) {
    .viki-content > h1[id]::before, .viki-content > h2[id]::before, .viki-content > h3[id]::before, .viki-content > h4[id]::before, .viki-content > h5[id]::before, .viki-content > h6[id]::before {
        display: block;
        height: 6rem;
        margin-top: -6rem;
        visibility: hidden;
        content: "";
    }
}

.viki-sidebar {
    border-bottom: 1px solid rgba(0,0,0,.1);
}

@media (min-width: 768px) {
    .viki-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 4rem;
        z-index: 1000;
        height: calc(100vh - 4rem);
        border-right: 1px solid rgba(0,0,0,.1);
    }
}

@media (min-width: 1200px) {
    .viki-sidebar {
        -ms-flex: 0 1 320px;
        flex: 0 1 320px;
    }
}

.viki-search {
    position: relative;
    padding: 1rem 15px;
    margin-right: -15px;
    margin-left: -15px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.algolia-autocomplete {
    display: block!important;
    -ms-flex: 1;
    flex: 1;
}

.viki-search-docs-toggle {
    line-height: 1;
    color: #212529;
}

.viki-links {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-right: -15px;
    margin-left: -15px;
}

@media (min-width: 768px) {
    .viki-links {
        max-height: calc(100vh - 9rem);
        overflow-y: auto;
        display: block!important;
    }
}

.viki-jstree-folder-icon {
    background-image: url('folder.svg') !important;
    background-size: cover !important;
    opacity: 0.6;
}

.viki-jstree-file-icon {
    background-image: url('file.svg') !important;
    background-size: cover !important;
    opacity: 0.6;
}

.viki-footer {
    font-size: 85%;
    text-align: center;
    background-color: #EEEEEE;
}

@media (min-width: 576px) {
    .viki-footer {
        text-align: left;
    }
}

.viki-footer p {
    margin-bottom: 0;
}

.viki-footer a {
    font-weight: 500;
    color: #495057;
}

.viki-footer-row {
}

.viki-footer-viki {
    opacity: 0.8;
}

.form-control:focus {
  border-color: #00897B;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(0, 137, 123, 0.6);
}

.viki-anchor {
    font-weight: 400;
    color: rgba(0,123,255,.5);
    transition: color .16s linear;
    padding-left: 0.375em;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    opacity: 0;
}

.viki-anchor:hover {
    color: rgba(0,123,255,1);
    text-decoration: none;
    opacity: 1;
}

.viki-anchor::after {
    content: attr(data-anchor-icon);
}

@media print {
    #viki-navi, #viki-toc {
        display: none !important;
    }

    #viki-content {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 3rem 1.5rem !important;
    }
}
