/* تنسيقات عامة */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2D1E4D;
    color: #333;
    text-align: center;
}

header {
    background-color: #2D1E4D; /* اللون الأزرق الداكن المستخدم في اللوغو */
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* نقل العناصر إلى اليسار */
    padding: 10px 20px;
    
}


header img.logo-image {
    width: 120px;
    margin-top: 10px;
    border-radius: 10px;
}

.gallery {
    width: 100%;
    max-width: 1000px; /* تكبير العرض */
    margin: auto;
    overflow: hidden;
    position: relative;
}
.gallery-container {
    position: relative;
    width: 100%;
    height: 400px; /* جعل جميع الصور بنفس الارتفاع */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}
.gallery-container img {
    width: 100%;
    border-radius: 10px; width: 100%;
    height: 400px; /* جعل جميع الصور بنفس الارتفاع */
    object-fit: cover; /* ضمان التناسق */
    border-radius: 10px;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover { background: rgba(0, 0, 0, 0.8); }

/* تنسيقات خاصة بالهواتف */
@media (max-width: 768px) {
    .gallery-container {
        height: 250px; /* تقليل الارتفاع للشاشات الصغيرة */
        max-width: 90%; /* السماح بمساحة أكبر على الجوانب */
    }
    
    .gallery-container img {
        height: 250px; /* ضبط ارتفاع الصورة حسب الحاوية الجديدة */
    }
    
    .prev, .next {
        padding: 15px; /* زيادة حجم الأزرار لللمس */
        font-size: 24px; /* تكبير الأسهم */
    }
}

@media (max-width: 480px) {
    .gallery-container {
        height: 200px; /* مزيد من تقليل الارتفاع للشاشات الصغيرة جدًا */
        border-radius: 5px; /* تقليل زوايا التدوير */
    }
    
    .gallery-container img {
        height: 200px; /* ضبط ارتفاع الصورة */
    }
    
    .prev, .next {
        padding: 12px;
        font-size: 20px;
    }
}

div {
    color: #f0642c;
    padding: 10px;

}


/* تنسيقات قسم الألعاب */
.games {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* تنسيق العناصر في قسم الألعاب */
.game {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    padding: 15px;
    transition: transform 0.3s ease;
    margin: 10px;
    display: flex; /* استخدام flexbox */
    flex-direction: column; /* ترتيب المحتويات عموديًا */
    justify-content: space-between; /* توزيع العناصر */
}

.game:hover {
    transform: scale(1.05);
}

.game-image {
    width: 100%;
    height: auto;
    max-height: 235px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* الصور داخل قسم التفاصيل */
#modal-game-image {
    width: 90%; /* العرض الافتراضي للصور */
    height: auto; /* الحفاظ على نسبة الأبعاد */
    max-height: 300px;
}

/* صورة GYM بالطول */
#modal-game-image.gym-vertical {
    width: auto; /* السماح للطول بالتكيف */
    height: 100%; /* ضبط الطول ليملأ المساحة */
    max-height: 500px; /* تحديد أقصى ارتفاع */
    object-fit: contain; /* الحفاظ على نسبة العرض إلى الطول */
}

/* الأزرار */
.details-btn {
    background-color: #f0642c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 10px;
    
}

.details-btn:hover {
    background-color: #2D1E4D;
}

/* نافذة التفاصيل */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.3s ease;
}


.modal-content {
    max-width: 600px;
    max-height: 80vh;  /* تعيين الحد الأقصى للطول */
    overflow-y: auto;  /* تمكين التمرير عند زيادة المحتوى */
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 5px;
}



@keyframes fadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #bb0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close-btn:hover {
    background: #4d0300;
}

.modal-game-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px;
}

.section-title {
    font-weight: bold;
    margin: 10px 0 5px;
    color: #9C5B42;
}

.price {
    font-size: 18px;
    color: #9C5B42;
    margin-bottom: 15px;
}

/* Media Queries لتصميم متجاوب */
@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }

    .game {
        width: 100%;
        max-width: 100%;
    }

    .game-image {
        max-height: 120px;
    }

    .modal-content {
        width: 90%;
        max-width: 350px;
    }

    .details-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .game {
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .game-image {
        max-height: 100px;
    }

    .details-btn {
        padding: 8px 12px;
    }

    .modal-content {
        width: 95%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .games {
        flex-direction: column; /* عرض البطاقات عموديًا */
        align-items: center; /* توسيط البطاقات */
        gap: 15px; /* تقليل المسافات بين العناصر */
    }

    .game {
        max-width: 90%; /* تقليل عرض البطاقات على الهواتف */
        height: auto; /* السماح بالارتفاع التلقائي */
    }

    .game-image {
        max-height: 330px; /* تقليل ارتفاع الصورة */
    }

    .details-btn {
        font-size: 14px; /* تصغير حجم الزر */
        padding: 8px 10px; /* تعديل الحشوات */
    }
}

/* تنسيق الخاتمة */
footer {
    background-color: #2D1E4D; /* نفس لون اللوغو */
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    text-align: center;
}

.footer-logo-image {
    width: 80px;
    height: auto;
    border-radius: 10px;
}

.footer-contact {
    flex: 2;
    text-align: left;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-social-media {
    flex: 1;
    text-align: center;
    
}

.footer-social-media .social-icon {
    display: inline-block;
    margin: 0 10px;
    
}
.footer-social-media .social-icon img{
    border-radius: 25px;
}
.footer-social-media .social-icon img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
    
}

.footer-social-media .social-icon:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    color: #ffffff;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.footer-bottom a{
    color: #f0642c;
}

/* Media Queries لتصميم متجاوب للخاتمة */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-contact {
        text-align: center;
        margin-top: 20px;
    }

    .footer-social-media {
        margin-top: 20px;
        
    }
}



