/* استایل پیام ورود */
.login-message {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px auto; /* مرکز چین برای پیغام */
}

.login-message p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.login-message .login-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.login-message .login-button:hover {
    background-color: #005983;
}

/* استایل فرم آزمون */
#quiz-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    margin: 20px auto;
}

#quiz-form {
    display: flex;
    flex-direction: column;
}

.question {
    margin-bottom: 20px;
    background-color: #fbfbfb;
    padding: 20px;
    border-radius: 10px;
}

.question p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

/* استایل گزینه‌های سوالات */
.question label {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
    position: relative;
}

/* تغییر رنگ گزینه به #dfdfdf بعد از انتخاب */
.question label.selected {
    background-color: #dfdfdf;
}
/*.question input[type="radio"] {
    display: none; 
}
*/
.question input[type="radio"] {
    position: absolute;
    z-index: -99;
}
/* دکمه مشاهده نتیجه */
#quiz-form button[type="submit"] {
    width: 250px;
    background-color: #16a106;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 20px auto;
    font-family: 'iranyekan';
}

button[type="submit"]:hover {
    background-color: #0f7a0d;
}

/* استایل بخش نتایج */
#result {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#result h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* استایل جدول نتایج */
#result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#result-table th,
#result-table td {
    padding: 10px;
    text-align: center; /* وسط‌چین کردن متن‌ها */
}

/* استایل ردیف اول جدول */
#result-table th {
    background-color: #ff9900;
    color: #fff;
    font-weight: bold;
}

/* رنگ‌های متفاوت برای ردیف‌های زوج و فرد */
#result-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#result-table tr:nth-child(odd) {
    background-color: #fff;
}

#result-table td {
    color: #555;
    border: 1px solid #ddd;
}
.question.unanswered {
    border: 2px solid #ff0000; /* قرمز برای برجسته کردن */
    background-color: #ffe5e5; /* رنگ پس‌زمینه ملایم */
}