@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #1c1c1c, #2e2e2e);
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#box {
  background: rgba(30, 30, 30, 0.95);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 120, 215, 0.4);
  text-align: center;
  width: 340px;
  color: #f1f1f1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 28px rgba(0, 120, 215, 0.6);
}

.search-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

input {
  padding: 12px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #555;
  flex: 1;
  outline: none;
  background: #222;
  color: #eee;
}

input:focus {
  border: 1px solid #00aaff;
  box-shadow: 0 0 6px rgba(0,170,255,0.4);
}

button {
  padding: 12px 18px;
  cursor: pointer;
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: #005fa3;
  transform: scale(1.05);
}

h2 {
  margin-bottom: 18px;
  font-weight: 600;
  color: #ffffff;
}

h3 {
  margin-top: 20px;
  font-weight: 500;
  color: #cccccc;
}

#result, #localTemp {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 15px;
  color: #00aaff;
}

/* From Uiverse.io by mrpumps31232 */
.loading-wave {
  width: 300px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.loading-bar {
  width: 20px;
  height: 10px;
  margin: 0 5px;
  background-color: #3498db;
  border-radius: 5px;
  animation: loading-wave-animation 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.loading-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.loading-bar:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes loading-wave-animation {
  0% { height: 10px; }
  50% { height: 50px; }
  100% { height: 10px; }
}