
/* ===========================
   ========= Fonts =========== 
   =========================== */

@font-face {
    font-family: 'Proxima Nova';
    font-weight: 400;
    src: url('../font/proximanova-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/proximanova-webfont.ttf') format('truetype');
}

@font-face {
    font-family: 'Proxima Nova';
    font-weight: 700;
    src: url('../font/proximanova-sbold-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/proximanova-sbold-webfont.ttf') format('truetype');
}

/* ===========================
   ========== Logo =========== 
   =========================== */

.apb-logo {
    display: -moz-inline-stack;
    display: inline-block;
    *vertical-align: auto;
    zoom: 1;
    *display: inline;
    width: 100%;
    height: auto;
    background-image: url(../images/AstroPiBox-logo.png);
    background-image: url(../images/AstroPiBox-logo.svg), none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    font-size: .001px;
    text-indent: -1000px;
}

.splash {
    width: 320px;
    height: 276px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -138px;
    margin-left: -160px;
}

.splash .apb-logo {
    width: 320px;
    height: 276px;
}

/* ===========================
   ======= Body style ======== 
   =========================== */
   
body {
	background-image: url('../images/bg.png');
	color: #333;
	font-size: 90%; /* Base font size: 14px */
	/* font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
	font-family: Arial, 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', sans-serif;
	line-height: 1.429;
	margin: 0;
	padding: 0;
	text-align: left;
	}
	
.body {
	clear: both; 
	margin: 0 auto; 
	width: 80%;
}

news {
	background-color:#B3E9FF;
}

p.legend {
	font-size: 75%;
	line-height: 14px;
	margin-top: 0%;
	margin-bottom: 10%;
}

p.table {
	font-size: 100%;
	line-height: 14px;
	margin-top: 0%;
	margin-bottom: 2%;
}

p.expo {
	color: #000;
	font-size: 85%;
	line-height: 16px;
	margin-top: 1%;
	margin-left: 2%;
	margin-bottom: 1%;
	margin-right: 0%;
}

li {
	margin-top: 1%;
}

li.index { line-height: 1.3; margin-top: 3%; }

.boxed {
  padding: 5px;
  border: 1px solid #009EE2 ;
}

/* ===========================
   ===== Title on image ====== 
   =========================== */

.title
{
	position:relative;
	width=100%;
}

titletext
{
	position:absolute;
	top: 6%;
	right: 12px;
	width=100%;
}

titletext span { 
   color: #5BCFFF; 
   /* font: bold 24px/45px 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;  */
   font: bold 24px/45px 'Proxima Nova', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
   letter-spacing: 3px;  
   background: rgb(0, 0, 0); /* fallback color */
   background: rgba(0, 0, 0, 0.5);
   padding: 10px; 
}

legendtext
{
	position:absolute;
	bottom: 22%;
	left: 6px;
	width=100%;
}

legendtext span { 
   color: #F5F5F5; 
   font: 24px/24px 'Proxima Nova', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; 
   letter-spacing: 0px;  
   background: rgb(196, 196, 196); /* fallback color */
   background: rgba(196, 196, 196, 0.5);
   padding: 5px; 
}

/* ===========================
   ========= Headings ======== 
   =========================== */
   /* Ancien rouge: FF6468 */
h1 {font-family: 'Proxima Nova', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      font-size: 28px;
      color: #009EE2; }
h2 {font-family: 'Proxima Nova', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      font-size: 22px;
      color: #009EE2; }
h3 {font-family: 'Proxima Nova', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      font-size: 1.429em;
          color: #009EE2; }	/* 20px */
h4 {font-family: 'Proxima Nova', 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      font-size: 1.286em;
          color: #FF5B5F; }	/* 18px */
h5 {font-size: 1.143em}	/* 16px */
h6 {font-size: 1em}		/* 14px */

h1 {
	margin-top: 1.4em;
}

h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: .4em;
}
h4 {
	margin-top: 0%;
}

/* ===========================
   ======= Anchor style ====== 
   =========================== */
a {
	text-decoration: none;
	outline: 0;
	color: blue;
	}

a img {
	border: 0px; 
	text-decoration: none;
}

a.visible:link, a.visible:visited {
	color: #4688C4;
	padding: 0 2px;
	text-decoration: none;
}

a.visible:hover, a.visible:active {
	background-color: #4688C4;
	color: #fff;
	text-decoration: none;
}

/* ===========================
   ===== Main Navigation ===== 
   =========================== */

nav1 {
    background-color: #333;
    margin: 0 auto 15px auto;
    overflow: hidden;
}

nav1 ul {
    margin: 0;
    padding: 0;
}

nav1 ul li {
    /* This allow us to arrange list items in a row, without using float */
    display: inline-block;
    list-style-type: none;
}

/* Create a style for the first level items */
nav1 > ul > li > a {
	border-radius: 5px;
    color: #fff;
	font-size: 1.3em;
    background-color:#BB1543;
    display: block;
    line-height: 1.5em;
    margin: 0 auto 15px auto;
    margin-right: 10px;
    padding: 0.3em 0.3em;
    padding-right: 1em;
    padding-left: 1em;
    text-decoration: none;
}

nav1 > ul > li > a.select {
    background-color:#E54571;
}

.mainHeader nav {
	background: #90B878;
	font-size: 1.143em;
	height: 40px;
	line-height: 30px;
	margin: 0 auto 15px auto;
	text-align: center;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
}
	
.mainHeader nav ul {
	list-style: none; 
	margin: 0 auto;
}

.mainHeader nav ul li {
	float: left; 
	display: inline; 
}
	
.mainHeader nav a:link, .mainHeader nav a:visited {
	color: #fff;
	display: inline-block;
	height: 30px;
	padding: 5px 13px;
	text-decoration: none;
}
.mainHeader nav a:hover, .mainHeader nav a:active,
.mainHeader nav .active a:link, .mainHeader nav .active a:visited {
	background: #517A38;
	color: #fff;
	text-shadow: none !important;
}
	
.mainHeader nav li a {
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
}

.mainHeader img {
	width: 100%;
	height: auto;
	margin: 1% 0;
}

/* ===========================
   ==== Adjustable Image ===== 
   =========================== */

.adjustImage img {
	width: 100%;
	height: auto;
	margin: 1% 0;
}

/* ===========================
   ======= Content Area ====== 
   =========================== */

.mainContent {
	overflow: hidden;
	line-height: 18px;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
}

.post-info {
	font-style: italic;
	color: #999;
	font-size: 85%;
	line-height: normal;
}

/* ===========================
   ======= Main Column ======= 
   =========================== */

.mainleft {
	width: 70%;
	float: left;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
}

.mainleft img.resize {
	width: 100%;
	max-width: 500px;
	height: auto;
	margin: 1% 0;
}

.topmainleft {
	background-color: #FFFFFF;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	padding: 1% 5%;	
	margin-bottom: 3%;
}

.bottommainleft {
	background-color: #FFFFFF;	
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	padding: 1% 5%;
}

.mainright {
	width: 70%;
	float: right;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
}

.mainright img.resize {
	width: 100%;
	max-width: 600px;
	height: auto;
	margin: 1% 0;
}

.topmainright {
	background-color: #FFFFFF;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	padding: 1% 5%;	
	margin-bottom: 3%;
}

.bottommainright {
	background-color: #FFFFFF;	
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	padding: 1% 5%;
}

/* ===========================
   ===== Right Sidebar ======= 
   =========================== */

.right-sidebar-top {
	width: 22%;
	float: left;
	margin-left: 2%;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	background-color: #FAFAFA;	
	padding: 1% 3%;
	margin-bottom: 2%;
}

.right-sidebar-top img.resize {
	width: 100%;
	max-width: 500px;
	height: auto;
	margin: 1% 0;
}

.right-sidebar-middle {
	width: 22%;
	float: left;
	margin-left: 2%;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	background-color: #FAFAFA;	
	padding: 1% 3%;
	margin-bottom: 2%;
}

.right-sidebar-bottom {
	width: 22%;
	float: left;
	margin-left: 2%;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	background-color: #FAFAFA;	
	padding: 1% 3%;
}

/* ===========================
   ===== left Sidebar ======= 
   =========================== */

.left-sidebar-top {
	width: 22%;
	float: left;
	margin-left: 0%;
	margin-right: 2%;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	background-color: #FAFAFA;	
	padding: 1% 3%;
	margin-bottom: 2%;
}

.left-sidebar-top img.resize {
	width: 100%;
	max-width: 500px;
	height: auto;
	margin: 1% 0;
}

.left-sidebar-top ul {
	padding-left: 8%;
}

.left-sidebar-middle {
	width: 22%;
	float: left;
	margin-left: 0%;
	margin-right: 2%;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	background-color: #FAFAFA;	
	padding: 1% 3%;
	margin-bottom: 2%;
}

.left-sidebar-bottom {
	width: 22%;
	float: left;
	margin-left: 0%;
	margin-right: 2%;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	background-color: #FAFAFA;	
	padding: 1% 3%;
}

.left-sidebar-bottom img.resize {
	width: 100%;
	max-width: 500px;
	height: auto;
	margin: 1% 0;
}

/* ===========================
   ========= Footer ========== 
   =========================== */

.mainFooter {
	width: 100%;
	float: left;
	margin-top: 2%;
	margin-bottom: 2%;
	padding-left: 0;
	background-color: #6B6B6B;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;	
	color: #FFF;	
}

.mainFooter p {
	width: 91%;
	margin: 2% auto;
}

/* ===========================
   ====== Media Queries ====== 
   =========================== */

@media only screen and (min-width : 150px) and (max-width : 780px)
{
	.body {
		clear: both; 
		margin: 0 auto; 
		width: 90%;
		font-size: 100%;
	}
	
	.mainHeader nav {
		background: #90B878;
		font-size: 1.143em;
		height: 160px;
		line-height: 30px;
		margin-bottom: 0;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
	}
		
	.mainHeader nav ul {
		list-style: none; 
		margin: 0 auto;
		padding-left: 0;
	}
	
	.mainHeader nav li {
		margin-left: 0 auto;
		width: 100%;
	}
	
	.mainHeader nav a:link, .mainHeader nav a:visited {
		color: #FFF;
		display: block;
		height: 30px;
		padding: 5px 0;
		text-decoration: none;
	}
	
	.mainHeader nav a:active,
	.mainHeader nav .active a:link, .mainHeader nav .active a:visited {
		background: #517A38;
		color: #fff;
		text-shadow: none !important;
	}
		
	.mainHeader nav li a {
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
			
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
	}
	
	.mainHeader img {
		width: 100%;
		height: auto;
		margin-bottom: 0%;
	}

	.adjustImage img {
		width: 100%;
		height: auto;
		margin-bottom: 3%;
	}
	
	.mainContent {
		overflow: hidden;
		line-height: 25px;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
		margin-top: 4%;
		margin-bottom: 2%;
	}
	
	.mainleft {
		width: 100%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
	}	

	.topmainleft {
		background-color: #FFFFFF;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		padding: 2% 5%;
		margin-bottom: 4%;
	}
	
	.bottommainleft {
		background-color: #FFFFFF;	
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		padding: 2% 5%;
	}
	
	.mainright {
		width: 100%;
		float: right;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
	}	

	.topmainright {
		background-color: #FFFFFF;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		padding: 2% 5%;
		margin-bottom: 4%;
	}
	
	.bottommainright {
		background-color: #FFFFFF;	
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		padding: 2% 5%;
	}

	.post-info {
		display: none;
	}
	
	.right-sidebar-top {
		width: 86%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		background-color: #FAFAFA;	
		margin-top: 4%;
		margin-left: 0;
		padding: 0 7%;
		margin-bottom: 0;		
	}
	
	.right-sidebar-top p {
		width: 90%;
	}

	.right-sidebar-middle {
		width: 86%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		background-color: #FAFAFA;	
		margin-top: 4%;
		margin-left: 0;
		padding: 0 7%;
		margin-bottom: 0;	
	}
	
	.right-sidebar-middle p {
		width: 90%;
	}
	
	.right-sidebar-bottom {
		width: 86%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		background-color: #FAFAFA;	
		margin-top: 4%;
		margin-left: 0%;
		padding: 0 7%;
		margin-bottom: 1%;
	}
	
	.right-sidebar-bottom p {
		width: 90%;
	}
	
	.left-sidebar-top {
		width: 86%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		background-color: #FAFAFA;	
		margin-top: 0%;
		margin-left: 0;
		padding: 0 7%;
		margin-bottom: 2%;		
	}
	
	.left-sidebar-top p {
		width: 90%;
	}

	.left-sidebar-middle {
		width: 86%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		background-color: #FAFAFA;	
		margin-top: 0%;
		margin-left: 0;
		padding: 0 7%;
		margin-bottom: 0;	
	}
	
	.left-sidebar-middle p {
		width: 90%;
	}
	
	.left-sidebar-bottom {
		width: 86%;
		float: left;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		background-color: #FAFAFA;	
		margin-top: 4%;
		margin-left: 0%;
		padding: 0 7%;
		margin-bottom: 1%;
	}
	
	.left-sidebar-bottom p {
		width: 90%;
	}
		
	.mainFooter {
		width: 100%;
		float: left;
		margin: 2% 0;
		padding-left: 0;
		background-color: #6B6B6B;
		border-radius: 2px;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;	
		color: #FFF;	
	}
	
	.mainFooter p {
		width: 86%;
		margin: 2% auto;
	}
}