﻿/* ===========================
   ======= Body Style ======== 
   =========================== */
body {
	color: #000305; /* Base font colour */
	font-size: 87.5%; /* Base font size: 14px */
	font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
	line-height: 1.429;
	margin: 0;
	padding: 0;
	text-align: left;
	}
.wrapper {
	clear: both; /* this stops items floating around container */
	margin: 0 auto; /* this centres the whole page container */
	width: 80%; /* this controls the amount of margin on the left and right side of the whole page container */
}
/* ===========================
   === Font h class styles ===
   =========================== */
h2 {font-size: 1.571em}	/* 22px divided by 14 */
h3 {font-size: 1.429em}	/* 20px divided by 14 */
h4 {font-size: 1.286em}	/* 18px divided by 14 */
h5 {font-size: 1.143em}	/* 16px divided by 14 */
h6 {font-size: 1em}		/* 14px */
h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: .8em;
}

/* ===========================
   ==== Hyperlink Style ====== 
   =========================== */
a {
	outline: 0;
	}
a img {
	border: 0px; 
	text-decoration: none; /* this removes the underline from hyperlinks */
}
a:link, a:visited {
	color: #87CEFA;
	padding: 0 1px;
	text-decoration: none;
}
a:hover, a:active {
	background-color: #87CEFA;
	color: #fff;
	text-decoration: none;
}
/* ===========================
   ====== Header Style =======
   =========================== */ 
.mainHeader h1 { 
	color: #0055aa;
}
.mainHeader nav {
	background: #0055aa;
	font-size: 1.143em;
	height: 40px; /* this controls the height of the Nav bar */
	line-height: 30px; /* this controls the height of the Text in the Nav bar */
	margin: 0 auto 30px auto;
	text-align: center;
	border-radius: 5px; /* adds rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.mainHeader nav ul {
	list-style: none; /* this gets rid of the list bullets */
	margin: 0 auto; /* this controls the space around the of the Nav bar which is nothing as the header image above has spacing of 3% */
}
.mainHeader nav ul li {
	float: right; /* this makes the Nav text align right */
	display: inline; /* this makes the Nav text appear in one line not in a list */
}
.mainHeader nav a:link, .mainHeader nav a:visited {
	color: #fff;
	display: inline-block;
	height: 30px;
	padding: 5px 23px; /* the 5px puts the text in the middle of the nav bar and the 23px is the gap between the words */
	text-decoration: none;
}
.mainHeader nav a:hover, .mainHeader nav a:active,
.mainHeader nav .active a:link, .mainHeader nav .active a:visited {
	background: #6a6aff; /* this is the colour that section of the nav bar turns too when a mouse hovers over it */
	color: #fff;
	text-shadow: none !important;
}
.mainHeader nav li a {
	border-radius: 5px; /* adds rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
/* ===========================
   ======= Content Area ====== 
   =========================== */
img.photo-1 {
    display: block; /* this allows you define how you deal with an image */
 	margin: 0 auto; /* this centres the image */
	max-width: 100%;
	height: auto; 
	box-shadow: 5px 5px 7px #777;  /* this adds a shadow around the image */
	-webkit-box-shadow: 5px 5px 7px #777; 
	-moz-box-shadow: 5px 5px 7px #777; 
	}
img.photo-2 {
    display: block; /* this allows you define how you deal with an image */
 	margin: 0 auto; /* this centres the image */
 	max-width: 100%;
	height: auto;
	box-shadow: 5px 5px 7px #777;  /* this adds a shadow around the image */
	-webkit-box-shadow: 5px 5px 7px #777; 
	-moz-box-shadow: 5px 5px 7px #777; 
	}
@media \0screen {
  img .photo-1, .photo-2 { 
  	width: auto; /* for ie 8 */
  }
}
.topcontent {
	background-color: #FFF;	/* box background colour #fff is white */
	border-radius: 5px; /* box rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
	padding: 1% 5%; /* top and bottom padding is 1% left and right is 5% */
	margin-bottom: 3%; /* 3% gap on the bottom outside of the box  */
}
.content {
	overflow: hidden; /* stops other content floating over this box */
	line-height: 25px;
	width: 74%; /* width of main content box */
	float: left;
	border-radius: 5px; /* box rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
}
.content h1 {
		color: #6a6aff;
}
.post-info {
	font-style: italic;
	color: #999;
	font-size: 85%;
}
/* ===========================
   ======== Sidebar ========== 
   =========================== */
.top-sidebar {
	width: 18%; /* width size of the box  */
	float: left;
	margin-left: 2%; /* this makes the 2% gap coloumn to the left outside of the box  */
	border-radius: 5px; /* box rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
	background-color: #COCOCO; /* box background colour #fff is white */	
	padding: 2% 3%; /* top and bottom padding is 2% left and right is 3% */
}
.middle-sidebar {
	width: 18%; /* width size of the box  */
	float: left;
	margin-left: 2%; /* this makes the 2% gap coloumn to the left outside of the box  */
	border-radius: 5px; /* box rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
	background-color: #FFF;	/* box background colour #fff is white */
	padding: 2% 3%; /* top and bottom padding is 2% left and right is 3% */
	margin-bottom: 2%; /* 2% gap on the bottom outside of the box  */
}
.bottom-sidebar {
	width: 18%; /* width size of the box  */
	float: left;
	margin-left: 2%; /* this makes the 2% gap coloumn to the left outside of the box  */
	border-radius: 5px; /* box rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
	background-color: #FFF; /* box background colour #fff is white */
	padding: 2% 3%; /* top and bottom padding is 2% left and right is 3% */
}
/* ===========================
   ========= Footer ========== 
   =========================== */
.mainFooter-adsense {
	width: 100%;
	float: left;
	margin-top: 2%;
	margin-bottom: 2%;
	padding-left: 0;
	color: #FFF;	
}
.mainFooter {
	width: 100%;
	float: left;
	margin: 1% 0;
	padding-left: 0;
	background-color: #0055aa;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;	
	color: #FFF;
}
.mainFooter p {
	width: 91%;
	margin: 2% auto;
}
.mainFooter nav {
	background: #0055aa;
	font-size: 1.143em;
	height: 20px; /* this controls the height of the Nav bar */
	line-height: 30px; /* this controls the height of the Text in the Nav bar */
	margin: 0 auto 30px auto;
	text-align: center;
	border-radius: 5px; /* adds rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.mainFooter nav ul {
	list-style: none; /* this gets rid of the list bullets */
	margin: 0 auto; /* this controls the space around the of the Nav bar which is nothing as the header image above has spacing of 3% */
}
.mainFooter nav ul li {
	float: right; /* this makes the Nav text align right */
	display: inline; /* this makes the Nav text appear in one line not in a list */
}
.mainFooter nav a:link, .mainHeader nav a:visited {
	color: #fff;
	display: inline-block;
	height: 30px;
	padding: 5px 23px; /* the 5px puts the text in the middle of the nav bar and the 23px is the gap between the words */
	text-decoration: none;
}
.mainFooter nav a:hover, .mainFooter nav a:active,
.mainFooter nav .active a:link, .mainFooter nav .active a:visited {
	background: #6a6aff; /* this is the colour that section of the nav bar turns too when a mouse hovers over it */
	color: #fff;
	text-shadow: none !important;
}
.mainFooter nav li a {
	border-radius: 5px; /* adds rounded corner */
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
/* ===========================
   ====== Media Queries ====== 
   =========================== */ 
@media only screen and (min-width : 50px) and (max-width : 780px)
{
	body {
	color: #353535; /* Base font colour now grey for iPhone */
	font-size: 99%;  /* for iPhone increase the font size */
	}
	.wrapper {
		width: 95%; /* for iPhone increase the whole page container width */		
	}
	.mainHeader img.header-image {
		width: 100%; /* for iPhone increase width of the image to fill the screen */
	}
	.mainHeader h1 { 
	font-size: 0.857em; /* for iPhone decreases the title font size to size 12 (12 divided by 14) so it fits the screen */
	}
	.mainHeader nav {
		display: none; /* this is the command not to display the top nav bar*/
	}
	.content {
		width: 100%; /* for iPhone now 100% to fill screen*/
		float: left;
	}	
	.post-info {
		display: none; /* this is the command not to display an object*/
	}
	.mainFooter {
		width: 100%;
		margin: 2% 0;
		padding-left: 0;
	}
	.mainFooter p {
		width: 86%;
		margin: 2% auto;
	}
	.mainFooter nav {
	font-size: 1em; /* this reduces the size of the nav bar font*/
	}
}
