@font-face {
    font-family: 'Amiri';
    src: url(fonts/Amiri-Regular.ttf);
}

body , html {
    display: flex;
    flex-direction: column; /* تعديل التوجيه العمودي للصفحة */
    height: 100%;
    margin: 0;
    overflow: auto; /* إضافة خاصية الـ scroll */
    font-family: 'Amiri', sans-serif; 
    justify-content: center; /* مركز أفقياً */
    align-items: center; /* مركز رأسياً */
    direction: rtl;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.container {
    font-size: 2.3em;
    height: auto; /* تعديل الارتفاع ليكون تلقائي */
    text-align: center; /* مركزة النص */
    padding: 2em 2em;
    background-color: rgba(1, 6, 48, 0.744); 
    border-radius: 0.5em;
    border: 2px solid #000;    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-weight: bold;
    text-shadow: 1px 2px 0px rgba(0, 0, 0, 0.131); /* ظل تحت النص */
    background: linear-gradient(to right, rgb(204, 170, 0), rgb(175, 212, 12)); 
    background-clip: text; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    font-size: 2.3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    font-family: 'Amiri', sans-serif; 
    background-color: #ffe100;
    border: none;
    outline: none;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    padding-left: 0.6em;
    padding-right: 0.6em;
    border-radius: 40px;
    box-shadow: 0 0 0px rgb(2, 19, 255);
    cursor: pointer;
    font-size: 0.9em;
    color: #000000;
    font-weight: 600;
    transition-duration: .5s;
    transition: 0.6s ease;
}

.btn:hover {
    padding-left: 1em;
    padding-right: 1em;
    background-color: rgba(121, 177, 0, 0.927);
    font-size: 0.9em;
    color: #ffffff;
}

.logo-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none; /* علشان الصور متأثرش على استخدام الأزرار */
}

.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px; /* ضبط حجم اللوجو */
    height: auto;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 110px; /* ضبط حجم اللوجو */
    height: auto;
}

.bottom-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* ضبط حجم اللوجو */
    height: auto;
}

.lesson-container {
    font-size: 1.7em; /* تعديل حجم الخط ليكون مناسب */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em; /* زيادة المسافة بين الأقسام */
    margin-top: 2em;
}
.lesson h2{
    font-size: 1.2em;
}
.quiz h2{
    font-size: 1.2em;
}
.lesson {
    background-color: rgba(255, 255, 255, 0.589);
    border-radius: 0.5em;
    padding: 0.5em;
    text-align: center;
    width: 20%; /* تعديل العرض ليكون مناسب */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.quiz{
    background-color: rgba(255, 255, 255, 0.589);
    border-radius: 0.5em;
    padding: 0.5em;
    text-align: center;
    height: 0.1%;
    width: 92.5%; /* تعديل العرض ليكون مناسب */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.lesson .btn {
    margin-bottom: 0.5em;
}