@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

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

.captcha-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px B0px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.icon-shield {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1.07 15.42L6.5 12l1.41-1.41L10.93 14l4.24-4.24L16.58 11l-5.65 5.42z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

#task-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #3498db;
    height: 25px;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    transition: transform 0.2s ease-in-out;
}

.captcha-item {
    width: 100%;
    padding-bottom: 100%; /* Creates a square */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.captcha-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

/* Shake animation on wrong answer */
.shake {
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.footer-text {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    margin-bottom: 0;
}
