* {
	margin: 0;
	padding: 0;
overflow: hidden;
  box-sizing: border-box; 
}


html, body {
  height: auto;
  overflow: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans',sans-serif;
background: linear-gradient(60deg, #350a31, #0c030c);
}
:root {
  --font-f: 'Boldonse', sans-serif;
  --first-c: #edac4c;
  --second-c: #75193f;
              --accent-1: transparent;
            --glass: rgba(255, 255, 255, 0.15);
}
.landpage{
  position: relative;
  z-index: -1;
height: calc(100vh - 60px);
}

.moon {
    --moon-right: 25px; /* قيمة افتراضية */

    width: 150px;
    height: 150px;
    background: linear-gradient(20deg,#e9ebfb,#fffffe) ;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    /* bottom: -70px; */
/*     box-shadow: 0 0 50px rgba(255, 255, 255, 0.7), 0 0 80px rgba(138, 43, 226, 0.7), 0 0 150px rgba(138, 43, 226, 0.9); */
}

.pr{
  position: relative;
      color: wheat;
    text-align: center;
    font-size: 0;
}
.moon::before {
    content: '';
    width: 125px;
    height: 135px;
    background: linear-gradient(60deg, #350a31, #0c030c);
    border-radius: 50%;
   position: absolute;
    top: 0;
    right: var(--moon-right);
    box-shadow: 0 0 80px rgba(60, 19, 103, 0.6);
}


.text {
  
    font-size: 48px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(138,43,226,0.5), 0 0 30px rgba(138,43,226,0.8);
    font-family: 'Arial', sans-serif;
    margin-top: 20px;
}



.mosque {
position: absolute;
    max-height: 100vh;
    padding-left: 120px;
    min-width: 150vh;
    left: 6px;
    bottom: -139px; 
  }

h1 {
  font-family: var(--font-f, Arial);
display: flex;
align-items: center;
}
/* image on landpage*/ 

.image {
  background-image: url("./image/stars1.webp"); /* رابط أو اسم الصورة */
  background-size: cover; /* تخلي الصورة تتمدد وتغطي الشاشة كلها */
  background-position: center; /* تخلي الصورة في النص */
  background-repeat: no-repeat; /* تمنع تكرار الصورة */
  height: 100vh;
  position: relative;
  top: -160px;
  z-index: -12;
}
.image::after{
  position: absolute;
  inset: 0;
  background: rgba(135, 206, 235, 0.5); /* سماوي فاتح شفاف */
  pointer-events: none;}
.image div{
  text-align: left;
    display: flex;
    justify-content: flex-end;
    margin: 30px;
}
.image h1 {
  font-family: var(--font-f, Arial);
  font-size: 56px;
  color: var(--first-c);
  display: flex;
  gap: 8px; /* مسافة بسيطة بين الحروف */
}

.image  h1 span {
  opacity: 0; /* البداية مخفية */
  animation: fadeBlink 1.5s linear 1 forwards;
}

/* تأخير لكل حرف عشان يظهر واحد ورا التاني */
.image span:nth-child(1) { animation-delay: 0s; }
.image span:nth-child(2) { animation-delay: 0.1s; }
.image span:nth-child(3) { animation-delay: 0.2s; }
.image span:nth-child(4) { animation-delay: 0.3s; }
.image span:nth-child(5) { animation-delay: 0.4s; }
.image span:nth-child(6) { animation-delay: 0.5s; }
.image span:nth-child(7) { animation-delay: 0.6s; } /* الفراغ */
.image span:nth-child(8) { animation-delay: 0.7s; }
.image span:nth-child(9) { animation-delay: 0.8s; }
.image span:nth-child(10){ animation-delay: 0.9s; }
.image span:nth-child(11){ animation-delay: 1s; }

@keyframes fadeBlink {
  0% { opacity: 0; }
  50% { opacity: .5; }
  100% { opacity: 1; }
}
/* down animation  */

.navbar-toggler {
  background: #5161ce;
    border: none;
}
.fa-bars{
  font-size: 38px;
    color: red;
}
    
    @keyframes arrow-bounce {
      0% { transform: rotate(45deg) translate(0, 0px) ; opacity: 0.5;}
      50% { transform: rotate(45deg) translate(0, 10px); opacity: 0.7;}
      100% { transform: rotate(45deg) translate(0, 0px); opacity: 1;}
    }


    /* end loadpage */
    /* start prayer time  */
    /* rnd prayer time  */
/* CSS Variables */
:root {
  --primary-gold: #FFD700;
  --secondary-gold: #B8860B;
  --accent-amber: #FF8C00;
  --text-dark: #2C1810;
  --text-light: #FFFFFF;
  --shadow-soft: rgba(255, 215, 0, 0.3);
  --shadow-dark: rgba(44, 24, 16, 0.4);
  --gradient-main: linear-gradient(135deg, #ffd70045, #ff8c00d1, #B8860B);
  --gradient-hover: linear-gradient(135deg, #FFED4E, #FFA500, #DAA520);
}

/* Global Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--shadow-soft);
  }
  50% {
    box-shadow: 0 0 20px var(--shadow-soft), 0 0 30px var(--shadow-soft);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Main Container */
.prayerTime {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: 60px 40px;
  min-height: 100vh;
  background: linear-gradient(135deg, #63615c 0%, #a59f8a 50%, #837c79 100%);
  animation: fadeInUp 1.5s ease-out;
  position: relative;
  overflow: hidden;
}

.prayerTime::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(184, 134, 11, 0.06) 0%, transparent 50%);
  z-index: 1;
}

.prayerTime > * {
  position: relative;
  z-index: 2;
}

/* Prayer Time Container */
.prayer-time {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Main Title */
.prayerTime h1 {
  display: flex;
  color: #fff;
  gap: 15px;
  align-items: center;
  justify-content: center;
font-size: clamp(1.5rem, 5vw, 5rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
  animation: bounceIn 1.2s ease-out;
  margin-bottom: 30px;
  position: relative;
}

.prayerTime h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #D4A574, #B8860B);
  border-radius: 2px;
}

/* Inputs Container */
.prayerTime .inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  animation: slideInFromLeft 1.3s ease-out;
  margin-bottom: 40px;
}

/* Input Fields and Button */
.prayerTime .inputs input,
.prayerTime .inputs #getTime {
  padding: 18px 25px;
  margin: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: 3px solid transparent;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.prayerTime .inputs input::placeholder {
  color: var(--text-dark);
  opacity: 0.7;
}

.prayerTime .inputs input:focus {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 35px var(--shadow-soft);
  background: rgba(255, 255, 255, 1);
}

.prayerTime .inputs input:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Get Time Button */
.prayerTime .inputs #getTime {
  background: var(--gradient-main);
  color: var(--text-light);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--primary-gold);
}

.prayerTime .inputs #getTime::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.prayerTime .inputs #getTime:hover::before {
  left: 100%;
}

.prayerTime .inputs #getTime:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 20px 40px var(--shadow-soft);
  background: var(--gradient-hover);
}

.prayerTime .inputs #getTime:active {
  transform: translateY(-2px) scale(1.08);
}

/* Results Container */
.prayerTime #results {
  display: flex;
  gap: 40px;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-around;
  flex-direction: row-reverse;
  animation: slideInFromRight 1.5s ease-out;
}

/* Lead Container */
.prayerTime #lead {
  display: flex;
  gap: 25px;
  flex-direction: column;
  flex-wrap: wrap;
  animation: slideInFromLeft 1.4s ease-out;
}

/* Leader Container */
.prayer-time .leader {
  gap: 25px;
  display: flex;
  flex-wrap: wrap;
}

/* Prayer Times Display */
.prayerTime .azan-times {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #D4A574, #B8860B);
  width: 200px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 35px;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 20px rgba(180, 134, 11, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: bounceIn 0.8s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.prayerTime .azan-times::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.prayerTime .azan-times:hover::before {
  left: 100%;
}

.prayerTime .azan-times:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 12px 30px rgba(180, 134, 11, 0.4);
  background: linear-gradient(135deg, #E6B885, #C9941F);
  border-color: #D4A574;
}

.prayerTime .azan-times span {
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: 600;
}

/* Countdown Container */
#countdownContainer {
  flex-wrap: wrap;
  display: flex;
  gap: 50px;
  flex-direction: column;
  animation: fadeInUp 1.8s ease-out;
}

/* Dark countdown styles remain unchanged */
.countdown{
  overflow: visible;
	width: 210px;
	height: 60px;
	text-align: center;
	background: #222;
	background-image: -webkit-linear-gradient(top, #222, #333, #333, #222); 
	background-image:    -moz-linear-gradient(top, #222, #333, #333, #222);
	background-image:     -ms-linear-gradient(top, #222, #333, #333, #222);
	background-image:      -o-linear-gradient(top, #222, #333, #333, #222);
	border: 1px solid #111;
	border-radius: 5px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.6);
	margin: auto;
	padding: 9px 0 0 0 ;
	position: relative;
  top: 0; bottom: 0; left: 0; right: 0;
}

.countdown .tiles{
	position: relative;
	z-index: 1;
}

.countdown .tiles > span{
	width: 45px;
	max-width: 92px;
	font: bold 30px 'Droid Sans', Arial, sans-serif;
	text-align: center;
	color: #111;
	background-color: #ddd;
	background-image: -webkit-linear-gradient(top, #bbb, #eee); 
	background-image:    -moz-linear-gradient(top, #bbb, #eee);
	background-image:     -ms-linear-gradient(top, #bbb, #eee);
	background-image:      -o-linear-gradient(top, #bbb, #eee);
	border-top: 1px solid #fff;
	border-radius: 3px;
	box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.7);
	margin: 0 7px;
	display: inline-block;
	position: relative;
}

.countdown .tiles > span:before{
	content:"";
	width: 100%;
	height: 13px;
	background: #111;
	display: block;
	padding: 0 3px;
	position: absolute;
	top: 41%; left: -3px;
	z-index: -1;
}

.countdown .tiles > span:after{
	content:"";
	width: 100%;
	height: 1px;
	background: #eee;
	border-top: 1px solid #333;
	display: block;
	position: absolute;
	top: 48%; left: 0;
}

.countdown .labels{
	width: 100%;
	height: 25px;
	text-align: center;
	position: absolute;
	bottom: -6px;
}

.countdown .labels li{
  margin: 10px 0 0 0;
	width: 60px;
	font: bold 10px 'Droid Sans', Arial, sans-serif;
	color: #f47321;
	text-shadow: 1px 1px 0px #000;
	text-align: center;
	text-transform: uppercase;
	display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .prayerTime {
    padding: 40px 20px;
    gap: 30px;
  }
  

  
  .prayerTime .inputs {
    flex-direction: column;
    align-items: center;
  }
  
  .prayerTime .inputs input,
  .prayerTime .inputs #getTime {
    width: 90%;
    max-width: 300px;
  }
  
  .prayerTime .azan-times {
    width: 180px;
    height: 60px;
    font-size: 16px;
  }
  
  .prayerTime #results {
    flex-direction: column;
    gap: 20px;
  }
}

/* end count down */
/* end prayer time */
/* start dakr count */
  body {
        background-color: rgba(12, 12, 12, 0.828);

    }


        .dakr {
            padding: 40px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 100vh;
            background: radial-gradient(ellipse at center, rgba(30, 6, 28, 0.9), rgba(39, 30, 28, 0.9));
            backdrop-filter: blur(10px);
        }

        header {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 60px;
            animation: slideDown 0.8s ease-out;
        }

        .dak {
            padding: 25px 35px;
            font-size: 28px;
            font-weight: bold;
            color: #ffffff;
            background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .dak::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .dak:hover::before {
            left: 100%;
        }

        .dak:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 35px rgba(87, 104, 175, 0.4);
            border-color: #5768af;
        }

        .active2 {
            background: linear-gradient(145deg, #5768af, #4a5a9e) !important;
            border: 3px solid #7b88d6 !important;
            box-shadow: 0 10px 30px rgba(87, 104, 175, 0.6);
            transform: translateY(-3px) scale(1.02);
        }

        .flex {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        main {
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        .circle-container {
            position: relative;
            margin: 40px 0;
            padding: 30px 40px;
        }

        .circle {
            position: relative;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: conic-gradient(#00ff88 0deg, #1a1a1a 0deg);
            transform: rotate(-90deg);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 0 50px rgba(0, 255, 136, 0.3),
                inset 0 0 50px rgba(0, 0, 0, 0.5);
            animation: glow 2s ease-in-out infinite alternate;
        }

        .circle::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, #0a0a0a, #1a1a1a);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
        }

        .current {
            position: absolute;
    top: 41%;
    left: 38%;
            transform: translate(-50%, -50%);
            color: #00ff88;
            text-align: center;
            font-size: 36px;
            font-weight: bold;
            text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
            z-index: 10;
            animation: pulse 1.5s ease-in-out infinite;
        }

        .btn1, .btn2, .btn3 {
            margin: 15px;
            padding: 20px 40px;
            text-align: center;
            min-width: 180px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 20px;
            font-weight: bold;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn1 {
            background: linear-gradient(135deg, #2196f3, #1976d2);
            color: #ffffff;
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
        }

        .btn1:hover {
            background: linear-gradient(135deg, #1976d2, #1565c0);
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(33, 150, 243, 0.6);
        }

        .btn2 {
            background: linear-gradient(135deg, #ffd700, #ffb300);
            color: #000000;
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
        }

        .btn2:hover {
            background: linear-gradient(135deg, #ffb300, #ff8f00);
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
        }

        .btn3 {
            background: linear-gradient(135deg, #e35353, #d32f2f);
            color: #ffffff;
            box-shadow: 0 8px 25px rgba(227, 83, 83, 0.4);
        }

        .btn3:hover {
            background: linear-gradient(135deg, #d32f2f, #c62828);
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(227, 83, 83, 0.6);
        }

        .floating-number, .floating-number-minus {
            position: absolute;
            left: 300px;
            top: 50%;
            transform: translateY(-50%) ;

            font-size: 32px;
            font-weight: bold;
            color: #00ff88;
            animation: floatUp 1s ease-out forwards;
            text-shadow: 0 0 10px currentColor;
            z-index: 20;
        }

        .floating-number-minus {
            color: #ff4444;
        }

        footer {
            gap: 20px;
            animation: fadeInUp 1s ease-out 0.6s both;
        }

        @keyframes glow {
            0% { box-shadow: 0 0 50px rgba(0, 255, 136, 0.3), inset 0 0 50px rgba(0, 0, 0, 0.5); }
            100% { box-shadow: 0 0 80px rgba(0, 255, 136, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.5); }
        }

        @keyframes pulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            50% { transform: translate(-50%, -50%) scale(1.1); }
        }

        @keyframes slideDown {
            0% {
                opacity: 0;
                transform: translateY(-30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(40px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes floatUp {
            0% {
                opacity: 1;
                transform: translateY(105%) translateX(-180px) scale(1) rotate(90deg);
            }
            50% {
                opacity: 0.8;
                transform: translateY(105%) translateX(-180px) scale(1.2) rotate(90deg);
            }
            100% {
                opacity: 0;
                transform: translateY(173%) translateX(-180px) scale(0.8) rotate(90deg);
            }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .dak {
                padding: 15px 25px;
                font-size: 22px;
            }
            
            .circle {
                width: 240px;
                height: 240px;
            }
            
            .circle::before {
                width: 180px;
                height: 180px;
            }
            
            .current {
                font-size: 28px;
            }
            
            .btn1, .btn2, .btn3 {
                min-width: 140px;
                padding: 15px 30px;
                font-size: 16px;
            }
            
            .floating-number, .floating-number-minus {
                left: 250px;
                font-size: 24px;
            }
        }

        /* Button Click Animation */
        .btn1:active, .btn2:active, .btn3:active {
            transform: translateY(-1px) scale(0.98);
            transition: all 0.1s;
        }

        /* Success Animation for Circle */
        .circle.complete {
            animation: completeCircle 0.6s ease-out;
        }

        @keyframes completeCircle {
            0% { transform: rotate(-90deg) scale(1); }
            50% { transform: rotate(-90deg) scale(1.1); }
            100% { transform: rotate(-90deg) scale(1); }
        }
/* end dakr count */
/* compass */

        .contain {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            font-family: Arial, sans-serif;
            margin: 0;
            min-height: 100vh;
            background: linear-gradient(135deg, #1a1f2c, #2d3748);
            transition: background-color 0.3s;
        }

        body.qibla-found {
            animation: bgPulse 1s ease-in-out infinite;
            animation-iteration-count: 5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }




        @keyframes bgPulse {
            0% {
                background: linear-gradient(135deg, #1a1f2c, #2d3748);
            }

            50% {
                background: linear-gradient(135deg, #ff0000, #cc0000);
            }

            100% {
                background: linear-gradient(135deg, #1a1f2c, #2d3748);
            }
        }

        #compass-container {
            width: 300px;
            height: 300px;
            position: relative;
            margin: 20px auto;
        }

        #compass-svg {
            width: 100%;
            height: 100%;
            transform-origin: center;
            position: absolute;
            transition: transform 0.1s linear;
        }

        #qibla-needle {
            width: 100%;
            height: 100%;
            position: absolute;
            transform-origin: center;
        }

        .hidden {
            opacity: 0;
            transition: opacity 0.3s;
        }

        #status {
            margin: 10px;
            padding: 10px;
            background: #fff;
            border-radius: 8px;
            text-align: center;
        }

        #location {
            background: rgba(0, 0, 0, 0.1);
            color: white;
            font-size: 18px;
            padding: 10px 20px;
            border-radius: 20px;
            margin-bottom: 20px;
        }

        #permission-btn {
            padding: 12px 24px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            display: none;
        }
/*end compass */
/* start calender  */
        /* removed the rotating circle: hide the element so nothing spins */
        .background-pattern {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: none;
            /* circle removed as requested */
        }

        .container {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            padding: 40px 20px;
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
        }

        .islamic-decoration {
            font-size: 3em;
            margin-bottom: 20px;
            background: linear-gradient(45deg, var(--first-c), var(--second-c), #4facfe, #00f2fe);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradient-shift 3s ease infinite;
        }

        @keyframes gradient-shift {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        .main-title {
            font-family: 'Amiri', serif;
            font-size: 3em;
            font-weight: 700;
            color: white;
            text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
            margin-bottom: 15px;
        }

        .subtitle {
            font-size: 1.2em;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 300;
        }

        .calendar-wrapper {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 30px;
            align-items: start;
        }

        .calendar-container {
            background: var(--accent-1);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 30px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            /* use root colors for header gradient */
            background: linear-gradient(135deg, var(--first-c), var(--second-c));
            border-radius: 15px;
            color: white;
        }

        .nav-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            font-size: 1.2em;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .month-year {
            text-align: center;
            flex: 1;
        }

        .hijri-month {
            font-family: 'Amiri', serif;
            font-size: 1.8em;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .gregorian-month {
            font-size: 1em;
            opacity: 0.9;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
        }

        .day-header {
            text-align: center;
            font-weight: 600;
            padding: 15px 5px;
            background: var(--second-c);
            color: white;
            border-radius: 12px;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .day-cell {
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            background: #f8f9ff;
            border: 2px solid transparent;
        }

        .day-cell::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--first-c), var(--second-c));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .day-cell:hover::before {
            opacity: 0.08;
        }

        .day-cell:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--first-c);
        }

        .gregorian-date {
            font-size: 1.1em;
            font-weight: 600;
            color: #333;
            position: relative;
            z-index: 1;
        }

        .hijri-date {
            font-size: 0.8em;
            color: #666;
            margin-top: 2px;
            position: relative;
            z-index: 1;
        }

        .day-cell.today {
            background: linear-gradient(135deg, var(--first-c), var(--second-c));
            color: white;
            box-shadow: 0 15px 35px rgba(117, 25, 63, 0.35);
            transform: scale(1.05);
        }

        .day-cell.today .gregorian-date,
        .day-cell.today .hijri-date {
            color: white;
        }

        .day-cell.other-month {
            opacity: 0.3;
            pointer-events: none;
        }

        .info-panel {
            background: var(--accent-1);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 30px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            height: fit-content;
        }

        .current-date-display {
            text-align: center;
            margin-bottom: 30px;
            padding: 25px;
            background: var(--second-c);
            border-radius: 20px;
            color: white;
        }

        .current-hijri {
            font-family: 'Amiri', serif;
            font-size: 2em;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .current-gregorian {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .islamic-months {
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 1.3em;
            font-weight: 600;
            color: #f6f6f5;
            margin-bottom: 20px;
            text-align: center;
        }

        .months-grid {
            display: grid;
            gap: 10px;
        }

        .month-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
            border-radius: 12px;
            border-left: 4px solid var(--first-c);
            transition: all 0.3s ease;
        }

        .month-item:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .month-name-ar {
            font-family: 'Amiri', serif;
            font-weight: 600;
            color: #333;
        }

        .month-name-en {
            color: #666;
            font-size: 0.9em;
        }

        @media (max-width: 1200px) {
            .calendar-wrapper {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }

            .header {
                padding: 25px 15px;
                margin-bottom: 20px;
            }

            .main-title {
                font-size: 2.2em;
            }

            .subtitle {
                font-size: 1em;
            }

            .calendar-container,
            .info-panel {
                padding: 20px;
            }

            .calendar-header {
                padding: 15px;
                flex-wrap: wrap;
                gap: 15px;
            }

            .month-year {
                order: -1;
                width: 100%;
                margin-bottom: 10px;
            }

            .hijri-month {
                font-size: 1.5em;
            }

            .gregorian-month {
                font-size: 0.9em;
            }

            .nav-btn {
                width: 50px;
                height: 50px;
                font-size: 1.5em;
            }

            .calendar-grid {
                gap: 3px;
            }

            .day-header {
                padding: 10px 3px;
                font-size: 0.8em;
            }

            .day-cell {
                padding: 8px 2px;
                border-radius: 10px;
            }

            .gregorian-date {
                font-size: 0.95em;
            }

            .hijri-date {
                font-size: 0.65em;
                margin-top: 1px;
            }

            .current-hijri {
                font-size: 1.6em;
            }

            .current-gregorian {
                font-size: 1em;
            }

            .section-title {
                font-size: 1.2em;
            }

            .month-item {
                padding: 12px 15px;
            }

            .month-name-ar {
                font-size: 0.95em;
            }

            .month-name-en {
                font-size: 0.85em;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 20px 10px;
            }

            .main-title {
                font-size: 1.8em;
            }

            .subtitle {
                font-size: 0.9em;
            }

            .calendar-container,
            .info-panel {
                padding: 15px;
            }

            .calendar-header {
                padding: 12px;
            }

            .hijri-month {
                font-size: 1.3em;
            }

            .nav-btn {
                width: 45px;
                height: 45px;
                font-size: 1.3em;
            }

            .day-header {
                padding: 8px 2px;
                font-size: 0.75em;
            }

            .day-cell {
                padding: 6px 1px;
                min-height: 45px;
            }

            .gregorian-date {
                font-size: 0.9em;
            }

            .hijri-date {
                font-size: 0.6em;
            }

            .current-hijri {
                font-size: 1.4em;
            }

            .current-gregorian {
                font-size: 0.95em;
            }

            .islamic-months {
                margin-bottom: 20px;
            }

            .month-item {
                padding: 10px 12px;
            }
        }

        @media (max-width: 360px) {
            .main-title {
                font-size: 1.6em;
            }

            .calendar-grid {
                gap: 2px;
            }

            .day-cell {
                min-height: 40px;
                padding: 4px 1px;
            }

            .gregorian-date {
                font-size: 0.85em;
            }

            .hijri-date {
                font-size: 0.55em;
            }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }
/* end calender  */








@media (max-width: 579px) {

  .image h1 {
    font-size: 35px;
  }
        .mosque {
display: none;    
  }




   h1 {
    font-size: 25px !important;
    text-align: center !important;
  }

  .prayerTime .inputs {
    flex-direction: column;

  }
.prayerTime {
  padding: 50px 10px;
}

.prayerTime .inputs input, .prayerTime .inputs #getTime {
    padding: 10px !important;
    margin: 10px !important;
    width: 180px;
}
.container{
  margin-top: 150px;
}
#compass-container {
  width: 200px;
  height: 200px;
}


}                 /* Phones */
@media (min-width: 580px) and (max-width: 768px) {

  .image div {
                justify-content: center;
  margin: 0;
  }

.prayerTime .inputs {
  margin-bottom: 10px;
}
   
/* h1 {
    font-size: 25px !important;
    text-align: center !important;
  }

  .prayerTime .inputs {
    flex-direction: column;

  }


.prayerTime .inputs #city, .prayerTime .inputs #getTime {
    padding: 10px !important;
    margin: 0 !important;
    display: none;
} */


}  /* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {

  .image div {
                justify-content: center;
  margin: 30px 0 0;
  }


} /* Small laptops */
@media (min-width: 1025px) and (max-width: 1209px) {
  .mosque {
    max-height: 92vh;
        bottom: -91px;
        padding-left: 0;
     min-width: 180vh;
      padding: 0;
    }
    .image div {
                justify-content: center;
  margin: 30px 0 0;
  }
  
}/* Desktops */
@media (min-width: 1210px) and (max-width: 1499px) {
  .mosque {
    padding-left: 90px;
  }
    .image div {
                justify-content: center;
  margin: 30px 0 0;
  }
  .dakr {
    height: 100vh;
  }
}/* Large desktops */
@media (min-width: 1500px) {
  #countdownContainer{
  flex-wrap: wrap;
  display: flex;
  flex-direction: row;
    gap: 23px;
}
  .prayerTime #lead {
  flex-direction: row;

  display: flex;
  gap: 55px;
  flex-wrap: wrap;
}
    .mosque {
        bottom: -113px;
  }
  .dakr {
    height: 100vh;
  }
 }                /* Ultra-wide */



/* end media quries */


