/* --- Basic Page Setup --- */
body {
    font-family: Tahoma, sans-serif;
    background-color: rgb(213, 249, 203);
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Layout --- */
.container {
    max-width: 900px;  /* Set a max width for your content */
    margin: 0 auto;    /* This is the modern way to center the page */
    padding: 10px;
    background-color: #fff; /* Give content a white background */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Optional: nice little shadow */
}

/* Center all content inside the header and footer */
header, footer {
    text-align: center;
}

footer {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 0.9em;
}

/* --- Typography --- */
h1 {
    font-size: 21px;
    font-family: Arial, sans-serif;
    text-align: center;
    color: #333;
}

h2 {
    font-family: Arial, sans-serif;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* --- Navigation --- */
.main-link {
    text-align: center;
    margin: 25px 0;
}
.main-link a {
    font-size: 1.2em;
    padding: 10px 15px;
    background-color: #088A4B;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
.main-link a:hover {
    background-color: #0B6138;
}

/* --- Forum SSI Styles --- */

/* Style the wrapper for the PHP includes */
.forum-feed,
.online-users {
    margin-top: 20px;
    padding: 10px;
    border: 1px dotted #aaa;
    border-radius: 5px;
}

/* These are the styles you had for the SMF forum table output */
.ssi_table {
    font-size: 14px;
    width: 100%; /* Make the SSI table fill its container */
}

/* Responsive styles for the forum table on small screens */
@media (max-width: 768px) {
    .ssi_table {
        font-size: 12px;
    }
    
    h1 {
        font-size: 18px;
    }
}

/* ===== Styles for Contact Form ===== */

.contact-form {
  max-width: 600px; /* Set a max width for the form */
  margin: 0 auto;   /* Center the form */
}

.form-group {
  margin-bottom: 20px; /* Space between form fields */
  text-align: left; /* Keep labels left-aligned */
}

.form-group label {
  display: block; /* Make label appear on its own line */
  font-weight: bold;
  margin-bottom: 5px;
}

/* This makes the text boxes and text area look good */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%; /* Make fields fill the container */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 1em;
  box-sizing: border-box; /* Important for 100% width */
}

.form-button {
  background-color: #088A4B; /* A nice green color */
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
}

.form-button:hover {
  background-color: #0B6138; /* A darker green */
}

/* Styles for the success/error messages */
.form-success {
  background-color: #D0F0C0; /* Light green */
  border: 1px solid #088A4B;
  color: #0B6138;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: left;
}

.form-error {
  background-color: #F8D7DA; /* Light red */
  border: 1px solid #721C24;
  color: #721C24;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: left;
}