* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url("images/wp4849535.jpg") no-repeat center/cover;
  overflow: hidden;
}


.api-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.api-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.api-box input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

.api-box button {
  padding: 8px 15px;
  cursor: pointer;
}


.container {
  position: relative;
  width: 400px;
  height: 100px;                 
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  overflow: hidden;              
  transition: height 0.6s ease;
}


.container.active {
  height: 450px;
}

.search-box {
  position: relative;
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  
}

.search-box i {
  position: absolute;
  left: 12px;
  font-size: 26px;
}

.search-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  outline: none;
  border-radius: 10px;
  font-size: 18px;
  color: #fff;
  padding: 0 45px;
  text-transform: uppercase;
}

.search-box input::placeholder {
  color: #fff;
  text-transform: capitalize;
}

.search-box button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.weather-box {
  text-align: center;
  margin-top: 40px;
  transform: translateY(120%);
  transition: transform 0.8s ease;
}

.container.active .weather-box {
  transform: translateY(0%);
}

.weather-box img {
  width: 120px;
}

.weather-box .temperature {
  font-size: 56px;
  font-weight: 700;
  margin: 10px 0 5px;

  display: flex;              
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}

.weather-box .temperature span {
  font-size: 28px;
  margin-top: 6px;            
}


.weather-box .description {
  font-size: 18px;
  text-transform: capitalize;
}


.weather-details {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  transform: translateY(120%);
  transition: transform 0.8s ease;
  transition-delay: 0.3s;
}

.container.active .weather-details {
  transform: translateY(0%);
}

.weather-details .humidity,
.weather-details .wind {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-details i {
  font-size: 42px;
}

.weather-details span {
  font-size: 28px;
  font-weight: 600;
}

.weather-details p {
  font-size: 15px;
  opacity: 0.85;
}


.not-found {
  text-align: center;
  margin-top: 40px;
  transform: translateY(120%);
  transition: transform 0.8s ease;
}

.not-found.active {
  transform: translateY(0%);
}

.not-found img {
  width: 65%;
}

.not-found p {
  margin-top: 10px;
  font-size: 20px;
}
