body {
  margin: 0 auto;
  padding: 0;
  font: 76% Verdana, Tahoma, Arial, sans-serif;
  background-color: #A9C569;
}

#wrap {
  background: #DCE8C1;
  color: #303030;
  margin: 0 auto;
  padding: 10px;
  width: 960px;
}

#header {
  clear: both;
  margin: 20px 0 20px;
  0;
  padding: 0;
  height: 45px;
  border-bottom: 4px solid #f0f0f0;
  width: 960px;
}

#header h1 {
  width: 450px;
  margin: 0 0 10px 0;
  float: left;
}

#header h1 a {
  text-decoration: none;
  color: #303030;
}

#header p {
  width: 500px;
  float: right;
  text-align: right;
  color: #303030;
  margin: 10px 0 10px 0;
  font-size: 0.8em;
  line-height: 1.2em;
}


#frontphoto {
  margin: 0 0 10px 0;
  border: 0;
}

#avmenu {
  clear: left;
  float: left;
  width: 150px;
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 0.9em;
}

#avmenu ul {
  list-style: none;
  width: 150px;
  margin: 0 0 5px 0;
  padding: 0;
  font-size: 1.1em;
}

#avmenu ul li ul {
  list-style: none;
  width: 140px;
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 1.1em;
}

#avmenu li {
  margin-bottom: 4px;
}

#avmenu li a {
  font-weight: bold;
  text-decoration: none;
  min-height: 20px;
  _height: 20px;
  color: #505050;
  display: block;
  padding: 6px 6px 10px 10px;
  background: #f4f4f4;
  border-left: 4px solid #cccccc;
}

#avmenu li a.current {
  font-weight: bold;
  text-decoration: none;
  color: #286ea0;
  display: block;
  padding: 6px 10px 6px 10px;
  background: #f4f4f4;
  border-left: 4px solid #cccccc;
}

#avmenu li a:hover {
  background: #eaeaea;
  color: #286ea0;
  border-left: 4px solid #286ea0;
}

.announce {
  margin: 10px 0 10px 0;
  padding: 10px;
  width: 130px;
  color: #505050;
  background-color: #f4f4f4;
  line-height: 1.3em;
}

#extras {
  float: right;
  width: 120px;
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 0.9em;
  line-height: 1.5em;
}

#extras p {
  margin: 0 0 1.5em 0;
}

#content {
  margin: 0 130px 20px 160px;
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  padding: 0 10px 0 10px;
  line-height: 1.6em;
  text-align: justify;
}

#content h2 {
  font-size: 1.5em;
  margin: 0 0 0.5em 0;
}

#content img {
  padding: 1px;
  display: inline;
  background: #cccccc;
  border: 4px solid #f0f0f0;
}

h3 {
  font-size: 1.3em;
  margin: 0 0 10px 0;
}

a {
  text-decoration: none;
  color: #286ea0;
}

a:hover {
  text-decoration: underline;
  color: #286ea0;
}

a img {
  border: 0;
}

#footer {
  clear: both;
  margin: 0 auto;
  padding: 10px 0 20px 0;
  border-top: 4px solid #f0f0f0;
  width: 960px;
  text-align: center;
  color: #808080;
  background-color: #fbfbfb;
  font-size: 0.9em;
}

#footer a {
  color: #808080;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

.left {
  margin: 10px 10px 5px 0;
  float: left;
}

.right {
  margin: 10px 0 5px 10px;
  float: right;
}

.textright {
  text-align: right;
}

.center {
  text-align: center;
}

.small {
  font-size: 0.8em;
}

.bold {
  font-weight: bold;
}

.hide {
  display: none;
}


.NewsSummary {
  padding: 0.5em 0.5em 1em 0;
  /* padding for the news article summary */
  margin: 0 0.5em 1em 0;
  /* margin to the bottom of the news article summary */
  border-bottom: 1px solid #ccc;
}


#forum .forum_title {
  font-weight: bold;
}

#forum .forum_link {
  font-size: .9em;
}

#forum a.forum_link {
  text-decoration: none;
}

#forum form textarea {
  border: 1px inset #eee;
  font-size: 1.1em;
  background-color: #ddd;
  width: 570px;
  height: 450px;
}

#forum table.forum_pagetable {
  width: 561px;
  margin: 0;
  padding: 0;
  border: 0;
}

table.forum_pagetable th {
  padding: 5px 5px 5px 5px;
}

table.forum_pagetable td {
  padding: 25px 1px 25px 1px;
}

table.forum_pagetable td.lastrow {
  padding: 5px 5px 5px 5px;
}

.forum_head_table {
  background-color: #cdc;
}

.forum_head_icon {
  width: 22px;
}

.forum_head_name {
  width: 82%;
  text-align: left;
}

.forum_head_count {
  width: 14%;
  text-align: center;
}

.forum_head_subject {
  width: 47%;
  text-align: left;
}

.forum_head_views {
  width: 14%;
  text-align: center;
}

.forum_head_info {
  width: 21%;
  text-align: center;
}

.forum_head_topic {
  font-weight: bold;
}

.forum_head_reply {
  text-align: right;
}

.forum_icon {
  vertical-align: top;
}

.forum_name {
  vertical-align: top;
}

.forum_count {
  text-align: center;
  vertical-align: top;
}

.forum_subject {
  vertical-align: top;
}

.forum_views {
  text-align: center;
  vertical-align: top;
}

.forum_info {
  width: 21%;
  font-size: .8em;
  text-align: center;
  vertical-align: top;
}

.forum_content {
  width: 66%;
  vertical-align: top;
}

.forum_edit {
  width: 13%;
  text-align: center;
  vertical-align: top;
}

.forum_bodypost {
  width: 79%;
  vertical-align: top;
}

#forum td.forum_alternate1 {
  background-color: #eed;
}

#forum td.forum_alternate2 {
  background-color: #eef;
}

.forum_pagination {
  font-size: .9em;
}

.forum_quote {
  padding: 0 7px;
  border: 1px solid #000;
  background-color: #dce;
}

.forum_center {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

#forum a.reply_link {
  font-size: .8em;
  text-decoration: none;
}

#forum span.reply_link {
  font-size: .8em;
}


.button {
  padding: 2px background:rgb(230, 230, 230);
  border: solid 1px #333333;
  text-align: center;
  color: #333333;
}

div.NewsSummary+div.NewsSummary+div.NewsSummary {
  border-bottom-style: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

div.NewsSummary+div.NewsSummary+div.NewsSummary div.NewsSummaryMorelink {
  display: none;
}

div#loadmore-wrapper {
  padding-top: 10px;
}

div#loadmore-wrapper .useful-links {
  margin-top: -20px;
  margin-left: -10000px;
}

#content img[style*="float: left"] {
  max-width: 160px;
}


/* --- MOBILE FRIENDLY ADDITIONS --- */
@media screen and (max-width: 960px) {

  /* Set the container to Flexbox column mode */
  #wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10px;
  }

  /* Assign the specific order requested */
  #frontphoto {
    order: 1;
    margin: 0 0 10px 0;
    width: 100%;
  }

  #header {
    order: 2;
    width: 100% !important;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
  }

  #content {
    order: 3;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px;
    border: none !important;
    text-align: left;
    box-sizing: border-box;
  }

  #avmenu {
    order: 4;
    width: 100% !important;
    float: none !important;
    margin: 10px 0;
  }

  #extras {
    order: 5;
    width: 100% !important;
    float: none !important;
    padding: 15px;
    box-sizing: border-box;
  }

  #footer {
    order: 6;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* Cleanup for Header inner elements */
  #header h1,
  #header p {
    float: none !important;
    width: 100% !important;
    text-align: center;
    margin: 5px 0;
  }

  /* Cleanup for Menu inner elements */
  #avmenu ul,
  #avmenu li {
    width: 100% !important;
  }

  /* Ensure images/iframes stay within screen bounds */
  img,
  iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix for the floated image inside the content in index.php */
  #content img[style*="float: left"] {
    float: none !important;
    display: block;
    margin: 0 auto 10px auto !important;
  }

  /* Make footer table stack vertically */
  #footer table,
  #footer tr,
  #footer td {
    display: block;
    width: 100% !important;
    text-align: center;
  }

  #footer td {
    padding: 5px 0;
  }

  .announce {
    width: 100% !important;
    box-sizing: border-box;
  }

  #home-content-title {
    text-align: center;
  }
}