
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  padding: 20px;
  color: #333;
  text-align: center;
}

/* Wrapper to center content */
.container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left; 
}

/* Heading */
h1, h2{
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
}

/* Post list and detail layout */
#post-list, #post-detail {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: left;
}

/* Individual post */
.post {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 4px solid #3498db;
  background-color: #ecf0f1;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
}

.post:hover {
  background-color: #d0eaf7;
}

.post h3 {
  margin-bottom: 5px;
  color: #2980b9;
}

.post img {
  margin-top: 10px;
  max-width: 100%;
  max-height: 150px;
  border-radius: 5px;
  object-fit: cover;
}

/* Post detail image */
#post-detail img {
  max-width: 100%;
  max-height: 300px;
  margin: 10px auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

/* Form styling */
form {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

form button {
  margin-top: 15px;
  padding: 12px 20px;
  background-color: #3498db;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease-in-out;
}