* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
:root {
  --main-color: #a2fee9;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  direction: rtl;
}
body.active {
  direction: ltr;
}
.moon-loader{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 2s forwards;
  -webkit-animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0.98;
    display: none;
  }
}
.card {
  cursor: auto;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #000000, #0a0a2e);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(100, 149, 237, 0.3);
}

/* Enhanced Moon with Craters */
.moon {
  height: 80px;
  width: 80px;
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border-radius: 50%;
  position: absolute;
  right: 100px;
  top: 40px;
  box-shadow: 0 0 40px rgba(235, 235, 235, 0.5), inset -5px -5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Moon Craters */
.crater {
  position: absolute;
  background: rgba(200, 200, 200, 0.3);
  border-radius: 50%;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.cr1 {
  width: 15px;
  height: 15px;
  top: 20px;
  left: 15px;
}
.cr2 {
  width: 20px;
  height: 20px;
  top: 45px;
  left: 40px;
}
.cr3 {
  width: 12px;
  height: 12px;
  top: 55px;
  left: 20px;
}

/* Enhanced Blubs (Falling Stars) */
.blub {
  height: calc(3px * var(--j));
  width: calc(1px * var(--j));
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(173, 216, 230, 1) 100%
  );
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(173, 216, 230, 0.6);
  animation: animated linear infinite reverse;
  animation-duration: calc(40s / var(--i));
  rotate: 25deg;
  opacity: 0.8;
  filter: blur(calc(0.5px * var(--j)));
}

@keyframes animated {
  0% {
    transform: translateY(250px) scale(0.3) rotate(25deg);
  }
  100% {
    transform: translateY(-40px) scale(1.2) rotate(25deg);
  }
}

/* Hover Effects */
.card:hover .moon {
  box-shadow:
    0 0 60px rgba(173, 216, 230, 0.7),
    inset -8px -8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, #e0ffff, #ffffff);
}

.card:hover .blub {
  animation-duration: calc(30s / var(--i));
  opacity: 1;
}




.page {
  overflow-x: hidden;
}

/* Start Component */
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 1000px) {
  .container {
    width: 980px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

.language {
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 5px;
  background: #333;
  align-items: center;
  box-shadow: -5px -5px 15px #444, 5px 5px 15px #222, inset 5px 5px 10px #444,
    inset -5px -5px 10px #222;
  font-family: "Damion", cursive;
  cursor: pointer;
  border: none;
  color: rgb(161, 161, 161);
  transition: 500ms;
}

.language:hover {
  box-shadow: -5px -5px 15px #444, 5px 5px 15px #222, inset 5px 5px 10px #222,
    inset -5px -5px 10px #444;
  color: #d6d6d6;
  transition: 500ms;
}

/* search input */
/* From Uiverse.io by Gautammsharma */
.input__container--variant {
    margin: auto;
    background: linear-gradient(to bottom, #f3fff9, #f3fff9);
    max-width: 600px;
    text-align: center;
    display: flex;
    padding: 0.4em;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}
@media (max-width: 600px) {
  .input__container--variant {
    flex-direction: column;
  }
}
.shadow__input--variant {
  filter: blur(25px);
  border-radius: 30px;
  background-color: #f3fff9;
  opacity: 0.5;
}

.input__button__shadow--variant {
    background-color: #07372c;
    padding: 1.2em 0.8em;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    border-bottom: 3px solid #07372c;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.input__button__shadow--variant:hover {
  background-color: #3c6659;
}

.input__search--variant {
    align-items: center;
    outline: none;
    width: 100%;
    border: none;
    padding: 1.2em 0.8em;
    font-size: 1.2em;
    font-weight: bold;
    color: #002019;
    background-color: transparent;
}

.input__search--variant::placeholder {
  color: #002019;
  opacity: 0.7;
}

/* search input */

/* End Component */
header {
  background-color: #1b1b1b;
  border-top: 6px solid #07372c;
  border-bottom: 6px solid #07372c;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

header .container .logo h1 {
  margin: 0;
  color: #a2fee9;
}

header .container .menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (max-width: 800px) {
  header .container .logo h1 {
    font-size: 1.5em;
  }
  header .container .menu {
    gap: 10px;
  }
}
/* header is end  */
/* main start  */
.date {
  z-index: 2;
  color: #09a37f;
  position: absolute;
  top: 10px;
  left: 8px;
  background-color: #000000;
  padding: 10px 15px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
@media (max-width: 700px) {
  .date {
    padding: 10px;
  }
}
.date #hijriDate {
  margin-bottom: 5px;
  font-size: 1em;
}

main {
  position: relative;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background-image: url("./adan.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: bottom;
}
main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: #000000cb;
}
main .intrduoce {
  z-index: 2;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
main h1 {
  font-size: 3.5em;
  color: #0adead;
}

main p {
  font-size: 1.7em;
  color: #fff;
}
@media (max-width: 700px) {
  main h1 {
    font-size: 2.8em;;
  }
  main p {
    font-size: 1.5em;
  }
}
main p .sea {
  display: block;
  background-color: #09a37f;
  color: #ffffff;
  text-decoration: none;
  width: fit-content;
  font-weight: 700;
  cursor: pointer;
  margin: 10px auto 0;
  padding: 6px 11px;
  border-radius: 10px;
}
main p .sea:hover {
  transition: 400ms;
  text-decoration: underline;
  background: color-mix(in srgb, #0adead 30%, #000 70%);
  -webkit-transition: 400ms;
  -moz-transition: 400ms;
  -ms-transition: 400ms;
  -o-transition: 400ms;
}
/* main End  */
/* search-statement Start*/
#search-statement {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #01110e;
  position: relative;
}
#search-statement::after {
  content: "";
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  width: 100px;
  height: 8px;
  background: linear-gradient(to right, #09a37f, #033328);
  border-radius: 30px;
}

#search-statement .time-statement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: fit-content;
  gap: 20px;
  padding: 20px;
  border-radius: 25px;
  border: 7px solid #0adead;
  margin-top: 30px;
  background-color: #fff;
  transition: 500ms ease-in-out;
  -webkit-transition: 500ms ease-in-out;
  -moz-transition: 500ms ease-in-out;
  -ms-transition: 500ms ease-in-out;
  -o-transition: 500ms ease-in-out;
}
#search-statement .time-statement:hover {
  border-color: #07372c;
  box-shadow: 1px 1px 10px #0adead;
}
#search-statement .Prayer-time {
  background-color: #0adead;
  color: #222;
  cursor: pointer;
  border-radius: 50%;
  height: 130px;
  width: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: 300ms ease-in-out;
  -webkit-transition: 300ms ease-in-out;
  -moz-transition: 300ms ease-in-out;
  -ms-transition: 300ms ease-in-out;
  -o-transition: 300ms ease-in-out;
}

#search-statement .Prayer-time:hover {
  background: #07372c;
  color: white;
}
/* search-statement End */

footer {
    font-size: 1.3em;
    height: 60px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #0adead;
    font-weight: bold;
    box-shadow: 0px 20px 45px #026b53;
    position: relative;
}
footer a{
  color: #0adead; 
  margin-right: 2px; 
  margin-left: 2px;
}

/* تنسيقات المدن المتشابهة */
.similar-cities {
  margin: 10px auto;
  max-width: 600px;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 3px 3px 27px rgb(5 113 88);
  direction: ltr;
}

.similar-city {
  padding: 8px 15px;
  margin: 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.3em;
  font-weight: 600;
  color: #222;
}
.similar-city:not(:last-child) {
  border-bottom: 2px solid #eae6e6;
}

.similar-city:hover {
  background: #07372c;
  color: #fff;
  border-radius: 5px;
}

/* تنسيقات للغة الإنجليزية */
body.active .similar-cities {
  direction: ltr;
  text-align: left;
}
