* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gradientBG 10s ease infinite;
  color: #fff;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.input-group {
  margin-bottom: 30px;
}

#input {
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  outline: none;
  width: 250px;
  margin-right: 10px;
}

#button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #00c6ff;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

#button:hover {
  background-color: #0078a8;
}

.weather-card {
  border-radius: 20px;
  padding: 30px 40px;
  display: inline-block;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 500px;
  min-height: 250px;
  position: relative;
  animation: floatTogether 4s ease-in-out infinite;
}

@keyframes floatTogether {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.weather-info {
  padding: 120px;
  border-radius: 15px;
}

.weather-info h1 {
  font-size: 2.2rem;
  color: #ffffff;
}

.weather-info h3 {
  font-size: 1rem;
  color: #cccccc;
  margin-top: 10px;
}

.weather-info h2 {
  font-size: 1.5rem;
  color: #000000;
  margin-top: 10px;
}

.weather-info p {
  font-size: 1rem;
  color: #fffcfb;
  margin-top: 10px;
}

/* ============================== */
/* 📱 Mobile Devices (max 480px)  */
/* ============================== */
@media (max-width: 480px) {
  .title {
    font-size: 1.8rem;
  }

  #input {
    width: 80%;
    margin: 10px 0;
  }

  #button {
    width: 70%;
  }

  .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .weather-card {
    min-width: 90%;
    padding: 20px;
  }

  .weather-info {
    padding: 40px 20px;
  }

  .weather-info h1 {
    font-size: 1.5rem;
  }

  .weather-info h2 {
    font-size: 1.2rem;
  }

  .weather-info h3,
  .weather-info p {
    font-size: 0.9rem;
  }
}

/* ============================== */
/* 📲 Tablets (max 768px)         */
/* ============================== */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  #input {
    width: 60%;
  }

  .weather-card {
    min-width: 85%;
    padding: 25px;
  }

  .weather-info {
    padding: 60px;
  }
}

/* ============================== */
/* 💻 Small Laptops (max 1024px) */
/* ============================== */
@media (max-width: 1024px) {
  .weather-card {
    min-width: 70%;
  }

  #input {
    width: 250px;
  }

  .weather-info {
    padding: 80px;
  }
}
