@font-face {
  font-family: hafs;
  src: url(./Assets/fonts/hafs.otf);
}

@font-face {
  font-family: jamel;
  src: url(./Assets/fonts/Jameel-Noori.ttf);
}

html {
  overflow: hidden;
  height: 105vh;
}

body {
  font-family: "hafs";
  direction: rtl;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 105vh;
}

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

.ayat {
  font-size: 45px;
  display: flex;
  flex-direction: column;
  margin: 0;
  align-items: center;
}

.ayats {
  font-size: 30px;
  visibility: hidden;
  display: none;
  opacity: 0;
  transition: all 0.6s ease-in-out;
}

::-webkit-scrollbar {
  width: 0px;
  display: none;
}

.input-div {
  position: relative;
}

.ayah {
  overflow-x: hidden;
  background-size: 100% 100%;
  width: 100%;
  margin: 0 auto;
  height: 86vh;
  overflow-y: scroll;
  background-image: url(./Assets/Images/para-frame.jpg);
  background-repeat: no-repeat;
}

.chunk {
  visibility: hidden;
  opacity: 0;
  font-size: 50px;
  display: inline-block;
  transition: 0.6s ease-in-out all;
  margin-right: 10px;
  white-space: pre-wrap; /* Add this line to preserve newlines */
}

.active {
  display: inline-block;
  transition: 0.6s ease-in-out all;
  visibility: visible;
  opacity: 1;
  margin-right: 10px;
}

.content-div {
  margin: 7em;
  max-height: -webkit-fill-available;
  overflow-y: scroll;
  /* text-align: justify; */
  /* text-justify: inter-word; */
  line-height: 2;
}

.overlay {
  position: fixed;
  height: 105vh;
  z-index: 1111111;
  width: 100%;
  display: none;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup {
  width: 30%;
  /* height: 400px; */
  position: absolute;
  padding: 1em 2em;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
  z-index: 11111111111;
  border-radius: 10px;
  align-items: center;
  text-align: center;
  background-color: #fff;
}

.ayat-input-field {
  font-family: "hafs";
  width: 100%;
  font-size: 1.5rem;
  border-radius: 5px;
  margin: 1em 0;
  display: none;
}

#btn {
  width: 150px;
  font-family: "hafs";
  font-size: 1.5rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.3em 0;
  position: relative;
  z-index: 11111111111;
}

.cross-div {
  text-align: end;
  width: 100%;
}

.cross-symbol {
  font-family: "hafs";
  font-size: 2em;
  cursor: pointer;
}

.header-div {
  display: flex;
  align-items: center;
}

.sabaq-ayah-frame {
  width: 80%;
  margin-right: 1em;
}

.container {
  position: relative;
  top: 1em;
}

.para-select-div,
.surah-select-div {
  align-items: baseline;
  width: 100%;
  display: none;
}

#dynamic-dropdown-ruba,
#dynamic-dropdown-nisf,
#dynamic-dropdown-ruku {
  display: none;
}

.select-box {
  width: 100%;
  font-size: 1.5rem;
  font-family: jamel;
  margin-bottom: 1.8em;
}

#dynamic-dropdown-ruba,
#dynamic-dropdown-nisf {
  display: none;
}

.sabaq-number,
.surat-name,
.rukuh-number,
.ayat-number {
  position: absolute;
  color: #f4cf6e;
  transform: translate(-50%, -50%);
  font-family: initial;
  font-size: 35px;
  font-family: "hafs";
  font-weight: 700;
  width: fit-content;
}

.sabaq-number {
  left: 58%;
  top: 42%;
  font-family: jamel;
  font-size: 35px;
  letter-spacing: 2px;
}

.rukuh-number {
  left: 50%;
  top: 65%;
  font-family: jamel;
  font-size: 25px;
  color: #000;
  letter-spacing: 2px;
}

.surat-name {
  left: 51%;
  top: 29%;
  color: #000;
}

.ayat-number {
  left: 39%;
  font-size: 30px;
  letter-spacing: 3px;
  top: 44%;
}

.container-2 {
  position: relative;
  top: 1em;
  text-align: center;
}

.sabaq-frame {
  width: 90%;
}

.end {
  text-align: end;
  margin-left: 1em;
}

.btns-div {
  display: flex;
  align-items: center;
  gap: 1em;
}

#ramzan-btn {
  text-decoration: none;
  background-color: #f4cf6e;
  color: #000;
  font-size: 1.5rem;
  padding: 0.3em 1em;
  border-radius: 10px;
}

@media (min-width: 1800px) {
  .content-div {
    margin: 10em 7.5em 7em 7.5em;
  }

  .surat-name {
    font-size: 45px;
  }

  .ayat-number {
    font-size: 45px;
  }

  .rukuh-number {
    font-size: 30px;
  }

  .sabaq-number {
    font-size: 40px;
  }
  .chunk {
    font-size: 78px;
  }

  .ayat-input-field {
    font-size: 3rem;
  }

  .select-box {
    font-size: 2.2rem;
  }

  .popup {
    width: 40%;
    /* top: 2em; */
    border-radius: 20px;
    padding: 2em 3em;
  }

  #btn {
    width: 250px;
    font-size: 2.5rem;
    padding: 0.2em 0;
    border-radius: 10px;
  }

  .cross-symbol {
    font-size: 3rem;
  }
}

/* Break marker styling */
.ayah-break {
  width: 100%;
  height: 10px;
  margin: 0px 0;
  /* Optional: Add a subtle visual indicator */
  /* border-bottom: 1px solid rgba(244, 207, 110, 0.3); */
}
