* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 3px solid #f0f0f0;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ff6b35;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tagline {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.coin-counter {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.3em;
    font-weight: bold;
}

.coins {
    color: #ffc107;
}

.level {
    color: #28a745;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.captcha-window {
    background: #ffffff;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.captcha-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.captcha-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.difficulty {
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.difficulty.easy { background: #d4edda; color: #155724; }
.difficulty.medium { background: #fff3cd; color: #856404; }
.difficulty.hard { background: #f8d7da; color: #721c24; }
.difficulty.nightmare { background: #d1ecf1; color: #0c5460; }

.captcha-content {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px dashed #dee2e6;
}

.captcha-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.math-problem {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.visual-challenge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.visual-item {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border: 2px solid #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.2s;
}

.visual-item:hover {
    background: #dee2e6;
    transform: scale(1.05);
}

.visual-item.selected {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.captcha-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

#captchaInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.2s;
}

#captchaInput:focus {
    border-color: #007bff;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.2s;
}

#submitBtn {
    background: #007bff;
    color: white;
}

#submitBtn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

#skipBtn {
    background: #dc3545;
    color: white;
}

#skipBtn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.result-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    min-height: 20px;
    transition: all 0.3s;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ffc107);
    transition: width 0.5s ease;
    width: 0%;
}

.stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    flex: 1;
    margin: 0 5px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat span:last-child {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    color: #666;
    font-style: italic;
}

footer p {
    margin-bottom: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.x-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.x-link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.x-link svg {
    transition: transform 0.3s ease;
}

.x-link:hover svg {
    transform: scale(1.1);
}

.rotating {
    animation: rotate 0.5s linear infinite;
}

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

.shaking {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.glitching {
    animation: glitch 0.3s ease-in-out 3;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Annoying flashing text */
.blink {
    animation: blink 1s linear infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Upside down text effect */
.upside-down {
    transform: rotate(180deg);
}

/* Mirror text effect */
.mirror {
    transform: scaleX(-1);
}

/* Invisible text that appears on hover */
.invisible-text {
    color: transparent;
    user-select: none;
}

.invisible-text:hover {
    color: #333;
}
