:root {
    --primary-color: #4A90E2;
    --border-color: #d3d3d3;
    --bg-color: #f9f9f9;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
}

.container {
    position: relative;
}

/* Initial Checkbox */
.captcha-box {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
    width: 300px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox:hover {
    border-color: #b2b2b2;
}

.checkbox.checked {
    border-color: #4A90E2;
    background-color: #4A90E2;
    /* Simplified checkmark */
    position: relative;
}

.checkbox.checked::after {
    content: '✔';
    color: white;
    position: absolute;
    top: -2px;
    left: 4px;
    font-size: 18px;
}

.label {
    font-size: 14px;
    color: #282828;
    font-weight: 500;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.logo .text {
    font-size: 10px;
    color: #555;
    margin-bottom: 1px;
}

.logo .terms {
    font-size: 8px;
    color: #999;
}

/* Modal */
.captcha-modal {
    position: absolute;
    top: -100px;
    /* Adjust based on positioning preference */
    left: -50px;
    background: #fff;
    width: 400px;
    /* Standard Recaptcha is mostly around 400px */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
    z-index: 100;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.header {
    background-color: #1A73E8;
    color: white;
    padding: 16px;
    margin: -8px -8px 8px -8px;
}

.title-text {
    font-size: 14px;
    line-height: 1.2;
}

.keyword {
    font-weight: 900;
    font-size: 28px;
    margin-top: 4px;
}

.instruction {
    font-size: 14px;
    margin-top: 8px;
}

.grid-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* roughly 3x3 */
    /* We won't use CSS Grid because we need absolute positioning for the evasion logic */
    display: block;
}

.grid-item {
    position: absolute;
    width: 128px;
    /* Approx 400/3 */
    height: 128px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    /* Smooth movement for normal interaction */
    border: 2px solid transparent;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item.selected {
    border: 0;
}

.grid-item.selected::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: #1A73E8;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.grid-item.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid #1A73E8;
    box-sizing: border-box;
    z-index: 2;
}


/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.icons .icon {
    font-size: 20px;
    color: #555;
    margin-right: 12px;
    cursor: pointer;
}

.verify-btn {
    background-color: #1A73E8;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.verify-btn:hover {
    background-color: #1669C1;
}

/* Question Slide */
.question-slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.question-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.main-question-img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.question-slide h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.action-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 0 10px;
    font-weight: bold;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn.yes {
    background-color: #2ecc71;
    color: white;
}

.action-btn.no {
    background-color: #e74c3c;
    color: white;
}

/* Finale Slide */
.finale-slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFC0CB;
    /* Pink background */
    background-image: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
    z-index: 300;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.finale-main-img {
    max-width: 80%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 302;
    /* Above floating images if they cross? Or below? Let's put it above so it's the focus */
    position: relative;
    border: 5px solid white;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 304;
    /* Top most */
}

.floating-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 301;
    /* Behind the main image */
}

.swirwing-img {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    /* Circle looks more bubbly/floating */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    opacity: 0.9;
    animation: floatWater 8s ease-in-out infinite;
}

.finale-content {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 303;
}

.finale-content h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes floatWater {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -10px) rotate(5deg);
    }

    50% {
        transform: translate(0, -5px) rotate(0deg);
    }

    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}