/* Vigenère Cipher (/vigenere-cipher): the tabula recta or a cracking chart above the message strips fills a focus stage, with the
   four tiles in the floating panel beside it (docs/app-kit.md). Tiles, panels and buttons come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this app's page (StylePaths). */

/* A click on a letter of the strips jumps to it (a drag scrubs); the script sets the cursor. */
.vc-landing-app .vc-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.vc-landing-app .vc-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* A phone gets a taller picture: the table above, the strips below. */
@media (max-width: 640px) {
    .vc-landing-app .vc-canvas {
        aspect-ratio: 4 / 5;
    }
}

/* The message, the key and the result: letters in a fixed width, long texts wrap inside the box (never wider than the panel). */
.vc-landing-app .vc-text,
.vc-landing-app .vc-output,
.vc-landing-app .vc-key {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    max-width: 100%;
    box-sizing: border-box;
}

.vc-landing-app .vc-text,
.vc-landing-app .vc-output {
    resize: vertical;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.vc-landing-app .vc-output {
    color: #2f6fdf;
}

:root[data-theme="dark"] .vc-landing-app .vc-output,
.vc-landing-app[data-theme="dark"] .vc-output {
    color: #8cb4ff;
}
