:root {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --main-color: #222831;
  --second-color: #393e46;
  --h3-color: #00adb5;
  --body-color: #eeeeee;
  --main-filter: invert(97%) sepia(4%) saturate(473%) hue-rotate(221deg)
    brightness(111%) contrast(87%);
  scrollbar-color: var(--h3-color) var(--second-color);
}

body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--main-color);
  background: -webkit-linear-gradient(
    to left,
    var(--second-color),
    var(--main-color)
  );
  background: linear-gradient(to left, var(--second-color), var(--main-color));
}

.light-mode {
  --body-color: #222831;
  --second-color: #f2eeee;
  --h3-color: #00adb5;
  --main-color: #ffffff;
  --main-filter: invert(11%) sepia(40%) saturate(390%) hue-rotate(176deg)
    brightness(93%) contrast(88%);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
  font-family: "Roboto", sans-serif;
}
body .sorah {
  color: var(--body-color);
  width: 60%;
  margin: 0 auto;
  text-align: center;
  padding: 2em 1em;
  min-height: 87vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  gap: 2em;
}
body .sorah-active {
  justify-content: space-around;
}
.sorah > p {
  font-size: 20px;
  font-weight: 600;
}
.sorah h3 {
  color: var(--h3-color);
  margin-bottom: 1em;
  font-size: 22px;
}
.sorah p {
  margin-bottom: 0.5em;
}
.sorah button {
  border-radius: 0.5em;
  margin: 0 auto;
  font-weight: 600;
  border: none;
  max-width: 257px;
}
.pages-left-completed {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 0 auto;
}
.pages-left-completed::before {
  position: absolute;
  content: "✔";
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  font-size: 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.logo {
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.logo h1 {
  text-transform: uppercase;
  color: var(--body-color);
}
.logo img {
  height: 50%;
  filter: invert(62%) sepia(96%) saturate(3299%) hue-rotate(144deg)
    brightness(89%) contrast(101%);
}
.ul-container button::before {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "<";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(270deg);
  display: flex;
  font-size: 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.3s linear color;
}
.ul-container .button-up::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ul-container button {
  margin-bottom: 1em;
  width: 30px;
  height: 30px;
  position: relative;
}
.sorah-container {
  display: none;
}
.sorah-container-active {
  display: block;
}
ul {
  position: relative;
  list-style: none;
  text-align: left;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
  height: 200px;
  max-width: 300px;
  margin: 0 auto;
  background: var(--second-color);
  padding: 0;
  border-radius: 10px;
  scrollbar-color: var(--h3-color) var(--main-color);
  scroll-behavior: smooth;
}
.ul-active {
  display: flex;
}
.loading {
  position: absolute;
  width: 50px;
  padding: 8px;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--h3-color);
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}
li {
  padding: 1em;
  border-bottom: 1px solid var(--main-color);
  text-align: center;
  cursor: pointer;
}
li:hover {
  color: var(--h3-color);
}
.completed:hover {
  color: var(--body-color);
  background-position: right center;
}
.completed::before {
  content: " ✔";
  position: absolute;
  font-size: 40px;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.clicked {
  color: var(--h3-color);
}
li:last-child {
  border-bottom: none;
}
.sorah-container div {
  display: none;
}
.sorah-container .sura-active {
  display: block;
}
.sorah-container .sura-active form {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1em;
}
.sorah-container .sura-active form p {
  margin-bottom: 0;
}
.completed {
  position: relative;
  background-image: linear-gradient(
    to right,
    #77a1d3 0%,
    var(--h3-color) 51%,
    #77a1d3 100%
  );
  color: var(--body-color);
  transition: 0.5s;
}
.quran-counter {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-around;
}
.quran-counter-active {
  display: flex;
}
.quran-counter div {
  width: 100%;
  margin-top: 1em;
}
.quran-counter h3 {
  width: 100%;
}
.quran-counter p {
  background: var(--second-color);
  padding: 0.3em;
}
.div-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  margin-top: 2em;
  background: #aeeee1;
  width: 60px;
  margin: auto;
  margin-top: 2em;
}
.div-box div {
  padding: 0.5em;
  font-size: 16px;
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}
.div-box .active {
  display: flex;
}
span {
  color: var(--h3-color);
}
.quran-page {
  width: 80%;
  margin: 0 auto;
  padding: 2em;
  direction: rtl;
  font-size: 20px;
  color: white;
  line-height: 1.6;
  letter-spacing: 1px;
}
.quran-page h3 {
  color: var(--h3-color);
  text-align: center;
  margin-bottom: 1em;
}
.quran-page span {
  color: var(--h3-color);
}

.btn-grad {
  background-image: linear-gradient(
    to right,
    #77a1d3 0%,
    var(--h3-color) 51%,
    #77a1d3 100%
  );
  margin: 0 auto;
  padding: 1em;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: var(--body-color);
  border-radius: 10px;
  display: block;
}

.btn-grad:hover {
  background-position: right center; /* change the direction of the change here */
  color: var(--body-color);
  text-decoration: none;
}
.mode {
  width: 30px;
  height: 30px;
  border: 3px solid var(--h3-color);
  border-radius: 50%;
  padding: 0.1em;
}
.mode img {
  width: 100%;
  filter: var(--main-filter);
}
.dark-btn {
  display: none;
}
@media (max-width: 600px) {
  body .sorah {
    width: 90%;
  }
}
