body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #444;
    font-size: 13px;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.google-header, 
.main-content, 
.challenge-title, 
.challenge-desc, 
.recaptcha-error, 
.recaptcha-disclaimer, 
.footer-bar {
    font-size: inherit;
}

button, input, a {
    font-size: 13px;
}

#captcha-section, 
#redirect-section {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    overflow: hidden;
}

.google-header {
    padding: 20px;
    border-bottom: 1px solid #f1f1f1;
    text-align: center;
}

.main-content {
    padding: 24px;
}

.challenge-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.challenge-desc {
    margin-bottom: 24px;
    color: #666;
}

#recaptcha-container {
    margin-bottom: 20px;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#continue-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    font-weight: 500;
    margin-top: 20px;
}

#continue-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#continue-btn:hover:not(:disabled) {
    background-color: #357ae8;
}

.error-message {
    height: 20px;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    color: #d32f2f;
}

.recaptcha-disclaimer {
    font-size: 11px;
    color: #777;
    margin-top: 16px;
    text-align: center;
}

.recaptcha-disclaimer a {
    color: #4285f4;
    text-decoration: none;
}

.footer-bar {
    padding: 16px 24px;
    border-top: 1px solid #f1f1f1;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.footer-bar a {
    color: #4285f4;
    text-decoration: none;
    margin: 0 5px;
}

/* Hidden elements (still styled for when they were visible) */
.slider-container {
    margin: 20px 0;
}

#human-check {
    width: 100%;
    margin: 10px 0;
}

#slider-value {
    display: block;
    text-align: right;
    font-size: 12px;
}

.custom-challenge {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.challenge-prompt {
    font-weight: 500;
    margin-bottom: 10px;
}

.math-challenge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#math-question {
    width: 100%;
    font-size: 14px;
    margin-bottom: 5px;
}

#math-answer {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#verify-math {
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(66, 133, 244, 0.2);
    border-radius: 50%;
    border-top-color: #4285f4;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.error-container {
    padding: 20px;
    text-align: center;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-message {
    margin-bottom: 15px;
}

.manual-redirect {
    text-align: center;
    padding: 20px;
}

.manual-redirect-button {
    display: inline-block;
    background-color: #4285f4;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.blocked-message {
    padding: 20px;
    background-color: #fff5f5;
    border: 1px solid #ffeeee;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

.blocked-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.blocked-text {
    color: #d32f2f;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* NEW: Blocked message improvements */
.blocked-details {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blocked-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-button,
.support-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.retry-button {
    background-color: #4285f4;
    color: white;
}

.retry-button:hover {
    background-color: #357ae8;
}

.support-button {
    background-color: #6c757d;
    color: white;
}

.support-button:hover {
    background-color: #5a6268;
}

/* NEW: Success message styles */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
    animation: fadeIn 0.5s ease-in;
}

/* NEW: Loading message styles */
.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 16px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

/* NEW: Suspicious browser message styles */
.suspicious-browser-message {
    animation: slideIn 0.5s ease-out;
}

/* NEW: Support message styles */
.support-message {
    animation: slideIn 0.5s ease-out;
}

/* NEW: Error with retry styles */
.error-with-retry {
    animation: slideIn 0.5s ease-out;
}

/* NEW: Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* NEW: Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* NEW: Focus styles for better accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* NEW: High contrast mode support */
@media (prefers-contrast: high) {
    .blocked-message {
        border: 2px solid #000;
    }
    
    .success-message {
        border: 2px solid #000;
    }
    
    .retry-button,
    .support-button {
        border: 2px solid #000;
    }
}

/* NEW: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .spinner,
    .success-message,
    .loading-message,
    .suspicious-browser-message,
    .support-message,
    .error-with-retry {
        animation: none;
    }
}

/* NEW: Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    #captcha-section,
    #redirect-section {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .blocked-message {
        background-color: #3d2d2d;
        border-color: #4d2d2d;
    }
    
    .success-message {
        background-color: #2d3d2d;
        border-color: #2d4d2d;
        color: #d0e0d0;
    }
    
    .loading-message {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* NEW: Mobile responsiveness improvements */
@media (max-width: 480px) {
    .blocked-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .retry-button,
    .support-button {
        width: 100%;
        max-width: 200px;
    }
    
    .loading-message {
        width: 90%;
        max-width: 300px;
        font-size: 14px;
        padding: 15px;
    }
}

/* NEW: Print styles */
@media print {
    .loading-message,
    .suspicious-browser-message,
    .support-message,
    .error-with-retry {
        display: none !important;
    }
} 