body {
  font-family: Arial, sans-serif;
  background-image: radial-gradient(lightblue, rgb(0, 119, 255));
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dark-mode {
  background-color: #121212;
  color: #fff;
}

header {
  text-align: center;
  margin-top: 20px;
}

h1 {
  font-size: 2.5rem;
}

.weather-section {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background-color: #b2abcc;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.weather-section img {
  border-radius: 24px;
}
#loading-spinner {
  font-size: 1.2rem;
  color: #007bff;
  display: none;
}

.search-box {
  margin-top: 20px;
}

#searchInput {
  padding: 10px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-right: 10px;
}

button {
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

#weather-icon {
  margin-top: 20px;
  width: 100px;
  height: 100px;
}

.news-section {
  margin-top: 50px;
  width: 90%;
  max-width: 800px;
}

.news-item {
  margin-bottom: 20px;
}

.news-item h3 {
  font-size: 1.2rem;
}

.news-item a {
  color: #007bff;
  text-decoration: none;
}

.news-item a:hover {
  text-decoration: underline;
}

#dark-mode-toggle {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #070416;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/* Dark Mode Styles */
body.dark-mode {
  background-color: #070416;
  color: #f1f1f1;
}

/* Dark mode for header */
body.dark-mode header {
  background-color: #070416;
  color: #fff;
}

/* Dark mode for weather section */
body.dark-mode .weather-section {
  background-color: #070416;
  color: #fff;
}

/* Dark mode for news section */
body.dark-mode .news-section {
  background-color: #070416;
  color: #fff;
}

/* Dark mode input and buttons */
body.dark-mode input,
body.dark-mode button {
  background-color: #070416;
  color: #fff;
  border: 1px solid #666;
}

/* Optional: dark mode for weather card */
body.dark-mode .weather-info {
  background-color: #070416;
  color: #fff;
}
