:root
{
    --main-bd-color: #F0F0F0;
    --main-fg-color: black;
    --code-fg-color: #e4e4e4;
    --header-width: 86px;
    --sample-width: 588px;
    --sample-height: 412px;
    --border-size: 4px;
    --jssamples-height: 420px; /*--sample-height + 2 * --border-size */
}

:-webkit-full-screen /* Chrome, Safari and Opera syntax */
{
    background-color: white;
}
  
:-moz-full-screen /* Firefox syntax */
{
    background-color: white;
}

:-ms-fullscreen /* IE/Edge syntax */
{
    background-color: white;
}

:fullscreen  /* Standard syntax */
{
    background-color: white;
}

canvas
{
    outline: none;
}

body
{
    font-family: Segoe UI, Verdana, Tahoma, Arial, Sans-Serif;
    font-size: 13px;
    overflow: hidden;
}

body > p:first-child
{
    max-height: 3.9em;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jssamples
{
    position: relative;
    z-index: 999;
    display: inline-flex;
    padding: 4px;
    width: 100%;
    height: 420px; /*Edge/IE*/
    height: var(--jssamples-height);
}

.jssamples .header, .jssamples .content, .jssamples .code pre .line-number, .jssamples .code pre .line-number span, .jssamples .code pre::before, .jssamples .code pre .property, .jssamples .code pre .property::after, .jssamples .content .sample blockquote.quote, .jssamples .code pre .property:not(.checked), .jssamples .code pre .property:not(.checked) + .option, .jssamples .code pre .property:not(.checked) + .option + .sep
{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.jssamples .header
{
    height: var(--sample-height);
    min-width: var(--header-width);
    width: var(--header-width);
    max-width: var(--header-width);
    border-top: var(--border-size) solid transparent;
    border-bottom: var(--border-size) solid transparent;
}

#anchor-help
{
    position: absolute;
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 1000;
    left: var(--header-width);
    margin-top: -16px;
    margin-left: -4px;
}

#anchor-help::after
{
    content: "\25B2"; /*BLACK UP-POINTING TRIANGLE*/
    display: block;
    position: relative;
    line-height: 16px;
    width: 16px;
    height: 16px;
    text-align: center;
}

#anchor-help.close::after
{
    content: "\25BC";  /*BLACK DOWN-POINTING TRIANGLE*/
}

#anchor-code::after
{
    content: "\25BC";  /*BLACK DOWN-POINTING TRIANGLE*/
    transform: rotate(90deg);
    display: block;
    position: absolute;
    line-height: 16px;
    width: 16px;
    height: 16px;
    text-align: center;
    margin-top: -16px;
    margin-left: -8px;
    cursor: pointer;
}

#anchor-code.close::after
{
    content: "\25B2"; /*BLACK UP-POINTING TRIANGLE*/
}

#anchor-help::after, #anchor-code::after, .jssamples .content .sample.active::after
{
    color: #DCDCDC;
    font-size: 85%;
}

.jssamples .header .sample
{
    padding: 4px;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #777777;
    position: relative;
    margin-left: -16px;
    text-align: right;
    padding-right: 16px;
}

.jssamples .header .sample.active
{
    color: black;  /*Edge/IE*/
    color: var(--main-fg-color);
    font-weight: bold;
}

.jssamples .header .sample.active::before
{
    content: "<";
    color: transparent;
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 12px solid #DCDCDC;
    border-bottom: 10px solid transparent;
    padding-left: var(--header-width);
}

.jssamples .content .sample
{
    display: none;
    width: var(--sample-width);
    overflow: hidden;
}

.jssamples .content .sample.active
{
    display: block;
    border: 4px solid #F0F0F0; /*Edge/IE*/
    border: var(--border-size) solid var(--main-bd-color);
    height: var(--sample-height);    
}

.jssamples .content .sample:not(.no-fullscreen).active::after
{
    content: "\2317"; /*VIEWDATA SQUARE*/
    position: relative;
    cursor: pointer;
    float: right;
    text-align: center;
    display: block;
    width: 16px;
    height: 16px;
    margin-top: -19px;
    margin-right: 0px;
}

.jssamples .content .sample.active:fullscreen::after
{
    display: none;
}

.jssamples .content .sample.no-fullscreen
{
    padding-left: 12px;
    padding-right: 12px;
}

.jssamples .content .sample.no-fullscreen canvas
{
    margin-top: 12px;
}

.jssamples .content .sample blockquote.quote
{
    margin: 0;
    padding-left: 6px;
    padding-right: 6px;
    font-style: italic;
    pointer-events: none;
    z-index: 9999;
}

.jssamples .content .sample blockquote.quote.b
{
    position: absolute;
    max-width: var(--sample-width);
    background: #F8F8F8;
    color: black;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 2px 2px 2px rgba(0,0,0,0.25);
    border-radius: 6px;
    font-style: normal;   
    padding: 4px;
    bottom: 32px;
    right: 32px;
    opacity: 0;
    transition: opacity 0.5s;
}

.jssamples .content .sample blockquote.quote.b::before
{
    content: "hints";
    position: absolute;
    margin-top: -1.25em;
    padding-left: 0.2em;
    padding-right: 0.2em;
    padding-bottom: 0.1em;
    border-radius: 2px;
    outline: 1px solid rgba(0,0,0,0.5);
    zoom: 0.85;
    background: #E8E8E8;
    color: black;
}

.jssamples .content .sample blockquote.quote.b ul
{
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 24px;
    list-style-type: circle;
}

.header:hover + .content blockquote.quote.b
{
    opacity: 1;
}

.jssamples .code
{
    padding: var(--border-size);
    margin-right: 8px;
    background: black;
    color: #e4e4e4;
    color: var(--code-fg-color );
    overflow: scroll;
    width: 100%;
    border-top: var(--border-size) solid var(--main-bd-color);
    border-bottom: var(--border-size) solid var(--main-bd-color);
}

.jssamples .code pre
{
    margin: 0;
    font-family: inherit;
}

.jssamples .code pre .line-number
{
    float:left;
    margin:0 1em 0 -1em;
    border-right: 1px solid #777777;
    text-align:right;
    color: #777777;
}

.jssamples .code pre .property
{
    position: relative;
    display: inline-block;
    float: left;
    width: 10px;
    height: 10px;
    border: 1px solid #777777;
    margin-right: -12px;
    transform: translateY(25%);
    /*background: black;*/
    /*border-radius: 6px;*/
}

.jssamples .code pre .opt-line
{
    cursor: pointer;
}

.jssamples .code pre .opt-line .value
{
    cursor: initial;
}

.jssamples .code pre .property:not(.checked), .jssamples .code pre .property:not(.checked) + .option, .jssamples .code pre .property:not(.checked) + .option + .sep
{
    opacity: 0.60;
}

.jssamples .code pre .property.checked::before
{
/*    
    content: " ";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: white;
*/    
    /*border-radius: 6px;*/

    content: "\2714";
    position: relative;
    top: -.5em;
    font-size: 120%;
}

.opt-line.opt-readonly
{
    pointer-events: none;
    opacity: 0.60;
}

.opt-readonly .property, .opt-readonly .property::before, .opt-readonly .property.checked::before
{
    display: none !important;
}

.jssamples .code pre .line-number span
{
    display: block;
    padding: 0 .5em 0 1em;
}

.jssamples .code pre .line-number .line-number-nonoption
{
    color: #555555
}

.jssamples .code pre .line-number .line-number-option
{
    color: white
}

.jssamples .code pre::before
{
    position: absolute;
    cursor: pointer;
	content: 'select code';
	right: 16px;
	margin: -12px;
    margin-right: 32px;
    font-size: 10px;
}

.jssamples .code pre .invalid, .jssamples .code pre .invalid :first-child
{
    color:red;
}

.jssamples .code pre .value:hover, .jssamples .code pre .value:focus
{
    outline: #569cd6 1px solid;
}

.string
{
    color:#ce9178;
}

.jssamples .code pre .tag
{
    color: #569cd6;
}

.jssamples .code pre .htag
{
    color: #808080
}

.jssamples .code pre .insidetag
{
    color: #9cdcfe;
}

.operator
{
    color: #569cd6;
}

.jssamples .code pre .comment
{
    color: #6a9955;
}

.jssamples .code pre .comment-operator
{
    color: green;
}

.jssamples .code pre .comment-array, .jssamples .code pre .comment-type, .jssamples .code pre .comment-string
{
    color: #ce9178
}

.jssamples .code pre .comment-name
{
    font-weight: bold;
}

.jssamples #logEvents
{
    padding: 4px;
    border-top: 4px solid #F0F0F0; /*Edge/IE*/
    border-top: var(--border-size) solid var(--main-bd-color);
    height: 12em;
    overflow-x: hidden;
    overflow-y: scroll;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.jssamples #logEvents span
{
    float: left;
    margin-right: 4px;
    padding-right: 4px;
    border-right: 1px solid #C0C0C0;
    text-align: right;
    color: #C0C0C0;
    width: auto;
}

.jssamples #logEvents::-webkit-scrollbar
{ 
    display: none; 
}

.jssamples .code pre .property.doc, .jssamples.doc, .jssamples.help .code pre::before
{
    display: none;
}

.jssamples.help
{
    position: relative;
    z-index: 0;
    left: 66px; /*Edge/IE*/
    left: var(--header-width);
    width: 92.6%;
    margin-top: -8px;
}

body::-webkit-scrollbar
{
    width: 0;
}

.jssamples.help .code
{
    background: white;
    color: black;
    border: initial;
    border-bottom: 4px solid #F0F0F0; /*Edge/IE*/
    border-left: 4px solid #F0F0F0; /*Edge/IE*/
    border-right: 4px solid #F0F0F0; /*Edge/IE*/
    border-bottom: var(--border-size) solid var(--main-bd-color);
    border-left: var(--border-size) solid var(--main-bd-color);
    border-right: var(--border-size) solid var(--main-bd-color);
    overflow: hidden;
    max-height: initial;
    margin-right: initial;
    width: initial;
}

.jssamples.help .code pre
{
    white-space: pre-wrap;
    overflow: auto;
    max-height: 12em;
}

.jssamples.help .code pre .comment-operator
{
    color: blue;
}

.jssamples.help .code pre .comment-type
{
    color: #569cd6
}

.jssamples.help .code pre .comment-array
{
    color: #e60000;
}

.jssamples.help .code pre .comment
{
    color: black;
}

.jssamples.help .code pre .value:hover, .jssamples.help .code pre .value:focus
{
    outline: initial;
}

kbd, .jssamples .code pre::before
{
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 2px 0 0 rgba(255,255,255,.7) inset;
    color: #333;
    display: inline-block;
    font-size: .85em;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

span.a3rrow
{
    zoom: 2;
    line-height: 0;
    position: relative;
    bottom: -2px;
}

kbd
{
    font-weight: 700;
}

@media only screen and (max-width: 580px)
{
    body > p:first-child
    {
        display: none!important;
    }

    .jssamples
    {
        display: inline;
    }

    .jssamples .header
    {
        display: inline;
        white-space: nowrap;
        margin-left: 4px;
    }

    .jssamples .content
    {
        margin-top: -4px;
    }

    .jssamples .header .sample
    {
        display: inline-block;
        margin-left: initial;
        padding-right: 4px;
        font-size: 75%;
        padding-left: 2px;
        padding-top: 2px;
    }

    .jssamples .header .sample.active
    {
        background: #F0F0F0; /*Edge/IE*/
        background: var(--main-bd-color);
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .jssamples .sample .code
    {
        display: block!important;
    }

    .jssamples .code, .jssamples.help, .jssamples .header .sample.active::before, #anchor-help::after, #anchor-code::after, .jssamples .content .sample.active::after, .jssamples .content .sample blockquote.quote.b
    {
        display: none!important;
    }
}
