.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body {
    background: radial-gradient(circle, #ffffff 0%, #f0f0f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 20px;
}

.bixby-stage {
    display: block; 
    width: 512px;
    height: 512px;
    flex-shrink: 0;
    margin: 0 auto;
    position: relative;
}

#bixby-container {
    width: 512px;
    height: 512px;
    background-repeat: no-repeat;
    margin: 20px auto;
    transition: opacity 0.2s ease-in-out; 
}

#chat-bubble {
    position: absolute; /* The secret sauce */
    top: 80px;          /* Manually set the height from the top of the container */
    left: 50%;
    transform: translateX(-50%) scale(1);
    
    background: #ffffff;
    border: 3px solid #333;
    border-radius: 20px;
    padding: 12px 20px;
    width: fit-content;
    white-space: nowrap; /* Keeps the text on one line if you prefer */
    font-weight: bold;
    color: #333;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The "Tail" of the speech bubble */
#chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Pulls the tail down */
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0; /* Creates the triangle */
    border-style: solid;
    border-color: #ffffff transparent transparent;
    display: block;
    width: 0;
    z-index: 11;
}

/* The Border for the tail */
#chat-bubble::before {
    content: '';
    position: absolute;
    bottom: -19px; 
    left: 50%;
    transform: translateX(-50%);
    border-width: 16px 16px 0;
    border-style: solid;
    border-color: #333 transparent transparent;
    display: block;
    width: 0;
    z-index: 10;
}

#chat-bubble.hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

#verification-step, #age-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    margin-top: -100px;
    position: relative;
    z-index: 5;
    min-height: 450px;
    box-sizing: border-box;
}

#age-step {
    gap: 12px;
}

#age-step p {
    margin-top: 0;
    margin-bottom: 20px;
}

#verification-step {
    gap: 20px;
}

.big-btn {
    width: 85%;
    max-width: 450px;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 2px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-width: 280px;
    margin-bottom: 10px;
}

.big-btn small {
    display: block; 
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.8;
}

/* Sophisticated Slate Green */
.yes-btn {
    background-color: #5e8d5f; 
    color: white;
}

/* Warm Terracotta / Muted Red */
.no-btn {
    background-color: #d17a7a;
    color: white;
}

/* Hover/Touch effects */
.big-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
    filter: brightness(1.05);
}

.big-btn:active {
    transform: translateY(1px);
}

.age-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-btn {
    background-color: #ffffff;
    color: #5e8d5f; /* Muted Green */
    border: 2px solid #5e8d5f;
    line-height: 1.2;
}

.age-btn small {
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.8;
}

.age-btn:hover {
    background-color: #5e8d5f;
    color: white;
}

#task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.task-card {
    display: flex;
    align-items: center;
    background: white;
    border-left: 10px solid #0056b3;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    width: 90%;
    max-width: 450px;
    min-height: 80px;
    
    margin: 0 auto; 
    box-sizing: border-box;
}

.task-card.completed {
    background: #f0fdf4;
    border-left-color: #22c55e; /* Green when done */
    opacity: 0.7;
}

.task-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
    margin-right: 20px;
    min-width: 30px;
}

.task-text {
    flex-grow: 1;
    font-size: 1.1rem;
    color: #333;
    padding: 0 15px;
    line-height: 1.3; 
}

/* The Checkbox */
.task-checkbox {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#task-container {
    margin-top: -40px;
    text-align: center;
}

#task-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #333;
}

#task-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

@media (max-width: 600px) {
    .bixby-stage {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    #bixby-container {
        transform: scale(0.7);
        transform-origin: top center;
    }
}

footer {
    display: block !important;
    clear: both;
    width: 100%;
}