* {
    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;
}

/* Question Type Select Dropdown */
.question-type-select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 2px solid #ddd;
    background-color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.question-type-select:hover {
    border-color: #2196F3;
}

.question-type-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Question type selection container */
.question-type-container {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.question-type-label {
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.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: 10px;
    }

    .compact-stats {
        justify-content: center;
    }

    .compact-stat {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Practice Selection Page Styles */
.practice-buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.practice-type-button {
    background-color: #2196F3;
    color: white;
    font-size: 1.3em;
    padding: 15px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 250px;
}

.practice-type-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.practice-type-button:active {
    transform: translateY(1px);
}

.practice-type-button:first-child {
    background-color: #9C27B0;
}

.practice-type-button:first-child:hover {
    background-color: #7B1FA2;
}

.practice-type-button:last-child {
    background-color: #4CAF50;
}

.practice-type-button:last-child:hover {
    background-color: #388E3C;
}

/* Responsive design for practice buttons */
@media (max-width: 768px) {
    .practice-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .practice-type-button {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Practice Navigation Buttons Container */
.practice-navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Choice Container for Inference Questions */
.choice-container {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.choice-text {
    text-align: justify;
    text-justify: inter-word;
    max-width: 700px;
    margin: 0 auto;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    line-height: 1.4;
}

/* Back Button Styles */
.backButton {
    background-color: #FF9800;
    color: white;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.backButton:hover {
    background-color: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.backButton:active {
    transform: translateY(1px);
}

/* Responsive design for navigation buttons */
@media (max-width: 600px) {
    .practice-navigation-buttons {
        flex-direction: column;
        align-items: center;
    }

    .backButton,
    .nextButton {
        width: 80%;
        margin-bottom: 10px;
    }
}


/* Back Button Styles */
.backButton {
    background-color: #FF9800;
    color: white;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.backButton:hover {
    background-color: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.backButton:active {
    transform: translateY(1px);
}

/* Responsive design for navigation buttons */
@media (max-width: 600px) {
    .practice-navigation-buttons {
        flex-direction: column;
        align-items: center;
    }

    .backButton,
    .nextButton {
        width: 80%;
        margin-bottom: 10px;
    }
}

/* Practice Image Buttons */
.practice-buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.practice-image-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 200px;
    text-align: center;
    justify-content: center;
}

.practice-image-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.practice-button-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.practice-image-button:hover .practice-button-image {
    transform: scale(1.05);
}

.practice-button-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Responsive design for practice buttons */
@media (max-width: 768px) {
    .practice-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .practice-image-button {
        width: 180px;
        height: 180px;
        padding: 15px;
    }

    .practice-button-image {
        width: 100px;
        height: 100px;
    }

    .practice-button-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .practice-image-button {
        width: 160px;
        height: 160px;
        padding: 10px;
    }

    .practice-button-image {
        width: 80px;
        height: 80px;
    }

    .practice-button-label {
        font-size: 13px;
    }
}

/* 
Home Button Styles */
.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.home-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.home-icon {
    width: 28px;
    height: 28px;
    color: white;
    fill: white;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Update navbar to accommodate home button */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 15px;
    position: relative;
    height: 50px;
}

/* Responsive design for home button */
@media (max-width: 768px) {
    .home-button {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .home-icon {
        width: 22px;
        height: 22px;
    }

    .navbar {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .home-button {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }

    .home-icon {
        width: 20px;
        height: 20px;
    }
}