   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
            color: #333;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            color: white;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        h2 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #bb86fc;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto 20px;
        }

        .start-screen {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 15px;
            margin-bottom: 25px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .start-screen h2 {
            color: #1a237e;
            margin-bottom: 30px;
        }

        .start-screen p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            color: #555;
            line-height: 1.6;
        }

        .card {
            background-color: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 25px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .stats-bar {
            display: flex;
            justify-content: space-between;
            background: #e3f2fd;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .stat-box {
            text-align: center;
            flex: 1;
            min-width: 120px;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #1a237e;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #666;
        }

        .timer-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .timer {
            background: #ffeb3b;
            color: #333;
            padding: 15px 25px;
            border-radius: 50px;
            font-weight: bold;
            font-size: 1.3rem;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-width: 150px;
            justify-content: center;
        }

        .question-container {
            margin-bottom: 20px;
        }

        .question-number {
            background: #1a237e;
            color: white;
            display: inline-block;
            padding: 8px 20px;
            border-radius: 50px;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .question-text {
            font-size: 1.3rem;
            margin-bottom: 20px;
            line-height: 1.5;
            color: #222;
        }

        .equation {
            font-size: 1.5rem;
            font-family: 'Courier New', monospace;
            background: #f5f5f5;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            text-align: center;
            border-left: 5px solid #1a237e;
        }

        .alternatives-container {
            margin: 25px 0;
        }

        .alternative {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            margin-bottom: 12px;
            background: #f8f9fa;
            border: 2px solid #ddd;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .alternative:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .alternative.selected {
            background: #e3f2fd;
            border-color: #2196f3;
            box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
        }

        .alternative.correct {
            background: #e8f5e9;
            border-color: #4caf50;
        }

        .alternative.incorrect {
            background: #ffebee;
            border-color: #f44336;
        }

        .alternative-letter {
            width: 40px;
            height: 40px;
            background: #1a237e;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .alternative-text {
            font-size: 1.2rem;
            font-family: 'Courier New', monospace;
            flex-grow: 1;
        }

        .buttons {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 15px 30px;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-width: 180px;
        }

        .btn-small {
            padding: 10px 20px;
            min-width: auto;
        }

        .btn-primary {
            background: #1a237e;
            color: white;
        }

        .btn-primary:hover {
            background: #283593;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-primary:disabled {
            background: #cccccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-secondary {
            background: #bb86fc;
            color: white;
        }

        .btn-secondary:hover {
            background: #9c64e6;
            transform: translateY(-3px);
        }

        .btn-success {
            background: #4caf50;
            color: white;
        }

        .btn-success:hover {
            background: #3d8b40;
        }

        .btn-warning {
            background: #ff9800;
            color: white;
        }

        .btn-warning:hover {
            background: #e68900;
        }

        .btn-danger {
            background: #f44336;
            color: white;
        }

        .btn-danger:hover {
            background: #d32f2f;
        }

        .result {
            display: none;
            margin-top: 20px;
            padding: 20px;
            border-radius: 10px;
            background: #e8f5e9;
            border-left: 5px solid #4caf50;
            font-size: 1.2rem;
        }

        .result.show {
            display: block;
            animation: fadeIn 0.5s;
        }

        .solution-steps {
            margin-top: 15px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            border-left: 4px solid #2196f3;
        }

        .step {
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px dashed #ddd;
        }

        .step:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .step-number {
            display: inline-block;
            width: 30px;
            height: 30px;
            background: #2196f3;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 30px;
            margin-right: 10px;
            font-weight: bold;
        }

        .step-equation {
            font-family: 'Courier New', monospace;
            background: #f9f9f9;
            padding: 8px 12px;
            border-radius: 5px;
            margin: 5px 0;
            display: inline-block;
            font-size: 1.1rem;
        }

        .step-explanation {
            margin-left: 40px;
            color: #555;
            font-size: 1rem;
            margin-top: 5px;
        }

        .final-answer {
            margin-top: 15px;
            padding: 15px;
            background: #e8f5e9;
            border-radius: 8px;
            border-left: 4px solid #4caf50;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .baskara-formula {
            background: #e3f2fd;
            padding: 10px;
            border-radius: 8px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
        }

        .history {
            margin-top: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .history h3 {
            color: #1a237e;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
        }

        .history-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-grade {
            font-weight: bold;
            font-size: 1.2rem;
            padding: 5px 15px;
            border-radius: 50px;
        }

        .grade-high {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .grade-medium {
            background: #fff3e0;
            color: #ef6c00;
        }

        .grade-low {
            background: #ffebee;
            color: #c62828;
        }

        .footer {
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 40px;
            padding: 20px;
            font-size: 0.9rem;
        }

        .hidden {
            display: none !important;
        }

        .auto-next-notice {
            background: #e3f2fd;
            padding: 10px 15px;
            border-radius: 8px;
            margin-top: 15px;
            text-align: center;
            font-style: italic;
            color: #1a237e;
            border-left: 4px solid #2196f3;
        }

        .feedback-message {
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            text-align: center;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .feedback-correct {
            background: #e8f5e9;
            color: #2e7d32;
            border-left: 4px solid #4caf50;
        }

        .feedback-incorrect {
            background: #ffebee;
            color: #c62828;
            border-left: 4px solid #f44336;
        }

        /* Estilos para a seleção de tipo */
        .type-selection {
            margin: 25px 0;
        }

        .type-options {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 15px;
        }

        .type-option {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 15px 25px;
            background: #f5f5f5;
            border-radius: 10px;
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .type-option:hover {
            background: #e3f2fd;
            transform: translateY(-3px);
        }

        .type-option.selected {
            background: #bb86fc;
            color: white;
            border-color: #1a237e;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .type-option input {
            margin-right: 10px;
            transform: scale(1.2);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(-100%); opacity: 0; }
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .question-transition-out {
            animation: slideOut 0.3s forwards;
        }

        .question-transition-in {
            animation: slideIn 0.3s forwards;
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .card {
                padding: 20px;
            }
            
            .buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .step-explanation {
                margin-left: 10px;
            }
            
            .type-options {
                flex-direction: column;
                align-items: center;
            }
            
            .type-option {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
            
            .alternative {
                padding: 12px 15px;
            }
            
            .alternative-letter {
                width: 35px;
                height: 35px;
                font-size: 1rem;
                margin-right: 10px;
            }
            
            .alternative-text {
                font-size: 1rem;
            }
        }
        /* rever questoes */
         .navigation-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .navigation-buttons button {
            min-width: 140px;
        }

        .alternative.user-answer {
            background: #e3f2fd;
            border-color: #2196f3;
            position: relative;
        }

        .alternative.user-answer::after {
            content: "Sua resposta";
            position: absolute;
            top: 5px;
            right: 10px;
            font-size: 0.8rem;
            color: #2196f3;
            font-weight: bold;
        }

        .alternative.correct-answer {
            background: #e8f5e9;
            border-color: #4caf50;
            position: relative;
        }

        .alternative.correct-answer::after {
            content: "Correta";
            position: absolute;
            top: 5px;
            right: 10px;
            font-size: 0.8rem;
            color: #4caf50;
            font-weight: bold;
        }

        .question-review-indicator {
            display: inline-block;
            padding: 5px 15px;
            background: #e3f2fd;
            color: #1a237e;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-left: 15px;
            font-weight: normal;
        }

        .alternatives-container.review-mode .alternative {
            cursor: default;
            pointer-events: none;
        }

        .alternatives-container.review-mode .alternative:hover {
            transform: none;
            background: inherit;
        }

        .btn-review {
            background: #9c27b0;
            color: white;
        }

        .btn-review:hover {
            background: #7b1fa2;
        }

        .nav-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding: 15px;
            background: #f5f5f5;
            border-radius: 10px;
        }

        .nav-info {
            font-weight: bold;
            color: #1a237e;
        }