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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    padding: 20px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
}

.question-box {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.question-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a73e8;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
}

.timer-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a73e8;
    min-width: 30px;
    text-align: center;
}

.timer-unit {
    font-size: 0.8rem;
    color: #6c757d;
}

.question-content {
    width: 100%;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.hint-text {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #1a73e8;
    margin: 10px 0;
    font-size: 0.95rem;
    color: #666;
    border-radius: 4px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.option-label:hover {
    background-color: #f8f9fa;
    border-color: #1a73e8;
}

.option-label.selected {
    background-color: #e3f2fd;
    border-color: #1a73e8;
}

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

.option-text {
    flex: 1;
    font-size: 1rem;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 12px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    flex: 1;
}

.nav-btn:hover:not(:disabled) {
    background-color: #5a6268;
}

.nav-btn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.prev-btn {
    background-color: #17a2b8;
}

.prev-btn:hover:not(:disabled) {
    background-color: #138496;
}

.next-btn {
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.next-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 30px auto;
    padding: 15px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1557b0;
}

.correct {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.incorrect {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.mark-indicator {
    margin-left: auto;
    font-weight: bold;
    font-size: 1.2rem;
}

.correct .mark-indicator {
    color: #28a745;
}

.incorrect .mark-indicator {
    color: #dc3545;
}

.feedback-text {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    text-align: center;
}

.feedback-text.correct {
    display: block;
    color: #28a745;
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
}

.feedback-text.incorrect {
    display: block;
    color: #dc3545;
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
}

.feedback-emoji {
    font-size: 1.5rem;
    margin-right: 10px;
}

.feedback-message {
    font-size: 1.1rem;
}

.results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    display: none;
}

.results-content {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.results-content h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    font-size: 2rem;
}

.final-score {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.score-label {
    font-weight: bold;
    color: #333;
}

.score-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a73e8;
}

.performance-message {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border: 2px solid #1a73e8;
}

.restart-btn {
    padding: 12px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.restart-btn:hover {
    background-color: #218838;
}

.score-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: #1a73e8;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.score-counter .current-score {
    font-size: 24px;
    line-height: 1;
}

.score-counter .total-score {
    font-size: 12px;
    opacity: 0.8;
}

.score-counter .percentage {
    font-size: 10px;
    opacity: 0.7;
}

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

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

.celebration-effect {
    animation: celebrate 0.5s ease-in-out;
}

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

@keyframes scoreUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.score-update {
    animation: scoreUpdate 0.5s ease-in-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
        margin: 10px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .timer-container {
        align-self: flex-end;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
    .score-counter {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        z-index: 100;
    }
    
    .score-counter .current-score {
        font-size: 1.2rem;
    }
    
    .score-counter .total-score {
        font-size: 0.9rem;
    }
    
    .score-counter .percentage {
        font-size: 0.8rem;
    }
}

.question-actions {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.mark-btn {
    padding: 12px 30px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.mark-btn:hover:not(:disabled) {
    background-color: #1557b0;
}

.mark-btn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #ff6b6b;
    animation: confettiFall 3s linear forwards;
    z-index: 1000;
    pointer-events: none;
}

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

@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
        margin: 10px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .timer-container {
        align-self: flex-end;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
    .score-counter {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        z-index: 100;
    }
    
    .score-counter .current-score {
        font-size: 1.2rem;
    }
    
    .score-counter .total-score {
        font-size: 0.9rem;
    }
    
    .score-counter .percentage {
        font-size: 0.8rem;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.footer p {
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.footer p::before {
    content: "❤️ ";
    margin-right: 5px;
} 