@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    background-color: gray;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    max-width: 100000px;
    justify-content: center;  /* توسيط أفقي */
    align-items: center;      /* توسيط عمودي (إذا عندك ارتفاع معين) */
    text-align: center;
    margin-right: 40px;
    margin-top: 100px;
    
    
    
}
.color2 ul{
    display: flex;
    list-style-type: none;
    gap: 2rem;
    
}

.color2 a {
    text-decoration: none;
    color: gold;
    font-size: 30px;
    text-shadow: 0px 10px 10px rgba(0, 0, 0, 1);
    position: fixed;          /* تثبيت العنصر في مكان محدد داخل الشاشة */
    left:48%;                /* تحريك للمنتصف أفقياً */
    top: 78%;                 /* تحت منتصف الشاشة بقليل (50% هو منتصف الشاشة) */
    transform: translate(-50%, -50%);/* تعويض نصف العرض والارتفاع للتمركز الدقيق */
    background-color: dodgerblue;
    text-shadow: 0px 10px 10px rgba(0, 0, 0, 1);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;


}


.color2 a:hover{
    text-decoration: none;
    color: rgb(33, 10, 235);
    font-size: 35px;
    text-shadow: 0px 10px 10px rgba(0, 0, 0, 1);
}
h1 {
    position: fixed;       /* يثبت العنصر في مكانه حتى عند التمرير */
    top: 0;               /* يثبت العنصر في أعلى الصفحة */
    left: 48%;            /* يحرك العنصر إلى منتصف العرض */
    transform: translateX(-50%);  /* يعوض نصف عرضه ليصبح في المنتصف تمامًا */
    margin: 1rem 0;        /* هامش عمودي بسيط */
    color: maroon;
    max-width: 1200px;
    width: 100%;           /* ليملأ العرض المتاح داخل الحد الأقصى */
    text-align: center;    /* يجعل النص في المنتصف داخل العنصر */
     /* خلفية واضحة (اختياري) */
    padding: 0.5rem 0;     /* مساحة داخلية حول النص */
    z-index: 1000; 
    text-shadow: 0px 10px 10px rgba(0, 0, 0, 1); }        /* ليكون فوق باقي المحتويات */
    

h2 {
    position: fixed;       /* يثبت العنصر في مكانه حتى عند التمرير */
    top:350px ;               /* يثبت العنصر في أعلى الصفحة */
    left: -1%; 
    font-size: 30px;           /* يحرك العنصر إلى منتصف العرض */
    margin: 1rem 0;        /* هامش عمودي بسيط */
    color: rgb(5, 3, 10);
    width: 100%;           /* ليملأ العرض المتاح داخل الحد الأقصى */
    text-align: center;    /* يجعل النص في المنتصف داخل العنصر */
    z-index: 1000; 
    text-shadow: 0px 10px 10px rgba(0, 0, 0, 1); }
    
