body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 20px;
}
body {
  font-family: "Fredoka", sans-serif;
}
body {
  background: linear-gradient(to bottom, #fceaff, #f3f8ff);
}
.container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.city:nth-child(1) {
  background: #fff3f3;
}
.city:nth-child(2) {
  background: #eaf9ff;
}
.city:nth-child(3) {
  background: #f9f2ff;
}

h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 48px;
  text-align: center;
  color: #5b3cc4;
  margin-bottom: 30px;
  position: relative;
  animation: popIn 1s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

h1::after {
  content: " ⏰";
  font-size: 32px;
  animation: bounce 2s infinite;
  display: inline-block;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

select {
  display: block;
  margin: 0 auto 40px;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.city {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.city h2 {
  margin-top: 0;
  color: #3a3a3a;
  font-size: 24px;
}

.date {
  font-size: 16px;
  margin-bottom: 5px;
  color: #777;
}

.time {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
}

footer {
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
  color: #555;
}

footer a {
  color: #6c63ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
body.daytime {
  background: linear-gradient(to bottom, #fff7d6, #d6f4ff); /* pastel sunrise */
  transition: background 1s ease;
}

body.nighttime {
  background: linear-gradient(to bottom, #1e1e3f, #3a2f60); /* soft night */
  transition: background 1s ease;
  color: #f0f0f0;
}

.stars {
  background: url("https://www.transparenttextures.com/patterns/stardust.png"); /* optional subtle star layer */
  background-repeat: repeat;
  opacity: 0.3;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}
.back-home {
  text-align: center;
  margin-top: 20px;
}

#home-link {
  font-size: 18px;
  color: #8860d0;
  text-decoration: none;
  font-weight: bold;
}
#home-link:hover {
  text-decoration: underline;
}
