* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background: url("../img/bg.png") center top no-repeat;
    background-size: cover;
    font-family: Tahoma, Arial, sans-serif;
}

/* CONTENT LAYER فوق الخلفية */
.page {
    width: 100%;
    min-height: 1600px;
    margin: auto;
}

/* مساحة الهيدر حسب الصورة */
.header {
    height: 350px;
}

/* MENU CONTAINER */
.menu {
    width: 1050px;
    margin: 35px auto 40px auto; /* نزّل المنيو لتحت */
    display: flex;
    justify-content: center;
    border: 2px solid #c9a44d; /* الإطار الكبير */
    background: rgba(0, 0, 0, 0.6);
}

/* MENU BUTTONS */
.menu a {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: #c9a44d;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-right: 1px solid #c9a44d; /* الفاصل بين الزراير */
    transition: all 0.3s ease;
}

/* إزالة الخط من آخر زرار */
.menu a:last-child {
    border-right: none;
}

/* HOVER EFFECT */
.menu a:hover {
       box-shadow: 0 0 15px rgba(201, 164, 77, 0.4);
    color: #ffffff;
}


/* CONTENT */
.content-wrapper {
    width: 1050px;
    margin: auto;
    min-height: 900px;
}

.content {
    width: 100%;
}

/* TOP PAGE IMAGE */
.top-bg {
    width: 1050px;
    height: 30px;
    margin: 0 auto;
    position: absolute;
    top: 0; /* أعلى الصفحة */
    left: -20%; /* في المنتصف */
    transform: translateX(-50%);

    background: url("../img/top-bg.png") no-repeat center top;
    background-size: contain;

    animation: topDrop 0.9s ease-out forwards;
    z-index: 1000; /* فوق كل العناصر */
}

/* حركة النزول */
@keyframes topDrop {
    from {
        transform: translateY(-80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* نص فوق Top-bg */
.top-text {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff; /* أبيض */
    font-family: 'Arial Black', Arial, sans-serif;
    
    /* حركة الهزة */
    animation: shakeText 0.5s infinite alternate;
}

/* keyframes للهزة يمين ويسار */
@keyframes shakeText {
    0%   { transform: translateX(-3px); }
    50%  { transform: translateX(3px); }
    100% { transform: translateX(-3px); }
}
/* TOP PAGE IMAGE يمين */
.top-bg-right {
    width: 400px;
    height: 100px;
    position: absolute;
    top: 0; /* أعلى الصفحة */
    left: 65%; /* في المنتصف */
    
    background: url("../img/top-bg.png") no-repeat center top;
    background-size: contain;

    animation: topDrop 0.9s ease-out forwards;
    z-index: 1000; /* فوق كل العناصر */
}

/* نص فوق Top-bg يمين */
.top-text-right {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 33px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Arial Black', Arial, sans-serif;

    /* حركة الهزة */
    animation: shakeText 0.5s infinite alternate;
}
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999; /* فوق كل العناصر */
}

.snowflake {
    position: absolute;
    top: -10px;
    font-size: 12px; /* ممكن نجرب أحجام مختلفة */
    color: #ffffff;
    user-select: none;
    animation-name: fall, sway;
    animation-duration: 8s, 3s; /* سرعة السقوط + حركة جانبية */
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

/* توليد مواقع وأحجام مختلفة */
.snowflake:nth-child(1) { left: 5%; font-size: 12px; animation-delay: 0s, 0s; }
.snowflake:nth-child(2) { left: 15%; font-size: 14px; animation-delay: 2s, 1s; }
.snowflake:nth-child(3) { left: 25%; font-size: 10px; animation-delay: 4s, 0.5s; }
.snowflake:nth-child(4) { left: 35%; font-size: 16px; animation-delay: 1s, 2s; }
.snowflake:nth-child(5) { left: 45%; font-size: 12px; animation-delay: 3s, 1.5s; }
.snowflake:nth-child(6) { left: 55%; font-size: 14px; animation-delay: 0s, 1s; }
.snowflake:nth-child(7) { left: 65%; font-size: 11px; animation-delay: 2s, 0.5s; }
.snowflake:nth-child(8) { left: 75%; font-size: 13px; animation-delay: 4s, 2s; }
.snowflake:nth-child(9) { left: 85%; font-size: 15px; animation-delay: 1s, 1s; }
.snowflake:nth-child(10){ left: 95%; font-size: 12px; animation-delay: 3s, 0s; }

/* حركة السقوط */
@keyframes fall {
    0% { top: -10px; transform: rotate(0deg); }
    100% { top: 100%; transform: rotate(360deg); }
}

/* حركة جانبية بسيطة يمين وشمال */
@keyframes sway {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(10px); }
    100% { transform: translateX(0); }
}
/* Right Sidebar */
#right-sidebar {
    position: absolute;
    top: 450px;
    right: calc((100% - 1050px)/2 - 10px); /* 10px مسافة من المحتوى */
    width: 180px;
}

#left-sidebar {
    position: absolute;
    top: 450px;
    left: calc((100% - 1050px)/2 - 10px); /* 10px مسافة من المحتوى */
    width: 180px;
}


#right-sidebar article, #left-sidebar article {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #c9a44d;
    padding: 30px;
    margin-bottom: 12px;
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
}

#right-sidebar h1.top, #left-sidebar h1.top {
    font-size: 14px;
    font-weight: bold;
    color: #FFE200;
    margin-bottom: 10px;
}

.topranking {
    width: 100%;
    border-collapse: collapse;
}

.topranking td {
    padding: 5px;
    border-bottom: 7px solid #c9a44d;
}

.announcements li {
    margin-bottom: 5px;
}
/* الحاوية التي تمثل "القطار" أو المربع */
.middle-marquee-container {
    position: absolute;
    top: 440px; /* مكان الشريط عموديًا */
    left: calc((128% - 1050px)/2); /* منتصف المحتوى */
    width: 700px; /* نفس عرض المحتوى الرئيسي */
    height: 50px; /* ارتفاع المربع */
    border: 2px solid #FFE200; /* لون الحدود الذهبي */
    border-radius: 10px; /* حواف مستديرة */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5); /* خلفية خفيفة نصف شفافة */
}

/* النص المتحرك داخل المربع */
.middle-marquee span {
    display: inline-block;
    color: #FFE200; /* ذهبي */
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    animation: marqueeAnim 10s linear infinite;
}

/* حركة النص يمين للشمال */
@keyframes marqueeAnim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* FOOTER */
.footer {
    width: 1050px;
    height: 70px;
    margin: 0 auto;
    background: url("../img/footer.png") top center no-repeat;
    background-size: 1050px 70px;
}
.scroll-wrapper {
    width: 900px;
    height: 400px;

    /* تحريك البردية */
    margin: -60px auto;
    margin-left: 80px;

    background: url("../img/scroll.png") center center no-repeat;
    background-size: 100% 100%;

    position: relative;
}

.scroll-content {
    position: absolute;

    /* مكان الكلام داخل البردية */
    top: 90px;
    left: 100px;
    right: 50px;
    bottom: 50px;

    text-align: center;

    /* ألوان الكتابة */
    color: #F2EAD7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);

    font-family: Tahoma, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
}

