* {
    margin: 0;
    padding-top: 5px;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}
.container {
    width: 800px;
    max-width: 100%;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 10px;
    position: relative;
    height: 50px;
}
.header-text {
    color: white;
    font-size: 20px;
    flex-grow: 1;
    text-align: center;
}
.menu-icon {
    font-size: 24px;
    color: white;
    cursor: pointer;
}
.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 50px;
    left: 0;
    text-align: center;
}
.nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
}
.nav-links.active {
    display: flex;
}
.content {
    margin-top: 10px;
    padding: 10px;
    background: #F5FFFA;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.extraContent {
    margin-top: 10px;
    padding: 10px;
    background: #F5FFFA;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
    text-justify: inter-word;
}
.image-text-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}
.image-container {
    flex: 1;
    background: #F5FFFA;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.text-container {
    flex: 2;
    padding: 10px;
    background: #F5FFFA;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.image-container img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.choiceButton {
    font-size: 1.2em;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #050403;
    color: white;
  }
.nextButton {
    background-color: #050403;
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.subtext {
    color: #050403;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    text-align: center;
    word-wrap: break-word;
    font-style: italic;
    font-size: 15px;
}
.pCenterClass {
    padding: 10px;
}
.pJustClass {
    padding: 10px;
    text-align: justify;
    text-justify: inter-word; 
}
h3 {
    padding: 10px;
    text-align: left;
}
/* Use
r Info Styles */
.user-info {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
}

/* Statistics Section Styles */
.stats-section {
    margin-top: 20px;
    padding: 20px;
    background: #F5FFFA;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.stats-header {
    text-align: center;
    margin-bottom: 20px;
}

.stats-header h2 {
    color: #333;
    font-size: 1.8em;
    margin: 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.stat-icon {
    font-size: 1.5em;
    position: absolute;
    top: 10px;
    right: 15px;
}

.correct-card {
    border-left: 5px solid #4CAF50;
}

.correct-card .stat-number {
    color: #4CAF50;
}

.incorrect-card {
    border-left: 5px solid #f44336;
}

.incorrect-card .stat-number {
    color: #f44336;
}

.accuracy-card {
    border-left: 5px solid #2196F3;
}

.accuracy-card .stat-number {
    color: #2196F3;
}

.total-card {
    border-left: 5px solid #FF9800;
}

.total-card .stat-number {
    color: #FF9800;
}

.stats-actions {
    text-align: center;
    gap: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.reset-stats-btn, .toggle-history-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 5px;
}

.toggle-history-btn {
    background-color: #2196F3;
}

.reset-stats-btn:hover {
    background-color: #d32f2f;
}

.toggle-history-btn:hover {
    background-color: #1976D2;
}

/* Answer History Section */
.answer-history-section {
    margin-top: 20px;
    padding: 20px;
    background: #F5FFFA;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-header h3 {
    color: #333;
    margin: 0;
}

.history-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.history-content {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ddd;
}

.history-item.correct {
    border-left-color: #4CAF50;
}

.history-item.incorrect {
    border-left-color: #f44336;
}

.history-question {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.history-answer {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.history-answer.incorrect {
    color: #f44336;
}

.history-timestamp {
    font-size: 12px;
    color: #999;
}

.no-history {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Responsive design */
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .history-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .history-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}/* Comp
act Statistics in Question Header */
.question-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    position: relative;
}

.question-header .pCenterClass {
    flex: 1;
    text-align: center;
}

.question-header .compact-stats {
    position: absolute;
    right: 0;
}

.compact-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

.compact-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-stat.correct {
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.compact-stat.incorrect {
    color: #f44336;
    border: 2px solid #f44336;
}

/* Responsive design for compact stats */
@media (max-width: 600px) {
    .question-header {
        flex-direction: column;
        gap: 0px;
    }
    
    .compact-stats {
        justify-content: center;
    }
    
    .compact-stat {
        font-size: 12px;
        padding: 4px 8px;
    }
}
