/* 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:  60px;
	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: 60px;
	margin-top: -60px;
	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 {
	display: none;
}

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

nav.horizontalNAV ul li {
	background: rgb(128,128,175);
	float: none;
	margin-left: auto;
	margin-right: auto;
	width: 87%;
}

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

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

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

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

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

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

section h4 a {
	color: rgb(0,0,50);
	text-decoration: none;
}

section h1 {
	color: rgb(0,0,0);
	background: rgb(128,128,175);
	border: rgb(0,0,0) solid 3px;
	font-family: sans-serif;
	display: block;
	padding: .6em;
	margin: 5% 5% 0px 5%;
}

section h2 {
	background: rgb(0,0,0);
	color: rgb(255,255,255);
	display: block;
	font-family: sans-serif;
	font-size: 1.3em;
	margin-bottom: 0px;
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 2%;
	padding: 8px;
	text-align: center;
}

section p {
	background: rgb(200,200,200);
	border: rgb(0,0,0) solid 1px;
	display: block;
	font-family: sans-serif;
	font-size: 1.1em;
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 0px;
	padding: 8px;
	text-align: justify;
}

section table {
	border: rgb(0,0,0) solid 1px;
	border-collapse: collapse;
	display: table;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0px;
	padding: 0px;
	width: 90%;
}

section table thead {
	display: table-header-group;
	margin: 0px;
	padding: 0px;
}

section table thead tr {
	display: table-row;
	margin: 0px;
	padding: 0px;
}

section table thead tr th {
	background: rgb(50,50,100);
	border-bottom: rgb(0,0,0) solid 1px;
	color: rgb(255,255,255);
	display: table-cell;
	float: left;
	font-family: sans-serif;
	font-size: .8em;
	font-style: bold;
	margin: 0px;
	padding: 10px 0px 10px 0px;
	width: 32%;
}

section table thead tr td {
	background: rgb(130,130,175);
	border-bottom: rgb(50,50,100) dotted 1px;
	border-right: rgb(50,50,100) dotted 1px;
	float: left;
	font-family: sans-serif;
	font-size: .8em;
	display: table-cell;
	margin: 0px;
	padding: 10px 0px 10px 0px;
	text-align: center;
	width: 22.3%;
}

section table thead tr td:last-of-type {
	border-right: none;
}

section table tbody {
	display: table-row-group;
	margin: 0px;
	padding: 0px;
}

section table tbody tr {
	display: table-row;
	margin: 0px;
	padding: 0px;
}

section table tbody tr th {
	background: rgb(50,50,100);
	color: rgb(255,255,255);
	display: table-cell;
	float: left;
	font-family: sans-serif;
	font-size: .7em;
	font-style: bold;
	margin: 0px;
	padding: 10px 0px 10px 0px;
	width: 32%;
}

section table tbody tr td {
	background: rgb(175,175,200);
	border-right: rgb(50,50,100) dotted 1px;
	display: table-cell;
	float: left;
	font-family: sans-serif;
	font-size: .8em;
	font-weight: bold;
	margin: 0px;
	padding: 10px 0px 10px 0px;
	text-align: center;
	width: 22.3%;
}

section table tbody tr td:last-of-type {
	border-right: none;
}

section ul li {
	background: rgb(0,0,0);
	border-radius: 15px;
	color: rgb(255,255,255);
	display: block;
	font-family: sans-serif;
	font-size: 1.5em;
	list-style-type: none;
	margin-bottom: 10px;
	margin-right: 10%;
	padding: .3em;
	width: 220px;
}

section ul li a {
	color: rgb(255,255,255);
	font-family: sans-serif;
	font-style: bold;
	padding: .7em;
	text-decoration: none;
}

section h3 {
	background: rgb(0,0,0);
	border: rgb(255,255,255) solid 3px;
	border-radius: 15px;
	display: block;
	margin-left: 5%;
	width: 192px;
}

section h3 a {
	color: rgb(255,255,255);
	font-family: sans-serif;
	font-size: 1.4em;
	padding: .5em;
	text-decoration: none;
}

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;
	padding-bottom: .5em;
	padding-top: .5em;
	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: 100%;
}

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 {
	display: none;
}

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

nav.horizontalNAV ul li {
	background: rgb(128,128,175);
	float: left;
	margin-left: 3%;
	margin-right: 3%;
	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;
	margin: 0px;
	width: 100%;
}

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

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

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

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

section h4 a {
	color: rgb(0,0,50);
	text-decoration: none;
}

section h1 {
	color: rgb(0,0,0);
	background: rgb(128,128,175);
	border: rgb(0,0,0) solid 3px;
	font-family: sans-serif;
	display: block;
	padding: .6em;
	margin: 5% 5% 0px 5%;
}

section h2 {
	background: rgb(0,0,0);
	color: rgb(255,255,255);
	display: block;
	font-family: sans-serif;
	font-size: 1.3em;
	margin-bottom: 0px;
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 2%;
	padding: 8px;
	text-align: center;
}

section p {
	background: rgb(200,200,200);
	border: rgb(0,0,0) solid 1px;
	display: block;
	font-family: sans-serif;
	font-size: 1.1em;
	margin-left: 5%;
	margin-right: 5%;
	margin-top: 0px;
	padding: 8px;
	text-align: justify;
}

section table {
	border: rgb(0,0,0) solid 1px;
	border-collapse: collapse;
	display: table;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0px;
	padding: 0px;
	width: 90%;
}

section table thead {
	display: table-header-group;
	margin: 0px;
	padding: 0px;
}

section table thead tr {
	display: table-row;
	margin: 0px;
	padding: 0px;
}

section table thead tr th {
	background: rgb(50,50,100);
	border-bottom: rgb(0,0,0) solid 1px;
	color: rgb(255,255,255);
	display: table-header;
	float: left;
	font-family: sans-serif;
	font-size: 1.1em;
	font-weight: bold;
	margin: 0px;
	padding: .75em 0px .75em 0px;
	width: 32%;
}

section table thead tr td {
	background: rgb(130,130,175);
	border-bottom: rgb(50,50,100) dotted 1px;
	border-right: rgb(50,50,100) dotted 1px;
	display: table-cell;
	float: left;
	font-family: sans-serif;
	font-size: 1.1em;
	display: block;
	margin: 0px;
	padding: .75em 0px .75em 0px;
	text-align: center;
	width: 22.4%;
}

section table thead tr td:last-of-type {
	border-right: none;
}

section table tbody {
	display: table-row-group;
	margin: 0px;
	padding: 0px;
}

section table tbody tr {
	display: table-row;
	margin: 0px;
	padding: 0px;
}

section table tbody tr th {
	background: rgb(50,50,100);
	color: rgb(255,255,255);
	display: table-header;
	float: left;
	font-family: sans-serif;
	font-size: 1.1em;
	font-weight: bold;
	margin: 0px;
	padding: .75em 0px .75em 0px;
	width: 32%;
}

section table tbody tr td {
	background: rgb(175,175,200);
	border-right: rgb(50,50,100) dotted 1px;
	display: table-cell;
	float: left;
	font-family: sans-serif;
	font-size: 1.1em;
	font-weight: bold;
	margin: 0px;
	padding: .75em 0px .75em 0px;
	text-align: center;
	width: 22.4%;
}

section table tbody tr td:last-of-type {
	border-right: none;
}

section ul li {
	background: rgb(0,0,0);
	border-radius: 15px;
	color: rgb(255,255,255);
	display: block;
	font-family: sans-serif;
	font-size: 1.5em;
	list-style-type: none;
	margin-bottom: 10px;
	margin-right: 10%;
	padding: .3em;
	width: 220px;
}

section ul li a {
	color: rgb(255,255,255);
	font-family: sans-serif;
	font-style: bold;
	padding: .7em;
	text-decoration: none;
}

section h3 {
	background: rgb(0,0,0);
	border: rgb(255,255,255) solid 3px;
	border-radius: 15px;
	display: block;
	margin-left: 5%;
	width: 192px;
}

section h3 a {
	color: rgb(255,255,255);
	font-family: sans-serif;
	font-size: 1.4em;
	padding: .5em;
	text-decoration: none;
}

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;
	padding-bottom: .5em;
	padding-top: .5em;
	text-align: center;
	width: 100%;
}

}