/* ===================== Results Page ===================== */
/* ===================== Global Styles ===================== */
body {
    font-family: Arial, sans-serif;
    max-width: 700px;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
}

@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

input[type=text] {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    font-size: 1.05em;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-sizing: border-box;
}

input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.quiz-apps .btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
}

.quiz-apps .btn-check {
    background: #4CAF50;
    color: white;
}

.quiz-apps .btn-reset {
    background: #f44336;
    color: white;
}

.quiz-apps .btn-test {
    background: #2196F3;
    color: white;
    margin-top: 10px;
}

.quiz-apps .btn-menu {
    background: #FF9800;
    color: white;
    margin-top: 10px;
}

.quiz-apps .btn:active {
    opacity: 0.7;
}

#result,
#mcResult {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

.fade {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.fade.show {
    opacity: 1;
}

/* ===================== Autocomplete ===================== */
.autocomplete-container {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    z-index: 99;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
}

.autocomplete-items div {
    padding: 12px;
    cursor: pointer;
}

.autocomplete-items div:hover {
    background: #eaeaea;
}

/* ===================== Main Menu ===================== */
#mainMenu {
    display: block;
    text-align: center;
    margin-top: 50px;
}

.menu-btn {
    width: 60%;
    padding: 15px;
    font-size: 1.2em;
    margin: 15px auto;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
}

.menu-btn:hover {
    background: #45a049;
}

/* ===================== Quiz Sections ===================== */
#quizSection,
#mcSection {
    display: none;
}

#mcOptions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.mc-option {
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #bbb;
    cursor: pointer;
    transition: background 0.3s;
}

.mc-option:hover {
    background: #f0f0f0;
}

/* ===================== Results Page ===================== */
#finalResults {
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#finalResults h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

#finalScore {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #2196F3;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#finalScore.show {
    opacity: 1;
    transform: scale(1);
}.results-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.2s ease;
}

.results-item.show {
    opacity: 1;
}

.results-item .details {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon, verse text, and answers */
    flex-grow: 1;
}

.results-item .details .verse-text {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between the icon and the verse text */
}

.results-item .details p {
    margin: 0;
    padding: 0;
    font-size: 1em; /* Ensures text is readable */
}

.results-item .point-badge {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 1em;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.point-10 {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.point-3 {
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    color: #000;
}

.point-0 {
    background: linear-gradient(135deg, #f44336, #E57373);
}

/* ===================== Result Icon Styles ===================== */
.result-icon {
    font-size: 1.3em;
    vertical-align: middle;
    margin-right: 8px;
}

.correct-icon {
    color: #4CAF50;
}

.partial-icon {
    color: #FFB300;
}

.incorrect-icon {
    color: #f44336;
}
