/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1e2a2a, #000);
  color: white;
}

header, footer {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

button {
  background: #5b7065;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: #4e5e54;
}

/* Home Layout */
.home button {
  width: 220px;
  font-size: 1.1rem;
}

/* Blog Posts */
.post {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  max-width: 600px;
  width: 100%;
}

/* Weather Page */
.weather #weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.weather #icon {
  width: 100px;
  height: 100px;
}

/* To-Do Checklist */
.checklist {
  align-items: stretch;
  width: 90%;
  max-width: 500px;
  margin: auto;
}

.todo-input {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.todo-input input {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

#tasks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

#tasks-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
}

#tasks-list li.completed span {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Responsive */
@media(max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  button {
    font-size: 0.95rem;
  }
}
