body {
    margin: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

canvas {
    max-width: 100%;
    max-height: 100vh;
}


/* Landing page */
.landing {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

.landing-image {
    max-width: 110%;
    max-height: 110%;
    object-fit: contain;
}

.powered-by {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0;
}

/* .landing-title {
    color: white;
    font-family: "Seaweed Script", cursive;
    font-size: 100px;
    font-weight: 400;
} */

/* raw video is hidden — we only show the effect canvas */
video {
    display: none;
}

/* Shutter — blue circle with white ring */
.shutter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0C1BE8;
    border: 4px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 10;
}

/* Plain white icon (matches Swift camera-mode buttons) */
.plain-icon {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flash — top-left */
.flash {
    position: fixed;
    top: 65px;
    left: 20px;
    z-index: 10;
}

/* Flip — bottom-right, matching the iPhone app */


.icon-btn.flip {
    position: fixed;
    bottom: 12px;
    right: 20px;
    z-index: 10;
}

/* Record — left of the flip camera */
.record {
    position: fixed;
    bottom: 12px;
    right: 84px;
    z-index: 10;
    color: white;
    font-size: 24px;
}

/* Recording state — turns red and pulses */
.record.recording {
    color: #ff3b30;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}


/* Frosted-glass icon buttons */
.icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: rgba(40, 40, 40, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

/* X — top-left */
.discard {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
}


.review-actions {
    position: fixed;
    bottom: 12px;
    /* ← now matches the flip */
    left: 24px;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.hidden {
    display: none;
}

/* Effect dropdown — top-right area, camera mode */
.effect-rail {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* The toggle button you tap to open the menu */
.effect-toggle {
    background: #E8280C;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    color: white;
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 0px;
    cursor: pointer;
}

/* The revealed list */
.effect-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0px;
    padding: 8px;
}

.effect-btn {
    background: none;
    border: none;
    color: white;
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 0px;
    opacity: 0.7;
    text-align: right;
}

.effect-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.hidden {
    display: none !important;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    z-index: 20;
}

/* Tap-to-focus ring */
.focus-ring {
    position: fixed;
    width: 70px;
    height: 70px;
    border: 2px solid yellow;
    border-radius: 50%;
    pointer-events: none;
    /* taps pass through it */
    z-index: 15;
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.focus-ring.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



/* .icon-btn.flip {
    background: red;
}

.review-actions #save {
    background: green;
}

.review-actions #share {
    background: blue;
} */