
 *{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body{
    font-family: "Cairo", "Beiruti",serif;
    text-align: center; /* محاذاة النص في المنتصف */
    background-color: #FFFDED;
    padding: 5px;
    margin: 0; /* إزالة الهوامش الافتراضية */
    height: 100vh; /* جعل ارتفاع الصفحة يملأ نافذة العرض */

    background-size: cover; /* جعل الصورة تغطي كامل الصفحة */
    background-repeat: no-repeat; /* منع تكرار الصورة */
    background-position: center; /* محاذاة الصورة في المركز */
    background-attachment: fixed; /* تثبيت الصورة */
    
    
}



html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; /* منع التمرير الأفقي */
    overflow-y: auto;   /* السماح بالتمرير العمودي */
    height: 100%;       /* تأكد أن الصفحة تغطي كامل الطول */
    -webkit-overflow-scrolling: touch; /* دعم التمرير السلس على أجهزة Android */
    touch-action: pan-y; /* السماح بالتمرير العمودي فقط */
}

.navbar {
    position: fixed; /* تثبيت العنصر في أعلى الصفحة */
    top: 0; /* تحديد المسافة من أعلى الصفحة */
    left: 0; /* تحديد المسافة من اليسار */
    right: 0; /* تحديد المسافة من اليمين */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:#000000 ;
    color: white;
    padding: 1px;
    border-radius: 0px; /* إضافة زوايا دائرية في الأسفل فقط */
    width: 100%; /* عرض الشريط كامل */
    box-sizing: border-box; /* التأكد من احتساب الحواف في العرض */
    z-index: 1000; /* ضمان أن الشريط يظهر فوق باقي المحتويات */
    height: 50PX;
    margin-bottom: 300px;

   
   
}


.navbar .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    

}

.navbar input[type="text"] {
    position: absolute;
    padding: 12px;
    border: 2px solid #F42C04;
    border-radius: 15px;
    width: 40px;
    height: 10px;
    font-size: 18px;
    background-color: #ffffff12;
    color: #fafffb;
    text-align: center;
    transition: all 0.3s ease;
    appearance: none;
    justify-content: center;
    text-align: center;
    left: 102px;
    bottom: 7px;
    
    
}



.navbar input[type="text"]::placeholder{
    position: absolute;
    top: 3px;
    left: 5px;
    right: 5px;
    bottom: 6px;
    font-family: "Cairo", "Beiruti",serif;
    color: white;
    font-size: 14px;
    

    
    
}

.navbar input[type="text"]:focus {
    border-color: #000000;
    outline: none;
    background-color: #2d3333;
}

.navbar button {
    display: flex;
    font-family: "Cairo", "Beiruti",serif;
    padding: 0px;
    background-color: #F42C04;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    right: 1px;
    box-sizing: border-box;
    height: 35px;
    margin: 10px;
    text-align: center;
    justify-content: center;
    width: 60px;
}
.navbar button:active {
    display: flex;
    font-family: "Cairo", "Beiruti",serif;
    padding: 0px;
    
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    right: 1px;
    box-sizing: border-box;
    height: 35px;
    margin: 10px;
    text-align: center;
    justify-content: center;
    width: 60px;
    transform: scale(1.2);
    animation: scalebutton 0.3s ease-in-out;
                                                                     
}


@keyframes scalebutton {
    0% {
        transform: scale(1);
        background-color:#F42C04;
    }
    50% {
        transform: scale(1.3);
        background-color:#FCA311;
    }
    100% {
        transform: scale(1);
        background-color:#F42C04;
    }
}




.navbar .jojo{
    position: absolute;
    justify-content: center;
    left: 2%;
    font-size: 40px;
    color: #F42C04;
    font-weight: 650;
    



}


.total-price {
    position: absolute;
    left: 62%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center; /* توسيط المحتوى أفقيًا */
    align-items: center; /* توسيط المحتوى عموديًا */
    gap: 10px; /* إضافة مسافة بين الحقل والنص */
    margin: 2px;
    color: #F42C04;
    width: 150px; /* يمكن تعديل العرض حسب الحاجة */
    height: 55px; /* تحديد ارتفاع العنصر */
    
}

input::placeholder {
    color: rgb(255, 255, 255); /* اللون الجديد للنص */
    font-size: 15px;
    opacity: 1; /* التأكد من وضوح النص */
    font-family: "Cairo", "Beiruti",serif;

}



.total-price input {
    position: relative;
    gap: 2px;
    width: 35px; /* عرض الحقل */
    padding: 5px;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    border: 2px solid #F42C04;
    background-color:#ffffff12;
    color: #ffffff;
    height: 15px; /* تأكد من أن الحقل يملأ العنصر عموديًا */
    pointer-events: none; /* منع التفاعل مع الحقل */
    transition: all 1s;

    
    
}




.total-price input:not(:placeholder-shown) {
    border-color: #FCA311; /* تغيير اللون عند الكتابة */
    background-color:#FCA311; /* تغيير اللون الخلفي */
    box-shadow: 0 0 30px 2px #F42C04 ;
    width: 45px;
    transition: all 1s;
}


.total-price .price-text {
    font-size: 16px; /* حجم النص */
    color: #F42C04; /* لون النص */
    font-weight: bold; /* جعل النص غامقًا */
    bottom: 30px;
    
}





/*----------------------------------------------------------------------------------------------------*/





 /*-------------------------------------------------------------------------------------------------*/
.price {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}



.confirmation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    
}

.confirmation-window {
    background-color: rgb(164, 155, 155);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.confirmation-overlay.show {
    display: flex;
}

/*------------------------------------*/





/*-----------رسالة------------*/
.alert {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    position: fixed; /* يضمن أن العنصر يبقى في مكانه حتى عند التمرير */
    top: 80px; /* يمكنك تعديل هذه القيمة حسب المكان الذي تريده */
    left: 50%;
    transform: translateX(-50%); /* لضمان أن العنصر في المنتصف */
    z-index: 2000; /* التأكد من أن العنصر يظهر فوق العناصر الأخرى */
    width: 100%;
}
.alert.success {
    background-color: #4caf4f44;
    color: white;
    z-index: 2000;
}

.alert.error {
    background-color: #1f84133c;
    color: white;
    
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}






/* نافذة الرسالة */
.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    
}

.alert-window {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.alert-overlay.show {
    display: flex;
}

.alert-overlay button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.alert-overlay button:hover {
    background-color: #45a049;
}
/*---------رسالة-------------------------------------------------------*/
/*---------رسالة-------------------------------------------------------*/
/*---------رسالة-------------------------------------------------------*/
/*---------رسالة-------------------------------------------------------*/
/*---------رسالة-------------------------------------------------------*/
/*---------رسالة-------------------------------------------------------*/
/*---------رسالة-------------------------------------------------------*/




.form-group {
    margin-top: 5px;
}





.menu-options {
    position: absolute; 
    
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    width: 100%; /* العرض الثابت */
    padding: 20px;
    border-radius: 0px 0px 7px 7px;
    opacity: 0;
    visibility: hidden;
    transition: height 0.3s ease, opacity 0.2s ease, visibility 2s ease;
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    justify-items: flex-end;
    z-index: 15; /* قيمة أصغر */
    height: 0px;
    box-shadow: inset 0px 40px 40px 1px #f42c048e, 0 40px 60px 6px rgba(11, 11, 11, 0.892);

    background-color: #5c6b73e1;
    
    
    

} 



.menu-options.visible {
    opacity: 1;
    visibility: visible;
    height: 200px;
    transition: height 0.7s , opacity 0.1s ease, visibility 0.5s ease;
    z-index: 15;
    transform: scale(1);
    box-shadow: inset 0px -20px 30px 1px #f42c04e6, 0 40px 60px 6px rgba(11, 11, 11, 0.892);

    background-color:#5c6b73c0;
    
}

.menu-options > * {
    transform: scale(0.0); /* العناصر تبدأ صغيرة */
    transition: transform 0.2s ease; /* التأثير التدريجي للتحجيم */
}

.menu-options.visible > * {
    transform: scale(1); /* العناصر تكبر إلى الحجم الطبيعي */
}

.menu-options:not(.visible) > * {
    transform: scale(0); /* تصغير العناصر عند الخروج */
    transition: transform 0s ease; /* التأثير التدريجي للتحجيم */
}







.menu-options label input[type="checkbox"] {
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    width: 120px; /* العرض الثابت */
    display: none;
    

}



.menu-options label:nth-child(2) {

    transition-delay: 0.2s ; /* تأخير العنصر الثاني */
}


.menu-options label:nth-child(3) {
    transition-delay: 0.3s; /* تأخير العنصر الثاني */
}

.menu-options label:nth-child(4) {
    transition-delay: 0.4s; /* تأخير العنصر الثالث */
}



.menu-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    justify-content: flex-start; /* محاذاة العناصر إلى اليسار */
    direction: rtl; /* ضبط اتجاه النص من اليمين لليسار */
    font-size: small;
    color: #fff8f8;

    
    
}

.menu-options label .custom-checkbox {
    width: 14px; /* عرض المربع */
    height: 14px; /* ارتفاع المربع */
    border: 1px solid #F42C04; /* إطار المربع */
    border-radius: 6px; /* زوايا دائرية */
    background-color: #fca2114a; /* لون الخلفية */
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* تأثير التغيير */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* إضافة ظل */
    display: flex;
    align-items: center;
    justify-content: center; /* لضمان محاذاة الـ "checkmark" في المنتصف */
    margin-left: 4px; /* إضافة مسافة بين النص والـ checkbox */
    justify-items: flex-end;
    color: #fffdfd;
    
}



.menu-options label input[type="checkbox"] {
    display: none;
}

.menu-options label input[type="checkbox"]:checked + .custom-checkbox {
    border-color: #073807; /* لون الإطار عند التحديد */
    background-color: #042c05; /* لون الخلفية عند التحديد */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* تكثيف الظل */
   
    
}

.menu-options label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "\2714"; /* رمز الصح */
    color: rgb(255, 255, 255); /* لون علامة الصح */
    font-size: 10px; /* حجم العلامة */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* محاذاة العلامة في المنتصف */
    font-weight: bold;
    
    
}

.menu-options label input[type="checkbox"]:checked + .custom-checkbox {
    animation: scaleCheckbox 0.3s ease-in-out;
}

@keyframes scaleCheckbox {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.menu-options label .plit {
    color: #FCA311; /* لون النص */
    font-size: 14px; /* حجم النص */
    font-weight: 500; /* جعل النص عريضًا */
    margin-left: 5px; /* مسافة بين النص السابق */
}


.menu-options textarea {
    
    display: flex;
    align-items: center;
    top: 50%;
    left: 50%;
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    width: 100%;
    height: 40px;
    padding: 10px;
    background-color: #5c6b7346;
    border-radius: 3px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: "Cairo", "Beiruti",serif;
    text-align: end;
    
    transition-delay: 0.5s;
    box-shadow: inset 0 0 15px 1px rgba(0, 0, 0, 0.94), 0 -2px 20px 1px #F42C04;
    border: 1px solid #F42C04; /* البرواز */
    
    

}


.menu-options textarea:focus {
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    width: 100%;
    height: 40px;
    padding: 10px;
    
    border-color:  #F42C04;
    background-color: #5C6B73;
    border-radius: 3px;
    margin-top: 10px;
    font-family: "Cairo", "Beiruti",serif;
    justify-content: center;
    transition: 1s;
    outline: none; /* إزالة الإطار الافتراضي */
    transform: scale(1.1);
    transition-delay: 0s; /* تأخير خاص بحالة التركيز */
    box-shadow: inset 0 0 15px 2px rgba(0, 0, 0, 0.94), 0 -2px 20px 1px #F42C04;

    font-size: 10px;
    
    
}
.menu-options textarea::placeholder {
    font-size: 12px;

    justify-content: center;
    color: #000000;
    
  
    

}

.menu-options textarea:not(:placeholder-shown) {
    border-color: rgb(52,77,52); /* تغيير اللون عند الكتابة */
    background-color: #a8a8a8; /* تغيير اللون الخلفي */
    box-shadow: inset 0 0 15px 0px rgba(0, 0, 0, 0.94), 0 -2px 20px 1px #F42C04;

}


/* حالة العنصر بعد فقدان التركيز (blur) */


.quantity-group {
    position: relative;
    display: flex;
    
    gap: 10px;
    transition-delay: 0.1s; /* تأخير العنصر الثاني */
    box-sizing: border-box; /* يجعل الحواف الداخلية ضمن العرض */
    justify-content: center; /* تحريك المحتوى إلى اليسار */
    margin-bottom: 7px;
    justify-items: flex-end;
}

.quantity-group label {
    font-size: 18px;
    color: #333;
}

.quantity {
    
    color: #ffffff;
    width: 20px;
    height: 10px;
    padding: 5px;
    font-size: 15px;
    border: 2px solid #F42C04 ;
    border-radius: 4px;
    background-color: #fca21162;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 10px 3px #68836c;
    font-family: "Cairo", "Beiruti",serif
    
    
    

    
}






.quantity:focus {
    border-color: #4caf50;
    background-color: #e8f5e9;
    outline: none;
}

.quantity::-webkit-outer-spin-button,
.quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-buttons {
    
    display: flex;
    gap: 5px;
    flex-direction: row; /* ترتيب الأزرار بشكل عمودي */
    
    align-items: center; /* محاذاة الأزرار عموديًا في المنتصف */
    }


.quantity-buttons button {
    font-size: 18px;
    padding: 10px 10px 10px 10px; /* زيادة الحشو لتسهيل الضغط على الأزرار */
    border: none;
    background-color: #F42C04;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex; /* استخدام flexbox */
    justify-content: center; /* توسيط النص أفقيًا */
    align-items: center; /* توسيط النص عموديًا */
    text-align: center; /* التأكد من محاذاة النص داخل الزر */
}
    



.quantity-buttons button:active {
    
    
    animation: scalebuttons 0.3s ease-in-out;
}

@keyframes scalebuttons {
    0% {
        transform: scale(1);
        background-color:#F42C04;
    }
    50% {
        transform: scale(1.3);
        background-color:#FCA311;
    }
    100% {
        transform: scale(1);
        background-color:#F42C04;
    }
}





/*----------------------------------------------------------------------------*/


.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px;
    gap: 4px;
} 

/*------------------------------------------*/


/*----------------------------------------------------------------------------*/
.menu-item {
    position: relative;
    display: flex;
    justify-content: center; /* توسيط المحتوى عموديًا */
    align-items: center; /* توسيط المحتوى أفقيًا */
    flex-direction: column; /* لتحديد ترتيب العناصر داخل كل صنف */
    padding: 15px; /* فراغ داخلي */
    background-color:#5c6b73d7;
    border-radius: 7px 7px 7px 7px;
    transition: transform 0.2s ease-in-out, box-shadow 0.3s ease, height 1s ease  ;  /* تأثير التحجيم والظل */
    box-shadow: inset 0px 20px 40px 5px #F42C04, /* الظل الداخلي */
    0 0 18px 2px #00000070; /* الظل الخارجي */
    cursor: pointer;        
    height: 140px; /* ضبط الارتفاع تلقائيًا */
    width: 2%; /* العرض الثابت */
    z-index: 10;
    top: 50px;  
    transition: z-index 0.3s ease, transform 0.5s ease;
  

    
    
}



/* بالنسبة للشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
.menu-item {
    width: calc(50% - 10px); /* عرض العنصر 50% مع خصم المسافة بين العناصر */
    margin-bottom: 9px; /* إضافة مسافة بين العناصر */
    margin-left: auto; 
    margin-right: auto; 
    box-sizing: border-box; /* تأكد من أن البُعد يشمل الحواف */
    transition: transform 0.7s ease-in-out, box-shadow 0.8s ease-in-out;

}
}


/* التابلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-item {
        width: calc(50% - 10px); /* عرض العنصر 50% مع خصم المسافة بين العناصر */
        margin-bottom: 15px;
        
    }
}

/* الكمبيوتر */
@media (min-width: 1025px) {
    .menu-item {
        width: 10%; /* عرض بنسبة 30% */
        margin-bottom: 20px;
    }
}

.menu-item .price{
    position: absolute;
    right: 2px;
    top: 2px;
    text-align: center;
    color: #ffffff;
    margin: 5px;
    font-size: 15px;
    background-color: #18151580;
    border-radius: 20px;
    width: 50px;
    



}


.menu-item .kind{
    position: absolute;
    left: 2%; /* 10% من عرض الشاشة */
    top: 2%;
    text-align: center;
    color: #ffffff;
    margin: 5px;
    font-size: 15px;
    background-color: #00000048;
    border-radius: 20px;
    width: 50px;
    transition: all 1s ease;
    transform: translate(0, 0); /* موضع البداية */

    



}


.menu-item.focused .kind{
    transform: translate(calc(55vw - 100px),5vh); /* الانتقال إلى الجهة اليمنى */

    text-align: center;
    color: #ffffff;
    transition: all 1s ease;
    font-size: 15px;
    background-color: #00000048;
    border-radius: 20px;
    width: 50px;
    
}













.menu-item .info{
    position: absolute;
    bottom: 0px;
    text-align: center,top;
    color: #ffffff;
    margin: 5px;
    font-size: 10px;
    background-color: #5C6B73;
    width: 100%;
    height:0px;
    border-radius: 0px 0px 0px 0px;
    box-shadow: 0px -20px 25px 0px #000000a8;
    box-sizing: border-box;
    opacity: calc(0);
    transition: all 0.6s ease;



}

.menu-item.focused .info{
    position: absolute;
    bottom: 1px;
    text-align: center,top;
    color: #ffffff;
    margin: 0px;
    font-size: 10px;
    
    background-color: #fca2118f;
    width: 100%;
    height:30px;
    border-radius: 2px 2px 0px 0px;
    box-shadow:inset 0 0px 10px 1px #f42c0453 ,0px -20px 25px 0px #000000a8;
    opacity: 1;
    transition: all 0.6s ease;
    



}






.menu-item.right.focused {
    z-index: 10;
    box-shadow: inset 0px 60px 40px 1px #f42c04, 0 40px 60px 6px rgba(11, 11, 11, 0.892);

    transform: scale(1.4) translateX(-37%) translateY(40%); /* تحريك العنصر إلى منتصف اليمين */ /* تحريك العنصر إلى منتصف العنصر الأب */
    transition: transform 0.5s ease, height 1s ease; /* تأثير التحجيم والظل */
    border-radius: 7px 7px 0px 0px;
   
    background-color: #5c6b73e1;
}

.menu-item.left.focused {
    z-index: 10;
    transform: scale(1.4) translateX(38%) translateY(40%); /* تحريك العنصر إلى منتصف اليسار */ /* تحريك العنصر إلى منتصف العنصر الأب */
    transition: transform 0.5s ease, height 1s ease ,border-radius 1s ease, box-shadow 1s ease; /* تأثير التحجيم والظل */
    border-radius: 7px 7px 0px 0px;
    box-shadow: inset 0px 60px 40px 1px #f42c04, 0 40px 60px 6px rgba(11, 11, 11, 0.892);
    background-color: #5c6b73e1;
    
}



.menu-item .image-wrapper {
    position: relative; /* لضبط الصورة داخل حاوية مرنة */
    width: 100%;
    height: 100%;
}

.menu-item img {
    margin-top: 20px ;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 1s ease, bottom 1s ease, right 1s ease; /* حركات تدريجية للتحجيم والموقع */
    object-fit: cover; /* لضبط الصورة بشكل مناسب داخل العنصر */
    z-index: 5;
    
}  


.menu-item.focused img {

    transform: scale(1.4) translateY(-35px) translatex(-35px) ;
    opacity: 100%;


  
    

}    








.menu-item.selected {
    background-color:  #f4743b ;
}






.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 5; /* Make sure it's above other content */
    transition:  opacity 0.2s ease;
    opacity: 0;
}





.overlay.visible {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.402); /* Semi-transparent background */
    z-index: 7; /* Make sure it's above other content */
    transition:  opacity 0.2s ease;
    opacity: 1;
}


#image1, #image2, #image3, #image4, #image5, #image6 {
    position: absolute;
    opacity: (0.6); /* الصور غير مرئية في البداية */
    width: 50%;
    height: 50%;
}

/* مواضع البداية */
#image1 {
    bottom: 550px;
    left: -300px; /* خارج الشاشة من اليسار */
    opacity: (0.6); /* الصور غير مرئية في البداية */
}

#image2 {
    top: 20px;
    right: -300px; /* خارج الشاشة من اليمين */
    opacity: (0.6); /* الصور غير مرئية في البداية */
}

#image3 {
    top: 200px;
    left: -400px; /* خارج الشاشة من اليسار */
    opacity: (0.6); /* الصور غير مرئية في البداية */
}

#image4 {
    top: 300px;
    right: -400px; /* خارج الشاشة من اليمين */
    opacity: (0.6); /* الصور غير مرئية في البداية */
}

#image5 {
    top: 500px;
    left: -400px; /* خارج الشاشة من اليسار */
    opacity: (0.6); /* الصور غير مرئية في البداية */
}

#image6 {
    top: 600px;
    right: -400px; /* خارج الشاشة من اليمين */
    opacity: (0.6); /* الصور غير مرئية في البداية */
}

/* حركات الدخول */
@keyframes fadeInImage1 {
    0% {
        left: -300px;
        opacity: 0.6;
        transform: rotate(80deg);
        
       
    }
    50% {
        left: -20px;
        opacity: 0.6;
        transform: rotate(75deg);
        
    }
    100% {
        left: -29px;
        opacity: 0.6;
        transform: rotate(80deg);
        
 
    }
}

@keyframes fadeInImage2 {
    0% {
        right: -300px;
        opacity: 0.6;
        transform: rotate(-50deg);
    }
    50% {
        right: -20px;
        opacity: 0.6;
        transform: rotate(-45deg); /* دوران الصورة */
    }
    100% {
        right: -29px;
        opacity: 0.6;
        transform: rotate(-50deg);
        
    }
}

@keyframes fadeInImage3 {
    0% {
        left: -250px;
        opacity: 0.6;
        transform: rotate(60deg);

    }
    50% {
        left: -29px;
        opacity: 0.6;
        transform: rotate(55deg);

    }
    100% {
        left: -39px;
        opacity: 0.6;
        transform: rotate(60deg);

    }
}

@keyframes fadeInImage4 {
    0% {
        right: -200px;
        opacity: 0.6;
        transform: rotate(-4deg);
 
    }
    50% {
        right: -37px;
        opacity: 0.6;
        transform: rotate(-12deg);
  
    }
    100% {
        right: -44px;
        opacity: 0.6;
        transform: rotate(-8deg);

    }
}

@keyframes fadeInImage5 {
    0% {
        left: -300px;
        opacity: 0.6;
        transform: rotate(40deg);
    }
    50% {
        left: -29px;
        opacity: 0.6;
        transform: rotate(50deg); /* دوران عكسي للصورة */
    }
    100% {
        left: -39px;
        opacity: 0.6;
        transform: rotate(40deg);
    }
}

@keyframes fadeInImage6 {
    0% {
        right: -300px;
        opacity: 0.6;
        transform: rotate(-30deg);
    }
    50% {
        right: -20px;
        opacity: 0.6;
        transform: rotate(-25deg);
    }
    100% {
        right: -29px;
        opacity: 0.6;
        transform: rotate(-30deg);
    }
}

/* حركات الخروج ********************************************/
@keyframes fadeOutImage1 {
    0% {
        left: -29px;
        opacity: 0.6;
        transform: rotate(80deg);
    }
    100% {
        left: -300px;
        opacity: 0.6;
        transform: rotate(80deg);
    }
}

@keyframes fadeOutImage2 {
    0% {
        right: -29px;
        opacity: 0.6;
        transform: rotate(-50deg);

    }
    100% {
        right: -300px;
        opacity: 0.6;
        transform: rotate(-50deg);

    }
}

@keyframes fadeOutImage3 {
    0% {
        left: -39px;
        opacity: 0.6;
        transform: rotate(60deg);

    }
    100% {
        left: -250px;
        opacity: 0.6;
        transform: rotate(60deg);


    }
}

@keyframes fadeOutImage4 {
    0% {
        right: -44px;
        opacity: 0.6;
        transform: rotate(-8deg);

    }
    100% {
        right: -250px;
        opacity: 0.6;
        transform: rotate(-4deg);

    }
}

@keyframes fadeOutImage5 {
    0% {
        left: -39px;
        opacity: 0.6;
        transform: rotate(40deg);

    }
    100% {
        left: -300px;
        opacity: 0.6;
        transform: rotate(40deg);

    }
}

@keyframes fadeOutImage6 {
    0% {
        right: -29px;
        opacity: 0.6;
        transform: rotate(-30deg);
   
    }
    100% {
        right: -300px;
        opacity: 0.6;
        transform: rotate(-30deg);


    }
}

/* تطبيق الحركات عند إضافة أو إزالة الصنف visible */
.overlay.visible #image1 {
    animation: fadeInImage1 2s ease-in-out forwards;
}

.overlay.visible #image2 {
    animation: fadeInImage2 3s ease-in-out forwards;
}

.overlay.visible #image3 {
    animation: fadeInImage3 2.4s ease-in-out forwards;
}

.overlay.visible #image4 {
    animation: fadeInImage4 2.3s ease-in-out forwards;
}

.overlay.visible #image5 {
    animation: fadeInImage5 2.4s ease-in-out forwards;
}

.overlay.visible #image6 {
    animation: fadeInImage6 2.6s ease-in-out forwards;
}

.overlay:not(.visible) #image1 {
    animation: fadeOutImage1 0.7s ease-in-out forwards;
}

.overlay:not(.visible) #image2 {
    animation: fadeOutImage2 0.7s ease-in-out forwards;
}

.overlay:not(.visible) #image3 {
    animation: fadeOutImage3 0.7s ease-in-out forwards;
}

.overlay:not(.visible) #image4 {
    animation: fadeOutImage4 0.7s ease-in-out forwards;
}

.overlay:not(.visible) #image5 {
    animation: fadeOutImage5 0.7s ease-in-out forwards;
}

.overlay:not(.visible) #image6 {
    animation: fadeOutImage6 0.7s ease-in-out forwards;
}













.navbars {
    top: 50px;
    position: fixed;
    display: flex;
    justify-content: space-between;
    background-color: #00000047;
    left: 0;
    right: 0;
    top: 50px;
    color: white;
    z-index: 1000;
    margin-bottom: 50px;
    line-height: 20px;
    flex-direction: row; /* ترتيب الأزرار بشكل عمودي */
    align-items: center;
    height: 40px;
    

}

.navs-button {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #00000087;
    color: white;
    border: none;
    border-radius: 0px;
    text-align: center;
    width: 100%;

}

.navs-button:hover {
    background-color: #00000000;
}

.cars {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px;
    margin-top: 50px;

}
    

