body {
  font-family: "Arial", sans-serif;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

.dark-mode body {
  background-color: #333333;
  color: #ffffff;
}

.dark-mode {
  background-color: #333333;
  color: #ffffff;
}

.weather-container {
  text-align: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.dark-mode .weather-container {
  background-color: #333333;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

h1 {
  color: #333333;
}

.dark-mode h1 {
  color: #ffffff;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.toggle-label {
  margin-left: 10px;
  color: #333333;
}

.dark-mode .toggle-label {
  color: #ffffff;
}

.search-container {
  margin-bottom: 20px;
}

input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 200px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #4caf50;
  color: #ffffff;
  border: none;
  border-radius: 5px;
}

.weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.city,
.temperature,
.description,
.wind,
.clouds {
  margin-top: 10px;
  color: #333333;
}

.dark-mode .city,
.dark-mode .temperature,
.dark-mode .description,
.dark-mode .wind,
.dark-mode .clouds {
  color: #ffffff;
}

.additional-info {
  display: flex;
  justify-content: space-around;
}

.icon img {
  width: 100px;
  object-fit: contain;
  height: 100px;
  background-color: #ffffff;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dark-mode .icon img {
  background-color: #333333;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}
