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

body {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  background: radial-gradient(circle at top, #c2e9fb, #a1c4fd);
  min-height: 100vh;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px;
}

h1 {
  text-align: center;
  font-size: 42px;
  color: #0f172a;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  max-width: 720px;
  width: 100%;
  padding: 50px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

select {
  display: block;
  width: 100%;
  font-size: 18px;
  border-radius: 8px;
  padding: 12px;
  border: 2px solid #93c5fd;
  background: white;
  outline: none;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 18px 0;
  border-bottom: 1px dashed #ccc;
  transition: all 0.3s ease;
}

.city:last-child {
  border: none;
}

.city:hover {
  transform: translateY(-2px);
}

h2 {
  font-size: 26px;
  color: #1e3a8a;
}

.date {
  font-size: 16px;
  opacity: 0.7;
  color: #334155;
}

.time {
  font-size: 44px;
  font-weight: 600;
  color: #0f172a;
  transition: transform 0.3s ease, color 0.3s ease;
}

.time.updating {
  transform: scale(1.1);
  color: #2563eb;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flip {
  display: inline-block;
  font-family: "Orbitron", monospace;
  background: #0f172a;
  color: #00ffcc;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 #001a33, 0 4px 10px rgba(0, 0, 0, 0.2);
  transform-origin: bottom;
  transform: rotateX(0deg);
  transition: transform 0.5s ease-in-out;
}

.flip.flipped {
  transform: rotateX(-360deg);
}

.time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 38px;
  color: #00ffcc;
}

.time small {
  font-size: 16px;
  color: #2563eb;
  opacity: 0.9;
  letter-spacing: 1px;
}

footer {
  text-align: center;
  font-size: 16px;
  margin-top: 40px;
  opacity: 0.85;
}

footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1e40af;
}
