/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0px;
    overflow: hidden;
    background:
        radial-gradient(circle at 60% 45%, rgba(218, 169, 82, 0.24), transparent 0 27%),
        radial-gradient(circle at 48% 52%, rgba(68, 121, 142, 0.18), transparent 0 36%),
        linear-gradient(145deg, #1a1d1f 0%, #101417 48%, #080a0d 100%);
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(rgba(116, 166, 181, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 166, 181, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(116, 166, 181, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 166, 181, 0.06) 1px, transparent 1px);
    background-position: center;
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    -webkit-mask-image: radial-gradient(circle at center, black 0 58%, transparent 88%);
    mask-image: radial-gradient(circle at center, black 0 58%, transparent 88%);
    opacity: 0.78;
    z-index: 0;
}

body::after {
    background:
        radial-gradient(ellipse at 50% 52%, transparent 0 28%, rgba(5, 7, 9, 0.22) 60%, rgba(2, 3, 5, 0.72) 100%),
        repeating-linear-gradient(112deg, transparent 0 44px, rgba(255, 255, 255, 0.028) 45px, transparent 47px),
        linear-gradient(90deg, rgba(218, 169, 82, 0.14), transparent 28%, transparent 72%, rgba(92, 156, 176, 0.12));
    z-index: 0;
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

#v3d-container,
.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 3;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }


.v3d-simple-preloader-logo {
    background-image: url('media/logo180.png');
}

/* Lesson control polish: overrides styles injected by the UI plugin. */
#lesson-ui-panel.lui-panel {
    left: 50% !important;
    right: auto !important;
    bottom: 18px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    transform: translateX(-50%) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(218, 169, 82, 0.24) !important;
    background:
        linear-gradient(180deg, rgba(34, 39, 42, 0.86), rgba(12, 15, 18, 0.88)) !important;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
}

#lesson-ui-panel .lui-panel__handle {
    height: 26px !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    border-bottom: 1px solid rgba(218, 169, 82, 0.14) !important;
    background:
        linear-gradient(90deg, transparent, rgba(218, 169, 82, 0.10), transparent) !important;
}

#lesson-ui-panel .lui-panel__toggle {
    width: 72px !important;
    min-width: 72px !important;
    height: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    color: rgba(235, 202, 137, 0.92) !important;
    background: transparent !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-shadow: 0 0 10px rgba(218, 169, 82, 0.35) !important;
}

#lesson-ui-panel .lui-panel__content {
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    padding: 10px 12px 12px !important;
}

#lesson-ui-panel .lui-actionbar {
    width: max-content !important;
    max-width: calc(100vw - 48px) !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
}

#lesson-ui-panel .lui-btn {
    position: relative !important;
    min-width: 112px !important;
    height: 42px !important;
    padding: 0 18px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(218, 169, 82, 0.28) !important;
    color: rgba(246, 239, 221, 0.96) !important;
    background:
        linear-gradient(180deg, rgba(53, 59, 61, 0.96), rgba(20, 24, 27, 0.96)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.26) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

#lesson-ui-panel .lui-btn::before {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: rgba(218, 169, 82, 0.84);
    box-shadow: 0 0 10px rgba(218, 169, 82, 0.58);
    transform: translateY(-50%);
}

#lesson-ui-panel .lui-btn:hover {
    border-color: rgba(239, 194, 103, 0.58) !important;
    background:
        linear-gradient(180deg, rgba(67, 74, 76, 0.98), rgba(25, 30, 33, 0.98)) !important;
    filter: brightness(1.08) !important;
}

#lesson-ui-panel .lui-btn:active {
    transform: translateY(1px) scale(0.99) !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.32),
        0 4px 10px rgba(0, 0, 0, 0.20) !important;
}

#lesson-ui-panel .lui-btn.is-primary {
    border-color: rgba(82, 169, 190, 0.48) !important;
    background:
        linear-gradient(180deg, rgba(42, 77, 84, 0.98), rgba(14, 32, 38, 0.98)) !important;
}

#lesson-ui-panel .lui-btn.is-success {
    border-color: rgba(218, 169, 82, 0.52) !important;
    background:
        linear-gradient(180deg, rgba(112, 81, 33, 0.98), rgba(54, 37, 16, 0.98)) !important;
}

#lesson-ui-panel .lui-btn.is-danger {
    border-color: rgba(190, 93, 77, 0.50) !important;
    background:
        linear-gradient(180deg, rgba(92, 46, 40, 0.98), rgba(42, 19, 18, 0.98)) !important;
}

#lesson-ui-panel .yaoshi-play-toggle {
    min-width: 92px !important;
}

#lesson-ui-panel .yaoshi-play-toggle::before {
    border-radius: 2px;
}

#lesson-ui-panel .yaoshi-play-toggle.is-paused {
    border-color: rgba(82, 169, 190, 0.56) !important;
    background:
        linear-gradient(180deg, rgba(35, 75, 84, 0.98), rgba(13, 34, 40, 0.98)) !important;
}

#lesson-ui-panel .yaoshi-play-toggle.is-paused::before {
    border-radius: 50%;
    background: rgba(97, 201, 224, 0.88);
    box-shadow: 0 0 10px rgba(97, 201, 224, 0.58);
}

#lesson-ui-panel .yaoshi-annotation-toggle {
    min-width: 108px !important;
}

#lesson-ui-panel .yaoshi-annotation-toggle::before {
    background: rgba(97, 201, 224, 0.88);
    box-shadow: 0 0 10px rgba(97, 201, 224, 0.58);
}

#lesson-ui-panel .yaoshi-annotation-toggle.is-off {
    border-color: rgba(143, 151, 151, 0.34) !important;
    color: rgba(215, 221, 218, 0.72) !important;
    background:
        linear-gradient(180deg, rgba(49, 54, 55, 0.92), rgba(18, 21, 22, 0.94)) !important;
}

#lesson-ui-panel .yaoshi-annotation-toggle.is-off::before {
    background: rgba(143, 151, 151, 0.76);
    box-shadow: 0 0 8px rgba(143, 151, 151, 0.36);
}

#lock-annotation-layer {
    position: fixed;
    inset: 0;
    z-index: 18;
    pointer-events: none;
}

body.annotations-hidden #lock-annotation-layer {
    opacity: 0;
    visibility: hidden;
}

.lock-anno-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lock-anno-line {
    stroke: rgba(218, 169, 82, 0.9);
    stroke-width: 1.6;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(218, 169, 82, 0.55));
}

.lock-anno-line--shear {
    stroke: rgba(97, 201, 224, 0.95);
    stroke-width: 2.6;
    stroke-dasharray: 9 7;
    filter: drop-shadow(0 0 8px rgba(97, 201, 224, 0.62));
}

.lock-anno-line--shear-callout {
    stroke: rgba(97, 201, 224, 0.82);
    stroke-width: 1.5;
}

.lock-anno-dot {
    fill: rgba(218, 169, 82, 0.96);
    stroke: rgba(12, 15, 18, 0.9);
    stroke-width: 1.4;
    filter: drop-shadow(0 0 8px rgba(218, 169, 82, 0.62));
}

.lock-anno-dot--shear {
    fill: rgba(97, 201, 224, 0.98);
    filter: drop-shadow(0 0 9px rgba(97, 201, 224, 0.72));
}

.lock-anno-card {
    position: absolute;
    width: max-content;
    max-width: min(220px, calc(100vw - 24px));
    padding: 9px 11px 10px;
    border-radius: 11px;
    border: 1px solid rgba(218, 169, 82, 0.34);
    color: rgba(246, 239, 221, 0.96);
    background:
        linear-gradient(180deg, rgba(53, 59, 61, 0.94), rgba(18, 22, 25, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 12px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    transform: translate(10px, -50%);
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.lock-anno-card::before {
    position: absolute;
    left: 9px;
    top: 12px;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: rgba(218, 169, 82, 0.88);
    box-shadow: 0 0 10px rgba(218, 169, 82, 0.6);
}

.lock-anno-card--shear {
    border-color: rgba(97, 201, 224, 0.58);
    background:
        linear-gradient(180deg, rgba(35, 75, 84, 0.94), rgba(13, 34, 40, 0.94));
}

.lock-anno-card--shear::before {
    background: rgba(97, 201, 224, 0.9);
    box-shadow: 0 0 10px rgba(97, 201, 224, 0.68);
}

.lock-anno-card__title {
    padding-left: 13px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.lock-anno-card__body {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(246, 239, 221, 0.78);
}

.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 640px) {
    #lesson-ui-panel.lui-panel {
        bottom: 12px !important;
        max-width: calc(100vw - 16px) !important;
    }

    #lesson-ui-panel .lui-panel__content {
        max-width: calc(100vw - 16px) !important;
        padding: 8px !important;
    }

    #lesson-ui-panel .lui-actionbar {
        max-width: calc(100vw - 32px) !important;
        gap: 8px !important;
    }

    #lesson-ui-panel .lui-btn {
        min-width: 96px !important;
        height: 40px !important;
        padding: 0 14px 0 20px !important;
        font-size: 14px !important;
    }

    #lesson-ui-panel .yaoshi-play-toggle {
        min-width: 96px !important;
    }

    #lesson-ui-panel .yaoshi-annotation-toggle {
        min-width: 96px !important;
    }

    .lock-anno-card {
        max-width: min(188px, calc(100vw - 20px));
        padding: 8px 10px 9px;
    }

    .lock-anno-card__title {
        font-size: 13px;
    }

    .lock-anno-card__body {
        font-size: 11px;
    }
}
