body.ltr-mode {
  direction: ltr;
  text-align: left;
}

.body.rtl-mode {
  direction: rtl;
  text-align: right;
}

#cp_safha,
#cp_juz,
#cp_aya {
  text-decoration: none !important;
  height: auto !important;
  padding: 10px 5px 0 !important;
  font-size: 16px;
}

#tb_safha,
#tb_juz,
#tb_aya,
#tb_sura {
  height: auto !important;
  padding: 0 !important;
  font-size: 16px;
}

#root {
  display: flex !important;
  justify-content: space-between !important;
  /* align-items: center !important; */
  transform: none !important;
  width: 100% !important;
}

#main {
  position: relative;
}

#commentsBody {
  padding: 10px;
  height: 100%;
  font-size: 18px;
}

#commentsBody .nav.nav-tabs .nav-item .nav-link {
  color: #333;
}

#commentsBody .divComment {
  border: 1px solid #e0c4a9;
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}

#commentsBody div h4 {
  font-weight: bold;
  font-size: 21px;
  margin: 10px 0 0;
}

#commentsBody div h5 {
  font-weight: bold;
  font-size: 18px;
  margin: 10px 0;
  color: #d49570;
}

#commentsBody div span {
  color: #d49570;
}

#commentsBody div audio {
  margin: 0 0 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d49570;
  border-radius: 30px;
}

#commentsBody div p {
  padding: 0;
  margin: 0;
}

#commentsBody div .btn {
  border: 0;
  margin: 0 5px;
}

#comments {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 999;
  background: #f5eeea;
  color: #222;
  width: 50%;
  overflow: scroll;
}

.comments-right {
  right: 0;
}

.comments-left {
  left: 0;
}

#toolbar_widget {
  z-index: 9999;
}

.header {
  padding: 20px 0;
  background: wheat;
}

.content {
  padding: 20px 0;
}

.filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter .form-group label {
  color: #333;
  font-size: 18px;
}
.filter .form-group .form-control {
  height: 40px;
}

.hide {
  display: none;
}

#fromAddComments,
#fromAddAudioComments,
#fromUpdateComments {
  margin: 5px;
  padding: 5px;
  border: 1px solid white;
}

red {
  color: red;
}

audio {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
}

#controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

#controls .btn {
  margin: 0 5px;
  border-radius: 5px;
}

#nav_area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  background-color: #f5eeea;
  border-radius: 10px;
  position: relative;
  height: 40px;
}

.select-sora,
.select-aya,
.select-page,
.select-juz {
  position: relative;
  min-width: 100px;
  color: #d49570;
  padding: 0 15px;
}

.select-sora {
  padding-top: 7px;
}

.select-aya .fas,
.select-page .fas,
.select-juz .fas {
  position: absolute;
  left: 15px;
  top: 15px;
}

.select-sora .fas {
  left: 0;
}

#tb_sura,
#tb_aya,
#tb_safha,
#tb_juz,
#tafaser_selector a.title,
#search_fld,
#qaree_selector a.title,
#repeat_key {
  border: 0;
}

#tb_sura,
#tb_aya,
#tb_safha,
#tb_juz,
#tafaser_selector a.title,
#search_fld,
#qaree_selector a.title,
#repeat_key {
  background-color: transparent;
}

.widgwin .title {
  margin-bottom: 20px;
  white-space: nowrap;
}

.widgwin .title .form-control {
  height: 30px;
  margin: 0 10px;
}

.widgwin .middle {
  max-height: 400px;
  overflow-y: scroll;
}

.filter .row {
  width: 100%;
}

.quran-filter .filter .form-group label {
  color: #333;
}
.quran-filter .filter .form-group .form-control {
  height: 37px;
}

#ayah_player {
  margin-top: 0;
  height: 50px;
}

#commentsBody .dateComment {
  /* direction: ltr !important; */
  display: block !important;
}

.divRecord {
  border: 1px solid black;
  padding: 10px;
  margin: 10px 0;
}

#recordCounter {
  direction: ltr;
  font-size: 20px;
  color: black;
  letter-spacing: 4px;
  margin-top: 2rem;
}

.select-page .fas {
  left: 0;
}

.main-header .main-nav .navbar-brand img {
  max-width: none !important;
}

.filter .form-group {
  width: 100%;
}

.content-x {
  max-height: 150px;
  overflow: hidden;
}

.hide {
  display: none;
}

.hasMore {
  max-height: 100% !important;
  overflow: auto !important;
}

.rm {
  color: blue !important;
}
.rl {
  color: red !important;
}

.ltr-mode .select-aya .fas,
.ltr-mode .select-page .fas,
.ltr-mode .select-juz .fas {
  position: absolute;
  right: 15px;
  left: auto;
  top: 15px;
}

.ltr-mode .select-page .fas {
  right: 0;
  left: auto;
}

@media (max-width: 480px) {
  .quran-filter {
    margin-bottom: 20px;
  }
  #nav_area {
    flex-direction: column;
    flex-wrap: wrap;
    height: auto;
  }
  #nav_area > * {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .select-page .fas {
    left: 15px;
  }
}

@media (max-width: 767px) {
  .mushaf-view {
    padding-top: 80px;
  }

  #main {
    width: 100%;
  }

  #book {
    width: 100% !important;
    height: 530px !important;
  }
  .booklet .b-page {
    width: 100% !important;
    height: 530px !important;
  }

  .booklet .b-wrap {
    width: 100% !important;
    height: 530px !important;
  }
  .img_cont {
    width: 100% !important;
  }
  .img_cont img {
    width: 100% !important;
  }

  #toolbar_widget {
    width: 100% !important;
  }
  .widgwin {
    width: 100%;
  }
  .widgwin .middle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  #comments {
    top: auto;
    bottom: 0;
    display: none !important;
  }

  #root {
    position: relative;
    padding-bottom: 50px;
  }

  /* .b-wrap-right {
    right: 0 !important;
  }

  .b-wrap-left {
    left: 0 !important;
  } */

  #right,
  #left {
    position: absolute;
    margin-top: 0;
    margin: 0 auto;
    bottom: 0;
  }

  #right {
    right: 40%;
  }
  #left {
    left: 40%;
  }

  /* #img_left_cont,
  #img_right_cont {
    float: none;
  } */
}


.modal-open .modal{
  background: rgba(0, 0, 0, 0.5);
}