/* Ideal Gas & Brownian Motion (/ideal-gas-brownian-motion): the 16:10 picture (3:4 on phones) with the box beside (or above) the
   speed histogram and the chart. Tiles, panels and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on
   this app's page (StylePaths). */

.ig-landing-app .ig-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag the piston, tap the partition or an atom; the script sets the cursor. No scrolling or zooming while a finger drags. */
.ig-landing-app .ig-canvas {
    display: block;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 10;
    border-radius: var(--ak-radius, 8px);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.ig-landing-app .ig-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: 2px;
}

/* Phones: a tall picture, the box on top and the two charts side by side under it. */
@media (max-width: 640px) {
    .ig-landing-app .ig-canvas {
        aspect-ratio: 3 / 4;
    }
}

/* Rows that do not apply (the second gas's atoms without a second gas, the wall temperature of insulated walls ...). */
.ig-landing-app .ak-row[hidden] {
    display: none;
}
