@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

body {
  direction: rtl;
  background: linear-gradient(135deg, #240165, #05001c);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: white;
}

.container {
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.city-container {
  margin-bottom: 30px;
}

#city-name {
  font-size: clamp(50px, 10vw, 120px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0px 5px 15px rgba(255, 255, 255, 0.1);
}

#date {
  font-size: 30px;
  font-weight: 300;
  color: #d0c2ff;
}

.next-prayer-box {
  margin-top: 30px;
  text-align: center;
  color: #f3eaff;
}

#next-prayer {
  font-size: 22px;
  color: #dcd0ff;
  font-weight: 500;
}

#countdown {
  font-size: 40px;
  letter-spacing: 2px;
  border-radius: 10px;
  display: inline-block;
  color: #fff;
}


.container hr {
  border: none;
  height: 2px;
  background-color: #4a2fa6;
  margin: 30px 0;
}

.prayer-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  animation: fadeIn 0.8s ease;
}

.card {
  width: 160px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.card .header {
  background: linear-gradient(45deg, #5709ee, #7a37bf);
  padding: 10px;
}

.card .header h2 {
  font-weight: 500;
  font-size: 22px;
}

.card .time {
  padding: 25px 0;
  font-size: 32px;
  font-weight: 400;
  color: #ffedff;
}

.city-select {
  margin-top: 40px;
}

.city-select select {
  width: 300px;
  border-radius: 25px;
  font-size: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid #7a37bf;
  outline: none;
  text-align: center;
  transition: 0.3s;
}

.city-select select:hover,
.city-select select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #b695ff;
}

.city-select select option {
  background-color: #3a1a78;
  color: #fff; 
  font-size: 18px;
  padding: 10px;
  border: none;
}


.city-select select option:checked {
  background-color: #7a37bf; 
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* حركة عند تغيير الوقت */
.animate-number {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.prayer-times .time h3 {
  transition: all 0.3s ease;
}
