/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 4;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

.measure-panel {
    position: absolute;
    top: 12px;
    left: 12px;
    width: min(300px, calc(100% - 88px));
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(18, 24, 32, 0.9);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.measure-actions {
    display: flex;
    gap: 8px;
}

.measure-button,
.measure-clear,
.measure-delete {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    cursor: pointer;
    font: inherit;
}

.measure-button,
.measure-clear {
    height: 34px;
    padding: 0 12px;
}

.measure-button.is-active {
    border-color: rgba(56, 189, 248, 0.75);
    background: #0ea5e9;
    color: #082f49;
}

.measure-clear:disabled {
    cursor: default;
    opacity: 0.48;
}

.measure-status {
    min-height: 18px;
    margin-top: 8px;
    color: #cbd5e1;
}

.measure-list {
    display: grid;
    max-height: 150px;
    margin: 8px 0 0;
    padding: 0;
    gap: 6px;
    overflow: auto;
    list-style: none;
}

.measure-list[hidden] {
    display: none;
}

.measure-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 4px 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
}

.measure-row-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.measure-delete {
    width: 26px;
    height: 24px;
    padding: 0;
}

.measure-label-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.measure-label {
    position: absolute;
    padding: 4px 7px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 6px;
    background: rgba(255, 248, 220, 0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    color: #111827;
    font: 700 12px/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.measure-label.is-hidden {
    display: none;
}

.v3d-canvas.measure-crosshair {
    cursor: crosshair;
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }
