body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.background-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.container {
  background: rgba(255,255,255,0.95);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  width: 350px;
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.mascot {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.handwritten {
  font-family: 'Pacifico', cursive;
  font-size: 2.1rem;
  color: #fda085;
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
}

.greeting {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 1.2rem;
  margin-top: 0;
  font-style: italic;
}

form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

input[type="text"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid #66a6ff;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(102,166,255,0.08);
}
input[type="text"]:focus {
  border: 1.5px solid #fda085;
  box-shadow: 0 2px 8px rgba(253,160,133,0.12);
}

button {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(90deg, #66a6ff 0%, #89f7fe 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102,166,255,0.12);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
button:hover {
  background: linear-gradient(90deg, #fda085 0%, #f6d365 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(253,160,133,0.18);
}

.spinner {
  border: 4px solid #e3e3e3;
  border-top: 4px solid #66a6ff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 1.5rem auto;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.weather-card {
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(253,160,133,0.12);
  padding: 1.5rem 1rem 1rem 1rem;
  margin-top: 1rem;
  animation: fadeIn 0.7s;
  transition: box-shadow 0.2s, transform 0.2s;
}
.weather-card:hover {
  box-shadow: 0 8px 32px rgba(253,160,133,0.22);
  transform: translateY(-3px) scale(1.01);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.weather-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

#weatherIcon {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem;
}

.description {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 0.7rem;
  text-transform: capitalize;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
}

.weather-fact {
  margin-top: 1.1rem;
  background: #fffbe7;
  color: #b47b00;
  border-left: 4px solid #fda085;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(253,160,133,0.08);
  min-height: 40px;
}

.date-time {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.2rem;
}

.error {
  color: #d8000c;
  background: #fff0f0;
  border: 1px solid #ffd2d2;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-top: 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(216,0,12,0.04);
}

.hidden {
  display: none;
}

footer {
  margin-top: 2.5rem;
  text-align: center;
  color: #333;
  font-size: 1rem;
  z-index: 2;
  position: relative;
}
footer a {
  color: #66a6ff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
footer a:hover {
  color: #fda085;
}
footer span {
  font-size: 1.1em;
  vertical-align: middle;
}