body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #f8f8f8;
    padding: 20px;
}

/* nav, .container, and button rules removed to avoid Bootstrap conflicts */
/*
nav {
    display: flex;
    justify-content: space-between;
    background: #1e2a48;
    color: white;
    padding: 15px 30px;
}

nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

.container {
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

button {
    margin: 10px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #4a6ef5;
    color: white;
    cursor: pointer;
}

button.dark {
    background-color: #1e2a48;
}
*/

.leaderboard {
    list-style-type: none;
    padding: 0;
}

.leaderboard li {
    margin: 10px 0;
}

.flashes {
    list-style: none;
    padding: 0;
    margin: 10px auto;
    max-width: 400px;
}

.flashes li {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
}

.flashes .warning {
    background-color: #fff3cd;
    color: #856404;
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.question-buttons button {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

.question-buttons button[disabled] {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    word-break: break-word; /* ✅ Ensure long text wraps nicely */
}

thead {
    background-color: #f2f2f2;
}

tbody tr:nth-child(odd) {
    background-color: #fafafa; /* ✅ Zebra striping */
}

tbody tr:hover {
    background-color: #f1f1f1; /* ✅ Row hover effect */
}
.correct {
    color: #155724;
    background-color: #d4edda;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.incorrect {
    color: #721c24;
    background-color: #f8d7da;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}
