

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d5a27;
    background: linear-gradient(135deg, #1b1b1f 0%, #111013 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    color: #5a7c76;
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Screen Management */
.screen {
    display: none;
    padding: 40px;
    min-height: 500px;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    font-size: 2.2rem;
    color: #2d5a27;
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #5a7c76;
    margin-bottom: 30px;
    line-height: 1.8;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 15px;
    color: white;
    min-width: 100px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.name-input {
    margin: 30px 0;
}

.name-input label {
    display: block;
    font-size: 1.1rem;
    color: #2d5a27;
    margin-bottom: 10px;
    font-weight: 600;
}

.name-input input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.name-input input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
}

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

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8a8a8 0%, #8a8a8a 100%);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2d5a27;
    border: 2px solid #2d5a27;
}

.btn-outline:hover {
    background: #2d5a27;
    color: white;
}

.btn-social {
    margin: 5px;
    min-width: 180px;
}

.btn-social.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd4 100%);
    color: white;
}

.btn-social.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
    color: white;
}

.btn-action {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    font-size: 1.2rem;
    padding: 20px 40px;
    margin-top: 20px;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Progress Bar */
.progress-container {
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #5a7c76;
}

/* Question Container */
.question-container {
    padding: 40px;
    min-height: 300px;
}

.question {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.question.active {
    opacity: 1;
    transform: translateX(0);
}

.question h3 {
    font-size: 1.5rem;
    color: #2d5a27;
    margin-bottom: 25px;
    line-height: 1.4;
}

.options {
    margin: 20px 0;
}

.option {
    display: block;
    margin: 15px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    background: #e8f5e8;
    border-color: #4ecdc4;
    transform: translateX(5px);
}

.option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option input[type="text"], .option select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 10px;
}

.option input[type="text"]:focus, .option select:focus {
    outline: none;
    border-color: #4ecdc4;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

/* Results Screen */
.results-content {
    text-align: center;
}

.score-display {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    animation: scoreReveal 1s ease-out;
}

.score-text {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.score-message {
    font-size: 1.1rem;
    opacity: 0.9;
}

.results-summary {
    margin: 30px 0;
    text-align: left;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.results-summary h4 {
    color: #2d5a27;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.answer-review {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-correct {
    background: #d4edda;
    color: #155724;
}

.answer-incorrect {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.call-to-action {
    background: linear-gradient(135deg, #17c465 0%, #14bb38 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
}

.call-to-action h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4ecdc4;
    animation: confettiFall 3s linear infinite;
}

/* Print Styles */
.print-template {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    .print-template,
    .print-template * {
        visibility: visible;
    }
    
    .print-template {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
        background: white;
        color: black;
        padding: 20px;
    }
    
    .print-header {
        text-align: center;
        border-bottom: 2px solid #2d5a27;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }
    
    .print-footer {
        text-align: center;
        border-top: 1px solid #ccc;
        padding-top: 20px;
        margin-top: 30px;
    }
}

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

@keyframes scoreReveal {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

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

.celebration {
    animation: celebrationPulse 0.6s ease-in-out 3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .quiz-container {
        margin: 20px;
        border-radius: 15px;
    }
    
    .screen {
        padding: 20px;
    }
    
    .welcome-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .question-container {
        padding: 20px;
    }
    
    .navigation {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .progress-container {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .welcome-content h2 {
        font-size: 1.8rem;
    }
    
    .question h3 {
        font-size: 1.3rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.option:focus,
input:focus,
select:focus {
    outline: 3px solid #4ecdc4;
    outline-offset: 2px;
}
