/* Ambigram generator (/ambigram-generator): the word in a 3:2 picture on the stage; Turn turns, mirrors or flips the
   picture to check the second reading. Panels, sliders and buttons come from the app kit. */

/* The solid stage colour of the photo apps; the picture (.stage-picture) shows the checkerboard behind its own
   transparent pixels (seo-pages.css). */
.amb-landing-app.ak-app > .filter-landing-stage.ak-stage {
    background: var(--component-stage-bg);
}

.amb-landing-app .amb-frame {
    position: relative;
    width: 100%;
    max-width: min(980px, 111vh);
}

.amb-landing-app .amb-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--ak-radius-sm, 6px);
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.amb-landing-app .amb-canvas.is-turned {
    transform: rotate(180deg);
}

.amb-landing-app .amb-canvas.is-mirrored {
    transform: scaleX(-1);
}

.amb-landing-app .amb-canvas.is-flipped {
    transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
    .amb-landing-app .amb-canvas {
        transition: none;
    }
}

.amb-landing-app .amb-turn[aria-pressed="true"] {
    background: var(--ak-accent);
    color: var(--ak-on-accent, #fff);
}

.amb-landing-app .amb-color-input {
    width: 3rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-sm, 6px);
    background: none;
    cursor: pointer;
}
