* {
  padding: 0;
  margin: 0;
  font-family: 'Baloo Bhai 2', cursive;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
}

.container {
  width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-header {
  text-align: center;
  margin-bottom: 20px;
}

.title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
}

.search-section {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

input::placeholder {
  color: #bbbbbb;
}

.btn {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #ffffff;
  border: none;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.weather-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}

.celsius {
  font-size: 40px;
  color: #ffffff;
}

.icon img {
  width: 100px;
  height: 100px;
}

.details {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  padding: 0 10px;
}

.left div,
.right div {
  margin: 10px 0;
  color: #f1f1f1;
}

/* ✅ Responsive for Mobile Devices */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 15px;
  }

  .title {
    font-size: 24px;
  }

  .search-section {
    flex-direction: column;
    gap: 12px;
  }

  input[type="text"] {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .weather-main {
    flex-direction: column;
    gap: 10px;
  }

  .celsius {
    font-size: 32px;
  }

  .icon img {
    width: 80px;
    height: 80px;
  }

  .details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0;
  }

  .left, .right {
    padding: 0;
  }
}
