@font-face {
  font-family: 'KFGQPC Uthmanic Script HAFS';
  src: url('fonts/KFGQPC-Uthmanic-Script-HAFS-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Scheherazade New';
  src: url('fonts/ScheherazadeNew-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


body {
          font-family: 'Scheherazade New', 'KFGQPC Uthmanic Script HAFS', 'Segoe UI', sans-serif;
          background-color: #f8f4e3;
          margin: 20px;
          text-align: center;
          padding: 18px;
          //padding-top: calc(var(--navbar-height) + 10px); /* Bar için minimum boşluk -> navbar yüksekliği kadar üst boşluk bırak */
          padding-top: 60px;
          border-radius: 0; /* Köşeleri düzleştir */
      }

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}
      



        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: #5C4033;
            color: #fdfaf5;
            padding: 2px 16px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            border-radius: 0 !important;
            /* Köşeleri düzleştir */
            /* Sabit yükseklik, body'deki padding-top ile uyumlu olsun */
            height: var(--navbar-height);
            transition: top 0.3s ease;
        }

        .blokturkish, .turkish {
            font-size: 18px;
            margin-right: 10px;
        }
        
        .blokswedish, .swedish {
            color: #006400;
            font-size: 18px;
            margin-right: 10px;
        }

        .blokenglish, .english {
            color: rgb(0, 153, 255);//black;
            font-size: 18px;
            margin-right: 10px;
        }

        

    
         .navbar .form-group {
             display: flex;
            text-align: left;
                /* Metni sola hizalayın */
             flex-direction: column;
             /* Elemanları dikey hizala */
             align-items: flex-start;
             /* Sol hizala */
             gap: 5px;
             /* Label ve input arasındaki boşluk */
         }
    
         .navbar label {
             font-weight: bold;
             font-size: 14px;
             color: #fdfaf5;
             /* Label yazı rengi */
         }
    
         .navbar select,
         .navbar input {
            
             padding: 6px;
             font-size: 14px;
             border-radius: 6px;
             background-color: #fffaf0;
             color: #333;
             border: 1px solid #ccc;
         }

                 .select2-container--default .select2-dropdown {
                     text-align: left;
                     /* Metni sola hizala */
                 }
        
                 .select2-container--default .select2-results__option {
                     text-align: left;
                     /* Açılan menüdeki seçenekleri sola hizala */
                 }

      label {
          font-weight: bold;
      }

      select {
          padding: 6px;
          font-size: 14px;
          border-radius: 6px;
          background-color: #fffaf0;
          color: #333;
          border: 1px solid #ccc;
      }

      input[type="number"] {
          width: 60px;
          padding: 6px;
          border-radius: 6px;
          border: none;
          font-size: 14px;
          background-color: #fffaf0;
          color: #333;
      }

          .page-navigation {
              display: flex;
              align-items: center;
              gap: 5px;
              /* Butonlar ve input arasındaki boşluk */
          }
    
          .nav-button {
              padding: 5px 10px;
              border: none;
              background-color: #8e5a28;
              /* Kahverengi arka plan */
              color: #fff;
              /* Beyaz yazı */
              border-radius: 4px;
              cursor: pointer;
              font-size: 16px;
              transition: background-color 0.3s;
          }
    
          .nav-button:hover {
              background-color: #a86734;
              /* Hover durumunda daha açık kahverengi */
          }

      .settings-bar {
          display: none;
          background-color: #fff;
          padding: 20px;
          border-radius: 10px;
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
          z-index: 9999;
          position: fixed;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          width: 400px;
          max-height: 80vh;
          overflow-y: auto;
          margin: 0;
}

.language-options {
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
          justify-content: center;
}

      .highlighted-label {
          color: #8e4a1d;
          background-color: #fdf2e1;
          padding: 6px 10px;
          border-radius: 6px;
          display: inline-block;
          margin-top: 10px;
          font-weight: bold;
      }

      .language-options {
          display: flex;
          align-items: center;
          gap: 10px;
      }

      .language-options label {
          margin: 0;
      }

      .divider {
          border-left: 1px solid #aaa;
          height: 16px;
      }

      #juzSelect,
      #verseSelect,
      input[type="number"] {
        /*width: 100px;
          /* Genişliği ayarlayın */
          padding: 6px;
          border-radius: 6px;
          font-size: 14px;
          background-color: #fffaf0;
          color: #333;
          border: 1px solid #ccc;
      }

      #surahSelect {
          width: 150px;
          /* Genişliği artırın */
          padding: 6px;
          /* İç boşluk */
          font-size: 14px;
          /* Yazı boyutu */
          border-radius: 6px;
          /* Kenar yuvarlama */
          background-color: #fffaf0;
          /* Arka plan rengi */
          color: #333;
          /* Yazı rengi */
          border: 1px solid #ccc;
          /* Kenarlık */
      }

/* Font'ların önceden yüklenmesini sağla */
.arabic, .arabic2 {
  /* Varsayılan font ailesi - ilk sırada Mushaf */
  font-family: 'KFGQPC Uthmanic Script HAFS', 'Scheherazade New', 'Lateef', serif;
  font-size: 32px;
  letter-spacing: 0.1px;
  line-height: 1.8;
  color: #006600;
  direction: rtl;
}

.arabic:hover {
  background-color: #eef;
  cursor: pointer;
}

.arabic.active {
  background-color: #cce;
  color: #003300;
  border: 1px solid #006600;
}

.arabic2.active {
  background-color: #cce;
  color: #003300;
  border: 1px solid #006600;
}
      .normal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 4px 6px;           /* İçerik boşluğu */
  min-width: 15px;            /* En az genişlik */
  height: auto;               /* İçeriğe göre yükseklik */
  font-size: 12px;            /* Rakam boyutu */
  font-weight: bold;          /* Rakam kalınlığı */
  background-color: #182D47;  /* Arka plan */
  color: white;               /* Yazı rengi */
  border-radius: 35%;         /* Tam daire */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid #182D47;  /* Kenarlık */
  transition: all 0.3s;
  cursor: pointer;
  margin: 5px;
  white-space: nowrap;        /* Satır atlamasın */
  overflow: visible;           /* Taşmaları gizle */
  position: relative; /* tooltip'in ankrajı için şart */
}


    .normal div, .secde div {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    background-color: #555;
    color: #fff;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    font-size: 14px;
    font-weight: normal;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    direction: ltr;                 /* ← ltr kalır */
    unicode-bidi: plaintext;        /* ← her karakter kendi yönünde */
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

.normal div span.arabic,
.secde div span.arabic {
    display: inline !important;
}

.normal:hover div, .secde:hover div {
    visibility: visible;
    opacity: 1;
}



        .normal:hover div {
            visibility: visible;
            opacity: 1;
        }

        .normal div span {
            font-size: 14px; /* veya istediğiniz büyüklük, örn. 20px */
            display: none;
            
        }


         


/*
          .normal:hover,
          .dynamic-font,
          .secde:hover {
              cursor: pointer;
              /* El işareti 
          }
      .normal:hover {
          transform: translateY(-5px);
          box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
      }
*/
      .secde {
  display: inline-block;
  padding: 4px 6px; /* Yukarı-aşağı ve sağa-sola boşluk */
  height: auto; /* Otomatik yükseklik */
  line-height: normal;
  text-align: center;
  border-radius: 35%; /* Daireye yakın görünüm */
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  margin: 5px;
  border: 3px solid red;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  white-space: nowrap; /* Tek satırda tut */
}


           

        .secde:hover div {
            visibility: visible;
            opacity: 1;
        }

        .secde div span {
            display: none;
        }





/*
      .secde:hover {
          transform: translateY(-5px);
          box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
      }

      #searchResults {
          margin-top: 20px;
          padding: 10px;
          background-color: #f9f9f9;
          border: 1px solid #ccc;
          border-radius: 6px;
      }
*/
      .search-result {

          cursor: pointer;
      }

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

      .search-result p {
          margin: 5px 0;
      }

      .topic-container {
          display: flex;
          align-items: center;
          gap: 10px;
          /* Elemanlar arasındaki boşluk */
          background-color: #bde67a;
          /* Arka plan rengi */
          padding: 10px;
          /* İç boşluk */
          border-radius: 8px;
          /* Kenar yuvarlama */
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
          /* Hafif gölge */
          margin-top: 2px;
          /* Üst boşluk */
          z-index: 1;
      }

      .topic-container label {
          font-weight: bold;
          font-size: 14px;
          color: #333;
      }

      .topic-container select {
          padding: 6px;
          font-size: 14px;
          border-radius: 6px;
          background-color: #fff;
          border: 1px solid #ccc;
          color: #333;
          min-width: 170px;
      }

      .topic-container .select2-container--default .select2-selection--single {
          min-height: 38px;
          border-radius: 6px;
          border: 1px solid #ccc;
          background-color: #fff;
      }

      .topic-container .select2-container .select2-dropdown {
          z-index: 2000;
      }

      .plus-button {
          background-color: #4CAF50;
          /* Yeşil arka plan */
          color: white;
          /* Beyaz yazı */
          border: none;
          border-radius: 50%;
          /* Daire şekli */
          width: 30px;
          height: 30px;
          font-size: 20px;
          cursor: pointer;
          text-align: center;
          line-height: 30px;
          /* Yazıyı ortalamak için */
      }

      .plus-button:hover {
          background-color: #45a049;
          /* Hover durumunda daha koyu yeşil */
      }

.action-bar {
    display: flex;
    justify-content: flex-end;
    /* Butonları sağa yasla */
    align-items: center;
    /* Dikey hizala */
    gap: 10px;
    /* Butonlar ve çizgiler arasındaki boşluk */
    margin-top: 10px;
    /* Üst boşluk */
}

.action-button {
    display: flex;
    justify-content: flex-end;
        /* Butonları sağa yasla */
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Sabit genişlik */
    height: 40px;
    /* Sabit yükseklik */
    font-size: 20px;
    /* Simge boyutu */
    color: #fff;
    /* Beyaz yazı */
    background-color: #8e5a28;
    /* Kahverengi arka plan */
    border: none;
    border-radius: 6px;
    /* Hafif yuvarlak köşeler */
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #a86734;
    /* Hover durumunda daha açık kahverengi */
}

.divider {
    width: 1px;
    height: 30px;
    /* Çizginin yüksekliği */
    background-color: #ccc;
    /* Çizgi rengi */
    margin: 0 5px;
    /* Çizgi ile butonlar arasındaki boşluk */
}

.logout-button {
    font-size: 16px;
    /* Yazı boyutu */
    width: auto;
    /* İçeriğe göre genişlik */
    padding: 0 12px;
    /* Yatayda iç boşluk */
    height: 40px;
    /* Sabit yükseklik */
}

.info-button,
.settings-button {
    font-size: 20px;
}

.preview-text {
    direction: rtl;
    text-align: right;
    /* diğer mevcut stiller */
}

.dynamic-font {
    font-size: 1em;
    /* Varsayılan boyut */
    position: absolute;
    padding: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        /* Gölge ekle */
    /* left yerine right kullanmak için direction düzelt */
    direction: ltr;  /* ← bunu ekleyin */
}

#pageInput {
    text-align: center;
    /* Metni yatay olarak ortala */
}

#arabicFontSelect,
#fontSizeSelect {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    min-width: 120px;
    margin-top: 5px;
}

#arabicFontSelect:hover,
#fontSizeSelect:hover {
    border-color: #8e5a28;
}



