/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0 auto;
  background: #003400 url(images/tp_bg_25x25.gif) repeat;
  color: #FFFFFF;
  font-family: 'Georgia', 'Lucida Sans Unicode', sans-serif;
  line-height: 1.6;
}

/*--- Container for centering the content and making it responsive ---*/
#container {
  width: 90%; /* Responsive width */
  max-width: 800px; /* Maintain max-width for larger screens */
  margin: 0 auto; /* Centering the container */
}

#header {
  width: 100%; /* Make the header span the full width of the viewport */
}

#head_img {
  width: 100%; /* Make the image occupy 100% of its container's width */
  height: auto; /* Maintain aspect ratio by automatically adjusting height */
  display: block; /* Prevent whitespace below the image */
  margin: 0;
  padding: 0;
/*  float: left; */
}

#navigation {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 18px;
  text-align: center;
  background: url(images/navigation_bg.gif) no-repeat center;
  clear: both;
}

/*--- Main Section ---*/
#main {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #0a2b07;
  color: #fff; /* Maintain text color consistency */
}

.main_top {
  height: 34px;
  background: url(images/main_top.gif) no-repeat center;
}

.main_bg {
  background: url(images/main_bg.gif) repeat-y center;
}

#main p, #main p.sub1 {
  margin: 20px;
  line-height: 1.6;
  text-align: left;
  font-size: medium;
}

#main dl, #main dt, #main dd {
  margin-left: 30px; /* Consistent margin for definition list elements */
}

.main_bottom {
  height: 38px;
  background: url(images/main_btm.gif) no-repeat center;
}

#main h1, #main h2, #main h3 {
  margin: 20px;
}

#footer {
  text-align: center;
  font-size: 0.7em;
}

#footer p {
  margin: 0;
}

#footer img {
  border: 0;
}

/*--- Link Styling ---*/
a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #307c21;
}

/*--- Navigation Links ---*/
a.nav {
  margin: 0 15px;
  padding: 1px 20px;
  font-size: 14px;
  color: #FFFFFF;
  background-color: #0a2b07;
  font-weight: bold;
  text-align: center;
  border: 1px solid #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.nav:hover {
  color: #307c21;
  background-color: #003400;
}

/*--- Form Styles ---*/
form {
  margin: 0;
  padding: 0;
}

#form {
  margin: 20px 0 0 40px;
  width: 90%;
}

#form p {
  width: 100%;
  padding: 3px 0;
  line-height: 18px;
  background-color: #0a2b07;
}

fieldset {
  margin: 0;
  padding: 10px;
  border: 2px solid #307c21;
  color: #FFFFFF;
}

legend {
  padding: 5px;
  border: 2px solid #307c21;
  background-color: #0a2b07;
}

/* Input and Label Styles */
.normal input,
.normal textarea {
  margin: 5px 0 0 10px;
  padding: 5px;
  border: 1px solid #307c21;
  width: 100%;
}

.normal label {
  margin-right: 10px;
  padding-left: 5px;
}

.chkbox {
  margin: 5px 10px;
  line-height: 24px;
  background-color: #f7f7f7;
}

.chkbox label,
.chkbox input {
  margin: 5px;
}

#form p.buttons {
  background-color: #0a2b07;
  text-align: center;
}

.buttons input {
  margin: 5px;
  padding: 10px;
  background-color: #307c21;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttons input:hover {
  background-color: #003400;
}

/*--- Accessibility Enhancements ---*/
.underline {
  text-decoration: underline;
}
