body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

header {
    background: #0077cc;
    color: #fff;
    padding: 15px;
    text-align: center;
}

nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

main {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

article {
    margin-bottom: 30px;
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

header {
    background: #0077cc;
    color: #fff;
    padding: 15px;
    text-align: center;
}

nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

main {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

article {
    margin-bottom: 30px;
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Added styles for form on add_post.php */
form {
    margin-top: 20px;
}

label {
    font-weight: bold;
}

input[type="text"],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

input[type="submit"] {
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #005fa3;
}

p {
    font-size: 14px;
}

.post-content {
  max-width: 700px; /* limits line width */
  margin: 40px auto;
  padding: 0 15px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.post-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #222;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: #0066cc;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 4px solid #ccc;
  margin: 20px 0;
  padding-left: 15px;
  font-style: italic;
  color: #555;
}

.cta-button {
  display: inline-block;
  background-color: #0099ff;
  color: white;
  padding: 12px 25px;
  margin: 25px 0;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #007acc;
}

/* Body and background */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff6f00, #ffb74d);
  color: #fff9f0;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Header styling */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-weight: 900;
  font-size: 36px;
  color: #ffcc80;
  letter-spacing: 3px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  font-family: 'Courier New', Courier, monospace;
  user-select: none;
}

nav a {
  margin: 0 15px;
  color: #fff9f0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd180;
}

.user-links p {
  margin-top: 10px;
  font-size: 14px;
}

.user-links a {
  color: #ffd180;
  text-decoration: none;
}

.user-links a:hover {
  text-decoration: underline;
}

/* Main content container with frosted glass effect */
main {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 30px 40px;
  max-width: 800px;
  margin: 0 auto 60px;
  box-shadow: 0 4px 30px rgba(255, 111, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #442e00;
}

/* Article styling */
article {
  margin-bottom: 40px;
  border-bottom: 1px solid #ffb74d;
  padding-bottom: 25px;
}

article h2 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 10px;
  color: #e65100;
}

article em {
  font-style: italic;
  color: #b37400;
  font-size: 14px;
}

article img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 10px;
}

/* Comment Section */
#comments {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 2px solid #ffb74d;
}

#comments h3 {
  color: #e65100;
  margin-bottom: 15px;
}

#comments textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
}

#comments input[type="submit"] {
  margin-top: 10px;
  padding: 12px 25px;
  background-color: #ef6c00;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#comments input[type="submit"]:hover {
  background-color: #bf360c;
}

#comments p a {
  color: #ffd180;
  text-decoration: none;
}

#comments p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  color: #ffcc80;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  header h1 {
    font-size: 28px;
  }

  article h2 {
    font-size: 24px;
  }
}