@font-face {
  font-family: 'SuraNames';
  src: url('/assets/fuentes/sura_names.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
  font-family: 'Amiri', serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #1f2125;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 10px 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #000000;
  flex-wrap: wrap;
}

.header h1 {
  font-size: 24px;
  color: #fff;
  margin: 0 25px;
  flex-shrink: 0;
}

.content,
.content-surah {
  width: 100%;
  text-align: center;
  padding: 20px 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quran-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.quran-title-surah {
  font-family: 'SuraNames', sans-serif;
  font-size: 4rem;
  line-height: normal;
  color: #ffffff;
  font-weight: normal;
  text-align: center;
}

.description,
.description-surah {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.6;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 20px auto;
  direction: rtl;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 300px;
  border: 1px solid #464b50;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  padding: 1rem;
}

.card .number {
  background-color: #343a40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transform: rotate(45deg);
  margin-inline-end: 15px;
  color: #ffffff;
}

.card:hover {
  border: 1px solid #2ca4ab;
  color: #000000;
}

.card:hover .number {
  background-color: #2ca4ab;
  color: #000000;
}

.card:hover .details {
  color: #2ca4ab;
}

.card .number span {
  transform: rotate(-45deg);
  font-weight: 700;
}

.card .info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.card .details {
  text-align: left;
  flex-grow: 1;
  font-size: 0.9em;
  color: #ccc;
}

.name_ar {
  font-family: 'SuraNames', sans-serif;
  font-size: 2rem;
  line-height: normal;
  color: #ffffff;
  font-weight: normal;
  text-align: right;
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card{
    width: 100%;
    max-width: 416px;
    flex-direction: row;
    height: auto;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .card {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header h1 {
    font-size: 20px;
    margin: 10px 0;
  }
}

.search-bar {
  width: 700px;
  padding: 10px;
  border: 2px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  margin-right: 25px;
  background-color: #2c2f33;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;

}

.search-bar:focus {
  border-color: #3498db;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 355px;
  text-align: right;
  font-family: 'Amiri', serif;
  display: flex;
}

.search-results {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: #444;
  margin-top: px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: right;
}

.search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #555;
  font-size: 18px;
  color: #fff;
  line-height: 2;
}

.search-result-item:hover {
  background-color: #555;
}

.no-results {
  padding: 10px;
  color: #ccc;
  font-size: 14px;
  text-align: right;
}

.total-results {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  background-color: #969393;
  border-bottom: 1px solid #ddd;
  color: #fff;
}

.search-results {
  max-height: 500px;
  overflow-y: auto;
  margin-top: 43px;
  margin-right: 50px;
}

.loading {
  padding: 15px;
  text-align: center;
  color: #666;
}

/* Estilo para scrollbar */
.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}