/***************************************************
   HTML Element Styles
 ***************************************************/
html {
  width: 100%;
  height: 100%;
}
body {
  margin: 0;  
  text-align: center;
  font: 0.62em verdana, arial, sans-serif;  
  line-height: 170%;
  color: #FFFFCC;
  background: #585858 url(images/bg_body.jpg) repeat-y top center;
}
p { 
  padding-top: 10px !important;
  padding-top: 3px;
  padding-bottom: 10px !important;
  padding-bottom: 3px;
}
a {
  color: white;
  text-decoration: none;
  text-transform: none;
}
a:visited {
  color: white;
  text-decoration: none;
  text-transform: none;
}
a:hover {
  color: #86E160;
}
textarea {
  width: 98%;
  padding: 1px 3px;
  margin: 5px 0;
  font: 1em verdana, arial, sans-serif;
  color: #EEE;
  background-color: #777;
  border: 1px solid #999;
}
h1 {
	clear: both;
	margin: 0;
	font: 700 1em verdana, sans-serif;
	text-align: left;
	color: #FFC;
	background: #686868 url(images/rounded_tr.gif) no-repeat top right;
	padding-left: 25px;
}
h1 span {
  display: block;
  padding: 2px;
  background: url(images/rounded_br.gif) no-repeat bottom right;
}
h2 {
	clear: both;
	margin: 0;
	font: 1em verdana, sans-serif;
	text-align: right;
	color: #CF6;
	background: #686868 url(images/rounded_br.gif) no-repeat bottom right;
	font-weight: normal;
	font-style: italic;
	padding-right: 15px;
}
h3 {
  clear: both;
  margin: 0;
  display: block;
  font: 400 1.6em verdana, sans-serif;
  text-align: right;
  padding: 0.6em 55px 0.6em 55px;
  margin-left: 0.5em;
  background: url(images/logo_trianism.png) no-repeat right;
}
#sideBar h1 {
  background: #686868 url(images/rounded_tl.gif) no-repeat top left;
    font: 0.8em verdana, arial, sans-serif;
}
#sideBar h1 span {
  display: block;
  padding: 2px;
  background: url(images/rounded_bl.gif) no-repeat bottom left;
}
#content ol li { 
  color: #9BE4FF;
}
#content ol li span {
  color: #EEE;
}
#content ul {
  padding-bottom: 10px;
}

#content ul li {
  list-style-image: url(images/bullet.gif);
}
blockquote {  
  margin: 0;
  background: #686868 url(images/rounded_tr.gif) no-repeat top right;
} 
blockquote span {
  display: block;
  padding: 5px;
  background: url(images/rounded_br.gif) no-repeat bottom right;
}
:link img {
  border: none;
}
/***************************************************
  Layout Element Styles
 ***************************************************/
#header {  
  width: 100%;
  height: 3em;
  background: #585858 url(images/bg_header.jpg) repeat-y top center;  
}

/***************************************************
  Header Menu
 ***************************************************/

#menu {
  width: 767px;
  margin: 0 auto;
  text-align: left;  
}
#menu ul {
  margin: 0;
  font-weight: bold;
  padding: 0;
  line-height: normal;  
}
#menu ul li {
  width: 7.5em;
  display: inline;
  font-weight: bold;
  float: left;
  padding-top: 0.8em;  
  list-style: none;
  text-align: center;
}
#menu ul li a {
  display: block;
  text-decoration: none;
  padding-bottom: 1.0em;
  color: #003300;
}
#menu ul li a.active {
  color: #700000;
  background: url(images/menu_tab.gif) no-repeat bottom center;
}
#menu ul li a:hover {
  font-weight: bold;
  color: #FFFFCC;
  background: url(images/menu_tab.gif) no-repeat bottom center;
}


/***************************************************
  Site Title
 ***************************************************/

#title {
  padding: 0.6em 55px 0.6em 0;
  margin-right: 0.5em;
  float: right;
  background: url(../images/logo_equilitri.png) no-repeat top right;
}
#title h1 {
  display: inline;
  color:  #222;
  background-color: #86E160;
  background-image: none;
}
#slogan {
  padding: 0.6em 55px 0.6em 0;
  margin-right: 0.5em;
  float: right;
  background: url(../images/logo_equilitri.png) no-repeat top right;
}
#slogan h1 {
  display: float;
  margin-top: -5px;
  margin-bottom: -1px;
  margin-right: -10px;
  color:  #222;
  text-transform: none;
  text-align: right;
  background-color: #86E160;
  background-image: none;
}
/***************************************************
 Page Content
 ---------------------------------------------------
 1. Left side text
 2. Dropdown image
 3. Right side bar 
 4. Tables
 ***************************************************/
#content {  
  clear: both;
  font: 1.5em verdana, arial, sans-serif;
  width: 767px;
  margin: 0 auto;
  text-align: left;
}
#text {
  float: left;
  width: 410px !important;
  width: 437px;
  padding: 10px 5px 20px 20px !important;
  padding: 20px 5px 20px 20px;
}
#image {
  float: left;
  width: 165px; 
  height: 128px; 
  vertical-align: top;
  border: 0px;
}
#thumb {
  float: left;
  width: 165px; 
  height: 128px;
  border: 0px;
}
#sideBar {
  float: right;
  width: 145px !important;
  width: 160px;
  padding: 10px 15px 20px 0 !important;
  padding: 20px 15px 20px 0;
}

/***************************************************
 Sidemenu Styles
 ***************************************************/

.sideMenu {
  padding: 10px 0;
}
.sideMenu a {
  display: block;
  text-align: right;
  text-decoration: none;
  margin-bottom: 1px;  
}
.sideMenu a span {
  display: block;
  padding: 1px;
}
.sideMenu a:hover {
  background: #686868 url(images/rounded_tl.gif) no-repeat top left;
}
.sideMenu a:hover span {
  background: url(images/rounded_bl.gif) no-repeat bottom left;
}

/***************************************************
 Comment Styles
 **************************************************/

#comments p {
  font: 0.9em verdana, arial, sans-serif;
  padding: 0px;
  vertical-align: middle;
  margin: 0px;
  border: 0px;
  line-height: 110%;
  text-align: center;
  	background-image: url('images/rounded_m.gif');
}
#comments p span.author {
  display: block;
  margin-top: 1px;
  text-align: center;
  font-weight: 700;
}
#comments img {
  margin-top: -1px;
}
#comments a {
  color: #7BD32C;
}
#comments a:visited {
  color: #AAA;
}
#comments a:hover {
  color: #FFF;
}

/***************************************************
 Footer
 ***************************************************/

#footer {
  clear: left;
  float: none;
  width: 767px;
  text-align: center;  
  color: #888;
}
#footer p {
  padding-top: 0 !important;
  padding-top: 10px;
}
#footer a {
  color: #888;
}
#footer a:hover {
  color: #EEE;
}
a.fullAhead {
  float: left;
  width: 30px;
  height: 34px;  
  margin-right: 10px;
  background: url(../images/logo_fullahead.gif) no-repeat 0 0;
}
a:hover.fullAhead  {
  background-position: -30px 0;
}


/***************************************************
 Generic Display Classes
 ***************************************************/

.center {
  text-align: center;
}
.left {
  float: left;
  margin: 5px;
}
.right {
  float: right;
  margin: 5px;
}
img.left {
  padding: 5px 5px 5px 0;
}
img.right {
  padding: 5px 0 5px 5px;
}
img.inline {
  border: 0px;
  padding-bottom:0px;
}
img.thumb {
  float: left;
  width: 165px; 
  height: 128px;
  border: 0px;
  padding: 5px 5px 5px 0;
}
.button {
  width: auto;
  cursor: pointer;
}
.date {
  display: block;
  font-weight: 700;
}
/****************************************************
          Gallery  
 ****************************************************/
#gallery 
{
  padding:0; 
  margin:0 auto; 
  list-style-type:none; 
  overflow:hidden; 
  width:467px; 
  height:230px; 
  border:0px solid #888; 
  }
#gallery li {
  float:left;
  }
#gallery li a {
  display:block; 
  height:240px;
  width:28px;
  overflow:hidden;
  float:left; 
  text-decoration:none; 
  border-right:1px solid #fff; 
  cursor:default;
  }
#gallery li a img {
border:0;
background: #FFF url(images/gallery_loading.gif) top left no-repeat;
}
#gallery li a:hover {
  background:#eee; 
  width:320px;
  }
/****************************************************
           Footer
****************************************************/

/***************************************************
 Mobile / small screens
 ***************************************************/
@media screen and (max-width: 820px) {
  html, body { width: auto; height: auto; }
  body {
    font-size: 0.8em;
    background: #585858;
    overflow-x: hidden;
  }
  #header { height: auto; background-size: auto; }
  #menu { width: auto; }
  #menu ul { display: flex; flex-wrap: wrap; justify-content: center; }
  #menu ul li { float: none; display: block; width: auto; flex: 1 1 33%; padding-top: 0.6em; }
  #menu ul li a { padding: 0.5em 0.3em 0.7em; }
  #slogan { float: none; padding: 0.4em 0.5em; margin: 0; background: none; text-align: center; }
  #slogan h1 { margin: 0; text-align: center; padding: 0.2em 0.5em; }
  #content, #footer { width: auto; max-width: 100%; }
  #text, #sideBar, #image {
    float: none;
    width: auto !important;
    height: auto;
    padding: 12px 14px;
    box-sizing: border-box;
  }
  #sideBar { padding-top: 0; }
  #text { overflow-wrap: anywhere; word-break: normal; }
  #image { text-align: center; }
  #image img { max-width: 100%; height: auto; }
  #image img[src*="titles"] { max-width: 55%; }
  #image em { display: block; float: none; text-align: center; }
  #image p { text-align: center; }
  #image img[src*="spacer"] { display: none; }
  #text img, #sideBar img, #content img { max-width: 100%; height: auto; }
  #sideBar img[src*="comment_bg"] { width: auto; height: auto; }
  #text table { width: 100% !important; display: block; overflow-x: auto; }
  #text iframe, #text object, #text embed, #text video { max-width: 100%; }
  img.thumb, #thumb { width: 110px; height: auto; }
  #gallery { width: 100%; height: auto; }
  textarea { width: 100%; box-sizing: border-box; }
  #footer { padding: 0 14px 20px; box-sizing: border-box; }
}

/***************************************************
 Rendering polish (no change to colours or layout)
 ***************************************************/
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}
video {
  background: #000;
}
a {
  transition: color 0.15s ease;
}
a:focus-visible {
  outline: 2px solid #86E160;
  outline-offset: 2px;
}
::selection {
  background: #86E160;
  color: #222;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
