@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.10/css/weather-icons.min.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(-45deg, #2c6cbc, #71c3f7, #f6f6f6);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
  background-position: top;
}

.wrapper {
  width: 300px;
  border-radius: 7px;
  background-color: #ffffff;
}

.wrapper .input-part {
  margin: 20px 25px 30px;
}

.input-part .info-txt {
  display: none;
  font-size: 17px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 7px;
  margin-bottom: 15px;
}

.info-txt.error {
  display: block;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}
.info-txt.pending {
  display: block;
  color: #0c5460;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
}

.input-part :where(input, button) {
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  font-size: 18px;
  border-radius: 7px;
}

.input-part input {
  text-align: center;
  border: 1px solid #bfbfbf;
  margin-bottom: 15px;
}

.input-part input:is(:focus, :valid) {
  border: 2px solid #43AFFC;
}

.input-part .separator {
  height: 1px;
  width: 100%;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.separator::before {
  content: "or";
  color: #ccc;
  font-size: 19px;
  padding: 0 15px;
}

.input-part button {
  color: white;
  cursor: pointer;
  background-color: #43AFFC;
}

.input-part button i {
  margin-right: 5px;
  font-size: 15px;
}



.wrapper .weather-part {
  margin: 30px 0 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.wrapper.active .weather-part {
  display: flex;
}

.weather-part img {
  max-width: 150px;
}
.weather-part .temp {
  display: flex;
  font-size: 64px;
  font-weight: 500;
}
.weather-part .temp .numb {
  font-weight: 600;
}

.weather-part .temp .deg {
  font-size: 30px;
  margin: 10px 5px 0 0;
  display: block;
}

.weather-part .weather {
  font-size: 18px;
  text-align: center;
  margin: -5px 20px 15px;
}

.weather-part .location {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.location i {
  font-size: 20px;
  margin-right: 5px;
}

.weather-part .bottom-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-details .column {
  width: 100%;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.column i {
  color: #000000;
  font-size: 30px;
  margin-right: 10px;
}

.details .temp, .humidity span {
  font-size: 18px;
  font-weight: 00;
  margin-top: -3px;
}

.details .temp .deg {
  margin: 0;
  font-size: 17px;
  padding: 0 2px 0 1px;
}

.details p {
  font-size: 13px;
  margin-top: -6px;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}