/* Electric Field Lines (/electric-field-lines): the 4:3 plane of charges (square on phones) and the selected charge's panel.
   Tiles, panels and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page
   (StylePaths). */

.ef-landing-app .ef-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag charges and the test charge; the script sets the cursor. No scrolling or zooming while a finger drags. */
.ef-landing-app .ef-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;
}

.ef-landing-app .ef-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: 2px;
}

/* Phones: a square picture, so the charges keep a size a finger can grab. */
@media (max-width: 640px) {
    .ef-landing-app .ef-canvas {
        aspect-ratio: 1 / 1;
    }
}

.ef-landing-app .ef-hint {
    margin: 0.25rem 0;
    color: var(--ak-muted, #64748b);
    font-size: 0.875rem;
}

.ef-landing-app .ef-sel[hidden],
.ef-landing-app .ef-hint[hidden],
.ef-landing-app .ak-btn[hidden] {
    display: none;
}

.ef-landing-app .ef-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
