:root { --brand-yellow: #fed40a; --dark-text: #333; --button-text: #4a3e00; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 100vh; background-color: var(--brand-yellow); color: var(--dark-text); overscroll-behavior: contain; box-sizing: border-box; padding: 15px 0; }
#app-container { width: 100%; max-width: 450px; display: flex; flex-direction: column; align-items: center; flex-grow: 1; justify-content: center; box-sizing: border-box; }
#header { width: 100%; text-align: center; padding: 10px 0 20px 0; }
#header img { max-height: 70px; width: auto; }
#frame { position: relative; width: 70%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 45px !important; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 10px solid white; }
#landing-preview-img, #filter-overlay-img, #camera-feed, #captured-photo-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
#landing-preview-img { object-fit: cover; z-index: 2; }
#filter-overlay-img { object-fit: cover; pointer-events: none; z-index: 10; border-radius: 35px !important;}
#camera-feed { object-fit: cover; transform: scaleX(-1); z-index: 5; display: none; background-color: black; border-radius: 35px !important;}
#captured-photo-img { object-fit: cover; z-index: 15; display: none; background-color: #222; border-radius: 35px !important;}
#text-description { text-align: center; padding: 0 20px; margin-bottom: 10px; font-size: 15px; color: var(--dark-text); min-height: 40px; }
#text-landing, #text-capturing, #text-sharing { display: none; }
#canvas { display: none; position: absolute; top: -9999px; left: -9999px; }
#action-button, #retake-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 30px; margin-bottom: 20px; font-size: 18px; cursor: pointer; background-color: #dba20b; color: #fff; border: none; border-radius: 30px; box-shadow: 0 3px 6px rgba(0,0,0,0.1); transition: background-color 0.2s ease, transform 0.1s ease; width: 70%; max-width: 250px; }
#action-button:hover , #retake-button:hover { background-color: #d09a07; }
#action-button:active , #retake-button:active { transform: scale(0.98); }
#action-button:disabled , #retake-button:disabled { background-color: #d09a07; color: #fff; cursor: not-allowed; transform: none; }
#button-icon { font-size: 1.2em; }
#button-icon img , #retake-button img { width: 25px; margin-top: 5px;}
#countdown-timer {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-60%, -50%);
    font-size: 80px;
    font-weight: bold;
    color: white;
    z-index: 200; 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    display: none;
}
#button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 5px;
    padding-bottom: 20px;
}

.hidden { display: none !important; }
.visible { display: block !important; }