/* General body styling */
.header{
  display: flex;
  width: 100%;
}
.weather-body.dark-mode{
  background: linear-gradient(to right, #333435, #202222);
}
.weather-body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  margin: 0;
  padding: 0;
}
.dark-mode .weather-container{
  background: rgba(80, 79, 79, 0.9);
}


/* Container for the weather app */
.weather-container {
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  margin: 12rem auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease-in-out;
}

/* Header */
.weather-header {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}
.dark-mode .weather-header{
  color: #fff;
}

/* Search box */
.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-input {
  width: 70%;
  padding: 12px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  outline: none;
  background: #f5f5f5;
}

.search-button {
  padding: 12px;
  border: none;
  background: #0078ff;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.search-button:hover {
  background: #005ecb;
}

/* Weather card */
.weather-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.hidden {
  display: none;
}

/* City name and weather details */
.city-name {
  margin-top: 0;
  font-size: 24px;
  font-weight: bold;
  color: #222;
}

.temp,
.humidity,
.feels,
.time {
  font-size: 18px;
  margin: 10px 0;
  color: #444;
}

/* Back button */
.material-symbols-outlined {
  font-size: 3rem;
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.material-symbols-outlined:hover {
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* Toggle Button */
.toggle-btn {
  position: fixed;
  top: 10px;
  right: 20px;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 30px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;

  /* Centering the icon */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle theme style */
#toggleTheme {
  background: transparent;
  box-shadow: none;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click animation (subtle scaling effect) */
#toggleTheme:active {
  transform: scale(0.9);
  opacity: 0.7;
}

/* Dark mode effect */
.dark-mode #toggleTheme {
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click animation in dark mode */
.dark-mode #toggleTheme:active {
  transform: scale(0.9);
  opacity: 0.7;
}

.toggle-btn:hover {
  background: #0056b3;
}

