body {
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  color: #000;
  margin: 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.controls input, .controls button {
  padding: 0.7rem;
  margin: 0.5rem 0.25rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
}

button:hover {
  background-color: #0056b3;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.news {
  margin-top: 1rem;
  text-align: left;
}

.article {
  background: #f9f9f9;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.article img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

body.dark {
  background: #121212;
  color: #eee;
}

body.dark .container {
  background: #1e1e1e;
}

body.dark .article {
  background: #2a2a2a;
}

body.dark button {
  background-color: #333;
}

body.dark button:hover {
  background-color: #444;
}

@media (max-width: 600px) {
  .controls input {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .controls {
    flex-direction: column;
    display: flex;
    align-items: center;
  }
}
