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

body, html {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  width: 90%;
  max-width: 900px;
  height: auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.searchDiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 5px 20px;
}

#searchInput {
  width: 85%;
  padding: 10px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  text-transform: capitalize;
}

#searchInput:focus {
  outline: none;
}

#searchInput::placeholder {
  font-size: 16px;
  color: #777;
}

#searchBtn {
  color: black;
  font-size: 24px;
  margin: 0px 20px;
  cursor: pointer;
}

.weatherDetails {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.cityDetails {
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#displayWeather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

#displayWeather img {
  width: 100px;
}

#displayWeather div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#displayWeather h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

#displayWeather h2 {
  font-size: 24px;
}

.forcastDetails {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.forcastDetails h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.forcastDetails div {
  display: flex;
  gap: 15px;
  width: 100%;
}

.dayForcast {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 30px;
  border-radius: 15px;
  width: 80px;
}

.dayForcast h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.dayForcastTimeImg {
  width: 50px;
  margin-bottom: 10px;
}

#rightDiv h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

#rightDiv .sunDiv,
.conditionsDiv {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 20px;
}

#sunriseDiv, #sunsetDiv {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sunriseTime, #sunsetTime {
  font-size: 20px;
  margin-bottom: 10px;
}

.sunimage {
  width: 60px;
}

.conditionsDiv {
  display: flex;
  justify-content: space-around;
}

.conditionItem h4 {
  font-size: 18px;
}

.conditionItem p {
  font-size: 16px;
  margin-top: 5px;
}

@media (max-width: 500px) {
  main {
    width: 100%;
    flex-direction: column;
    padding: 10px;
  }

  .weatherDetails {
    flex-direction: column;
    align-items: center;
  }

  .cityDetails {
    width: 100%;
    margin-bottom: 20px;
  }

  #displayWeather {
    flex-direction: column;
  }

  .conditionsDiv {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}