.math-game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.timer {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.score {
    font-size: 20px;
    color: #2196F3;
}

.question-container {
    text-align: center;
    margin: 40px 0;
}

.question-number {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.question-text {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

.answer-container {
    text-align: center;
    margin: 20px 0;
}

.answer-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.answer-option {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-option:hover {
    background-color: #e0e0e0;
    transform: scale(1.03);
}

.answer-option.selected {
    background-color: #2196F3;
    color: white;
    border-color: #0d8aee;
}

.answer-option.correct {
    background-color: #4CAF50;
    color: white;
    border-color: #45a049;
}

.answer-option.incorrect {
    background-color: #f44336;
    color: white;
    border-color: #d32f2f;
}

#submit-answer {
    font-size: 18px;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-answer:hover {
    background-color: #45a049;
}

.answer-feedback {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    display: none;
}

.answer-feedback.correct {
    color: #4CAF50;
}

.answer-feedback.wrong {
    color: #f44336;
}

.game-over {
    text-align: center;
    display: none;
}

.final-score {
    font-size: 48px;
    color: #2196F3;
    margin: 20px 0;
}

.high-scores {
    max-width: 400px;
    margin: 0 auto;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.high-scores h3 {
    color: #333;
    margin-bottom: 15px;
}

.high-scores ol {
    text-align: left;
    padding-left: 30px;
}

.high-scores li {
    margin: 10px 0;
    color: #666;
}

.start-game {
    font-size: 20px;
    padding: 15px 30px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start-game:hover {
    background-color: #1976D2;
}

.level-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.level-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.level-info {
    color: #666;
    margin-bottom: 15px;
}

.level-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-size: 18px;
    color: #2196F3;
    font-weight: bold;
} 