body{
  background-color: #0f0f0f;
  color: blue;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
header {
  text-align: center;
  padding: 20px;
}

h1{
  color: #00bccd4;
  margin-bottom:10px;
}

#clock{
  font-size: 1.1rem;
  color: #aaa;
}
.weather-box{
  margin-top: 15px;
}
.weather-box button{
  padding: 6px 10px;
  border-radius: 20px;
  border-radius: none;
  background-color: #00bcd4;
  color: #fff;
  cursor: pointer;
  margin-left: 5px;
  transition: background 0.3;
}

.weather-box button:hover{
  background-color: #0098b3;
}

#weather {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ccc;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #161616;
  padding: 10px;
  gap: 8px;
  margin-top: 15px;
}

.category{
  background: #222;
  color: #00bcd4;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition:pointer;
  transition: 0.3;
}
.category:hover{
  background-color: yellowgreen;
  color: #fff;
  transform: scale(1.05);
}
.category:active{
  background-color: #00bcd4;
  color: #fff;
}
#news{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 15px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.news-card{
  background-color: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0  0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3 ease;
}

.news-card:hover {
transform: translateY(-5px);
}

.news-card img{
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-content h3 {
  color: #00bcd4;
  font-size: 1rem;
  margin-bottom: 6px;
}

.news-content p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.news-content a {
  color: #fff;
  background-color: #00bcd4;
  padding: 4px 8px;
  border-radius: 5px;
  text-decoration: none;
}

.news-content a:hover {
  background-color: #0098b3;
}
