/* تعديلات عامة */
body {
  direction: rtl; /* اتجاه النص من اليمين لليسار */
  font-family: 'NotoKufiArabic','Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* نوع الخط */
  background-color: #ffffff; /* لون الخلفية الأبيض */
}

/* تعديلات للصفحة الرئيسية */
.content {
  margin-top: 20px;
  margin-bottom: 70px; /* مساحة لقائمة التنقل السفلية */
  max-width: 800px;
    padding-bottom: 3%;
}

/* تصنيفات */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: auto; /* تعديل الطول حسب الحاجة */
}

.category-card img {
  width: 100%;
  max-height: 151px;
  transition: transform 0.3s ease;
}
.category-card-full img { 
  height: auto;
  max-height:none;
  
}

.category-card:hover img {
  transform: scale(1.3); /* تكبير الصورة بنسبة 30% */
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 5px;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: rgba(255, 255, 255, 0.5);
  color: black;
}
#languageDropdown{
   display: flex;align-items: center; 
}
#languageDropdown img ,#languageDropdown span ,#languageDropdown i{
  padding: 0px 2px;
}
.dropdown-item img,.dropdown-item span{
  padding: 0px 2px;
}
#accountDropdown span{
  padding: 0px 2px;
}
/* تعديلات للقائمة السفلية */
.fixed-bottom {
  display: flex;
  justify-content: center; /* توسيط الحاوية */
  background-color: #ffffff; /* لون الخلفية الأبيض */
  padding-top: 2px; /* إضافة مساحة حول المحتوى */
}

.bottom-nav-container {
  max-width:800px; /* عرض أقصى 700 بكسل */
  width: 100%;
  border-top-left-radius: 20px; /* انحناء الزوايا العلوية */
  border-top-right-radius: 20px; /* انحناء الزوايا العلوية */
  background-color: #F0F2F5; /* لون الخلفية فضي فاتح */
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1); /* إضافة ظل للقائمة */
  padding-top: 2px; /* إضافة مساحة حول المحتوى */
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}

.navbar-nav .nav-item .nav-link {
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
}

.navbar-nav .nav-item .nav-link i {
  display: block;
  font-size: 20px;
}

.navbar-nav .nav-item .nav-link:hover {
  background-color: #e2e6ea; /* لون خلفية عند التحويم */
   border-top-left-radius: 10px; /* انحناء الزوايا العلوية */
  border-top-right-radius: 10px; /* انحناء الزوايا العلوية */
    border-bottom-left-radius: 10px; /* انحناء الزوايا العلوية */
  border-bottom-right-radius: 10px; /* انحناء الزوايا العلوية */
   	padding-right:10px;
		padding-left:10px;
}

/* تجعل القائمة السفلية افقية حتى على الشاشات الصغيرة */
.navbar-nav.d-flex {
  flex-direction: row;
  justify-content: space-between;
}

/* تخصيص فاصل العنصر من اليسار */
.navbar-nav.mr-auto {
  margin-right: auto;
}

/* تصنيفات */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

 
 
.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 5px;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: rgba(255, 255, 255, 0.5);
  color: black;
}

/* جعل التصنيفات تعرض 4 في كل صف للشاشات الكبيرة */
@media (min-width: 992px) {
  .category-link {
    display: flex;
    flex-direction: column;
  }
  
  .col-lg-3 {
    max-width: 50%; /* عرض 4 تصنيفات في كل صف */
  }
}

/* تقليل المسافات بين التصنيفات */
.col-6.col-sm-4.col-md-3.col-lg-3.mb-4.p-1 {
  padding: 5px;
}
.col-6.col-sm-4.col-md-3.col-lg-6.mb-4.p-1 {
  padding: 5px;
}
.main-content
 {
  margin-bottom: 10px;
}
.bg-style{
	background-color: #F0F2F5 !important;
}
.icon-style{
	color:#0866FF;
}
.nav-link-pad{
		padding-right:10px !important;
		padding-left:10px !important;
}
.navbar-nav{
	padding-right: 0px;
}
 
/* قسم الأسئلة */
.start-btn{
	padding:30px 50px;
	font-size:30px;
	font-style:bold;
}
#question-section {
  background-color: #f8f9fa; /* لون الخلفية */
  padding: 20px; /* مساحة حول المحتوى */
  border-radius: 10px; /* انحناء الزوايا */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* إضافة ظل */
 
}

#question-text {
  font-size: 24px; /* حجم النص */
  margin-bottom: 15px; /* مساحة تحت السؤال */
}

#answers-list .list-group-item {
  cursor: pointer; /* مؤشر يد عند التمرير */
  transition: background-color 0.3s ease; /* تأثير التحول */
  display: flex;
  align-items: center; /* محاذاة المحتوى عمودياً */
   margin: 10px 0px;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* إضافة ظل */
	 border-radius: 5px; 
	 font-size:20px;
	 
}

#answers-list .list-group-item:hover {
  /* background-color: #e2e6ea; */ /* لون الخلفية عند التحويم */
   background-color:#FFFFFF;
   color:#0866FF;
}

.answer-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
/*   background-color: #ccc; */

  margin-right: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border:solid 2px;
}

.answer-text {
  flex-grow: 1;
    padding-right: 10px;
    padding-left: 5px;
}

.correct {
  /* background-color: green; */
  transform: scale(1.5);
}

.incorrect {
  background-color: red;
  transform: scale(1.5);
}

.answer-correct::after,
.answer-incorrect::after {
  content: "";
  display: inline-block;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.answer-correct::after {
  content: "\2713"; /* Unicode لإشارة الصحة */
  color: white;
}

.answer-incorrect::after {
  content: "\2717"; /* Unicode لإشارة الخطأ */
  color: white;
}

.correct::after,
.incorrect::after {
  transform: scale(1);
}
/*  */
.question-sec{
	text-align:right;
}
.ques-group{
	padding-right:0px;
}
.ques-row{
width:100%;
height: 550px;
align-content: flex-start;

}
.sec-row{
  width:100%;
  margin: 0px;

  align-content: flex-start;
  
  }
.list-group-item-default{
	 background-color:#0866FF;
	  color:#FFFFFF;
	
}
	
  .list-group-item-correct {
 
	 background-color:#4CAF50!important;
	  color:#FFFFFF!important;;
	 
}
  .list-group-item-incorrect {
 
	 background-color: red!important;
	  color:#FFFFFF!important;;
	 
}



/* login */

.login-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  animation: fadeInUp 1s ease;
   text-align: right;
}

.card-title {
  margin-bottom: 20px;
}

.form-control {
  border-radius: 5px;
   text-align: right;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invalid-feedback {
  display: none;
   text-align: right;
}

.is-invalid ~ .invalid-feedback {
  display: block;
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.sec {
    text-align: center;
    margin-top: 1rem;
}
.txt-sec {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.main-content-sec{
  margin-top:20px
}
.is-invalid{
  padding-right: calc(1.5em + .75rem)!important;
}


/*  category*/
 
   
    .category-details {
      text-align: right;
      padding: 10px;
    }

    @font-face {
      font-family: NotoKufiArabic;
      src:   url('../fonts/NotoKufiArabic-VariableFont_wght.ttf');
      }


      /* Myscore */
      
.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.container  h1 {
  color: #333;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.scard {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 0 0 calc(50% - 40px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease-in-out; /* Transition for text color */
}

@media (max-width: 768px) {
  .scard {
      flex: 0 0 calc(100% - 40px);
  }
}

.scard::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: #0866FF; /* لون أزرق صلب */
  transition: height 0.4s ease-in-out;
  z-index: 0;
}

.scard:hover::before {
  height: 100%;
}

.scard:hover {
  color: #fff; /* Change text color on hover */
}

.scard:hover h2,
.scard:hover p {
  color: #fff; /* Change text color on hover */
}

.scard > * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease-in-out; /* Transition for text color */
}

.scard h2 {
  color: #555;
  font-size: 1.2em;
  margin-bottom: 10px;
  transition: color 0.4s ease-in-out; /* Transition for text color */
}

.scard p {
  color: #777;
  font-size: 1em;
  margin: 5px 0;
  transition: color 0.4s ease-in-out; /* Transition for text color */
}
.card-separator
{
  padding:0px 15px !important; 
  background-color: #F0F2F5 !important;
}
.card-separator > hr
{
  border-top: 1px solid #777 !important; 
}
.scard-one{
  flex: 0 0 calc(100% - 40px);
}



.percent{
  background-color:#0866FF !important;
  color:#F0F2F5 !important;
  text-align: center; 
  height:24px;
}

.anscount{
  background-color: #F0F2F5;
  padding: 0px 4px; 
  border-radius: 4px;
}
.w3-border{
  border: 1px solid #ccc !important;
}
.one-vote{  
display: flex;
justify-content: space-evenly;
}
 

 
 