/* General Styles */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #fff;
  overflow-x: hidden; /* منع الشريط الأفقي */
  font-family: 'SFDroob', sans-serif; /* استخدام SFDroob كخط افتراضي */
  font-display: swap; /* أو optional */
}

h1 {
    font-family: 'SFDroob', sans-serif; /* استخدام SFDroob للعناوين */
    font-weight: 900; /* الوزن العريض */
    font-display: swap; /* أو optional */
}

p {
    font-family: 'SFDroob', sans-serif; /* استخدام SFDroob للفقرات */
    font-weight: 100; /* الوزن العادي */
    font-stretch: 50% 200%;
    font-size: 20px;
    font-display: swap; /* أو optional */
}
.logo {
  text-decoration: none; /* إزالة التسطير */
  color: white; /* تغيير اللون إلى الأبيض */
  font-family: 'SFDroob', sans-serif; /* اختيار خط الكتابة إذا كنت تريد */
  font-size: 24px; /* حجم الخط (اختياري) */
}
  
  /* Font Definitions */
  @font-face {
    font-family: 'SFDroob';
    src: url('fonts/SFDroob.woff2') format('woff2'); 
    font-weight: 100 900;
    font-stretch: 100% 900%;
    font-style: oblique 0deg 15deg;
    font-display: swap;
  }
  
  /* Navigation */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100; /* ضمان ظهور الشريط فوق العناصر الأخرى */
  }
  
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }
  
  nav ul li {
    position: relative;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
  }
  
  nav ul li a:hover {
    background-color: #555;
  }
  

  /* Two-Column Layout */
  .container {
    display: flex;
    gap: 20px;
    width: 80%;  /* Set width to avoid full width on large screens */
    max-width: 1200px; /* Limit maximum width */
    margin: 40px auto;  /* Center horizontally and add some top/bottom margin */
  }
  
  .column {
    width: 50%;
    padding: 20px;
    border: 1px solid #5b5b5b;
    border-radius: 15px;
    text-align: left; /* Left align text within columns */
    background-color: #2b2a2a;
  }
  .column.english {
    direction: ltr;
    text-align: left;
  }
  .column.arabic {
    direction: rtl;
    font-family: 'SFDroob', sans-serif;
    text-align: right; /* Justify Arabic text */
  }

  h2,
  h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
  }
  
  ol,
  ul {
    padding-left: 4em;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .container {
      flex-direction: column; /* Change to a vertical layout */
      width: 95%; /* Take more space on smaller screens */
      margin: 10px auto; /* Reduced margin on small screens */
    }
  
    .column {
      width: 100%; /* Each column takes full width */
      border: none; /* Remove borders for a cleaner look */
      padding: 0; /* Removing extra spacing for cleaner view */
    }
  }
  
  /* Footer */
  footer {
    background-color: #333;
    padding: 20px; /* Increased padding */
    text-align: center;
    margin-top: auto;  /* Push the footer to the bottom */
    border-top: 1px solid #666;  /* Add a border for separation */
    color: #fff;
  }
  
  footer a {
    color: #fff;
    text-decoration: none;
  }
  
/* نافذة الدردشة */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #007bff;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#chat-icon:hover {
  background-color: #0056b3;
}

#chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: #000;
  display: none;
  z-index: 1000;
}

.chat-header {
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-family: 'SFDroob', sans-serif;
  font-weight: 900; /* Black للعنوان */
}

#close-chat {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.chat-body, .chat-footer {
  padding: 10px;
}

#chat-message {
  resize: none;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'SFDroob', sans-serif;
  font-weight: 400; /* Regular للنص */
}

#send-message {
  width: 100%;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'SFDroob', sans-serif;
  font-weight: 400; /* Regular للزر */
}

#send-message:hover {
  background-color: #0056b3;
}

.right-aligned-text {
    max-width: 600px; /* يمكنك تغيير هذا العرض حسب الحاجة */
    margin: 0 auto; /* لتوسيع العنصر */
    text-align: right; /* لمحاذاة النص لليمين */
    line-height: 1.6; /* يمكنك تغيير هذه القيمة حسب الحاجة */
}
.left-aligned-text {
    max-width: 600px; /* يمكنك تغيير هذا العرض حسب الحاجة */
    margin: 0 auto; /* لتوسيع العنصر */
    text-align: left; /* لمحاذاة النص لليسار */
}
      /* تنسيق الزر */
      .btn {
          display: inline-block;
          padding: 10px 20px; /* حجم الزر */
          font-size: 16px; /* حجم الخط */
          color: white; /* لون النص */
          background-color: #007BFF; /* لون الخلفية */
          text-decoration: none; /* إزالة التسطير */
          border-radius: 5px; /* تدوير الزوايا */
          border: none; /* إزالة الحدود */
          cursor: pointer; /* مؤشر اليد عند التحويم */
          transition: background-color 0.3s ease; /* تأثير تحويم ناعم */
      }
  
      /* تغيير لون الزر عند التحويم */
      .btn:hover {
          background-color: #0056b3; /* لون الخلفية عند التحويم */
      }

.font-demo-container {
  text-align: center;
  margin-top: 50px;
}

#demo-text {
  font-family: 'Alghraa', sans-serif; /* الخط الافتراضي */
  font-size: 48px;
  transition: font-family 0.3s ease, color 0.3s ease;
}

/* الاستجابة لأحجام الشاشات الصغيرة */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto; /* للسماح بالتمرير الأفقي إذا كان الجدول واسعًا جدًا */
  }
}
table {
  width: 80%; /* Reduce overall table width */
  margin: 0 auto; /* Center the table horizontally */
  border-collapse: collapse; /* Remove spacing between cell borders */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

th,
td {
  border: 1px solid #404040;
  padding: 8px;
  text-align: left; /* Default to left alignment for English */
  word-break: break-word;  /*Prevent text overflows */
  overflow-wrap: break-word;
  
}

/* Style Links (If Used in Table) */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: hsl(211, 78%, 71%);
  text-decoration: underline;
}
a {
  text-decoration: none !important;
}
.btn {
  text-decoration: none !important;
}
.font-info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  direction: rtl;
  font-family: 'SFDroob', sans-serif;
}

.font-card {
  border: 1px solid #606060;
  border-radius: 12px;
  padding: 10px;
  background-color: #282828;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin: 5px 0;
}

.font-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: rgb(255, 255, 255);
  margin: 5px 0;
}

.font-card p {
  margin: 0.5em 0;
  color: rgb(255, 255, 255);
  line-height: 1.6;
}

.font-card a {
  color: #0077cc;
  text-decoration: none;
}

.font-card a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .font-card {
      padding: 12px;
  }

  .font-card h2 {
      font-size: 1rem;
  }

  .font-card p {
      font-size: 0.9rem;
  }
}
.explanation {
font-size: 14px;
color: #7d7c7c;
margin-top: 10px;
text-align: center;
margin-bottom: 2px; /* تقليل المسافة بين الفقرات */
}

  /* تنسيق القائمة المنسدلة */
  #fontSelect {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    margin-bottom: 20px;
  }
  /* General Styles - (Keep your existing styles) */

/* Two-Column Layout */
.container {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease; /* Smooth transitions */
}

.column {
  width: 50%;
  padding: 15px;
  border: 1px solid #6a6a6a;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Add transition */
}

.column:hover {
  transform: scale(1.05); /* Scale on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Add a more pronounced shadow */
}

.column.arabic {
  direction: rtl;
  font-family: 'SFDroob', sans-serif;
  text-align: right; /* Justify Arabic text */
}

.column.english {
  direction: ltr;
  text-align: left;
}

h2, h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

ol, ul {
  padding-left: 2em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
}
th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: right;
}
th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
      flex-direction: column; /* Change to a vertical layout */
  }
  .column {
      width: 100%; /* Each column takes full width */
      border: none; /* Remove borders for a cleaner look */
      padding: 0; /* Removing extra spacing for cleaner view */
  }
  .column:hover {
    transform: none; /* Cancel zoom out on mobile */
    box-shadow: none; /* No shadow on zoom out */
  }
}
    /* Style the try font button to be placed under the font testing section */
    .try-font-button {
      display: inline-block;   /* To allow width and height properties */
      padding: 10px 20px;      /* Spacing around the text */
      font-size: 16px;          /* Adjust font size */
      color: white;             /* Text color */
      background-color: #007bff; /* Button background color */
      text-decoration: none;     /* Remove underline */
      border-radius: 5px;        /* Rounded corners */
      margin-top: 10px;        /* Spacing from the paragraph above */
      transition: background-color 0.3s ease; /* Smooth transition */
        text-align: center;
    }

    .try-font-button:hover {
      background-color: #0056b3; /* Darker background on hover */
        text-align: center;
    }
    a {
      text-decoration: none !important;
    }
    .btn {
      text-decoration: none !important;
    }
    .logo {
      max-width: 200px; /* تحديد أقصى عرض للشعار */
      height: auto; /* الحفاظ على نسبة أبعاد الصورة */
      display: block; /* لجعل الصورة تأخذ سطرًا كاملاً */
      margin: 0 auto 15px; /* توسيط الصورة وإضافة مسافة أسفلها */
  }
  @media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .column {
        width: 100%;
        padding: 15px;
    }
    .try-font-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
  