/* LIGHT GREY #bcbbba; DARK GREY #666666; BLUE #004876 links #163e59  */

/* Main defaults */

@font-face {
	font-family: 'Open Sans';
	src: url('../fonts/Open_Sans/OpenSans-Regular.ttf');
	font-weight: normal;
}

@font-face {
	font-family: 'Open Sans Italic';
	src: url('../fonts/Open_Sans/OpenSans-Italic.ttf');
	font-weight: normal;
}

@font-face {
	font-family: 'Open Sans Light';
	src: url('../fonts/Open_Sans/OpenSans-Light.ttf');
	font-weight: normal;
}

@font-face {
	font-family: 'Open Sans Bold';
	src: url('../fonts/Open_Sans/OpenSans-Bold.ttf');
	font-weight: bold;
}

@font-face {
	font-family: 'Open Sans LightItalic';
	src: url('../fonts/Open_Sans/OpenSans-LightItalic.ttf');
	font-weight: bold;
}

@font-face {
	font-family: 'Open Sans SemiboldItalic';
	src: url('../fonts/Open_Sans/OpenSans-SemiboldItalic.ttf');
	font-weight: bold;
}

body {
	background-image: url(../images/line.png);
	color: #004876;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
}

div.global {
	-webkit-box-shadow: 3px 3px 15px 0px rgba(188,187,186,0.5);
	-moz-box-shadow: 3px 3px 15px 0px rgba(188,187,186,0.5);
	box-shadow: 3px 3px 15px 0px rgba(188,187,186,0.5);
	background-color: white;
	width: 1120px;
	margin: 0 auto;
	padding: 25px;
	border: 1px #bcbbba solid;
}

/* Top layout */

header {
	position: relative;
}

#logindetails {
	position: absolute;
	top: 0;
	padding: 5px 0;
	width: 1090px;
	color: #999999;
	font-size: 80%;
}

div#searchSite {
	margin-left: 715px;
	top: 118px;
}

#headercontainer {
	margin-bottom: 5px; 	
}

#sectioncontainer, #bannercontainer, #footercontainer {
	width: 1060px;
	background-color: white;
	margin: 10px auto;
}

/* Figure border */

figure {
	border: 1px #e8e8e8 solid;
}

/* Menu stuff */

#menucontainer, #submenucontainer {
	width: 780px;
	position: absolute;
	top: 153px;
	left: 310px;
	text-transform: uppercase;
	border-radius: 0;
	text-align: right;
	border-bottom: 1px solid #666666;
	font-size: 80%;
	margin-left: 0;
	z-index: 1;
}

#submenucontainer {
	top: 190px;
	border-bottom: 0;
}

nav#submenucontainer.private {
	border-radius: 0;
}

.activeMenu, .inactiveMenu {
	font-size: 120%;
}

.inactiveMenu a, .inactiveMenu a:link, .inactiveMenu a:visited {
	color: #999999;
	background-color: white;
}

.activeMenu a, .activeMenu a:link, .activeMenu a:visited, .inactiveMenu a, .inactiveMenu a:hover {
	color: white;
	background-color: #004876;
	border: 1px solid #999999;
	margin-right: 5px;
	margin-bottom: 5px;
}

#subMenuitems div.activeMenu a, #subMenuitems div.inactiveMenu a:hover {
	color: #004876;
	background-color: white;
	font-size: 90%;
}

#subMenuitems div.inactiveMenu a {
	color: #999999;
	background-color: white;
	font-size: 90%;
}

.activeMenu a.private, .activeMenu a.private:link, .activeMenu a.private:visited, .inactiveMenu a.private:hover {
	color: white;
	background-color: #999999;
}

.activeOptionsMenu, .inactiveOptionsMenu  {
	font-size: 100%;
}

.inactiveOptionsMenu a, .inactiveOptionsMenu a:link, .inactiveOptionsMenu a:visited {
	color: gray;
	border: 1px solid gray;
	background-color: white;
}

.activeOptionsMenu a, .activeOptionsMenu a:link, .activeOptionsMenu a:visited, .inactiveOptionsMenu a, .inactiveOptionsMenu a:hover {
	color: white;
	border: 1px solid gray;
	background-color: gray;
}

#subMenuitems div.activeMenu a.private, #subMenuitems div.inactiveMenu a.private:hover {
	color: white;
	background-color: gray;
	font-size: 80%;
}

#subMenuitems div.inactiveMenu a.private {
	color: white;
	background-color: #999999;
	font-size: 80%;
}

/* General links */

a {
	color: #2f83bb;
	text-decoration: none;
	font-weight: normal;
}

a.private {
	font-style: italic;
}

a:hover {
	color: #bcbbba;
}

/* Commonly used classes for layout */

.subtitle {
	color: #bcbbba;
}

/* Defining common elements */

p {
	font-size: 110%;
	line-height: 150%;
}

i {
	color: gray;
}

ul {
	font-size: 110%;
}

li {
	padding: 5px;
}

h1 {
	color: #666666;
	font-size: 220%;
	font-family: "Open Sans Light", Arial, sans-serif;
}

h1.banner {
	margin-left: 100px;
	top: 80px;
	font-size: 150%;
	font-family: "Open Sans Light", Arial, sans-serif;
}

h2 {
	color: #004876;
	font-size: 190%;
	font-family: "Open Sans Light", Arial, sans-serif;
}

h3 {
	color: #004876;
	font-size: 160%;
	font-family: "Open Sans Light", Arial, sans-serif;
}

h4 {
	color: #004876;
	font-size: 125%;
	font-family: "Open Sans Light", Arial, sans-serif;
}

#logo {
	margin-right: 25px;
}

div.banner-right {
	margin-top: 36px;
	float: right;
}

div.banner-right p.strapline {
	color: #004876;
	font-size: 175%;
	line-height: 100%;
	text-align: right;
}

div.banner-right p.banner {
	line-height: 120%;
	margin-top: 25px;
	font-size: 100%;
	text-align: right;
}

/*  Home page images  */

section.programmes {
	width: 100%;
	text-align: center;
}

div.programme {
	text-align: center;
	vertical-align: middle;
	background-color: transparent;
	overflow: hidden;
	display: inline-block;
	border: 1px solid silver;
	margin: 20px;
	padding: 10px;
	height: 300px;
	width: 300px;
	float: none;
	line-height: 5px;
	-webkit-transform: scale(1.0) rotate(0deg);
	-ms-transform: scale(1.0) rotate(0deg);
	-moz-transform: scale(1.0) rotate(0deg);
	-o-transform: scale(1.0) rotate(0deg);
	transform: scale(1.0) rotate(0deg);
	-webkit-transition: -webkit-transform 0.5s ease-in-out 0.2s;  
	-ms-transition: -ms-transform 0.5s ease-in-out 0.2s;  
	-moz-transition: -moz-transform 0.5s ease-in-out 0.2s;  
	-o-transition: -o-transform 0.5s ease-in-out 0.2s;  
	transition: transform 0.5s ease-in-out 0.2s;
}

div.programme div.programmeLogo {
	clear: both;
	width: 100%;
	background-color: transparent;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	overflow: hidden;
}

div.programme.txt div.programmeLogo {
	z-index: -100;
}

div.programme div.programmeLogo h2 {
	margin-top: 40px;
}

div.programme div.programmeLogo img {
	border: 0;
	padding: 0;
	margin: 0 auto;
	-webkit-transform: translate(0,0);
	-ms-transform: translate(0,0);
	-moz-transform: translate(0,0);
	-o-transform: translate(0,0);
	transform: translate(0,0);
	-webkit-transition: -webkit-transform 0.5s ease-in-out 0.2s;  
	-ms-transition: -ms-transform 0.5s ease-in-out 0.2s;  
	-moz-transition: -moz-transform 0.5s ease-in-out 0.2s;  
	-o-transition: -o-transform 0.5s ease-in-out 0.2s;  
	transition: transform 0.5s ease-in-out 0.2s;
}

div.programme.txt div.programmeLogo img {
	-webkit-transform: translate(-275px,-275px);
	-ms-transform: translate(-275px,-275px);
	-moz-transform: translate(-275px,-275px);
	-o-transform: translate(-275px,-275px);
	transform: translate(-275px,-275px);
	-webkit-transition: -webkit-transform 0.5s ease-in-out 0.2s;  
	-ms-transition: -ms-transform 0.5s ease-in-out 0.2s;  
	-moz-transition: -moz-transform 0.5s ease-in-out 0.2s;  
	-o-transition: -o-transform 0.5s ease-in-out 0.2s;  
	transition: transform 0.5s ease-in-out 0.2s;
}

div.programme div.programmeText {
	display: inline-block;
	vertical-align: middle;
	line-height: normal;
	width: 100%;
	z-index: 10;
	opacity: 0;
	transition: all 0.5s ease-in-out 0.2s;
	margin-top: 75px;
	font-size: 110%;
}

div.programme.txt div.programmeText {
	opacity: 1;
	transition: all 0.5s ease-in-out 0.2s;
}

div.programme.txt {
	-webkit-transform: scale(1.0) rotate(3deg);
	-ms-transform: scale(1.0) rotate(3deg);
	-moz-transform: scale(1.0) rotate(3deg);
	-o-transform: scale(1.0) rotate(3deg);
	transform: scale(1.0) rotate(3deg);
	-webkit-transition: -webkit-transform 0.5s ease-in-out 0.2s;  
	-ms-transition: -ms-transform 0.5s ease-in-out 0.2s;  
	-moz-transition: -moz-transform 0.5s ease-in-out 0.2s;  
	-o-transition: -o-transform 0.5s ease-in-out 0.2s;  
	transition: transform 0.5s ease-in-out 0.2s;
}

div.programme:hover, div.programme.txt div.programmeLogo img, div.programme div.programmeLogo img {
    transition-delay: 0.2s;
}

/* Main sidebar formatting */

#sidebar {
	border: 1px #bcbbba solid;
	line-height: 110%;
}

/* Classes used with divs for screen layout */

.form {
	border: 1px solid gray;
	background-color: #fffffa;
	margin: auto;
}

/* Highlight news and main newsitem module */

.mainNews {
    max-width: 800px;
}

.newsDate {
	font-style: italic;
}

.newsTitle {
	font-weight: bold;
}

.newsContent {
	font-size: 100%;
}

.item {
	border-bottom: 1px #e8e8e8 solid;
}

.newsitems p {
	line-height: 140%;
}

/* Used at top of listings */

.headerRecord, .headerRecord a {
	font-weight: bold;
	color: gray;
}

/* Greeting page formatting */

div.statement {
	font-size: 125%;
	margin: 15px 0 15px 10px;
	font-family: "Open Sans", Arial, sans-serif;
}

.poster {
	border: none;
}

.greeting1 h1 {
	display: none;
	visibility: hidden;
}

div.services-row-1 {
	width: 100%;
}

div.service-1, div.service-2, div.service-3 {
	border: 1px solid #bcbbba;
	border-radius: 0;
	width: 30%;
	float: left;
	padding: 17px;
	min-height: 250px;
	margin: 1%;
}

div.service-3 {
}

div.service-1 h2, div.service-2 h2, div.service-3 h2 {
	color: #bcbbba;
	text-align: center;
}

div.service-1 p, div.service-2 p, div.service-3 p {
	color: #004876;
	text-align: center;
    line-height: 160%;
}

div.twitter-feed {
	width: 280px;
	padding: 10px;
	float: right;
	border: 1px solid #bcbbba;
}

/* Clients page */

.generic3 div.clientsImage {
	width: 160px;
	float: left;
}

.generic3 div.clients {
	border-top: 1px solid #bcbbba;
	padding-top: 25px;
	min-height: 130px;
} 

.generic3 div.clients:nth-child(2) {
	border-top: 0;
}

.generic3 div.clientsText h2 {
	font-size: 140%;
}

.generic3 div.statement {
	width: 75%;
	margin: 0 auto 40px;
    text-align: center;
    font-size: 140%;
}

/* Billboard */

.billboard {
	border-bottom: 1px solid #babbbc;
	margin: 20px auto;
	z-index: 1;
}

.textualPoster h2 {
	font-family: "Open Sans LightItalic", Arial, sans-serif;
	color: #004876;
	font-size: 225%;
}

/* Paypal payment page */

body#donate div#freestyle div.blockCenter.form.columnsWide2, body#pay div#freestyle div.blockCenter.form.columnsWide2 {
	border-radius: 20px;
}

input.paypalButton {
	width: auto;
}

.footerContent p {
	line-height: 125%;
}

span.footer {
	color: #bcbbba;
}

/* Resources */

.resources1 div#resourcelist div.lineItem p i {
	display: none;
	visibility: hidden;
}

/* Contacts icons */

.contacts {
	background-color: white;
	margin: 0 auto;
	padding: 0 5px;
	min-width: 40px;
	text-align: center;
	position: fixed!important;
	right: 0;
	top: 220px;
	box-shadow: -5px 5px 10px rgba(0,0,0,0.3);
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	z-index: 100;
}

.contacts img {
	padding: 10px 5px;
}

/* Social icons */

#twitterLink, #rssLink, #facebookLink, #linkedinLink {
	top: 35px;
}

.footerContent #twitterLink, .footerContent #rssLink, .footerContent #facebookLink, .footerContent #linkedinLink {
	float: left; 
	padding: 10px 10px 0 0;
}

/* From 0-960px  ----------- */
@media only screen and (min-width: 0) and (max-width: 960px) {
	.billboard {display: none;}
	div.global {padding: 1%; margin: 0 auto;} 
	#menucontainer, #submenucontainer {margin: 10px auto 0; position: initial; width: 90%;}
}


/* Smartphones (portrait and landscape) ----------- */

@media only screen and (min-width: 0px) and (max-width: 319px) {
	#sectioncontainer, #bannercontainer, #footercontainer {width: 94%; padding: 0 2%; margin: 1%;}
	div.statement {font-size: 110%;}
	img#logo {display: block; margin: 20px auto; float: none; width: 220px;}
	.contacts {display: none;}
	.bannerContent {z-index: 0;}
	#logindetails {margin-top: 220px; text-align: left;}
	div.banner-right {margin-top: 30px; width: 100%; float: none;}
	div.banner-right p.banner {margin-top: -10px; text-align: center;}
	div.banner-right p.strapline {text-align: center;}
	p, h1 {font-size: 100%;}
	h2 {font-size: 150%;}
	div.resourceSummary .lineItem h2 {font-size: 120%;}
	div.resourceSummary .lineItem p {line-height: 120%;}
	div#resourcelist a {word-wrap: break-word;}
	body#greeting1 div.activeMenu {display: none;}
}

/* Smartphones (portrait and landscape) ----------- */

@media only screen and (min-width: 320px) and (max-width: 480px) {
	#sectioncontainer, #bannercontainer, #footercontainer {width: 94%; padding: 0 2%; margin: 1%;}
	div.statement {font-size: 110%;}
	img#logo {display: block; margin: 20px auto; float: none; width: 220px;}
	.bannerContent {z-index: 0;}
	.contacts {display: none;}
	#logindetails {margin-top: 220px; text-align: left;}
	div.banner-right {margin-top: 35px; width: 100%; float: none;}
	div.banner-right p.banner {margin-top: -10px; text-align: center;}
	div.banner-right p.strapline {text-align: center;}
	p, h1 {font-size: 100%;}
	h2 {font-size: 160%;}
	div.resourceSummary .lineItem h2 {font-size: 140%;}
	div.resourceSummary .lineItem p {line-height: 120%;}
	div#resourcelist a {word-wrap: break-word;}
	body#greeting1 div.activeMenu {display: none;}
}

/* Larger smartphones/smaller tablets (portrait and landscape) ----------- */

@media only screen and (min-width: 481px) and (max-width: 768px) {
	#sectioncontainer, #bannercontainer, #footercontainer, section#logindetails, div#global {width: 94%; padding: 0 2%; margin: 1%;}
	div.statement {font-size: 110%;}
	#logo {display: block; margin: 20px auto; float: none;}
	.contacts {top: 20px;}
	#logindetails {margin-top: 255px; text-align: left;}
	div.banner-right {margin-top: 25px; width: 100%; float: none;}
	div.banner-right p.banner {margin-top: -40px;}
	div.banner-right p.strapline {text-align: left;}
	h2 {font-size: 180%;}
	.resources div.lineItem {width: 98%;}
	div.resourceSummary .lineItem h2 {font-size: 140%;}
	div.resourceSummary .lineItem p {line-height: 130%;}
	div#resourcelist a {word-wrap: break-word;}
}

/* Smartphones/smaller tablets (portrait and landscape) ----------- */

@media only screen and (min-width: 481px) and (max-width: 620px) {
	img#logo {display: block; margin: 25px auto; float: none; width: 220px;}
	.bannerContent {z-index: 0;}
	.contacts {display: none;}
	#logindetails {margin-top: 220px; text-align: left; padding: 0;}
	div.banner-right {margin-top: 35px; width: 100%; float: none;}
	div.banner-right p.banner {margin-top: 10px; text-align: center;}
	div.banner-right p.strapline {text-align: center;}
}

/* Larger tablets (portrait and landscape) ----------- */

@media only screen and (min-width: 769px) and (max-width: 960px) {
	#sectioncontainer, #bannercontainer, #footercontainer, section#logindetails, div#global {width: 94%; padding: 0 2%; margin: 1%;}

}

/* Larger tablets (portrait and landscape) ----------- */

@media only screen and (min-width: 769px) and (max-width: 1024px) {
	div.service-1, div.service-2, div.service-3 {width: 27%; min-height: 375px;}
	div.statement {font-size: 120%;}
}

/* Larger monitors ----------- */

@media only screen and (min-width: 901px) and (max-width: 1190px) {
	#sectioncontainer, #bannercontainer, #footercontainer, #logindetails {width: 96%; padding: 0 1%;}
	div.global {padding: 10px;} 
}

/* From 0-850px  ----------- */
@media only screen and (min-width: 0) and (max-width: 850px) {
	div.service-1, div.service-2, div.service-3 {width: 92%; min-height: 100px; margin: 5% auto; float: none; padding: 2%;}
}

/* From 0-960px  ----------- */
@media only screen and (min-width: 0) and (max-width: 960px) {
	div.twitter-feed {display: none;}
}
/* ----------- */
