/* Art AR API documentation */
/* Reset and base styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

img, embed, object, video { 
    max-width: 100%; 
}

* {
    transition: all 0.3s ease;
}

html, body {
    position: relative;
    min-height: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

strong {
    font-weight: 500;
}

i {
    font-style: italic;
}

.overflow-hidden {
    position: relative;
    overflow: hidden;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(31, 35, 64, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #1f2340;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    border-color: rgba(107, 70, 193, 0.3);
}

.language-button .flag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(107, 70, 193, 0.12);
    color: #553c9a;
}

.language-button .arrow {
    font-size: 10px;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #5b6079;
}

.language-dropdown.open .language-button .arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 35, 64, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-dropdown.open .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2340;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: rgba(107, 70, 193, 0.08);
    color: #6b46c1;
}

.language-option.selected {
    background: rgba(107, 70, 193, 0.12);
    color: #6b46c1;
    font-weight: 500;
}

.language-option .flag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(107, 70, 193, 0.12);
    color: #553c9a;
}

/* Sidebar */
.left-menu {
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    box-sizing: border-box;
    background-color: #f7f8fc;
    overflow-x: hidden;
    font-size: 18px;
}

.left-menu .content-infos {
    position: relative;
    padding: 50px 10% 10px 10%;
    margin-bottom: 20px;
}

.left-menu .info {
    position: relative;
    font-size: 14px;
    margin-top: 5px;
    color: #5b6079;
}

.left-menu .info b {
    font-weight: 500;
    color: #553c9a;
}

.left-menu .info .critical {
    color: #e04040;
}

.content-logo {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1.425em 0;
}

.content-logo img {
    display: block;
    margin: 0 auto;
    max-width: 70%;
    vertical-align: middle;
}

.content-logo span {
    display: block;
    text-align: center;
    margin-left: 10px;
    vertical-align: middle;
    color: #1f2340;
    font-size: 1.1em;
}

.content-menu {
    margin: 2em auto 2em;
    padding: 0 0 100px;
}

.content-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 28px;
}

.content-menu ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.content-menu ul li:hover,
.content-menu ul li.active {
    background-color: #ece7fb;
}

.content-menu ul li:hover a,
.content-menu ul li.active a {
    color: #6b46c1;
}

@media (hover: none) {
    .content-menu ul li:not(.active):hover {
        background-color: inherit;
    }
    .content-menu ul li:not(.active):hover a {
        color: #5b6079;
    }
}

.content-menu ul li a {
    padding: 12px 13.25%;
    color: #5b6079;
    letter-spacing: 0.025em;
    line-height: 1.1;
    display: block;
    text-transform: capitalize;
}

/* Main content */
.content-page {
    position: relative;
    box-sizing: border-box;
    margin-left: 300px;
    z-index: 2;
    background-color: #1f2340;
    min-height: 100%;
    padding-bottom: 100px;
}

.content {
    position: relative;
    z-index: 30;
}

.content a {
    color: #b6a4f7;
    text-decoration: none;
}

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

.scroll-to-link {
    cursor: pointer;
}

p, .content ul, .content ol {
    font-size: 14px;
    color: #e8eaf6;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 300;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6,
.content p, .content table, .content aside, .content dl, .content ul, .content ol,
.content .central-overflow-x {
    margin-right: 0;
    padding: 0 28px;
    box-sizing: border-box;
    display: block;
    max-width: 100%;
}

.content ul, .content ol {
    padding: 0 44px;
}

.content h1:first-child {
    font-size: 1.333em;
    color: #b6a4f7;
    padding-top: 2.5em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1.3em;
    clear: both;
}

.content h2, .content h3, .content h4, .content h5, .content h6 {
    font-size: 15px;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    color: #b6a4f7;
    text-transform: uppercase;
}

.content h2 {
    font-size: 1.333em;
}

.content h4 {
    color: #b6a4f7;
    margin-top: 0;
    text-transform: none;
    font-size: 14px;
    margin-bottom: 0.2em;
}

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    background-color: rgba(182, 164, 247, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    color: #b6a4f7;
}

/* Tables */
.content table {
    font-size: 0.825em;
    margin-bottom: 1.5em;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

.content table tr:last-child {
    border-bottom: 1px solid #3a3f63;
}

.content table th {
    font-size: 0.925em;
    padding: 5px 18px 5px 0;
    border-bottom: 1px solid #3a3f63;
    vertical-align: bottom;
    text-align: left;
    line-height: 1.6;
    color: #b6a4f7;
    font-weight: 500;
}

.content table td {
    padding: 5px 18px 5px 0;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    color: #e8eaf6;
}

.scrollable-table-container {
    overflow-x: auto;
    margin: 0 28px;
}

.scrollable-table-container table {
    min-width: 600px;
    margin: 0;
    padding: 0;
}

/* Frame table styles */
.frame-table {
    margin: 20px 0;
}

.frame-table table {
    width: 100%;
}

.frame-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #3a3f63;
}

.frame-table td:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-weight: bold;
    color: #b6a4f7;
    width: 200px;
}

/* Frame image styles */
.frame-image {
    width: 200px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(182, 164, 247, 0.3);
}

.frame-list {
    margin-top: 15px;
    width: 100%;
}

.frame-list table {
    width: 100%;
    border-collapse: collapse;
}

.frame-list td {
    padding: 1px 1px;
    text-align: center;
    vertical-align: top;
    width: 25%;
}

.frame-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: #b6a4f7;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.1;
    margin: 0;
}

.frame-label {
    color: #e8eaf6;
    font-size: 11px;
    font-style: italic;
    line-height: 1.1;
    margin: 0;
}

/* Input styles */
.content input.full-width {
    font-weight: bold;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: #b6a4f7;
    background: rgba(182, 164, 247, 0.1);
    border: 1px solid #b6a4f7;
    display: block;
    width: calc(100% - 56px);
    margin: 0 28px;
    padding: 12px;
    border-radius: 4px;
}

.content input.full-width::placeholder {
    color: #777;
    opacity: 1;
}

#user-passkey-status {
    display: block;
    margin: 10px 28px;
    font-size: 14px;
}

#user-passkey-status.passkey-ok {
    color: #b6a4f7;
}

#user-passkey-status.passkey-invalid {
    color: #ff6b6b;
}

#user-passkey-examples {
    margin: 20px 28px;
    padding: 0;
    list-style: none;
}

/* Examples layout styles */
.examples-container {
    margin: 20px 28px;
    padding: 0;
}

.examples-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(182, 164, 247, 0.05);
    border: 1px solid rgba(182, 164, 247, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.examples-table td {
    width: 50%;
    padding: 20px;
    vertical-align: top;
    border: none;
    border-right: 1px solid rgba(182, 164, 247, 0.2);
}

.examples-table td:last-child {
    border-right: none;
}

.example-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.example-title {
    font-size: 16px;
    color: #b6a4f7;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.example-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    color: #b6a4f7;
    text-decoration: none;
    word-break: break-all;
    background: rgba(182, 164, 247, 0.1);
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid rgba(182, 164, 247, 0.3);
    transition: all 0.3s ease;
    display: block;
}

.example-link:hover {
    background: rgba(182, 164, 247, 0.2);
    border-color: #b6a4f7;
    text-decoration: none;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(182, 164, 247, 0.3);
    margin-bottom: 15px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
    background: #1a1a1a;
}

.iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #b6a4f7;
    font-size: 12px;
    text-align: center;
}

.iframe-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(182, 164, 247, 0.3);
    border-top: 2px solid #b6a4f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.code-snippet-container {
    margin-top: auto;
}

.code-snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.code-snippet-label {
    font-size: 12px;
    color: #b6a4f7;
    font-weight: 500;
    text-transform: uppercase;
}

.copy-button {
    background: rgba(182, 164, 247, 0.2);
    border: 1px solid rgba(182, 164, 247, 0.5);
    color: #b6a4f7;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.copy-button:hover {
    background: rgba(182, 164, 247, 0.3);
    border-color: #b6a4f7;
}

.copy-button.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.code-snippet {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    color: #b6a4f7;
    background: rgba(182, 164, 247, 0.1);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(182, 164, 247, 0.3);
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

/* Responsive design for examples */
@media only screen and (max-width: 1024px) {
    .examples-table {
        display: block;
    }
    
    .examples-table td {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(182, 164, 247, 0.2);
    }
    
    .examples-table td:last-child {
        border-bottom: none;
    }
    
    .iframe-container {
        height: 250px;
    }
}

@media only screen and (max-width: 680px) {
    .examples-container {
        margin: 20px 15px;
    }
    
    .examples-table td {
        padding: 15px;
    }
    
    .example-link {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .iframe-container {
        height: 200px;
    }
    
    .code-snippet {
        font-size: 9px;
        padding: 8px;
    }
    
    .copy-button {
        font-size: 9px;
        padding: 3px 6px;
    }
}

.burger-menu-icon {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    position: absolute;
    right: 26px;
    top: 26px;
    display: none;
}
.burger-menu-icon .line {
    fill: none;
    stroke: #000;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.burger-menu-icon .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.burger-menu-icon .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
}
.burger-menu-icon .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
html.menu-opened .burger-menu-icon .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}
html.menu-opened .burger-menu-icon  .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
}
html.menu-opened .burger-menu-icon  .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}

body.one-content-column-version .content h1,
body.one-content-column-version .content h2,
body.one-content-column-version .content h3,
body.one-content-column-version .content h4,
body.one-content-column-version .content h5,
body.one-content-column-version .content h6,
body.one-content-column-version .content p,
body.one-content-column-version .content table,
body.one-content-column-version .content ul,
body.one-content-column-version .content ol,
body.one-content-column-version .content aside,
body.one-content-column-version .content dl,
body.one-content-column-version .content ul,
body.one-content-column-version .content ol {
    margin-right: 0;
    max-width: 100%;
}
body.one-content-column-version .content-page .content p,
body.one-content-column-version .content-page .content pre {
    max-width: 100%;
}
body.one-content-column-version .content-page {
    background-color: #1f2340;
}
body.one-content-column-version .content h1:first-child,
body.one-content-column-version .content h2,
body.one-content-column-version .content h3,
body.one-content-column-version .content h4,
body.one-content-column-version .content h5,
body.one-content-column-version .content h6 {
    color: #b6a4f7;
}
body.one-content-column-version p,
body.one-content-column-version .content ul,
body.one-content-column-version .content ol {
    color: #e8eaf6;
}
body.one-content-column-version .content table td {
    color: #e8eaf6;
}
body.one-content-column-version .content thead {
    color: #8b90ab;
}

body code.param-index, body code span.param-index {
    color: #b6a4f7;
    font-weight: bold;
}

@media only screen and (max-width:980px){
    .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, .content p, .content table, .content ul, .content ol, .content aside, .content dl, .content ul, .content ol {
        margin-right: 0;
    }
    .content .central-overflow-x {
        margin: 0;
        padding: 0 28px;
    }
    .content-code{
        display: none;
    }
    .content pre, .content blockquote {
        margin: 20px 0;
        padding: 28px;
        display: block;
        width: auto;
        float: none;
    }
    .content pre code {
        margin-top: 0;
    }
}

@media only screen and (max-width:680px){
    html {
        scroll-padding-top: 83px;
    }
    html.menu-opened {
        overflow: hidden;
    }
    .left-menu {
        position: relative;
        width: auto;
    }
    .left-menu .content-menu {
        position: fixed;
        width: 400px;
        max-width: 90vw;
        z-index: 3;
        top: 0;
        bottom: 0;
        right: -405px;
        left: auto;
        background-color: #fff;
        margin: 0;
        overflow-x: hidden;
        padding-top: 83px;
        padding-bottom: 20px;
    }
    .left-menu .content-menu ul {
        position: relative;
    }
    .left-menu .mobile-menu-closer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        background-color: rgba(31, 35, 64, .5);
        opacity: 0;
        visibility: hidden;
    }
    html.menu-opened .left-menu .mobile-menu-closer {
        opacity: 1;
        visibility: visible;
    }
    html.menu-opened .left-menu .content-menu {
        right: 0;
    }
    .left-menu .content-logo {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 4;
        background-color: #f7f8fc;
    }
    .content-logo .logo {
        margin-right: 65px;
    }
    .content-page{
        margin-left: 0;
        padding-top: 83px;
    }
    .burger-menu-icon {
        display: block;
    }
}

/* Mobile responsive adjustments */
@media only screen and (max-width: 680px) {
    .language-selector {
        top: 10px;
        left: 10px;
        z-index: 11;
    }
    
    .language-button {
        padding: 8px 12px;
        min-width: 100px;
        font-size: 13px;
    }
    
    .language-button .flag {
        font-size: 11px;
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .language-option .flag {
        font-size: 11px;
    }
}

/* Adjust content logo positioning to avoid overlap */
@media only screen and (max-width: 680px) {
    .content-logo {
        padding-left: 120px;
    }
    
    .content-logo .logo {
        margin-left: 0;
    }
}

.cf:before, .cf:after { content: ""; display: block; }
.cf:after { clear: both; }
.ie6 .cf { zoom: 1 }

/* Changelog */
.content .changelog-version {
    color: #b6a4f7;
    font-weight: 500;
}

/* Desktop: keep the logo clear of the fixed language selector */
@media only screen and (min-width: 681px) {
    .content-logo {
        padding-top: 84px;
    }
}
