* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 1.5s ease-in-out;
}

.weather-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


h1 {
  font-size: 36px;
  font-weight: 700;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 15px;
}

h2 {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 30px;
}

.search-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

#city-input {
  flex: 1;
  min-width: 200px;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  outline: none;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
  padding: 14px 18px;
}

#geo-btn,
#search-btn{
  padding: 14px 20px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

#geo-btn:hover,
#search-btn:hover {
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  transform: scale(1.12);
}

.weather-info {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  width: 100%;  
  max-width: 500px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 25px;
  transition: all 0.4s ease;
}

.weather-info:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.weather-info p {
  font-size: 20px;
  margin: 10px 0;
}

#city-name {
  font-weight: 500;
}

#temperature {
  font-weight: bold;
  color: #ffeb3b;
}

#weather-description {
  text-transform: capitalize;
}

.forecast {
  margin-top: 40px;
  text-align: center;
}

.forecast h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: bold;
}

.forecast-days {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.day-card {
  background-color: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 140px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.day-date, 
.day-temperature, 
.day-description {
  font-size: 15px;
  margin-bottom: 5px;
}

.day-weather-icon img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.lab13-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}


#toggle-temp, 
#refresh-btn,
#add-fav-btn {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(45deg, #36d1dc, #5b86e5);
  border: none;
  border-radius: 40px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

#toggle-temp:hover, 
#refresh-btn:hover,
#add-fav-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #5b86e5, #36d1dc);
}


.favorites-box {
  margin-top: 30px;
  padding: 15px;
  border: 2px dashed #fff;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
}

.favorites-box h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

#favorite-list {
  list-style: none;
}

.fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.fav-item:hover {
  background-color: #e8f0ff;
}

.fav-name {
  font-weight: bold;
  cursor: pointer;
  color: #007bff;
}

.fav-name:hover {
  text-decoration: underline;
}

.fav-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: #d9534f;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fav-remove:hover {
  transform: scale(1.2);
  color: #c9302c;
}

@media (max-width: 768px) {
  .weather-box,
  .weather-info {
    width: 90%;
  }

  .search-box {
    flex-direction: column;
  }

 #geo-btn,
 #search-btn {
  width: 100%;
 }

 .lab13-features {
  flex-direction: column;
 }

 .day-card {
  width: 45%;
 }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }
   
  .day-card {
    width: 100px;
  }
}