* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.profile
{
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.profile img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(105, 86, 227, 0.5);
    transition: transform 0.3s ease-in-out;

}

.profile img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(105, 86, 227, 0.7);

}


body {
  background: linear-gradient(135deg, #00feba, #5b548a);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 470px;
  background: linear-gradient(135deg, #00feba, #5b548a);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 40px 35px;
  text-align: center;
}

.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.search input {
  flex: 1;
  padding: 10px 20px;
  height: 50px;
  border: none;
  border-radius: 30px;
  background: #ebfffc;
  color: #555;
  font-size: 16px;
}

.search button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #ebfffc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search button img {
  width: 18px;
}

.weather-icon {
  width: 150px;
  margin-top: 30px;
}

.weather h1 {
  font-size: 64px;
  font-weight: 500;
}

.weather h2 {
  font-size: 32px;
  font-weight: 400;
  margin-top: -10px;
}

.details {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 45%;
}

.col img {
  width: 40px;
}

.humidity, .wind {
  font-size: 24px;
  font-weight: 500;
}

.weather {
  display: none;
}

.error {
  text-align: left;
  font-size: 14px;
  margin-top: 10px;
  color: #ff4444;
  display: none;
}

@media screen and (max-width: 480px) {
  .profile {
    top: 10px;
    right: 10px;
  }

  .search input {
    font-size: 14px;
    padding: 10px 15px;
  }

  .search button {
    width: 45px;
    height: 45px;
  }

  .weather h1 {
    font-size: 48px;
  }

  .weather h2 {
    font-size: 24px;
  }

  .details {
    flex-direction: column;
    align-items: center;
  }

  .col {
    justify-content: center;
  }
}