/* Prism & Rainbow (/prism-rainbow): the picture of the prism, the raindrop or the sky fills the focus stage (square on phones),
   and the rows of the other scenes are hidden. Tiles, panels and buttons come from the app kit (css/app-kit, docs/app-kit.md).
   Loaded only on this app's page (StylePaths). */

.pr-landing-app .pr-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag to aim the beam, set the ray's height or move the bow; the script sets the cursor. No scrolling while a finger drags. */
.pr-landing-app .pr-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;
}

.pr-landing-app .pr-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: 2px;
}

/* Phones: a squarer picture, so the raindrop and its graph stack and stay large enough to read. */
@media (max-width: 640px) {
    .pr-landing-app .pr-canvas {
        aspect-ratio: 1 / 1;
    }
}

/* Rows and sections of the other scenes (data-pr-for), and the wavelength unless the light is a laser. */
.pr-landing-app .ak-row[hidden],
.pr-landing-app app-section[hidden],
.pr-landing-app details[hidden] {
    display: none;
}
