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

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.weather {
  width: 80%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: fadeIn 1s ease;
}

.search {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 16px;
  background-color: #ebfffc;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.search-btn {
  background: #ebfffc;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, background-color 0.3s ease;
  cursor: pointer;
}

.search-btn:hover {
  background: #d2f7f0;
  transform: scale(1.05);
}

.search-icon {
  width: 20px;
}

.weather-icon {
  width: 120px;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.weather-temp {
  font-size: 48px;
  font-weight: bold;
  margin: 10px 0;
}

.weather-city {
  font-size: 28px;
  margin-bottom: 20px;
}

.weather-details {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.detail-box {
  flex: 1;
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.detail-box:hover {
  transform: translateY(-5px);
}

.detail-box img {
  width: 28px;
  height: 28px;
}

.detail-box .text {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.detail-box .text p {
  margin: 0;
}

.detail-box .value {
  font-weight: 600;
  font-size: 16px;
}

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

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .weather-details {
    flex-direction: column;
  }

  .detail-box {
    justify-content: center;
  }
}
