body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background 0.5s ease;
}

body.dark-mode {
    background: #000;
}

.captcha-box {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
}

.captcha-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.captcha-checkbox:hover {
    background: #f0f0f0;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.loading {
    animation: spin 1s linear infinite;
}

.loading::after {
    content: '⟳';
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: background 0.5s ease;
}

body.dark-mode .container {
    background: #111;
    color: white;
}

body.dark-mode .title {
    color: white;
}

body.dark-mode .message {
    color: #ccc;
}

body.dark-mode .tries {
    color: #ccc;
}

.title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 20px 0;
    width: 300px;
}

.square {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid #ccc;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-weight: bold;
    color: rgba(0,0,0,0.7);
    transition: border-color 0.3s ease;
}

.square:hover {
    border-color: #666;
}

.message {
    margin: 15px 0;
    height: 20px;
    font-size: 14px;
    color: #666;
}

.tries {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.button {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #45a049;
}

.button-easier {
    background: #2196F3;
}

.button-easier:hover {
    background: #1976D2;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    max-width: 300px;
}

.popup h2 {
    color: red;
    margin-bottom: 15px;
}

.popup p {
    margin: 10px 0;
    color: #333;
}

/* Flashlight overlay */
.flashlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 100px at 0 0,
        transparent 0%,
        rgba(0,0,0,0.95) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 999;
}

.flashlight-overlay.active {
    opacity: 1;
}

/* Button falling animation */
@keyframes fallDown {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(45deg);
        opacity: 0;
    }
}

.button-falling {
    animation: fallDown 1.5s ease-in forwards;
    pointer-events: none;
}

/* Bwahaha text */
.bwahaha {
    font-size: 18px;
    font-weight: normal;
    color: #ff4444;
    margin: 10px 0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.footer-text {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    left: 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7d6b78;
}

.footer-text a {
    color: #c28578;
}