* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 100px;
  padding-bottom: 60px;
  flex-direction: column;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #38b000, #70e000);
  padding: 20px;
  text-align: center;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-title {
  color: #fff;
  font-size: 26px;
  font-weight: bold;
}

.container {
  width: 400px;
  background-color: #ffffffcc;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.search-box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-box input {
  width: 84%;
  font-size: 18px;
  text-transform: capitalize;
  color: #333;
  background-color: #e0f7fa;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 4px #ccc;
}

.search-box input::placeholder {
  color: #444;
}

.search-box button {
  width: 46px;
  height: 46px;
  background-color: #00b4d8;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: 0.3s;
}

.search-box button:hover {
  background-color: #0077b6;
}

.weather-body {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-block: 20px;
  animation: fadeIn 0.5s ease-in;
}

.weather-icon {
  font-size: 100px;
  color: #0077b6;
  margin-bottom: 20px;
}

.weather-box {
  margin-block: 20px;
  text-align: center;
}

.weather-box .temperature {
  font-size: 42px;
  font-weight: 800;
  color: #333;
}

.weather-box .temperature sup {
  font-size: 20px;
  font-weight: 600;
}

.weather-box .description {
  font-size: 20px;
  font-weight: 600;
  color: #555;
  text-transform: capitalize;
}

.weather-details {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  color: #333;
}

.humidity, .wind {
  display: flex;
  align-items: center;
}

.humidity {
  margin-left: 20px;
}

.wind {
  margin-right: 20px;
}

.weather-details i {
  font-size: 36px;
  color: #38b000;
}

.weather-details .text {
  margin-left: 10px;
  font-size: 16px;
}

.text span {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.location-not-found {
  margin-top: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.location-not-found h1 {
  font-size: 20px;
  color: #8b0000;
  margin-bottom: 15px;
}

.location-not-found img {
  width: 80%;
}

.footer {
  background-color: #444;
  padding: 10px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.footer-text {
  color: #fff;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 480px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  .header-title {
    font-size: 20px;
  }

  .search-box input {
    font-size: 16px;
  }

  .search-box button {
    font-size: 18px;
  }

  .weather-box .temperature {
    font-size: 32px;
  }

  .weather-box .description {
    font-size: 16px;
  }

  .weather-details .text {
    font-size: 14px;
  }

  .footer-text {
    font-size: 12px;
  }
}
