/*
Theme Name: TTM
Theme URI: http://thinktankmaths.com
Description: TTM Branding, based on Hemingway
Version: 2.0
Author: Samuel Halliday
Author URI: http://thinktankmaths.com
Tags: thinktankmaths
*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
/* background-color: #43A9B3; */
}

body {
  color: #404040;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Arial, sans-serif;
  font-size: 10pt;

  /* Tried using CSS from http://www.colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+20,0+80;Custom
     but it was not possible to set the background-position in pixels */

  background-attachment: fixed;
  background-image: url('images/background.jpg');
  background-repeat: repeat-x;
}

.inside {
  min-width: 900px;
  max-width: 900px;
  width:75%;
  margin:0 auto;
}

h1, h2, h3 {
  color: #A8221A;
}

h1, #name {
  font-size: 14pt;
  font-weight: bold;
}


#name, #description {
  position: absolute;
}

#name {
  color: #811721;
  top: 25px;
  left: 160px;
}

#description {
  top: 55px;
  font-style: italic;
  left: 164px;
}

h2 {
  font-size: 12pt;
  font-weight: bold;
}

h3 {
  font-weight: bold;
}

a:link {
  color: #A8221A;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #808080;
}

#news, #footer {
  padding: 10px 0px;
}

#news {
  margin-top: 40px;
  text-align: right;
  display:none;
}

#footer {
  font-size: 8pt;
  font-family: "Palatino", serif;
}

#footer a {
  color: #808080;
}

#news h1 {
  color: black;
}

#news a {
  color: black;
}

img {
  padding: 0;
  border: none;
}

p img {
  display: block;
  padding: 10px 20px;
}

p img.flow {
  display: inline;
}

/* left and right classes do not work for Safari, so we have to define the style for each img */
.left {
  clear: left;
  float: left;
  padding-right: 25px;
  padding-left:   0px;
}

.right {
  clear: right;
  float: right;
  padding-right: 0px;
  padding-left: 25px;
}

ul li {
  list-style-type: square;
  padding: 0.5em 0;
}

ul.counts {
  border-top: 1px solid #C2C2C2;
  padding: 0px;
  margin: 0px;
}

#news ul.counts {
  border-top: none;
}

ul.counts li {
  list-style-type: none;
  border-bottom: 1px solid #C2C2C2;
  list-style-type: none;
}

#news ul.counts li {
  border-bottom: none;
}

blockquote {
  font-family: "Palatino", serif;
  font-size: 12pt;
  margin: 0;
  padding-left: 2em;
  padding-right: 2em;
  font-style: italic;
  text-align: justify;
}

.clear {
  clear: both;
  font-size: 1px;
  height: 1px;
  line-height: 1px;
}

#header {
  position: relative; /* needed for header components to have a non-static anchor */
  padding-bottom: 10px;
  padding-top: 25px;
}

#logo img {
  border-right: 1px solid #808080;
  position: absolute;
  top: 25px;
  left: 0;
  padding-right: 10px;
}

#article {
 position: relative; /* needed for content components to have a non-static anchor if needed */
 background: white;
 padding-left: 50px;
 padding-right: 50px;
 margin-top: 65px;
 padding-top: 50px;
 padding-bottom: 25px;
 min-height: 400px;
 text-align: justify;

 box-shadow: 0px 20px 20px #333;
 -moz-box-shadow: 0px 20px 20px #333;
 -webkit-box-shadow: 0px 20px 20px #333;
 filter: 
        progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=90,strength=5)
        progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=180,strength=10)
        progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=270,strength=5);
}

#about {
  font-family: "Palatino", serif;  
  font-size: 8pt;
  font-style: italic;
}

/* "addicted" is the live search plugin (note a lot of the style is shared with shailin below) */
#search {
  position: absolute;
  top: 25px;
  right: 0;
}

#search img {
  position: relative;
  top: 0.25em;
  left: -10px;
}

#search input {
  background-color: #F8F8F8;
  border: 1px solid #868686;
  font-size: 0.85em;
  margin-top: 2px;
  width: 175px;
}

#search input:focus {
  background: #FFFFFF;
}

#addicted_results {
  background-color: white;
  position: absolute;
  right: 0;
  max-width: 300px;
  z-index: 4;
}

#addicted_results ul {
  margin: 0;
  padding: 0;
}

#addicted_results li {
  list-style: none;
  padding: 0px 10px;
  /* TODO: live search results are squashed up, not like the dropdown menus */
}

/* shailan is the menu dropdown plugin, disable the plugin's themes */
.shailan-dropdown-menu {
  position: absolute;
  top: 75px;
  right: 0px;
  z-index: 3;
}

/* the image rotator */
#cimy {
margin:0;
padding:0;
}

/* Dropdown menus */
#addicted_results ul, ul.dropdown ul {
 background-color: white;
 border-bottom:1px solid #ddd;
 box-shadow: 0px 10px 10px #333;
 -moz-box-shadow: 0px 10px 10px #333;
 -webkit-box-shadow: 0px 10px 10px #333;
 filter: 
        progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=90,strength=3)
        progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=180,strength=4);
}
ul.dropdown ul ul { top: 1px; left: 99%; }
ul.dropdown li { border-style: solid; border-width: 0px 1px 0px 0px; border-color: #ddd; }
#addicted_results ul li, ul.dropdown ul li { border-left:1px solid #ddd; }
#addicted_results ul li { text-align: right; }
ul.dropdown ul li { text-align: left; }

/** Hover effect */
#addicted_results a:hover, ul.dropdown li.hover, ul.dropdown li:hover { background-color: rgba(67, 169, 179, 0.7); color: #000; }
#addicted_results a, ul.dropdown a { display:block; color: black; text-decoration: none; }

/** Current menu or ancestor */
li.current-cat a, li.current_page_item a, li.current-menu-item a,
li.current-cat a:link, li.current_page_item a:link, li.current-menu-item a:link,
li.current-cat a:visited, li.current_page_item a:visited, li.current-menu-item a:visited,
li.current_page_ancestor a,li.current_page_ancestor a:visited, li.current_page_ancestor a:link,
li.current-menu-ancestor a,li.current-menu-ancestor a:visited, li.current-menu-ancestor a:link {text-decoration:underline;}
li.current_page_ancestor ul a, li.current_page_ancestor ul a:visited, li.current_page_ancestor ul a:link,
li.current-menu-ancestor ul a,li.current-menu-ancestor ul a:visited, li.current-menu-ancestor ul a:link {text-decoration:none;}

/* Not able to navigate to your current page (non-IE feature) */
li.current_page_item a {
  color: #CCC;
  pointer-events: none;
  cursor: default;
}

/* Litle bars between the menu items */
ul.dropdown li.page_item {
  border-right: 1px solid #bbb;
}
ul.dropdown li.parent li, ul.dropdown li.last-child {
  border-right: none;
}

/* HOMEPAGE IMAGES */
#cimy_0 {
  position: absolute;
  left: 0px;
  top: 25px;
  width: 900px;
  height: 495px;
  margin: 0;
  padding: 0;
}
#home_padding {
  padding: 495px 7% 25px 7%;
}

