html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at center, #0f1f25, #0a0f0f);
    color: #00ff99;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.weather-container {
    background: #1b1b1b;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 420px;
    width: 100%;
}
.weather-container {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 500px;
}
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffcc;
}

form {
    margin-top: 20px;
}

.input-group {
    display: flex;
    width: 100%;
}

#cityInput {
    flex: 1;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #00ffcc;
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: #111;
    color: #eee;
    outline: none;
}

button {
    padding: 0 1.2rem;
    background: #00ffcc;
    color: #111;
    border: none;
    border-radius: 0 10px 10px 0;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

button i {
    margin-right: 6px;
}

button:hover {
    background: #00ddaa;
}

.weather-card {
    margin-top: 2rem;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.weather-card i {
    font-size: 3rem;
    color: #00ffcc;
}

.weather-info h2 {
    font-size: 1.5rem;
    color: #fff;
}

.weather-info p {
    margin: 5px 0;
    font-size: 1.1rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hidden {
    display: none;
}
#spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 600px) {
  .wrapper {
    padding: 1rem;
  }

  .weather-container {
    padding: 1.5rem;
  }

  .input-group {
    flex-direction: column;
  }

  #cityInput {
    border-radius: 10px;
    border-right: 2px solid #00ffcc;
    margin-bottom: 10px;
  }

  button {
    border-radius: 10px;
    justify-content: center;
    padding: 0.8rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .weather-card {
    padding: 1rem;
  }

  .weather-card i {
    font-size: 2.5rem;
  }

  .weather-info h2 {
    font-size: 1.3rem;
  }

  .weather-info p {
    font-size: 1rem;
  }
  input, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
}