/* =============================================
   GLOBAL STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-app {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    position: relative;
}

/* =============================================
   START SCREEN
   ============================================= */
.start-screen {
    text-align: center;
}

.start-content h1 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.start-content p {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    text-align: right;
    margin: 30px 0;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 10px;
}

.features-list li {
    padding: 10px 0;
    color: #374151;
    font-size: 1.05rem;
}

.pulse-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.pulse-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* =============================================
   HEADER (Question Counter & Timer)
   ============================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 10px;
    margin-bottom: 20px;
}

.number-of-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.timer-div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-weight: 600;
}

.timer-div svg {
    width: 24px;
    height: 24px;
}

.timer-div.warning {
    color: #dc2626;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================
   QUIZ CONTENT
   ============================================= */
.quiz-content {
    min-height: 300px;
    padding: 20px 0;
}

.container-mid {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 25px;
    line-height: 1.8;
    font-weight: 500;
    white-space: pre-wrap;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-div {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    font-size: 1.05rem;
    color: #374151;
    font-family: 'Tajawal', sans-serif;
}

.option-div:hover:not(:disabled) {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateX(-5px);
}

.option-div.correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    font-weight: 600;
}

.option-div.incorrect {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
    font-weight: 600;
}

/* =============================================
   NEXT BUTTON
   ============================================= */
#next-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 20px;
    float: left;
}

#next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* =============================================
   SCORE CONTAINER
   ============================================= */
.score-container {
    text-align: center;
    padding: 40px 20px;
}

.score-content h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 20px;
}

#user-score {
    font-size: 1.5rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 20px;
}

.score-message {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 30px 0;
}

/* Styling for the final registration link */
.register-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.register-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hide {
    display: none !important;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
    .quiz-app {
        padding: 20px;
    }
    
    .start-content h1 {
        font-size: 1.5rem;
    }
    
    .question {
        font-size: 1.1rem;
    }
    
    .option-div {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}