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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(78, 78, 78);
    background: white;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

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

header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
}

#game-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

.screen.active {
    display: block;
}

#start-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#start-screen p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-stock {
    background: white;
    color: black;
    outline: 1px solid black;
}

.btn-stock:hover {
    transform: translateY(-2px);
}

.btn-slop {
    background: black;
    color: white;
    outline: 1px solid black;
}

.btn-slop:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.image-container {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

#game-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

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

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.question-counter {
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
}

.countdown-section {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff0000;
    text-align: center;
    margin: 20px 0;
}

.countdown-section span {
    color: #ff0000;
    font-weight: bold;
}

#hours, #minutes, #seconds {
    color: #ff0000;
    font-weight: bold;
    font-size: 1.4rem;
}

.score-display {
    margin-bottom: 30px;
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgb(84, 127, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.history-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.results-list {
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.result-item.correct {
    border-left: 4px solid #4CAF50;
    background: #f1f8e9;
}

.result-item.incorrect {
    border-left: 4px solid #f44336;
    background: #ffebee;
}

.result-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ddd;
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-answer {
    font-weight: bold;
    font-size: 1.2rem;
}

.source-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.source-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a6fd8;
    text-decoration: underline;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.result-icon.correct {
    color: #4CAF50;
}

.result-icon.incorrect {
    color: #f44336;
}

.share-section h3 {
    margin-bottom: 15px;
    color: #4a5568;
}

.share-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    word-break: break-all;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.btn-social {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #0d5bb8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .screen {
        padding: 20px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    #game-image {
        height: 300px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .result-thumbnail {
        width: 100px;
        height: 75px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .result-info {
        margin-bottom: 10px;
    }
    
    .result-status {
        justify-content: center;
    }
    
    .source-link {
        display: inline-block;
        margin-top: 5px;
        margin-left: 0;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-social {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .history-stats {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
    
}

/* Email signup section styles
.email-signup-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: black;
}

.email-signup-section h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

.email-signup-section p {
    margin-bottom: 20px;
    font-size: 1em;
} */

/* ConvertKit form styles */
#convertkit-signup {
    max-width: 400px;
    margin: 0 auto 20px;
}

.field-group {
    margin-bottom: 15px;
    border: 2px solid black;
}

#email {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#email::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#email:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.button {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover {
    background: linear-gradient(135deg, #45a049, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.button:active {
    transform: translateY(0);
}

/* Mobile responsive for email signup */
@media (max-width: 768px) {
    .email-signup-section {
        padding: 20px;
        margin: 15px 0;
    }
    
    .email-signup-section h3 {
        font-size: 1.2em;
    }
    
    .email-signup-section p {
        font-size: 0.9em;
    }
    
    .button {
        font-size: 14px;
        padding: 10px 25px;
    }
    
}
