/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Arial', sans-serif;
    background-image: linear-gradient(135deg, #3494E6 0%, #EC6EAD 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    max-width: 600px; /* تحديد العرض الأقصى للمحتوى */
    margin: 20px auto; /* توسيط المحتوى على الشاشة */
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بلون أبيض شفاف */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* ظل للحاوية */
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

p {
    color: #666;
    line-height: 1.6;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

/* توسيط النموذج */
#question-container {
    margin-bottom: 20px;
}

#answer-form {
    display: inline-block;
    text-align: left;
}

input[type="radio"] {
    margin-right: 10px;
}

#result-container {
    display: none;
    margin-top: 20px;
}

.correct-answer {
    color: green;
    font-weight: bold;
}

.wrong-answer {
    color: red;
    font-weight: bold;
}

/* تحديد أنماط السؤال */
.question {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* تحديد أنماط الخيارات */
.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
}

.options label {
    display: block;
    cursor: pointer;
    font-size: 20px;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.options label:hover {
    background-color: #f0f0f0;
}

.options input[type="radio"] {
    display: none;
}

.options input[type="radio"]:checked + label {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* تحديد أنماط زر الإرسال */
.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* تحديد أنماط رسالة النتيجة */
.result {
    margin-top: 20px;
    font-size: 20px;
}

/* تحديد أنماط للشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .question {
        font-size: 20px;
    }
    .options label {
        font-size: 16px;
        padding: 12px;
    }
    .submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    .result {
        font-size: 18px;
    }
}
