/* Styles for mobile screens 1000px wide or less */

/* Phones in portrait mode */

@media screen and (orientation: portrait) {

/* General styles */

body, header, horizontalNAV, section, footer {
	background: rgb(0,0,0);
	display: block;
	margin: 0px;
	padding: 0px;
}

header {
	background: rgb(0,0,0);
	background-image: url(logo3bs.png);
	background-position: left top;
	background-repeat: no-repeat;
	color: rgb(255,255,255);
	height:  70px;
	width: 80%;
}

header h1 {
	display: block;
	font-size: 2em;
	margin: 0px 0px 0px 70px;
	padding: 0px;
}

header h2 {
	display: block;
	font-size: 1em;
	margin: 0px 0px 0px 70px;
	padding: 0px;
}

aside {
	background: rgb(0,0,0);
	display: block;
	float: right;
	height: 70px;
	margin-top: -70px;
	width: 20%;
}

aside ul {
	margin: 0px;
	padding: 0px;
}

aside ul li {
	background: rgb(0,0,0);
	display: block;
	float: right;
}

aside ul li a {
	background-image: url(menu.png);
	background-repeat: no-repeat;
	display: block;
	height: 60px;
	list-style-type: none;
	text-decoration: none;
	width: 60px;
}

nav.horizontalNAV ul {
	display: block;
	float: left;
	margin: 0px;
	padding: 0px;
	width: 100%;
}

nav.horizontalNAV ul li {
	background: rgb(128,128,175);
	border-radius: 15px;
	float: left;
	list-style-type: none;
	margin-bottom: 5px;
	margin-left: 4%;
	margin-right: 4%;
	width: 90%;
}

nav.horizontalNAV ul li a {
	border-bottom: rgb(0,0,0) solid 2px;
	color: rgb(255,255,255);
	display: block;
	font-size: 1.3em;
	font-family: sans-serif;
	padding: .3em 0px .3em 0px;
	text-align: center;
	text-decoration: none;
}

nav.horizontalNAV ul li ul li {
	background: rgb(50,50,50);
	border: none;
	border-radius: 0px;
	margin: 0px;
	width: 100%;
}

nav.horizontalNAV ul li ul li:last-of-type {
	border-radius: 0px 0px 15px 15px;
}

nav.horizontalNAV ul li ul li a {
	border: none;
}

section {
	background: rgb(180,180,180);
	border-top: rgb(0,0,0) solid 10px;
	display: block;
	float: left;
	text-align: center;
	height: auto;
	width: 100%;
}

section a {
	color: rgb(150,10,10);
	text-decoration: none;
}

section a:active {
	color: rgb(10,10,80);
}

section p {
	font-family: sans-serif;
	margin-left: 10%;
	margin-right: 10%;
	text-align: justify;
}

footer {
	background: rgb(0,0,0);
	color: rgb(255,255,255);
	display: block;
	float: left;
	font-family: sans-serif;
	font-size: .8em;
	font-variant: small-caps;
	height: 7%;
	text-align: center;
	width: 100%;
}

}

/* Phones in landscape mode */

@media screen and (orientation: landscape) {
	
/* General styles */

body, header, horizontalNAV, section, footer {
	background: rgb(0,0,0);
	display: block;
	margin: 0px;
	padding: 0px;
}

header {
	background: rgb(0,0,0);
	background-image: url(logo3bs.png);
	background-position: left top;
	background-repeat: no-repeat;
	color: rgb(255,255,255);
	height:  80px;
	width: 75%;
}

header h1 {
	display: block;
	font-size: 2.5em;
	margin: 0px 0px 0px 70px;
	padding: 0px;
}

header h2 {
	display: block;
	font-size: 1.2em;
	margin: 0px 0px 0px 70px;
	padding: 0px;
}

aside {
	background: rgb(0,0,0);
	display: block;
	float: right;
	height: 80px;
	margin-top: -80px;
	width: 25%;
}

aside ul {
	margin: 0px;
	padding: 0px;
}

aside ul li {
	background: rgb(0,0,0);
	display: block;
	float: right;
}

aside ul li a {
	background-image: url(menu.png);
	background-repeat: no-repeat;
	display: block;
	height: 60px;
	list-style-type: none;
	text-decoration: none;
	width: 60px;
}

nav.horizontalNAV ul {
	display: block;
	float: left;
	margin: 0px;
	padding: 0px;
	width: 100%;
}

nav.horizontalNAV ul li {
	background: rgb(128,128,175);
	border-radius: 15px;
	float: left;
	list-style-type: none;
	margin-bottom: 5px;
	margin-left: 4%;
	margin-right: 4%;
	width: 42%;
}

nav.horizontalNAV ul li a {
	border-bottom: rgb(0,0,0) solid 2px;
	color: rgb(255,255,255);
	display: block;
	font-size: 1.3em;
	font-family: sans-serif;
	padding: .3em 0px .3em 0px;
	text-align: center;
	text-decoration: none;
}

nav.horizontalNAV ul li ul li {
	background: rgb(50,50,50);
	border: none;
	border-radius: 0px;
	margin: 0px;
	width: 100%;
}

nav.horizontalNAV ul li ul li:last-of-type {
	border-radius: 0px 0px 15px 15px;
}

nav.horizontalNAV ul li ul li a {
	border: none;
}

section {
	background: rgb(180,180,180);
	border-top: rgb(0,0,0) solid 10px;
	display: block;
	float: left;
	text-align: center;
	height: auto;
	width: 100%;
}

section a {
	color: rgb(150,10,10);
	text-decoration: none;
}

section a:active {
	color: rgb(10,10,80);
}

section p {
	font-family: sans-serif;
	margin-left: 10%;
	margin-right: 10%;
	text-align: justify;
}

footer {
	background: rgb(0,0,0);
	color: rgb(255,255,255);
	display: block;
	float: left;
	font-family: sans-serif;
	font-size: .8em;
	font-variant: small-caps;
	height: 7%;
	text-align: center;
	width: 100%;
}

}