/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    width: 100%;
    height: 270px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

header h1 {
    font-size: 2.5em;
    color: #f5c842;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.question-card {
    background: linear-gradient(135deg, #f5c842, #f5a623);
    color: #333;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(245, 200, 66, 0.3);
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 200, 66, 0.5);
}

.question-number {
    display: block;
}

/* مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #2d2d44;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #fff;
}

#questionText {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: #3d3d5a;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    color: #fff;
    border: 2px solid transparent;
}

.option:hover {
    background: #4d4d6a;
    transform: scale(1.02);
}

.option:active {
    transform: scale(0.98);
}

.correct {
    background: #27ae60;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.wrong {
    background: #e74c3c;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.download-section {
    text-align: center;
    padding: 30px 0;
}

.btn-download {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-download:hover {
    background: #27ae60;
    transform: scale(1.05);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .questions-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .question-card {
        padding: 15px;
        font-size: 1.2em;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}