html {
  height: 100%;
}

* {
  margin: 2px;
  padding: 2px;
  box-sizing: border-box;
}

hr {
  border: 1px solid green;
  border-radius: 2px;
  background-color: green;
}

body {
  font: normal 0.9em "Trebuchet MS", Arial, sans-serif;
  background: #e6f9f5;
  color: #2a2a2a;
  line-height: 1.7em;
}

a:link,
a:visited {
  color: blue;
  text-decoration: none;
}

a:hover {
  color: green;
  text-decoration: underline;
  font-weight: bold;
}

a:active {
  color: red;
  text-decoration: underline;
}

table {
  border-collapse: separate;
  line-height: 105%;
  border-spacing: 10px; /* cellspacing */
  *border-collapse: expression("separate", cellSpacing = "10px");
}

table td,
table th {
  padding: 10px; /* cellpadding */
  line-height: 105%;
}

.column {
  float: left;
  padding: 10px;
  margin: 4px;
}

.left {
  width: 22%;
}

.right {
  width: 77%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Full-width sections */
#header,
#menubar,
#banner,
#footer {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#header {
  background: #002244; /* Darker blue for header */
  padding: 20px 0; 
  text-wrap: balance;
}

#header h1 {
  color: #ccccfe;
  font-size: 2.5em;
    text-wrap: balance;
}

#header h1 a {
  font-size: 1.4em;
    text-wrap: balance;
}

#header h1 .logo_colour {
  color: #99e6e6;
}

#header a {
  color: #88ffff; /* High contrast white */
  text-decoration: none;
  font-weight: bold;
}

#header a:hover {
  color: green;
  font-weight: bold;
}

/* Navigation Menu */
#menubar {
  background-color: #99e6e6;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul {
  padding-left: 18px;
}

ul#menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

ul#menu li {
  margin: 0 10px;
}

ul#menu li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 10px; /* Ensuring fully rounded buttons */
  background-color: #007d66;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

ul#menu li.selected a {
  background-color: #0099bb;
  color: #000;
  font-weight: bold;
}

ul#menu li a:hover {
  background-color: #003844;
  transform: scale(1.08); /* Slight zoom effect on hover */
  font-weight: bold;
}

/* Banner Image  can be banner.jpg or banner1.jpg */
#banner {
  background: url("banner1.jpg") no-repeat center;
  height: 130px;
  width: 700px;
  border-bottom: 10px solid #99e6e6;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* Content Area */

/*
#site_content {
  display: flex;
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}
*/

#site_content {
  display: flex;
  width: 100%;
  max-width: 1300px;
  flex-direction: row;
  align-items: top;
  align-content: top;
  justify-content: center;
  margin: 15px auto;
    flex-wrap: nowrap;
  gap: 3px;
}

#content {
  position: sticky;
  top: 2px;
  align-self: flex-start;
  flex: 0 0 75%;
  padding: 15px;
  margin-bottom: 5px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 4px 5px 7px rgba(0, 0, 0, 0.1);
  text-align: left;
      text-wrap: pretty;
}

/* Centering text for specific sections */
.center-text {
  text-align: center;
  margin-bottom: 20px;
        text-wrap: pretty;
}

/* Simplified Sidebar */
.sidebar_item {
  margin-left: 2px;
   margin-bottom: 5px;
  padding: 15px;
  background-color: #99e6e6;
  border-radius: 8px;
  box-shadow: 3px 4px 6px rgba(18, 41, 34, 0.331);
  text-align: left;
}

.sidebar_top {
}

.sidebar_container {
  align-self: flex-start;
  position: sticky;
   top: 0;
   flex: 0 1 25%;
}


@media (max-width: 800px) {
  /* Banner Image  can be banner.jpg or banner1.jpg */
#banner {
  background: url("banner1.jpg") no-repeat center;
  width: 100%;
  border-bottom: 10px solid #99e6e6;
}
  #site_content {
    flex-direction: column;
	width: 100%;
	max-width: 750px;
  }
  .sidebar_container {
  align-self: right;
   flex: 0 0 90%;
   position: static;
     margin-top: 10px;
  }
  #content {
  align-self: left;
     position: static;
  top: 2px;
  flex: 0 0 90%;
  padding: 25px;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
        text-wrap: pretty;
}
ul {
  padding-left: 10px;
}
ul#menu {
  list-style: none;
  display: flex;
  padding: 5px;
  margin: 5px;
}
ul#menu li {
  margin: 0 10px;
  width: 20%
}
}

/* Footer */
#footer {
  width: 100%;
  clear: both;
  background-color: #002244; /* Darker blue for footer */
  padding: 30px;
  color: #99e6e6;
  text-align: center;
}

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

#footer a:hover {
  color: #fff;
  font-weight: bold;
}
