body {
    font-family: 'Comic Sans MS', Arial, sans-serif;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.game-container {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 10px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

h1 {
    color: #ff6f61;
    font-size: 2.5em;
    margin: 5px 0;
}

.settings-container {
    margin-bottom: 15px;
}

.toggle-settings {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s, transform 0.2s;
}

.toggle-settings:hover {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    transform: scale(1.05);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.control-group label {
    font-size: 1.1em;
    color: #333;
}

.control-group select, .control-group input[type="file"] {
    padding: 6px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.control-group select:focus, .control-group input[type="file"]:focus {
    border-color: #ff6f61;
    outline: none;
}

.download-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s, transform 0.2s;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    transform: scale(1.05);
}

.start-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s, transform 0.2s;
}

.start-btn:hover {
    background: linear-gradient(135deg, #ffcc33, #ffb347);
    transform: scale(1.05);
}

.next-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #0099FF, #33FFFF);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.next-btn:hover {
    background: linear-gradient(135deg, #66FF00, #00FF00);
    transform: scale(1.05);
}

#question-container {
    margin-bottom: 0;
    padding: 10px;
    background-color: #fef9e7;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

#question-text {
    color: #2c3e50;
    font-size: 32pt;
    margin: 0 0 10px 0;
}

.question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

#question-image, #question-image-canvas {
    width: 100px;
    height: 100px;
}

#options-container {
    display: flex;
    gap: 10px;
}

#options-container button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 32pt;
    transition: background 0.3s, transform 0.2s;
}

#options-container button:hover {
    background: linear-gradient(135deg, #66FF00, #00FF00);
    transform: scale(1.05);
}

canvas#raceCanvas {
    border: 3px solid #333;
    border-radius: 0 0 10px 10px;
    background: #f0f0f0;
    width: 100%;
    margin-top: 0;
}

#scoreboard {
    margin-top: 0;
    padding: 15px;
    background-color: #e8f6e9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

#scoreboard h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin: 0 0 10px 0;
    text-align: center;
}

#score-list {
    margin: 0;
    padding: 0;
}

#score-list li {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 5px 0;
}

.question-progress {
    font-size: 1.2em;
    color: #2c3e50;
    padding: 5px;
}

#question-progress-top {
    text-align: left; /* Căn trái cho Lượt chơi */
}

#question-progress-bottom {
    text-align: center; /* Căn giữa cho Số câu */
}