/* Ray Optics (/ray-optics-lens-mirror): the 4:3 side view along the optical axis (square on phones) and the selected element's
   controls. Tiles, panels and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page
   (StylePaths). */

.ro-landing-app .ro-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag the object, the elements and the focal points; the script sets the cursor. No scrolling or zooming while a finger drags. */
.ro-landing-app .ro-canvas {
    display: block;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 4 / 3;
    border-radius: var(--ak-radius, 8px);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ro-landing-app .ro-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: 2px;
}

/* Phones: a squarer picture, so the elements keep a size a finger can grab. */
@media (max-width: 640px) {
    .ro-landing-app .ro-canvas {
        aspect-ratio: 1 / 1;
    }
}

.ro-landing-app .ro-hint {
    margin: 0.25rem 0;
    color: var(--ak-muted, #64748b);
    font-size: 0.875rem;
}

.ro-landing-app .ro-sel[hidden],
.ro-landing-app .ro-hint[hidden],
.ro-landing-app [data-ak-ref="row-focal"][hidden],
.ro-landing-app .ak-btn[hidden] {
    display: none;
}

/* One button per element: the selected one is pressed. */
.ro-landing-app .ro-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.25rem 0 0.4rem;
}

.ro-landing-app .ro-tabs:empty {
    display: none;
}

.ro-landing-app .ro-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
