/* -------------------- GLOBAL -------------------- */

body {
  font-family: "Poppins", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  background: linear-gradient(135deg, #b48cff, #8fa2ff, #ff9acb);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  margin: 0;
  padding: 40px 20px;
  color: #000;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  text-align: center;
  backdrop-filter: blur(6px);
}

h1 {
  font-size: 28px;
  color: #2d1b4e;
  margin-bottom: 25px;
}

/* -------------------- SELECT DROPDOWN -------------------- */

.city-selector {
  margin-bottom: 25px;
  text-align: left;
}

.city-selector label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #2d1b4e;
  margin-bottom: 8px;
}

.city-selector select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #b48cff;
  border-radius: 10px;
  font-size: 16px;
  transition: 0.3s;
  background: #e8d8ff;
  color: #2d1b4e;
}

.city-selector select:focus {
  border-color: #8f6bff;
  outline: none;
  box-shadow: 0 0 10px rgba(143, 107, 255, 0.5);
}

/* -------------------- HOMEPAGE CLOCKS -------------------- */

#homepage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* -------------------- SELECTED CITY -------------------- */

#selected-city {
  display: none;
  flex-direction: column;
  gap: 20px;
}

/* -------------------- CITY CARDS (Glow + Shimmer) -------------------- */

.city {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #d2b8ff, #b48cff);
  padding: 20px;
  border-radius: 15px;
  border-left: 6px solid #8f6bff;
  box-shadow: 0 0 12px rgba(143, 107, 255, 0.5);
  overflow: hidden;
  transition: 0.3s ease;
}

/* Hover glow pulse */
.city:hover {
  box-shadow: 0 0 20px rgba(143, 107, 255, 0.8);
  transform: translateY(-3px);
}

/* Shimmer animation */
.city::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* -------------------- CITY TEXT -------------------- */

.city-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.city-info h2 {
  margin: 0;
  font-size: 22px;
  color: #2d1b4e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date {
  font-size: 15px;
  color: #2d1b4e;
  margin: 0;
}

.time {
  font-size: 26px;
  font-weight: 700;
  color: #2d1b4e;
  text-align: right;
  min-width: 120px;
}

/* -------------------- BACK TO HOMEPAGE LINK -------------------- */

.back-home {
  display: none;
  margin-top: 20px;
  text-align: center;
  color: #4a2cff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* -------------------- FOOTER -------------------- */

footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 14px;
  color: #000;
  opacity: 0.8;
  font-weight: 700px;
}

footer a {
  color: #000;
  text-decoration: underline;
  font-weight: 700;
}

footer a:hover {
  opacity: 0.7;
}
