@font-face {
  font-family: "Amiri Quran";
  src: url("AmiriQuran.ttf");
}

:root {
  color-scheme: light dark;
}

body {
  margin: 2rem;
}

h1 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

input[type="text"] {
  padding: 0.5rem 0.6rem;
  min-width: 18rem;
}

select,
input[type="checkbox"],
button {
  padding: 0.5rem 0.6rem;
}

button {
  cursor: pointer;
}

.muted {
  opacity: 0.75;
  font-size: 0.9rem;
}

.status {
  margin: 0.5rem 0 1rem;
  display: none; /* Initially hidden */
}

table#output {
  background: rgba(127, 127, 127, 0.08);
  padding: 1rem;
  border-radius: 8px;
  overflow: auto;
  max-height: 60vh;
  font-size: 1.25rem;
  line-height: 2.5em;
}

.sura-header {
  font-weight: bold;
}

.search-count {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ayah-number {
  padding-inline-start: 0.5em;
  margin-inline-end: 0.5em;
  display: inline-block;
  background: #e0e0e0;
  color: #333;
  width: 2.2em;
}

.ayah-text {
  font-family: "Amiri Quran", serif;
}

mark {
  background-color: #ffeb3b;
  color: #000;
}

@media (prefers-color-scheme: dark) {
  mark {
    background-color: #ff9800;
    color: #000;
  }

  .ayah-number {
    background: #444;
    color: #fff;
  }
}
