    @font-face {
  font-family: 'El Messiri';
  src: url('../fonts/ElMessiri-Medium.woff2') format('woff2'),
  url('../fonts/ElMessiri-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: 'El Messiri';
  background-color: #eee;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .50) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .50) 50%, rgba(255, 255, 255, .50) 75%, transparent 75%, transparent);
  background-size: 200px 200px;
  margin: 0;
  padding: 0;
  direction: rtl;
}
.main {
  padding: 20px;
}
h4 {
  color: #222;
  margin-bottom: 10px;
  font-size: 22px;
  text-align: center;
}
textarea {
  width: 95%;
  height: 150px;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: Consolas, monospace;
  font-size: 15px;
  margin: 0 auto;
  display: block;
  direction: ltr;
}
@media screen and (max-width: 480px) {
  textarea {
    width: 95%;
    height: 150px;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: Consolas, monospace;
    font-size: 15px;
    margin: 0 auto;
    display: block;
    direction: ltr;
  }
}
pre {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px auto;
  width: 95%;
  direction: ltr;
}
.code-box {
  color: #fff;
  font-family: "Consolas", monospace;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}
/* ألوان التمييز */
.token-tag {
  color: #4FC3F7;
  font-weight: bold;
}
.token-attr {
  color: #FFCA28;
}
.token-value {
  color: #81C784;
}
.token-brace {
  color: #E57373;
}
.token-comment {
  color: #9E9E9E;
  font-style: italic;
}
.token-css-prop {
  color: #929de2;
}
.token-css-value {
  color: #AED581;
}
/* زر النسخ */
.copy-btn {
  font-family: 'El Messiri';
  background: #4CAF50;
  color: white;
  padding: 10px 15px;
  margin: 10px auto;
  display: block;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
  font-weight: bold;
  width: 50%;
}
.copy-btn:hover {
  background: #43A047;
  transform: scale(1.04);
}
/* الرسالة */
#copyMessage {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  padding: 10px 20px;
  color: #fff;
  border-radius: 10px;
  display: none;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
}

input {
  border-radius: 5px;
}

h1, h2 {
  text-align: center;
}
h3 {text-align: center;}
a.button {
  text-decoration: none;
  font-size: 16px;
  max-width: 300px;
}
.text-center {
  display: flex;
  justify-content: center;
}
/* التاريخ الهجري والميلادي */
.circle {
  position: absolute;
  right: 0;
  left: 0;
  background-color: #007bff;
  padding: 10px;
  font-family: 'El Messiri';
}
.dates {
  font-family: 'El Messiri';
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  gap: 50px;
  margin: 0 10px;
}
.dates p {
  font-family: 'El Messiri';
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #FFF;
}
/*زر المشاركة */
.button2 {
  -webkit-appearance: none;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  font-family: 'El Messiri';
  outline: 0;
  font-size: 0.8em;
  padding: 0.65em 1.5em 0.65em 1.5em;
  text-align: center;
  margin: 0 0 0 0;
  box-shadow: 1px 1px #cc15cd;
}
/* المقال */
.content2 {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.9;
  font-size: 16px;
  margin-top: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 95%;
  margin: 0 auto;
}
/* روابط الأدوات ذات الصلة */
.dc-related {
  font-family: 'El Messiri';
  text-align: center;
  margin-bottom: 20px;
  font-size: 15px;
}
.dc-related p {
  margin-bottom: 8px;
  color: #444;
}
.dc-related-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.dc-btn-outline {
  border-radius: 999px;
  border: 1px solid #0c3465;
  color: #0c3465;
  background: #fff;
  padding: 7px 16px;
  font-size: 14px;
  text-decoration: none;
}
.dc-btn-outline:hover {
  background: #0c3465;
  color: #fff;
}
/* footer */
p.footer2 {
  font-family: 'El Messiri';
  font-size: small;
  margin: 0px 10px 10px 0px;
  color: #000;
}