@charset "UTF-8";

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

select {
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    max-width: 300px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.btn-reset {
    background-color: #e74c3c;
}

.btn-reset:hover {
    background-color: #c0392b;
}

.question-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.question-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.chapter-tag {
    display: inline-block;
    background-color: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 8px;
}

.options {
    list-style-type: none;
    padding: 0;
}

.options li {
    margin-bottom: 8px;
}

label {
    cursor: pointer;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

label:hover {
    background-color: #f0f8ff;
}

input[type="radio"] {
    margin-right: 10px;
}

.result-text {
    margin-top: 10px;
    font-weight: bold;
    display: none;
}

.correct-ans {
    color: #27ae60;
}

.wrong-ans {
    color: #c0392b;
}

.highlight-correct {
    background-color: #d4efdf !important;
}

.highlight-wrong {
    background-color: #f5b7b1 !important;
}

#score-container {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    color: #2c3e50;
    display: none;
}