@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --grey-light: #c4c4c4;
  --grey-dark: #9a9a9a;
  --black: #2c2c2c;
  --background-color: #fdfcfc;
  --box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  align-items: center;
  text-align: center;
}

.search {
  width: 327px;
  height: 46px;
  margin-top: 44px;
  display: flex;
  padding: 11px 20px;
  align-items: center;
  background-color: var(--background-color);
  border-radius: 15px;
  box-shadow: var(--box-shadow);
}

.search input {
  background-color: var(--background-color);
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  font-weight: 400;
  font-size: 15px;
}

.search input::placeholder {
  color: #c4c4c4;
}

.search button {
  background: 0;
  outline: 0;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}

.weather-icon {
  margin-top: 80px;
  height: 132px;
  width: 147px;
  margin-top: 91px;
}

.weather-icon img {
  width: 100%;
  height: 100%;
}

.location {
  margin-top: 31px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.location h2 {
  font-weight: 600;
  font-size: 30px;
  line-height: 45px;
  color: var(--black);
  text-align: center;
}

.temperature {
  color: var(--black);
  display: flex;
  margin-top: 16px;
}

.temperature h3 {
  font-weight: 500;
  font-size: 70px;
}

.temperature h3 sup {
  font-size: 50px;
}

.temperature span {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  right: 0;
  position: absolute;
  border: 2px solid #2c2c2c;
}

.info {
  margin-top: 20px;
  background-color: var(--background-color);
  width: 327px;
  height: 59px;
  display: flex;
  padding: 6px 20px 10px;
  justify-content: space-between;
  border-radius: 11px;

  box-shadow: var(--box-shadow);
}

.info .div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.info h3 {
  font-size: 12px;
  color: var(--grey-light);
  font-weight: 500;
}

.info p {
  font-size: 15px;
  color: var(--grey-dark);
}

.forecast {
  margin-top: 31px;
  width: 327px;
  background-color: var(--background-color);
  padding: 6px 20px 10px;
  border-radius: 11px;
  box-shadow: var(--box-shadow);
}

.forecast header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forecast header h3 {
  font-size: 18px;
  color: var(--grey-dark);
  font-weight: 600;
}

.forecast header img {
  width: 30px;
  height: 30px;
}

.forecast .forecast-days {
  margin-top: 31px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.forecast .forecast-days div {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.forecast .forecast-days div h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--grey-light);
}

.forecast .forecast-days div img {
  width: 32px;
  height: 32px;
  position: absolute;
  left: 60%;
}

.forecast .forecast-days div span {
  font-size: 15px;
  display: flex;
  align-items: center;
  color: var(--grey-dark);
}

@media (min-width: 820px) {
  .search {
    min-width: 700px;
  }
  .info {
    min-width: 700px;
  }
  .forecast {
    min-width: 700px;
  }
}

@media (min-width: 768px) {
  .search {
    min-width: 600px;
  }
  .info {
    min-width: 600px;
  }
  .forecast {
    min-width: 600px;
  }
}

@media (max-width: 280px) {
  body {
    padding: 0;
  }
  .search {
    max-width: 100%;
  }
  .info {
    width: 100%;
  }
  .forecast {
    max-width: 100%;
  }
}
