body {  
    font-family: "Times New Roman", Times, serif;
    background-color: #1e1e1e;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

header {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
}
header img {
    width: 100%;
    height: 90px;
    object-fit: cover; /* لجعل الصورة تتكيف مع الأبعاد */
}


.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
#button {
    color: #ffffff;
    border-radius: 30px;
    cursor: pointer;
}
.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-buttons button {
    background-color: #cc0000;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.filter-buttons button:hover {
    background-color: #a30000;
}

.info-section {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    text-align: left;
}

.info-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.image-container {
    flex: 0 0 auto; /* Prevent the image from shrinking */
    margin-right: 20px;
    margin-bottom: 20px;
    max-width: 400px; /* Ensures the image container does not exceed a specific width */
}

.info-image {
    width: 100%; 
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.info-image:hover {
    transform: scale(1.05);
}

.text-content {
    flex: 1;
    min-width: 250px; 
}

.text-content p, .text-content h3 {
    margin: 10px 0;
}

.text-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.text-content a {
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}

.text-content a:hover {
    text-decoration: underline;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 300px;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.button-container {
    padding: 10px;
}

.button {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #a30000;
}

.contact-section {
    background-color: #2a2a2a;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

a {
    color: #cc0000;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

.contact-section a {
    color: #cc0000;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

.gallery-item h4 {
    margin: 10px 0;
    color: #ffffff; /* لون النص */
    font-size: 1.1em; /* حجم النص */
}


@media (max-width: 768px) {
    .info-content {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center; /* Center-align content */
    }

    .image-container {
        margin-right: 0; /* Remove margin on smaller screens */
    }

    .text-content {
        text-align: center; /* Center text on smaller screens */
        margin-top: 15px; /* Add spacing above text */
    }

    .gallery-item img,
    .gallery-item video {
        height: auto; /* Make height auto for better responsiveness */
    }
}


/* نمط عام للنافذة */
.modal {
    display: none; /* افتراضيًا تكون مخفية */
    position: fixed; /* موقعة في الموضع الثابت */
    z-index: 1000; /* توضع فوق العناصر الأخرى */
    left: 0;
    top: 0;
    width: 100%; /* عرض كامل */
    height: 100%; /* ارتفاع كامل */
    overflow: auto; /* يمكن التمرير إذا كان المحتوى كبير */
    background-color: rgba(0, 0, 0, 0.7); /* خلفية داكنة مع شفافية */
}

/* محتوى النافذة */
.modal-content {
    background-color: #2a2a2a; /* لون الخلفية */
    margin: 15% auto; /* موضع من الأعلى ووسط الصفحة */
    padding: 20px;
    border: 1px solid #ccc; /* حدود */
    width: 80%; /* عرض 80% من الشاشة */
    max-width: 500px; /* أقصى عرض */
    border-radius: 8px; /* زوايا دائرية */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* ظل */
}

/* زر الإغلاق */
.close {
    color: #aaa; /* لون رمادي */
    float: right; /* إلى اليمين */
    font-size: 28px; /* حجم الخط */
    font-weight: bold; /* وزن الخط */
    cursor: pointer; /* مؤشر اليد */
}

/* عند التمرير فوق زر الإغلاق */
.close:hover,
.close:focus {
    color: #fff; /* لون أبيض */
    text-decoration: none; /* إزالة التسطير */
    cursor: pointer; /* مؤشر اليد */
}

/* تنسيق النموذج */
form {
    display: flex; /* استخدام flexbox */
    flex-direction: column; /* عناصر عمودية */
}

/* تنسيق الحقول */
label {
    margin: 10px 0 5px; /* هوامش */
    color: #ffffff; /* لون النص */
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%; /* عرض كامل */
    padding: 10px; /* حشوة */
    border: 1px solid #ccc; /* حدود */
    border-radius: 4px; /* زوايا دائرية */
    margin-bottom: 15px; /* مسافة أسفل كل حقل */
}
textarea{
    min-height: 150px;
}

/* زر الإرسال */
button {
    background-color: #cc0000; /* لون الخلفية */
    color: #fff; /* لون النص */
    border: none; /* لا حدود */
    padding: 10px 15px; /* حشوة */
    border-radius: 5px; /* زوايا دائرية */
    cursor: pointer; /* مؤشر اليد */
    transition: background-color 0.3s; /* تأثير الانتقال */
    margin: 10px;
}

/* تأثير التمرير على الأزرار */
button:hover {
    background-color: #a30000; /* لون مختلف عند التمرير */
}
