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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Screen */
.welcome-content {
    padding: 60px 40px;
    text-align: center;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6B46C1;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #9CA3AF;
    margin-bottom: 30px;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.intro-text p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #6B46C1;
    color: white;
}

.btn-primary:hover {
    background: #553C9A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

.btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Quiz Screen */
.quiz-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-counter {
    font-weight: 600;
    color: #6B46C1;
    white-space: nowrap;
}

.quiz-content {
    padding: 40px;
}

.question-card {
    max-width: 600px;
    margin: 0 auto;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #1F2937;
}

.answer-options {
    display: grid;
    gap: 15px;
}

.answer-option {
    padding: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
}

.answer-option:hover {
    border-color: #6B46C1;
    background: #F8F9FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
}

.answer-option.selected {
    border-color: #6B46C1;
    background: #6B46C1;
    color: white;
}

.answer-option.correct {
    border-color: #10B981;
    background: #10B981;
    color: white;
}

.answer-option.incorrect {
    border-color: #EF4444;
    background: #FEF2F2;
    color: #DC2626;
}

.quiz-navigation {
    padding: 20px 40px 40px;
    display: flex;
    justify-content: space-between;
}

/* Results Screen */
.results-content {
    padding: 60px 40px;
}

.results-content h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #6B46C1;
    margin-bottom: 40px;
}

.score-display {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #6B46C1, #8B5CF6);
    border-radius: 16px;
    color: white;
}

.score-display #score-text {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.score-percentage {
    font-size: 3rem;
    font-weight: 700;
}

.results-summary {
    margin-bottom: 40px;
}

.results-summary h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 20px;
}

.results-details {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #6B46C1;
}

.story-buckets-info h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 20px;
    text-align: center;
}

.buckets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.bucket-item {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.bucket-item h4 {
    color: #6B46C1;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.bucket-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .welcome-content {
        padding: 40px 20px;
    }
    
    .welcome-content h1 {
        font-size: 2rem;
    }
    
    .quiz-header,
    .quiz-content,
    .quiz-navigation {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .results-content {
        padding: 40px 20px;
    }
    
    .results-content h1 {
        font-size: 2rem;
    }
    
    .buckets-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-bar {
        margin-right: 0;
    }
}

