@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';
  margin: 0;
  padding: 0;
    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;
  font-size: 18px;
}
.main {
  max-width: 90%;
  margin: auto;
  padding: 10px;
}
.container {
  display: flex;
  gap: 15px;
}
.editor {
  flex: 1;
}
textarea {
  direction: ltr;
  width: 100%;
  height: 31%;
  padding: 10px;
  font-family: monospace;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  background: #fdfdfd;
}
#htmlCode::placeholder {
  color: red;
  font-size: 20px;
}
#cssCode::placeholder {
  color: blue;
  font-size: 20px;
}
#jsCode::placeholder {
  font-size: 20px;
}
.output {
  width: 50%;
  height: 720px;
  padding: 0px;
}
iframe {
  width: 100%;
  height: 100%;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: white;
}
.invoice-container {
  display: flex;
  flex-direction: column;
  /* ترتيب العناصر عموديًا */
  align-items: center;
  /* محاذاة العناصر في المنتصف */
  justify-content: center;
  /* جعل العناصر متراصة في المنتصف عموديًا */
  margin: 20px 0;
}
#exportButton {
  padding: 5px 25px;
  color: #FFF;
  font-family: 'El Messiri';
  font-weight: bold;
  font-size: 15px;
  cursor: not-allowed;
  /* تغيير شكل المؤشر عند تعطيله */
}
#exportButton:enabled {
  background-color: #008800;
  /* اللون الأخضر عندما يكون الزر مفعلًا */
  color: white;
  /* تغيير لون النص إلى الأبيض عند تفعيل الزر */
  cursor: pointer;
  /* تغيير شكل المؤشر عند تفعيل الزر */
}
#exportButton:hover:enabled {
  background-color: #008800;
  /* تغيير اللون عند التمرير على الزر عندما يكون مفعل */
}
@media (max-width: 480px) {
  h1, h2, h3 {
    font-size: 1em;
    font-family: El Messiri;
  }
}
.header {
  background: #0c3465;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a:link, .logo a:hover, .logo a:visited {
  text-decoration: none;
  color: white;
}
input {
  border-radius: 5px;
}
#root {
  text-align:center;
}
h1 {
  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: 90%;
  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;
}