/* The weak-graphics hint over the 3D viewers: templates/project/_gpu_hint.html, static/js/gpuHint.js */
.gpu-hint {
    position: fixed;
    top: 56px;  /* below the top row of buttons (Potree's menu, help, full screen) and the title bars of its windows */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;  /* under the welcome overlay (9998) */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    width: max-content;
    max-width: min(640px, calc(100% - 20px));
    padding: 10px 12px;
    border: 1px solid #ffe69c;
    border-radius: 6px;
    background: #fff3cd;
    color: #664d03;
    font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gpu-hint[hidden] {
    display: none;  /* the display above would beat the attribute */
}

.gpu-hint a {
    color: inherit;
    text-decoration: underline;
}

.gpu-hint ol {
    margin: 6px 0 0;
    padding-left: 20px;
}

.gpu-hint li + li {
    margin-top: 2px;
}

.gpu-hint code {
    font-size: 12px;
    color: inherit;
    user-select: all;  /* one click selects the whole path, for the file dialog */
}

.gpu-hint-close {
    flex: none;
    padding: 0 2px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
