body {
    margin: 0;
    padding: 0;
    overflow: auto; /* السماح بالتمرير */
    font-family: Arial, sans-serif;
    background: radial-gradient(circle, #FFD1A5, #F4A261);
    
    display: flex;
    direction: ltr; /* Change element direction to left-to-right */
    text-align: left; /* Align content to the left */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center; /* مركز العناصر أفقياً */
    width: 80%; /* عرض الفورم 80% من عرض الشاشة */
    border-radius: 10px;
    background-color: #07cbda;
    position: relative; /* تحديد الوضع النسبي */
    top: 20px; /* المسافة من الأعلى */
    margin: 0 auto; /* لجعل الحاوية في الوسط أفقياً */
}

.form-container {
    width: 80%; /* عرض الفورم 80% من عرض الشاشة */
    height: auto;
    /*max-width: 2000px;  تحديد أقصى عرض إذا رغبت في ذلك */
    margin: 20px auto; /* 100 بكسل من الأعلى وauto للمحاذاة في الوسط */
    padding: 20px; /* إضافة بعض الحشوة داخل الفورم */
    border: 0px solid #ccc; /* إضافة حدود (اختياري) */
    border-radius: 10px; /* إضافة زوايا مدورة (اختياري) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* إضافة ظل (اختياري) */
    background-color: #4109c2; /* تغيير لون الخلفية للفورم، يمكنك تغييره إلى أي لون تريد */


    transform-style: preserve-3d;
    animation: zoomIn 0.8s forwards;
    margin: 0 10px;  /*مسافة بين الحاوية وحدود الشاشة على الجانبين */
}

label[for="email"] {
    font-family: 'Arial', sans-serif; /* تغيير الخط إلى Arial أو أي خط آخر تريده */
    font-size: 14px; /* تغيير حجم الخط (اختياري) */
    font-weight: bold; /* تحديد الوزن للخط إذا كنت ترغب أن يكون سميكًا */
    color: white; /* تغيير لون النص (اختياري) */
}


input[type="text"] {
    width: 100%; /* جعل حقل الإدخال يأخذ عرض الفورم بالكامل */
    padding: 10px;
    margin-top: 10px; /* مسافة بين الحقل والزر */
    font-size: 20px;
    /* margin-bottom: 20px;  مسافة بين الحقل والزر */
    box-sizing: border-box; /* جعل الحشوة تؤثر على عرض العنصر */
}



@keyframes zoomIn {
    from {
        transform: scale(0.5) rotateX(360deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }
}

label[for="email"], #text, .button-container{
    transform-style: preserve-3d;
    transform: translateZ(50px); /* رفع العناصر للأمام */
    animation: slideIn 1.25s forwards; /* حركة دخول */
}
.button-container{
    transform-style: preserve-3d;
    transform: translateZ(50px); /* رفع العناصر للأمام */
    animation: slideIr 1.25s forwards; /* حركة دخول */
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIr {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.error-message {
    /*background-color: #f8d7da;  لون الخلفية أحمر فاتح للتنبيه */
    color: wheat; /* لون النص أحمر داكن لزيادة التباين */
    border: 0px solid #f5c6cb; /* إطار بنفس لون الخلفية */
    padding: 10px; /* مسافة داخلية لزيادة قابلية القراءة */
    border-radius: 5px; /* زوايا دائرية لزيادة جمالية التصميم */
    margin-top: 15px; /* مسافة من الأعلى لجعلها بعيدة عن الحقل */
    text-align: center; /* محاذاة النص في المنتصف */
    font-size: 18px;
    /*font-weight: bold;  لجعل النص بارزًا */
    
}

.video-container {
    position: relative;
    width: 90%; /* عرض الفيديو 80% من عرض الصفحة */
    max-width: 800px; /* حد أقصى للعرض */
    margin: 20px auto; /* إضافة مسافة أعلى وأسفل الفيديو ومركزة في المنتصف */
    margin-top: -12px;
    padding-top: 56.25%; /* نسبة العرض إلى الارتفاع للفيديو (16:9) */
    
    
    animation: slideIv 2s forwards; /* حركة دخول */
    

}

@keyframes slideIv {
    from {
        transform: translateY(70px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0% { transform: translateY(0); }
    66.6% { transform: translateY(0); }
    74.835% { transform: translateY(-10px); }
    83.07% { transform: translateY(10px); }
    91.305% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}


.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 3 / 1.69; /* نسبة العرض إلى الارتفاع: 3 عرض إلى 2 ارتفاع */
    border-radius: 15px; /* يمكنك تعديل القيمة كما تريد */
}


.logo img{
    width: 50%; 
    margin-top: 25px;
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    margin: 20px 20px; /* إضافة مسافة 20 بكسل أسفل حقل الإدخال */
    margin-top: 20px;
    /* نبدأ بإخفاء العنصر ووضعه أعلى الشاشة */
    opacity: 0;
    transform: translateY(-100px);
    /* إضافة الحركة */
    animation: slideDown 0.75s ease-in-out forwards;
}
.prodact p, .prodact img, .namee, .goo, #timer, #download-btn, #back-btn{
    /* نبدأ بإخفاء العنصر ووضعه أعلى الشاشة */
    opacity: 0;
    transform: translateY(100px);
    /* إضافة الحركة */
    animation: slideupp 0.75s ease-in-out forwards;
}
.codee{
    opacity: 0;
    animation: slideon 1.5s ease-in-out forwards;
}
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideupp {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    50% {
        opacity: 0;
        
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideon {
    0% {
        opacity: 0;
        
    }
    50% {
        opacity: 0;
        
    }
    100% {
        opacity: 1;
        
    }
}


.code-container {
    margin-top: 5px;
    
}

.prodact img{
    width:70%; 
    height: auto; 
    margin-top: 25px;
    border-radius: 8px;
}

#timer {
    width: 50%;
    
    font-size: 30px; /* حجم الخط كبير */
    background: rgba(36, 122, 250, 0.0); /* خلفية شفافة مع تأثير خفيف */
    padding: 20px; /* إضافة مساحة داخلية */
    border-radius: 15px; /* حواف مستديرة */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* ظل خفيف */
    text-align: center; /* محاذاة النص في المنتصف */
}

.expired {
    color: red; /* لون الكلمة عند انتهاء الوقت */
    font-weight: bold; /* جعل الكلمة بارزة */
    
}

.time-unit {
    font-weight: bold; /* جعل الحروف بارزة */
    color: blue; /* لون الحروف */
    font-size: 15px; /* حجم الخط */
    margin-left: 0px; /* مسافة بين الرقم والحرف */
    margin-left: 0px; /* مسافة بين الحرف و : */
}



button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}


.button-container {
    text-align: center; /* لمركزة الزر في منتصف السطر */
    margin-top: 20px;   /* لإضافة مسافة بين حقل الإدخال والزر */
}

#download-btn{
    text-align: center; /* لمركزة الزر في منتصف السطر */
    margin: 20px;
    padding: 20px 20px;
    display: block;
}

#back-btn{
    text-align: center; /* لمركزة الزر في منتصف السطر */
    margin: 20px;
    padding: 20px 60px;
    display: none;
    background-color: red;
}

button[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 500px){
    label[for="email"] {
        font-size: 14px; /* تغيير حجم الخط (اختياري) */
    }  
    input[type="text"] {
        font-size: 14px;
    }
    .alert-box {
        width: 90%;
    }    
   
}


@media (max-width:500px){
    .container {
        width: 90%; /* عرض الفورم 80% من عرض الشاشة */
    }
    .logo img{
        width: 90%; 
    }
    .prodact img{
        width: 90%; 
        height: auto; 
        margin-top: 25px;
        border-radius: 8px;
    }     
}
@media (min-width: 501px) and (max-width: 912px){
    .logo img{
        width: 70%; 
    }
    .prodact img{
        width: 70%; 
        height: auto; 
        margin-top: 25px;
        border-radius: 8px;
    }      
}
/*======================================= */

/* تنسيق البوب-أب */
#popup {
    display: none;
    position: fixed;
    transform-style: preserve-3d;
    animation: zoomInpop 0.8s forwards;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 700px;
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    
}
.close-btn {
    background: none; /* لإزالة الخلفية */
    border: none; /* لإزالة الحدود */
    color: black; /* تغيير لون الرمز إلى الأحمر */
    font-size: 24px; /* حجم الخط */
    cursor: pointer; /* تغيير شكل المؤشر عند المرور فوق الزر */
}
#popup img {
    width: 90%;
    height: auto;
    margin-top: 10px;
}
#popup .close-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    
}
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}
button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}
.center {
    text-align: center;
}
.answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
}

.answer.open {
    max-height: 500px; /* قيمة كبيرة كافية لتغطية ارتفاع الإجابة */
}



@keyframes zoomInpop {
    from {
        transform: translate(-50%, -50%) scale(0.5) rotateY(360deg);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
        opacity: 1;
    }
}

#centett{
    transform-style: preserve-3d;
    animation: zoomIncentett 1.2s forwards;
    /*animation: shake_centett 1.2s forwards;*/
}

@keyframes zoomIncentett {
    from {
        transform:  scale(0.5) rotateX(360deg);
        opacity: 0;
    }
    to {
        transform:  scale(1) rotateX(0deg);
        opacity: 1;
    }
}


@keyframes shake_centett {
    0% { transform: translateX(0); }
    67.3% { transform: translateX(0); }
    74.835% { transform: translateX(-7px); }
    83.07% { transform: translateX(7px); }
    91.305% { transform: translateX(-7px); }
    100% { transform: translateX(0); }
}



.light-bulb {
    animation: flicker 0.5s infinite alternate; /* حركة مستمرة */
}

@keyframes flicker {
    0% {
        background-color: #00ff00;
        box-shadow: 0 0 5px 1px #00ff00;
    }
    50% {
        background-color: rgb(1, 32, 10);
        box-shadow: none;
    }
    100% {
        background-color: #00ff00;
        box-shadow: 0 0 5px 1px #00ff00;
    }
}

.prodact p{
    font-size: 22px; 
    color:#5a2202; 
    font-weight: bold; 
    margin-top: 5px;
}
#texttt{
    margin: 20px;
    font-size: 14px; 
    color:#4d4c4c;
}
.code-container{
    direction: ltr; 
    text-align: left;
}

.namee{
    font-size: 18px; 
    color:green; 
    direction: ltr;
}
.codee{
    font-size: 30px;
    color: #280161;
}
.goo{
    font-size: 18px;
    margin: 20px;
    color: #4d4c4c;
}

#overlay-new{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.7); 
    z-index:1000;
}
#success-popup-new{
    display:none; 
    position:fixed; 
    top:50%; 
    left:50%; 
    transform:translate(-50%, -50%); 
    background:white; 
    padding:20px; 
    z-index:1001; 
    text-align:center; 
    border-radius: 10px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.sing{
    font-size: 50px;
    color: green;
}
.close-btn img{
    width: 70%; 
    height: auto;
}
#centett{
    text-align: center;
}
#centett_1{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 10px;
}
#centett_2{
    margin-right: 20px; 
    border: 0px solid #000; 
    padding: 6px; 
    border-radius: 5px; 
    background-color: rgba(52, 134, 241, 0.288);
}
#centett_3{
    font-size: 10px; 
    color:#040272;  
    margin-bottom: 20px; 
    margin: 4px 4px 17px 4px;
}
.light-bulb{
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    margin: 0px 25px 13px 25px; 
    border: 0.5px solid rgb(1, 61, 16, 0.5);
}
#centett_5{
    border: 0px solid #000; 
    padding: 5px; 
    border-radius: 5px; 
    background-color: rgba(52, 134, 241, 0.288);
}
#centett_6{
    font-size: 10px; 
    color:#040272;  
    margin: 4px 4px 4px 4px;
}
#userCounter{
    font-size: 16px; 
    font-weight: bold; 
    color: red;
}
#centett_7{
    font-size: 11px;
    color: #4d4c4c;
}
#centett_8{
    background-color: #258ae967; 
    color: white; 
    border-radius: 5px; 
    padding: 20px; 
    text-align: left; 
    padding-left: 0; 
    padding: 15px;
}
#centett_10{
    list-style: none;
}
#centett_11{
    font-size: 14px; 
    color: #040272; 
    cursor: pointer;
}

#centett_13{
    text-align: left; 
    color: #4d4c4c;
}
#mass{
    font-size: 12px;
    color: #4d4c4c;
}
#centett_14{
    text-align: left; 
    padding-left: 0;
}
#centett_14 li, #centett_16 li, #centett_19 li{
    font-size: 14px;
    margin-left: 40px; 
    color: #4d4c4c;
}
#centett_15{
    list-style: none;
    margin: 7px 0 7px 0;
}
#centett_15 a{
    font-size: 14px; 
    color: #040272; 
    cursor: pointer;
}
#centett_16{
    text-align: left; 
    padding-left: 0;
}
#centett_17{
    list-style: none;
}
#centett_18{
    font-size: 14px; 
    color: #040272; 
    cursor: pointer;
}
#centett_19{
    text-align: left; 
    padding-left: 0;
}

#intermediate-popup{
    display:none; 
    position:fixed; 
    top:50%; 
    left:50%; 
    transform:translate(-50%, -50%); 
    background:white; 
    padding:30px; 
    border-radius:10px; 
    box-shadow:0 4px 20px rgba(0, 0, 0, 0.2); 
    z-index:1002; text-align:center; 
    width:80%; 
    height:auto;
}
#intermediate-message{
    font-size:20px; 
    margin-bottom:20px;
}
#overlay{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.7); 
    z-index:1000;
}
/*
#popup{
    display:none; 
    position:fixed; 
    top:50%; left:50%; 
    transform:translate(-50%, -50%); 
    background:white; 
    padding:30px; 
    border-radius:10px; 
    box-shadow:0 4px 20px rgba(0, 0, 0, 0.2); 
    z-index:1001; 
    text-align:center; 
    width:400px;
}
*/
#loading-message{
    font-size:20px; 
    margin-bottom:20px;
}
#loading-spinner{
    margin-top: 10px;
}
#userCounter{
    margin-top: 10px; 
    font-size:16px;
}
#robot-btn{
    margin-top:0px; 
    padding:10px 20px; 
    font-size:16px; 
    background-color:#3498db; 
    color:white; 
    border:none; 
    border-radius:5px; 
    cursor:pointer;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* مركز الدائرة */
}
#overlay-new{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.7); 
    z-index:1000;
}
#loading-popup-new{
    display:none; 
    position:fixed; 
    top:50%; 
    left:50%; 
    transform:translate(-50%, -50%); 
    background:white; 
    padding:20px; 
    z-index:1001; 
    text-align:center; 
    border-radius: 10px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#loading-spinner-new{
    margin-top: 10px;
}
/*=============================*/

.alert-box {
    position: fixed;
    top: -100px; /* البداية من خارج الشاشة */
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    z-index: 1000;
    transition: top 0.5s; /* تأثير الانتقال */
    text-align: center; /* محاذاة النص إلى المنتصف */
    width: 300px; /* عرض ثابت للرسالة */
}
.alert-box.show {
    top: 25%; /* الموقع النهائي */
}
.close-btn1 {
    width: 70%;
    background: blue;
    border: none;
    color: #ffff;
    cursor: pointer;
    font-size: 16px;
    display: block; /* جعل الزر عنصر كتلة */
    margin: 10px auto 0; /* تباعد الزر بين النص والزر */
}