/*//////////////////////////////////////////////*/
/* title */
/*//////////////////////////////////////////////*/

.markdown h1 {
    font-size  : 36px;
    font-weight: bold;
    margin     : 50px 0 10px;
    margin-bottom   : 30px;
}

.markdown h2 {
    font-size       : 22px;
    font-weight     : bold;
    background-color: var(--theme-color);
    color           : #fcfcfc;
    padding         : 10px 15px;
    border-radius   : 5px;
    margin          : 50px 0 10px;
    margin-bottom   : 30px;
}

.markdown h3 {
    font-size    : 22px;
    font-weight  : bold;
    border-bottom: 3px solid var(--theme-color);
    margin       : 50px 0 10px;
    margin-bottom   : 20px;
}

.markdown h4 {
    font-size  : 18px;
    font-weight: bold;
    border-left: 3px solid var(--theme-color);
    margin     : 50px 0 10px;
    padding    : 0 0 0 10px;
    margin-bottom   : 10px;
}

.markdown h5 {
    font-size  : 16px;
    margin     : 50px 0 10px;
    font-weight: bold;
    margin-bottom   : 10px;
}

/*//////////////////////////////////////////////*/
/* tags */
/*//////////////////////////////////////////////*/

.markdown hr {
    height          : 1px;
    background-color: #b8bfbe;
    margin          : 20px 0;
}

.markdown em {
    background: linear-gradient(transparent 80%, #e7ff46 80%);
    padding   : 0 5px;
    font-style: normal;
}

.markdown strong {
    background   : linear-gradient(transparent 0%, #e7ff46 0%);
    padding      : 0 5px;
    border-radius: 5px;
}

.markdown p code,
.markdown li code,
.markdown td code {
    font-family     : "Consolas", "Courier New", monospace;
    background-color: #d0d8d7;
    font-size       : 90%;
    font-style      : normal;
    padding         : 0 5px;
    border-radius   : 3px;
    color           : #1b1b1b;
}

/*//////////////////////////////////////////////*/
/* code */
/*//////////////////////////////////////////////*/

.markdown pre {
    background-color: #272b2b;
    color: #f0f8f7;
    border-radius: 4px;
    margin: 4px;
    position: relative;
    overflow-x: auto !important;
}
.markdown pre code {
    border-radius: 8px;
    overflow-x: auto !important;
}
.markdown pre code.hljs table tr {
    display: block !important;
    width: calc(100vw - 320px) !important;
}
.markdown pre code.hljs table tr .hljs-ln-numbers {
    min-width: 20px !important;
}
.markdown pre code.hljs table tr .hljs-ln-code {
    padding-right: 10px !important;
}
@media screen and (max-width: 640px) {
    .markdown pre {
        width: calc(100vw - 40px) !important;
    }
}
@media print{
    .markdown pre {
        width: calc(100vw - 40px) !important;
    }
}

.markdown .copy-button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    float: right;
    justify-content: right;
    align-items: center;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    margin: 0 auto;
    padding: 0 1em;
    height: 24px;
    border: none;
    line-height: 1;
    font-weight: bold;
    background: #666;
    color: #fff;
    cursor: pointer;
}
.markdown .copy-button:hover {
    background: #999
}

.markdown .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: #ccc;
    border: none !important;
    border-right: 1px solid #CCC !important;
    vertical-align: top;
    padding: 0 4px 0 0 !important;
}
.markdown .hljs-ln-code {
    padding-left: 10px;
    padding: 0 0 0 8px !important;
    border: none !important;
}
.markdown pre code.hljs {
    padding: 12px 8px 12px 8px !important;
}
.markdown pre code.hljs table {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.markdown pre code.hljs table td {
    font-size: 14px;
}

/*//////////////////////////////////////////////*/
/* list */
/*//////////////////////////////////////////////*/

.markdown ul,
.markdown ol {
    padding: 0 0 0.5em 1.5em;
}

.markdown ul>li,
.markdown ol>li {
    position  : relative;
    /* list-style: none; */
    margin    : 5px 0;
}

.markdown ul>li::after {
    display         : block;
    content         : "";
    position        : absolute;
    top             : 0.5em;
    left            : -1em;
    width           : 6px;
    height          : 6px;
    background-color: var(--theme-color);
    border-radius   : 100%;
}

.markdown ul ul li::after {
    display         : block;
    content         : "";
    position        : absolute;
    top             : 0.75em;
    left            : -1em;
    width           : 6px;
    height          : 2px;
    background-color: var(--theme-color);
}

.markdown ul ul ul li::after {
    display          : block;
    content          : "";
    position         : absolute;
    top              : 0.5em;
    left             : -1em;
    width            : 6px;
    height           : 6px;
    border-right     : 2px solid var(--theme-color);
    border-bottom    : 2px solid var(--theme-color);
    background-color : inherit;
    border-radius    : 0;
    -webkit-transform: rotate(-45deg);
    transform        : rotate(-45deg);
}

/* arrow */
.markdown ul.arrow>li::after {
    display          : block;
    content          : "";
    position         : absolute;
    top              : 0.5em;
    left             : -1em;
    width            : 6px;
    height           : 6px;
    border-right     : 2px solid var(--theme-color);
    border-bottom    : 2px solid var(--theme-color);
    background-color : inherit;
    border-radius    : 0;
    -webkit-transform: rotate(-45deg);
    transform        : rotate(-45deg);
}

/* check */
.markdown ul.check>li::after {
    display          : block;
    content          : "";
    position         : absolute;
    top              : 0.5em;
    left             : -1em;
    width            : 8px;
    height           : 3px;
    border-left      : 2px solid var(--theme-color);
    border-bottom    : 2px solid var(--theme-color);
    background-color : inherit;
    border-radius    : 0;
    -webkit-transform: rotate(-45deg);
    transform        : rotate(-45deg);
}

/* ol */
.markdown ol>li {
    counter-increment: li;
}

.markdown ol>li::before {
    content    : counter(li);
    display    : block;
    position   : absolute;
    top        : .3em;
    left       : -1em;
    color      : var(--theme-color);
    font-size  : 14px;
    line-height: 1;
    font-weight: bold;
}

/*//////////////////////////////////////////////*/
/* table */
/*//////////////////////////////////////////////*/

.markdown table {
    border-collapse: collapse;
    border         : 1px solid #b7bdbc;
    line-height    : 1.5;
    margin         : 10px 0;
    width          : 100%;
}

.markdown table th {
    padding       : 10px;
    font-size     : 12px;
    font-weight   : bold;
    vertical-align: top;
    text-align    : left;
    background    : #c6cbca;
    border        : 1px solid #b7bdbc;
}

.markdown table td {
    font-size     : 12px;
    padding       : 10px;
    vertical-align: top;
    border        : 1px solid #b7bdbc;
}

/* stripe */
.markdown table.stripe tr:nth-child(even) {
    background: #dcdfdf;
}

/* dark th */
.markdown table.dark th {
    color     : #fcfcfc;
    background: #272b2b;
}

/*//////////////////////////////////////////////*/
/* box */
/*//////////////////////////////////////////////*/

.markdown .box_gray {
    background   : #dcdfdf;
    border       : 2px solid #b8bfbe;
    border-radius: 10px;
    margin       : 20px 0;
    padding      : 1em;
}

.markdown .box_pink {
    background   : #e7d5d5;
    border       : 2px solid #d47e7e;
    border-radius: 10px;
    margin       : 20px 0;
    padding      : 1em;
}

.markdown .box_pink ul,
.markdown .box_pink ol {
    padding: 0 0 0 1.5em;
}

.markdown .box_pink ol>li::before {
    content    : counter(li);
    display    : block;
    position   : absolute;
    top        : .3em;
    left       : -1em;
    color      : #d47e7e;
    line-height: 1;
    font-weight: bold;
}

.markdown .box_pink ul>li::after {
    display         : block;
    content         : "";
    position        : absolute;
    top             : 0.5em;
    left            : -1em;
    width           : 6px;
    height          : 6px;
    background-color: #d47e7e;
    border-radius   : 100%;
}

.markdown .box_gray ul,
.markdown .box_gray ol {
    padding: 0 0 0 1.5em;
}

.markdown .box_gray ol>li::before {
    content    : counter(li);
    display    : block;
    position   : absolute;
    top        : .3em;
    left       : -1em;
    color      : #b8bfbe;
    line-height: 1;
    font-weight: bold;
}

.markdown .box_gray ul>li::after {
    display         : block;
    content         : "";
    position        : absolute;
    top             : 0.5em;
    left            : -1em;
    width           : 6px;
    height          : 6px;
    background-color: #b8bfbe;
    border-radius   : 100%;
}

/*//////////////////////////////////////////////*/
/* image */
/*//////////////////////////////////////////////*/

.markdown img {
    border: 1px solid #b7bdbc;
}

/*//////////////////////////////////////////////*/
/* link */
/*//////////////////////////////////////////////*/

.markdown a:hover {
    text-decoration: underline;
}

/*//////////////////////////////////////////////*/
/* separator */
/*//////////////////////////////////////////////*/

.markdown .separator {
    width: 100%;
    border-bottom: 1px solid rgb(180, 180, 180);
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
}