/*
  Theme Name: Doig
  Theme URI: http://tech.doig.com.au/
  Author: Steve Doig
  Author URI: http://steve.doig.com.au/
  version: 1.0
*/
  
html {
	height: 100%;
}
body {
	margin: 0;
}
.gradient {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background: transparent;
	background: linear-gradient(top, rgba( 58, 20, 99, 255 ) 0%, rgba( 0, 0, 0, 0 ) 100% );
	background: -moz-linear-gradient(top, rgba( 58, 20, 99, 0.75) 0%, rgba( 0, 0, 0, 0 ) 100% );
	background: -ms-linear-gradient(top, rgba( 58, 20, 99, 0.75) 0%, rgba( 0, 0, 0, 0 ) 100% );
	background: -o-linear-gradient( top, rgba( 58, 20, 99, 0.75) 0%, rgba( 0, 0, 0, 0 ) 100% );
	background: -webkit-linear-gradient( top, rgba( 58, 20, 99, 0.75) 0%, rgba( 0, 0, 0, 0 ) 100% );
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A1463FF, endColorstr=#3A1463FF);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#003A1463, endColorstr=#ff3A1463);
}
#container {
	width: 180px;
	margin: 1em auto;
}
#container-wide {
	width: auto;
}
#title {
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #fff;
}
#title p img {
	width: 95%;
	height: auto;
}
#sidebar {
	width: 180px;
	padding: 10px 0;
	margin: 3px 0;
	border: 1px solid #CCCCCC;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #fff;
	float: left;
}
#content {
	float: right;
	width: 62.5%;
	margin-bottom: 3px;
	padding: 0 10px;
	border: 1px solid #CCCCCC;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #fff;
}
#content-wide {
	float: left;
	margin: 3px;
	padding: 0 10px;
	border: 1px solid #CCCCCC;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: rgba(255,255,255,0.95);
}
#content h1 {
	margin: 0 0 0.5em 0;
	font-family: Calibri, Arial, Helvetica, sans-serif;
	font-size: 25px;
}
#content p, #content ul li, #content ol li {
	font-family: Calibri, Arial, Helvetica, sans-serif;
}
#footer {
	clear: both;
	border: 1px solid #CCCCCC;
	border-radius: 5px;
	padding: 10px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #fff;
}
#copyright {
	position: fixed;
	bottom: 0;
	right: 0;
	padding: 1em;
}
#copyright p, #copyright p a {
	color: #eee;
	font-size: 10px;
}
p {
	margin: 0 0 1em 0
}
a, a:link {
	text-decoration: none;
	color: #93051C;
}
small {
	text-transform: uppercase;
	font-size: 8px;
}
.clear {
	clear: both;
}
.blue {
	color: #03F;
}
.red {
	color: #C00;
}
#title h1 {
	margin: 0 0 0.5em 0;
	text-align: center;
	font-family: Calibri, Arial, Helvetica, sans-serif;
	font-size: 25px;
}
#title h1 span, #title h2 span {
	font-size: 0.5em;
	text-transform: uppercase;
}
#title h2 {
	font-size: 16px;
}
#title img {
	width: 100%;
	height: auto;
	max-width: 180px;
}
#sidebar ul {
	margin-left: 5%;
	list-style: none;
	padding: 0px;
}
#sidebar ul li {
        margin: 0.5em 0;
	padding-left: 0px;
}
#footer p {
	margin: 0;
}

/* Family Tree */

.tree li a {
	color: #666;
}

@media (min-width: 960px) {
body.page-template-page-wide {
	width: 3900px;
}	
.tree ul {
	padding-top: 20px;
	position: relative;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree li {
	float: left;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
/*We will use ::before and ::after to draw the connectors*/

.tree li::before, .tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 1px solid #ccc;
	width: 50%;
	height: 20px;
}
.tree li::after {
	right: auto;
	left: 50%;
	border-left: 1px solid #ccc;
}
/*We need to remove left-right connectors from elements without 
any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
	display: none;
}
/*Remove space from the top of single children*/
.tree li:only-child {
	padding-top: 0;
}
/*Remove left connector from first child and 
right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after {
	border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before {
	border-right: 1px solid #ccc;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}
/*Time to add downward connectors from parents*/
.tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 1px solid #ccc;
	width: 0;
	height: 20px;
}
.tree li a {
	border: 1px solid #ccc;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	font-family: arial, verdana, tahoma;
	font-size: 11px;
	display: inline-block;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
/*We will apply the hover effect the the lineage of the element also*/
.tree li a:hover, .tree li a:hover+ul li a {
	background: #c8e4f8;
	color: #000;
	border: 1px solid #94a0b4;
}
/*Connector styles on hover*/
.tree li a:hover+ul li::after, .tree li a:hover+ul li::before, .tree li a:hover+ul::before, .tree li a:hover+ul ul::before {
	border-color: #94a0b4;
}
}