﻿/******************************************************/
/****************Component - Markdown******************/
/******************************************************/
.markdown-component{
    text-align: center;
}
.markdown-component .nhn-dev-portal-component-inner-wrap{
    max-width: 100%;
    text-align: left;
}
.service-navigation-active .nhn-dev-portal-component-inner-wrap{
    width: auto;
    display: block;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 20px;
}
.markdown-component-content-width{
    max-width: 100%;
}
/*Meta Banner*/
.markdown-component-meta-banner{
    position: relative;
    width: 100%;
    max-width: 100%;
    text-align: center;
    border-bottom: solid 1px var(--color-frame-day);
    box-sizing: border-box;
    padding: 0 var(--size-24);
    overflow: auto;
}
.markdown-component-meta-banner .markdown-component-content-width{
    display: inline-block;
    text-align: left;
}
.service-navigation-active .markdown-component-meta-banner .markdown-component-content-width{
    display: block;
}
.markdown-component-meta-update{
    position: relative;
    float: right;
    box-sizing: border-box;
    padding: var(--size-8) 0;
}
/*---------------------*/
.markdown-component blockquote {
    padding: 1px 0 13px 10px;
    margin: 0 0 20px;
    border-left: 5px solid;
    box-sizing: border-box;
}
.markdown-component h1{
    font-size: 35px;
    font-weight: 400;
}
.markdown-component h2 {
    font-size: 28px;
    font-weight: 400;
}
.markdown-component h3 {
    font-size: 21px;
    font-weight: 400;
}
.markdown-component h4 {
    font-size: 18px;
    font-weight: 400;
}
.markdown-component blockquote p {
    margin-bottom: 0;
    font-size: var(--markdown-block-quote-p-size);
    font-weight: var(--markdown-block-quote-p-weight);
    line-height: 1.25;
    font-family: var(--markdown-block-quote-p-family);
}
.markdown-component img{
    max-width: 100%;
}
.markdown-component table {
    margin-top: 6px;
    margin-bottom: 20px;
}
.markdown-component th,
.markdown-component td {
    border-right: solid 1px;
    border-top: solid 1px;
    text-align: left;
    white-space: break-spaces !important;
}
.markdown-component th:first-child,
.markdown-component td:first-child {
    border-left: solid 1px;
}
.markdown-component tr:last-child td{
    border-bottom: solid 1px;
}

/*Link boxes*/
.markdown-component .nhn-dev-portal-link-box-list-row{
    display: flex;
}
.markdown-component .nhn-dev-portal-link-box-list-row:not(:last-of-type){
    margin-bottom: 20px;
}
.markdown-component .markdown-link-box-grid{
    position: relative;
    float: left;
    width: 100%;
    box-sizing: border-box;
    padding: var(--size-16) 0;
}
.markdown-component .nhn-dev-portal-link-box-list-headline{
    margin-bottom: var(--size-16);
}
.markdown-component .nhn-dev-portal-markdown-link-box{
    display: flex;
    width: 100%;
    max-width: 436px;
    box-sizing: border-box;
    padding: var(--size-16);
    border-radius: 25px;
    margin-bottom: 20px;
    cursor: pointer;
}
.markdown-component .nhn-dev-portal-markdown-link-box:first-of-type{
    margin-top: 20px;
}
.markdown-component .nhn-dev-portal-link-box-list-row .nhn-dev-portal-markdown-link-box{
    margin-bottom: 0;
    margin-top: 0;
}
.markdown-component .nhn-dev-portal-link-box-list-row .nhn-dev-portal-markdown-link-box:not(:first-of-type){
    margin-left: 20px;
}
.markdown-component .nhn-dev-portal-link-box-inner-wrap{
    text-decoration: none;
}
/*Code sample groups*/
.nhn-markdown-code-samples{
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
}
.nhn-markdown-code-tab-group{
    max-width: 100%;
}
.nhn-markdown-code-tab-button{
    position: relative;
    top: 1px;
    box-sizing: border-box;
    padding: 10px 10px;
    margin-left: -1px;
    font-size: 14px;
    border: 1px solid;
    border-bottom: none !important;
    overflow: hidden;
}
.nhn-markdown-code-tab-button:first-of-type{
    border-top-left-radius: 5px;
    margin-left: 0;
}
.nhn-markdown-code-tab-button:last-of-type{
    border-top-right-radius: 5px;
}
.nhn-markdown-code-tab-button:hover{
    cursor:pointer;
}
.nhn-markdown-code-sample{
    display: none;
}
.nhn-markdown-code-sample.active{
    display: block;
}
.nhn-markdown-code-samples pre{
    width: 100% !important;
    margin-top: 0;
}

/*Notifications*/
.markdown-alert{
    box-sizing: border-box;
    border-left: solid 3px;
    border-color: white;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.markdown-alert p{
    margin: 0;
}
.markdown-alert p.markdown-alert-title{
    position: relative;
    box-sizing: border-box;
    padding-left: 10px;
}
.markdown-alert p.markdown-alert-title{
    top: -2px;
}
.markdown-alert p.markdown-alert-title svg{
    position: relative;
    left: -10px;
    top: 2px;
}

/*Day / Night mode*/
html.day-mode .markdown-component .nhn-dev-portal-markdown-link-box{
    background-color: var(--color-green-secondary);
}
html.day-mode .markdown-component .nhn-dev-portal-markdown-link-box .nhn-dev-portal-link-box-headline{
    color: var(--color-gray-black);
}
html.day-mode .markdown-component .nhn-dev-portal-markdown-link-box .nhn-dev-portal-link-box-description{
    color: var(--color-gray-black);
}
html.day-mode .markdown-component .nhn-dev-portal-markdown-link-box:hover{
    background-color: var(--color-green-primary);
}
html.day-mode .markdown-component .nhn-dev-portal-markdown-link-box:hover .nhn-dev-portal-link-box-headline,
html.day-mode .markdown-component .nhn-dev-portal-markdown-link-box:hover .nhn-dev-portal-link-box-description{
    color: var(--color-gray-white);
}
html.day-mode .markdown-component th,
html.day-mode .markdown-component td {
    border-color:  #dbdbdb;
}
html.day-mode .markdown-component th:first-child,
html.day-mode .markdown-component td:first-child {
    border-color: #dbdbdb;
}
html.day-mode .markdown-component tr:last-child td{
    border-color: #dbdbdb;
}
html.day-mode .markdown-component th {
    background-color: #f0f0f0;
}
html.day-mode .nhn-markdown-code-tab-button.active{
    background-color: var(--color-gray-middle);
}
html.day-mode .nhn-markdown-code-tab-button:hover{
    background-color: var(--color-gray-middle);
}
html.day-mode .nhn-markdown-code-tab-button{
    background-color: #f7f7f9;
    border-color: #e1e1e8;
}
html.day-mode .markdown-component blockquote {
    border-color: #e1e1e8;
    background: #f7f7f9;
}
html.day-mode .markdown-component blockquote.warning {
    border-color: var(--color-yellow-main);
    background: var(--color-yellow-light);
}
html.day-mode .markdown-component blockquote.error {
    border-color: var(--color-red-main);
    background: var(--color-red-light);
    color: var(--color-gray-black);
}
html.day-mode .markdown-alert-note,
html.day-mode .markdown-alert-note p,
html.day-mode .markdown-alert-note p svg{
    fill: #0b66d8;
    border-color: #0b66d8;
}
html.day-mode .markdown-alert-tip,
html.day-mode .markdown-alert-tip p,
html.day-mode .markdown-alert-tip p svg{
    fill: #1b7f35;
    border-color: #1b7f35;
}
html.day-mode .markdown-alert-important,
html.day-mode .markdown-alert-important p,
html.day-mode .markdown-alert-important p svg{
    fill: #7e4fde;
    border-color: #7e4fde;
}
html.day-mode .markdown-alert-warning,
html.day-mode .markdown-alert-warning p,
html.day-mode .markdown-alert-warning p svg{
    fill: #9d6901;
    border-color: #9d6901;
}
html.day-mode .markdown-alert-caution,
html.day-mode .markdown-alert-caution p,
html.day-mode .markdown-alert-caution p svg{
    fill: #cc232a;
    border-color: #cc232a;
}
/*----------*/
html.night-mode .markdown-component-meta-banner {
    border-color: var(--color-frame-night);
}
html.night-mode .markdown-component .nhn-dev-portal-markdown-link-box{
    background-color: var(--color-green-primary);
}
html.night-mode .markdown-component .nhn-dev-portal-markdown-link-box .nhn-dev-portal-link-box-headline{
    color: var(--color-gray-white);
}
html.night-mode .markdown-component .nhn-dev-portal-markdown-link-box .nhn-dev-portal-link-box-description{
    color: var(--color-gray-white);
}
html.night-mode .markdown-component .nhn-dev-portal-markdown-link-box:hover{
    background-color: var(--color-green-middle);
}
html.night-mode .markdown-component{
    color: var(--color-gray-white);
}
html.night-mode .markdown-component th,
html.night-mode .markdown-component td {
    border-color:  var(--color-green-middle);
    color: var(--color-gray-white);
}
html.night-mode .markdown-component th:first-child,
html.night-mode .markdown-component td:first-child {
    border-color: var(--color-green-middle);
}
html.night-mode .markdown-component tr:last-child td{
    border-color: var(--color-green-middle);
}
html.night-mode .markdown-component th {
    background-color: var(--color-green-dark);
}
html.night-mode .nhn-markdown-code-tab-button{
    background-color: var(--color-green-dark);
    border-color: var(--color-green-middle);
    color: var(--color-gray-white);
}
html.night-mode .nhn-markdown-code-tab-button.active{
    background-color: var(--color-green-primary);
}
html.night-mode .nhn-markdown-code-tab-button:hover{
    background-color: var(--color-green-primary);
}
html.night-mode .markdown-component blockquote {
    border-color: var(--color-green-middle);
    background: var(--color-green-dark);
}
html.night-mode .markdown-component blockquote.warning {
    border-color: var(--color-yellow-main);
    background: #4d4103;
}
html.night-mode .markdown-component blockquote.error {
    border-color: var(--color-red-main);
    background: darkred;
}
html.night-mode .markdown-alert-note,
html.night-mode .markdown-alert-note p,
html.night-mode .markdown-alert-note p svg{
    fill: #579ae0;
    border-color: #579ae0;
}
html.night-mode .markdown-alert-tip,
html.night-mode .markdown-alert-tip p,
html.night-mode .markdown-alert-tip p svg{
    fill: #60ab7a;
    border-color: #60ab7a;
}
html.night-mode .markdown-alert-important,
html.night-mode .markdown-alert-important p,
html.night-mode .markdown-alert-important p svg{
    fill: #ae86e2;
    border-color: #ae86e2;
}
html.night-mode .markdown-alert-warning,
html.night-mode .markdown-alert-warning p,
html.night-mode .markdown-alert-warning p svg{
    fill: #bc9752;
    border-color: #bc9752;
}
html.night-mode .markdown-alert-caution,
html.night-mode .markdown-alert-caution p,
html.night-mode .markdown-alert-caution p svg{
    fill: #db6670;
    border-color: #db6670;
}

/*Mermaid diagram overrides for night mode*/
html.night-mode .mermaid line{
    stroke: var(--color-green-middle) !important;
    fill: var(--color-green-middle) !important;
}
html.night-mode .mermaid text{
    fill: var(--color-gray-white) !important;
}
html.night-mode .mermaid rect{
    stroke: var(--color-green-middle) !important;
    fill: var(--color-gray-middle) !important;
}
html.night-mode .mermaid .actor,
html.night-mode .mermaid .actor-man circle,
html.night-mode .mermaid .actor-man line,
html.night-mode .mermaid .node rect,
html.night-mode .mermaid  rect.note,
html.night-mode .mermaid .node polygon{
    stroke: var(--color-green-middle) !important;
    fill: var(--color-green-middle) !important;
}
html.night-mode .mermaid .cluster rect{
    stroke: var(--color-green-middle) !important;
    fill: var(--color-gray-middle) !important;
}
html.night-mode .mermaid .edgeLabel{
    background-color: var(--color-green-dark) !important;
}
html.night-mode .mermaid text.actor tspan{
    fill: var(--color-gray-white) !important;
}
html.night-mode .mermaid span{
    color: var(--color-gray-white) !important;
}
html.night-mode .mermaid rect.note + text tspan{
    fill: var(--color-green-light) !important;
}
html.night-mode .mermaid .messageLine0,
html.night-mode .mermaid .messageLine1,
html.night-mode .mermaid .flowchart-link{
    stroke: var(--color-green-light) !important;
}
html.night-mode .mermaid .messageText{
    fill: var(--color-green-light) !important;
}
html.night-mode .mermaid marker,
html.night-mode .mermaid #arrowhead path{
    stroke: var(--color-green-light) !important;
    fill: var(--color-green-light) !important;
}

/*Responsive - Breakpoints*/
/*Mobile Viewport Content Variables (<- 1079px)*/
@media only screen and (max-width: 1391px){
    .markdown-component{
        margin-top: 0;
    }
    .nhn-dev-portal-component-inner-wrap{
        padding: 0 var(--size-16);
        box-sizing: border-box;
    }
    .markdown-component-content-width{
        position: relative;
        width: auto;
        max-width: 100%;
    }
    .markdown-component-meta-update{
        padding: var(--size-8);
    }
    .markdown-component-meta-banner .markdown-component-content-width{
        display: block;
        text-align: left;
    }
    .markdown-component .nhn-dev-portal-link-box-list-row{
        display: block;
    }
    .markdown-component .nhn-dev-portal-markdown-link-box{
        display: block;
        position: relative;
        clear: both;
        overflow: auto;
    }
    .markdown-component .nhn-dev-portal-link-box-list-row .nhn-dev-portal-markdown-link-box:not(:first-of-type){
        margin-left: 0;
    }
    .markdown-component .nhn-dev-portal-link-box-list-row .nhn-dev-portal-markdown-link-box{
        margin-bottom: 20px;
    }
    .markdown-component .nhn-dev-portal-link-box-list-row:not(:last-of-type){
        margin-bottom: 0;
    }
    .markdown-component ul{
        padding-left: 20px;
    }
}
