:root {
    --grid-space: 20px;
}
* {
    box-sizing: border-box;
}
*:before,
*:after {
    box-sizing: inherit;
}
:focus-visible {
    outline: -webkit-focus-ring-color auto 0 !important;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body {
    box-shadow: 0 0 0 1px inset var(--color-border);
}

body[data-environment="env1"] {
    background-image: linear-gradient(
        180deg,
        var(--color-a) 60%,
        var(--color-b) 100%
    );
}

body[data-environment="env2"] {
    background-image: radial-gradient(var(--color-a), var(--color-b));
}

body[data-environment="env3"] {
    background-image:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0)
        ),
        linear-gradient(180deg, var(--color-a) 60%, var(--color-b) 100%);
}

arkid-model {
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: fade-in 3s ease-in;
    --progress-bar-color: #132042;
}

.am-inner {
    width: 100%;
    height: 100%;
    grid-template-columns:
        minmax(130px, auto)
        1fr
        minmax(130px, auto);
    grid-template-rows: minmax(50px, auto) 1fr minmax(50px, auto);
    grid-template-areas:
        "nw n ne"
        "w  i e "
        "sw s se";
    display: grid;
    pointer-events: none;
    padding: 20px;
}

.am-inner > * {
    pointer-events: auto;
}

/* Subgrid for dynamic elements (extra menus, scrubber) */
.am-inner-center {
    grid-area: i;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        ".  in ."
        "iw .  ie"
        ".  is .";
    pointer-events: none;
    padding: calc(var(--grid-space) / 2);
}

arkid-model:focus,
arkid-model:active {
    outline: none !important;
}

.configurator {
    width: 52px;
    text-align: center;
    z-index: 10;
    animation: fade-in ease 2s;
    opacity: 1;
}

.configurator.left {
    grid-area: w;
    margin-inline-start: var(--grid-space);
    align-self: center;
}

.configurator button {
    width: calc((100vh - 200px) / 11);
    max-width: 40px;
    min-width: 20px;
    height: calc((100vh - 200px) / 11);
    max-height: 40px;
    min-height: 20px;
    cursor: pointer;
    margin: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 0 solid rgba(0, 0, 0, 0.2);
    border-radius: 100%;
    transition: all 0.1s ease-in-out;
    background-color: #353332;
    background-position: center;
    background-size: contain;
    background-image: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2) 20%,
        rgba(255, 255, 255, 0.3) 80%
    );
    vertical-align: middle;
}

.configurator button.selected {
    box-shadow:
        0 0 0 2px white,
        0 0 0 4px #00000055;
    /* pointer-events: none; */
}

.configurator button.bg-icon {
    background-size: 75%;
    background-repeat: no-repeat;
}

.configurator.left button.bg-icon {
    background-size: 100%;
    background-repeat: no-repeat;
}

.configurator button.bg-tex25 {
    background-size: 25%;
    background-repeat: repeat;
}

.configurator button.bg-tex {
    background-size: 100%;
    background-repeat: repeat;
}

.bg-num::before {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

.bg-num:nth-child(1)::before {
    content: "1";
}

.bg-num:nth-child(2)::before {
    content: "2";
}

.bg-num:nth-child(3)::before {
    content: "3";
}

.bg-num:nth-child(4)::before {
    content: "4";
}

.bg-num:nth-child(5)::before {
    content: "5";
}

.bg-num:nth-child(6)::before {
    content: "6";
}

.configurator.centered {
    grid-area: s;
    width: fit-content;
    justify-self: center;
    margin-block-end: var(--grid-space);
}

/* Position extra menu and scrubber based on parent menu location */
/* Default: both appear in south inner area */
.configurator.extra,
.scrubber-container {
    width: max-content;
    grid-area: is;
    align-self: end;
    justify-self: center;
    pointer-events: auto;
}

.scrubber-container {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    animation: fade-in 500ms ease both;
}
.scrubber-container[hidden] {
    display: none;
}
.scrubber-container input.scrubber[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 300px;
    max-width: 48vw;
    background: transparent;
    height: 22px;
    vertical-align: middle;
    /* Extend touch target for mobile devices */
    padding: 30px 0;
    margin: -30px 10px;
}
.scrubber-container
    input.scrubber[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #000000;
    border-radius: 999px;
}
/*.scrubber-container.dark
    input.scrubber[type="range"]::-webkit-slider-runnable-track {
    background: #ffffff;
}*/
.scrubber-container input.scrubber[type="range"]::-moz-range-track {
    height: 4px;
    background: #000000;
    border-radius: 999px;
}
/*.scrubber-container.dark
    input.scrubber[type="range"]::-moz-range-track {
    background: #ffffff;
}*/
.scrubber-container input.scrubber[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000000;
    margin-top: -5px;
    box-shadow: none;
}
/*.scrubber-container.dark
    input.scrubber[type="range"]::-webkit-slider-thumb {
    background: #ffffff;
}*/
.scrubber-container input.scrubber[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000000;
    box-shadow: none;
}
/*.scrubber-container.dark
    input.scrubber[type="range"]::-moz-range-thumb {
    background: #ffffff;
}*/

/* Entry animation for the animation-color menu */
.configurator.extra .group {
    animation: mv-flyout 500ms ease both;
    will-change: transform, opacity;
}

@keyframes mv-flyout {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.group button:hover::after,
.group button.selected::after {
    left: 48px;
    text-shadow: 1px 1px 4px #fff;
    position: absolute;
    white-space: nowrap;
    font-weight: 400;
    right: 60px;
    color: #3d5261;
    box-shadow: none;
    z-index: 0;
    font-size: 0.65rem;
    top: 5px;
    opacity: 1;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    display: inline-table;
    letter-spacing: 0.5px;
}

.group button.selected::after {
    background: rgba(255, 255, 255, 0.5);
}

.configurator.centered button:hover::after {
    left: 0;
    right: unset;
    display: block;
    text-align: center;
    top: unset;
    bottom: 40px;
}

.configurator.right button:hover::after {
    left: unset;
    display: block;
    text-align: right;
    right: 50px;
}

.group {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    padding: 5px 0;
    backdrop-filter: blur(4px);
}

.configurator.centered .group {
    padding: 3px 4px;
}

.group button:active {
    transform: scale(0.9) !important;
    box-shadow: 0 0 0 0.2rem #5e5e5eff;
}

.group button {
    animation: fade-in 0.5s ease;
    visibility: hidden;
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

.group button:nth-child(1) {
    animation-delay: 0ms;
    visibility: visible;
}

.group button:nth-child(2) {
    animation-delay: 333ms;
    visibility: visible;
}

.group button:nth-child(3) {
    animation-delay: 666ms;
    visibility: visible;
}

.group button:nth-child(4) {
    animation-delay: 999ms;
    visibility: visible;
}

.group button:nth-child(5) {
    animation-delay: 1333ms;
    visibility: visible;
}

.group button:nth-child(6) {
    animation-delay: 1666ms;
    visibility: visible;
}

.group button:nth-child(7) {
    animation-delay: 1999ms;
    visibility: visible;
}

.group button:nth-child(8) {
    animation-delay: 2333ms;
    visibility: visible;
}

.group button:nth-child(9) {
    animation-delay: 2666ms;
    visibility: visible;
}

.group button:nth-child(10) {
    animation-delay: 2999ms;
    visibility: visible;
}

.group button:nth-child(11) {
    animation-delay: 3333ms;
    visibility: visible;
}

.group button:nth-child(12) {
    animation-delay: 3666ms;
    visibility: visible;
}

.group button:nth-child(13) {
    animation-delay: 3999ms;
    visibility: visible;
}

.group button:hover {
    border-color: #aaa;
    transform: scale(1.2);
    outline: 0;
    box-shadow: 0 0 0 0.2rem #5e5e5e26;
    animation:
        fade-in 0.5s ease,
        pulse 0.8s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
    animation-delay: 0ms;
}

.ar-button {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translate3d(-50%, 0, 0);
    /* top: 20px;
    grid-area: n;*/
    color: white;
    cursor: pointer;
    display: inline-block;
    padding: 11px 18px 11px 45px;
    font-weight: 400;
    box-shadow:
        0 0 8px rgba(0, 0, 0, 0.2),
        0 0 4px rgba(0, 0, 0, 0.25);
    z-index: 100;
    font-size: 0.85rem;
    width: fit-content;
    white-space: nowrap;
    border: solid 2px transparent;
    border-radius: 2em;
    --border-angle: 0turn;
    background:
        url("/assets/iconArkitGlyphARWhite.svg") no-repeat,
        conic-gradient(from var(--border-angle), #626b76, #626b76 95%)
            padding-box,
        conic-gradient(
                from var(--border-angle),
                #626b76 25%,
                #626b76,
                white 99%,
                transparent
            )
            border-box;
    background-position:
        7% 50%,
        center,
        center;
    background-size:
        22px 22px,
        100%,
        100%;
    animation: ar-bg-spin 3s linear infinite;
}

@keyframes ar-bg-spin {
    to {
        --border-angle: 1turn;
    }
}

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

.buyButton {
    background: #000;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);
    padding: 8px 19px;
    margin: 5px 7px;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 2px solid #000;
    vertical-align: middle;
    white-space: nowrap;
    transition:
        color 1s,
        background-color 1s,
        border 1s;
}

.buyButton[hidden] {
    display: none;
}

.buyButton:hover {
    background: #333;
}

.bybrand {
    grid-area: nw;
    width: 8vw;
    margin: 0;
    min-width: 60px;
    animation: fade-in 2s ease;
    z-index: 1000;
    color: #434242;
    pointer-events: none;
}

.bybrand img {
    width: 100%;
    max-height: 18vh;
}

/* Dark mode adjustments */
.bybrand.dark {
    filter: contrast(0) brightness(200%);
}

.byarkid {
    grid-area: sw;
    align-self: end;
    width: 40px;
    line-height: 1rem;
    font-size: 0.6rem;
    font-family: sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #132042;
    animation: fade-in 2s ease;
    margin-bottom: 2px;
}

.byarkid a {
    text-decoration: none;
}

.byarkid.dark {
    color: white;
}

.byarkid .arkidlogo {
    background: url("/assets/arkidgrey.svg") 100% no-repeat;
    background-size: 100%;
    display: block;
    margin-top: 2px;
    width: 38px;
    height: 16px;
    color: transparent;
}

.byarkid.dark .arkidlogo {
    background: url(/assets/arkidwhite.svg) 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    width: 40px;
}

.card {
    grid-area: e;
    align-self: center;
    justify-self: end;
    transform-style: preserve-3d;
    transition: all 0.5s linear;
    width: 130px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 3;
    padding: 5px;
    border-radius: 5px;
    font-family: sans-serif;
    display: block;
    animation: fade-in 2s ease;
    backface-visibility: hidden;
}

/* Ensure QR card content remains readable in dark mode */
arkid-model.dark .card.clickcard img {
    filter: contrast(0) brightness(200%);
}
arkid-model.dark .card.clickcard p,
arkid-model.dark .card.clickcard span {
    color: #fff;
}

.card p {
    line-height: 1.3rem;
    margin-top: 5px;
    text-align: center;
    color: #003c5d;
}

.card img {
    width: 115px;
    margin: 10px auto 0;
    display: inline-block;
}

.flipped {
    transform: rotateY(180deg);
}

.face {
    backface-visibility: hidden;
    background-color: rgba(255, 255, 255, 0.25);
}

.front {
    z-index: 1;
    transition: all 0.5s linear;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    background-size: 400% 400%;
    position: relative;
    animation: color-gradient 3s ease infinite;
}

.front p,
.back p {
    color: #222323;
    margin-bottom: 0;
}

.front p span {
    position: relative;
    inset-inline-start: -4px;
    top: -12px;
}

.front:hover {
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.05)
    );
    background-size: 400% 400%;
    animation: color-gradient 3s ease infinite;
    transition: all 0.5s ease;
}

.front img.hand {
    width: 40%;
    margin-top: 15px;
    margin-bottom: 4px;
    animation: horizontal-shaking 5s ease infinite;
    filter: invert(27%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%)
        contrast(103%);
}

.front p .glyphAR {
    width: 30px;
    filter: invert(27%) sepia(87%) saturate(1588%) hue-rotate(176deg)
        brightness(30%) contrast(103%);
    inset-inline-start: 4px;
    position: relative;
}

.back {
    overflow: hidden;
    z-index: -1;
    display: block;
    transform: rotateY(180deg);
    box-shadow: 0 0 0 #aaa;
    transition: all 0.5s linear;
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.05)
    );
    background-size: 400% 400%;
    animation: color-gradient 3s ease infinite;
    position: absolute;
    top: 0;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

.back span {
    margin-top: 3px;
    display: block;
}

.flipped .front {
    z-index: -1;
}

.flipped .back {
    z-index: 2;
}

.front img,
.front p .glyphAR {
    filter: invert(27%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(20%)
        contrast(103%);
}

.back img {
    filter: invert(27%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(45%)
        contrast(103%);
}

arkid-model::part(model) {
    opacity: 1;
    transition: opacity 10s ease-in-out;
}

.progress-bar.hide {
    visibility: hidden;
    transition: visibility 0.3s;
}

.progress-bar {
    display: block;
    width: 33%;
    height: 10%;
    max-height: 2%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 25px;
    box-shadow:
        0 3px 10px 3px rgba(0, 0, 0, 0.5),
        0 0 5px 1px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.5);
}

dialog:focus,
dialog:focus-visible {
    outline: none;
}

.hotspot {
    position: relative;
    width: 28px;
    height: 28px;
    /*background-color: var(--hotspot-color-b, #fff);*/
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("/assets/iconHotspot.svg");
    background-size: 45%;
    background-repeat: no-repeat;
    background-position: center;
    --min-hotspot-opacity: 0.2;
    --max-hotspot-opacity: 0.85;
}

.hotspot .plus {
    color: var(--hotspot-color-a, #000);
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.hotspot .tooltip {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    opacity: 0;
    transform: scale(0);
    transition: all 0s ease;
    border-radius: 50%;
}

.hotspot .tooltip,
.hotspot-modal .tooltip {
    background-color: var(--hotspot-color-b, #fff);
    color: var(--hotspot-color-a, #000);
    display: flex;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    flex-flow: column;
    flex-wrap: wrap;
    text-align: left;
    align-items: flex-start;
    border: none;
}

.hotspot-modal {
    padding: 0;
    opacity: 0.9;
    border: none;
    background: var(--hotspot-color-b, #fff);
    border-radius: 1em;
    color: var(--hotspot-color-a, #000);
    width: fit-content;
    max-width: calc(100vw - 40px);
}

.hotspot .tooltip p,
.hotspot-modal .tooltip p {
    display: block !important;
    max-width: 200px;
    text-align: left;
    margin: 0;
}

.hotspot .tooltip p.tooltipHeadline,
.hotspot-modal .tooltip p.tooltipHeadline {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.hotspot img,
.hotspot-modal img {
    display: block;
    margin: 5px auto 15px;
}

@media screen and (min-width: 641px) {
    .hotspot:hover {
        width: 0;
        height: 0;
        border-radius: 8px;
        padding: 0;
    }

    .hotspot:hover .plus {
        opacity: 0;
    }

    .hotspot:hover .tooltip {
        width: max-content;
        height: fit-content;
        border-radius: 8px;
        opacity: 1;
        transform: scale(1);
        color: var(--hotspot-color-a, #000);
        font-size: 1rem;
        line-height: 1.3rem;
        border: none;
        left: -15px;
        top: -15px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.05);
    }
}

.hotspot[hidden] {
    display: none;
}

.fullscreen-toggle,
.privacy-link {
    box-shadow: none;
    width: 25px;
    height: 24px;
    display: block;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: transparent;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: sans-serif;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.fullscreen-toggle:hover,
.privacy-link:hover {
    box-shadow: none;
    animation: none;
    height: 24px;
    padding: 6px 8px 6px 30px;
    border: none;
    color: #424242;
    opacity: 0.8;
    transition: all 0.3s;
    box-sizing: border-box;
    width: fit-content;
}

.fullscreen-toggle {
    grid-area: ne;
    justify-self: end;
    background: transparent url("/assets/fullscreen.svg") 4px 4px no-repeat;
    background-size: 18px;
}

.fullscreen-toggle.dark {
    background: transparent url("/assets/fullscreenwhite.svg") 4px 4px no-repeat;
    background-size: 18px;
}

.fullscreen-toggle[hidden],
.card[hidden] {
    display: none;
}

.privacy-link {
    grid-area: se;
    align-self: end;
    justify-self: end;
    background: transparent url("/assets/privacy.svg") 4px 3px no-repeat;
    background-size: 18px;
    display: inline-grid;
}

.privacy-link.dark {
    background: transparent url("/assets/privacywhite.svg") 4px 3px no-repeat;
    background-size: 18px;
}

.fullscreen-toggle.dark:hover,
.privacy-link.dark:hover {
    color: #fff;
}

.back-link {
    display: none;
    position: absolute;
    top: 25px;
    left: 25px;
    width: fit-content;
    animation: fade-in 2s ease;
    z-index: 1000;
    color: #424242;
    text-decoration: none;
    text-align: center;
    font-family: sans-serif;
    font-size: 0.7rem;
    padding: 6px 8px 6px 26px;
    background: transparent url("/assets/goBackArrow.svg") 4px 8px / 16px
        no-repeat;
    background-position: 4px 8px;
    transition: background-position 0.5s;
    height: 12px;
    border-radius: 0;
}

.back-link:hover {
    padding: 6px 8px 6px 26px;
    background-position: 0px 8px;
    transition: background-position 0.5s;
}

body.disable_qr .configurator.right {
    right: 23px;
}

body.disable_qr:not(.asm) .configurator.centered {
    grid-area: e;
    align-self: center;
    width: 52px;
}

body.disable_qr:not(.asm) .configurator.centered button:hover::after {
    left: unset;
    display: block;
    text-align: right;
    right: 50px;
    bottom: 5px;
}

@media screen and (max-width: 640px) {
    .am-inner {
        grid-template-columns: 50px 1fr 50px;
    }

    .privacy-link:hover,
    .fullscreen-toggle:hover {
        width: 25px;
        padding: 6px 8px;
        color: transparent;
    }

    .configurator.left {
        width: 46px;
        margin-inline-start: 0;
    }

    /*body:not(.asm) .configurator.centered {
        grid-area: e;
        align-self: center;
        width: 46px;
        margin-block-end: 0;
    }

    body:not(.asm) .configurator.centered .group {
        padding: 0;
    }

    body:not(.asm) .configurator.centered button:hover::after {
        left: unset;
        display: block;
        text-align: right;
        right: 50px;
        bottom: 5px;
    }

    body:not(.asm) .configurator.extra {
        width: 38px;
        grid-area: ie;
        align-self: center;
        justify-self: end;
    }

    body:not(.asm) .group button:nth-child(1) {
        margin-top: 5px;
    }

    body:not(.asm) .configurator button,
    body:not(.asm) a.buyButton {
        width: 30px;
        height: 30px;
        margin: 5px 0;
    }

    body:not(.asm) a.buyButton {
        background-image: url("/assets/iconCart.svg");
        background-size: 48%;
        background-position: 8px 8px;
        background-repeat: no-repeat;
        text-indent: -9999px;
        width: 32px;
        height: 32px;
        font-size: 0;
        padding: 0;
        border: 2px solid #fff;
        margin: 7px auto 5px;
    }*/

    .configurator button {
        width: 30px;
        height: 30px;
    }

    .card {
        display: none;
    }

    .fullscreen-toggle {
        display: none;
    }

    .Hotspot:hover .tooltip {
        width: 180px;
        height: fit-content;
        border-radius: 8px;
        opacity: 1;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.85);
        color: #000;
        font-size: 0.8rem;
        line-height: 1.1rem;
        border: 2px solid #fff;
        position: absolute;
        left: -50px;
        top: auto;
        bottom: 15px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.05);
    }
}

@media screen and (min-width: 641px) and (max-width: 799px) {
    .configurator.left {
        left: 40px;
    }
    .card {
        right: 40px;
    }
}

/*.configurator.left button:hover::after {
    content: attr(title);
}*/

arkid-model::part(default-progress-bar) {
    background: black;
    display: none;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #00000088;
    }

    100% {
        box-shadow: 0 0 0 10px #00000000;
    }
}

@keyframes color-gradient {
    0% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 50% 0%;
    }
}

@keyframes horizontal-shaking {
    4% {
        transform: translate3d(0, 0, 0);
    }

    8% {
        transform: translate3d(3px, 0, 0);
    }

    12% {
        transform: translate3d(-5px, 0, 0);
    }

    16% {
        transform: translate3d(6px, 0, 0);
    }

    20% {
        transform: translate3d(0, 0, 0);
    }
}

arkid-model .cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px;
    margin: 22px;
    overflow: hidden;
    display: none;
}

arkid-model .cta iframe {
    border: none;
    background: transparent;
    width: 100%;
    height: 121px;
    overflow: hidden;
    pointer-events: none;
}

arkid-model[ar-status="session-started"] .cta,
arkid-model[ar-status="object-placed"] .cta {
    display: block;
}

arkid-model[ar-status="session-started"] .am-inner,
arkid-model[ar-status="object-placed"] .am-inner {
    display: none;
}

.dot {
    display: none;
}

.dim {
    background: transparent;
    border: none;
    box-sizing: border-box;
    display: block;
    font-family:
        Futura,
        Helvetica Neue,
        sans-serif;
    font-size: 0.8em;
    overflow-wrap: break-word;
    padding: 0.5em 1em;
    position: absolute;
    width: max-content;
    height: max-content;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    --min-hotspot-opacity: 0;
}

arkid-model.dark .dim {
    color: white;
}

@media only screen and (max-width: 800px) {
    .dim {
        font-size: 3vw;
    }
}

.dimensionLineContainer {
    pointer-events: none;
    display: block;
    position: absolute;
}

.dimensionLine {
    stroke: #bababa;
    stroke-width: 1;
    stroke-dasharray: 5;
}

.hide {
    display: none;
}

:not(:defined) > * {
    display: none;
}

.loader svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 450px;
    z-index: -1;
}

.loader svg circle {
    stroke-dasharray: 127;
    stroke-dashoffset: calc(127 + var(--mv-progress) * 127 * -1);
    stroke-opacity: 0;
    stroke: #626b76;
    transition: stroke-opacity 0.5s;
}

.progress-animation .loader svg circle {
    stroke-opacity: 1;
    animation: arkid-progress 10s 1 ease-out;
}

@keyframes arkid-progress {
    from {
        stroke-dashoffset: 127;
    }
    to {
        stroke-dashoffset: 0;
    }
}

arkid-model:has(.hotspot:hover) {
    .hotspot:not(:hover) {
        opacity: 0;
    }
}

.popover-alert,
.popover-hover {
    border: none;
    color: white;
    background: black;
    padding: 1em;
    border-radius: 1em;
    pointer-events: none;
    position: fixed;
    bottom: 20vh;
    margin-left: 50vw;
    transform: translateX(-50%);
    outline: none;
}

.popover-alert[open] {
    animation: popover-fade 3s forwards;
}

@keyframes popover-fade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.popover-alert::backdrop,
.popover-hover::backdrop {
    background: none;
    display: none;
}

/* Kill browser default focus outlines */
*:focus,
*:focus-visible {
    outline: none !important;
}
