body {
  margin: 0;
  padding: 0;
  background: linear-gradient(#00172d,#134e9b,#ffb133);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  font-family: Arial;
  color: #fff;
}

.app-container {
  text-align: center;
  width: 90%;
  max-width: 900px;
  margin-top: 20px;
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

select, input, button {
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
}

button { background: orange; cursor: pointer; }
button:hover { background: #ff9800; }
.reset { background: #ff3b3b; }
.reset:hover { background: #e12525; }

.result-box {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  height: 430px;
  position: relative;
  background: rgba(255,255,255,0.14);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px;
}

.sun {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 40px yellow;
  animation: floatUp 3s ease-in-out infinite alternate;
}
.sunrise { background: radial-gradient(circle,#fff494,#ffa600); top: 60px; }
.sunset { background: radial-gradient(circle,#ff9e45,#ff4d00); top: 60px; }

@keyframes floatUp {
  from { transform: translate(-50%,10px); }
  to { transform: translate(-50%,-20px); }
}

.title { font-size: 22px; font-weight: bold; margin-top: 200px; }
.time, .date { font-size: 15px; margin-top: 6px; color:#eee; font-weight:bold; }

.loader-container.visible { display: flex; }
.loader-container.invisible { display: none; }
.loader {
  border: 8px solid #ddd;
  border-top: 8px solid orange;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: auto;
}
@keyframes spin { 100% {transform: rotate(360deg)} }