* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1e1e1e;
  font-family: "Poppins", sans-serif;
  font-size: clamp(14px, 2vw, 18px);
}

.container {
background: linear-gradient(to bottom right, #e0f7fa, #ffffff);
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  width: 40%;
  margin: 0 auto;
  margin-top: 2rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.weather_header {
  display: flex;
  justify-content: center;
  align-items: center;
}

input {
  background-color: #1e1e1e;
  color: #fff;
  border: none;
  outline: none;
  padding: 0.5rem 2.5rem;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
}

input::placeholder {
  color: #f7f7f7;
}

input:focus {
  border: 2px solid #00bfff;
  outline: none;
}

.weather_search {
  position: relative;
  justify-content: center;
  align-items: center;
}

.weather_search i {
  position: absolute;
  left: 14px;
  top: 9px;
  color: #fff;
  font-size: 16px;
}

.weather_body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3rem;
  font-size: 1.2rem;
  row-gap: 0.8rem;
}

.weather_icon {
  margin-top: 2.5rem;
  align-items: center;
  justify-content: center;
  color: #333;
}

.weather_icon > img {
  width: 6rem;
}

.weather_date_time {
  position: relative;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
} 

.weather_data {
  position: relative;
  justify-content: center;
  align-items: center;
}
.weather_data > p {
  border: 2px solid #1e1e1e;
  background-color: #1e1e1e;
  border-radius: 35px;
  color: #fff;
  position: absolute;
  left: 0.6rem;
  padding: 0.6rem;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 2rem; */
}

.weather_temperature {
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #000000;
}

.weather_minmax {
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather_minmax p {
  padding: 0 0.8rem;
  align-items: center;
  justify-content: center;
}

.weather_info {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .weather_info.weather_card {
  margin: 4rem 0;
} */
.weather_info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.weather_card {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 10px;
  border-radius: 0.8rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.weather_card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #f9f9f9;
}
.weather_card i {
  margin-right: 10px;
    font-size: clamp(16px, 2vw, 24px);
}

.center-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === RESPONSIVE DESIGN FOR SMALL SCREENS === */

@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .weather_body {
    margin: 2rem 0.5rem;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
  }

  .weather_temperature {
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
  }

  .weather_minmax p {
    font-size: 0.9rem;
    align-items: center;
    justify-content: center;
  }

  .weather_icon img {
    width: 5rem;
    align-items: center;
    justify-content: center;
  }

  .weather_card {
    flex-direction: row;
    align-items: flex-start;
    padding: 8px;
  }

  .weather_card i {
    font-size: 18px;
  }

  .weather_card p {
    font-size: 0.9rem;
  }

  .weather_search input {
    width: 100%;
    padding: 0.5rem 2rem;
    font-size: 1rem;
  }

  .weather_search i {
    font-size: 14px;
    top: 10px;
    left: 10px;
  }

  .weather_info {
    grid-template-columns: 1fr;
  }
}


