html,body {
	height: 100%;
	width: 100%;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	background-color:#047;
	color: #FFF;
	margin: 0px;
	padding: 0px;
}
a {
	color: #FFF;
}
#container {
	width: 90%;
	margin: 0px auto;
	padding: 90px 0px 20px 0px;
	position: relative;
}
#content {
	width: 100%;
	max-width: 760px;
	margin:0px auto;
	position: relative;
}
#mob-menu {
	display: block;
	position: fixed;
	top:0px;
	width:100%;
	height: 60px;
	padding: 0px;
	background-color:#fff;
	z-index: 120;
}
.mob-hide {
	display: none !important;
}
#mm {
	width:40px;
	height: 40px;
	position: absolute;
	left: 20px;
	top: 10px;
}
#ml {
	width:38px;
	height:50px;
	position: absolute;
	right: 20px;
	top:5px;
}
#main-menu {
	display: none;
	position: fixed;
	top: 60px;
	left: 0px;
	width: 100%;
	background-color: #047;
	z-index: 100;
}
#main-menu a {
	display: block;
	height: 40px;
	width: 100%;
	color: #FFFFFF;
	background-color: #047;
	border-bottom: 1px solid #ccc;
	text-decoration: none;
	font-weight: bold;
	position:relative;
	text-align:center;
	line-height: 40px;
}
#main-menu a:hover {

}
img {
	max-width: 100%
}
.table {
	max-width: 100%;
	margin: auto;
}
.tr {
	vertical-align: top;
}
.td {
	display: block;
}
.table.home .tr {
	max-width:670px;
	margin: auto;
}
.table.home .tr .td {
	display: block;
	margin: auto;
	padding: 0px 10px 15px 10px;
}
.home a {
	font-weight: bold;
	color: #fff;
	text-decoration: none;
}
.tr.pl {
	display: grid;
	grid-template-columns: 33.3333% 33.3333% 33.3333%;
  grid-template-rows: auto;
  grid-template-areas:
    "f1 f1 f1"
    "f2 f3 f4";
}
.td.f1 {
	grid-area: f1;
}
.td.f2 {
	grid-area: f2;
}
.td.f3 {
	grid-area: f3;
}
.td.f4 {
	grid-area: f4;
}
.bodystyle {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
}

.small {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 9px;
}

.medium {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
}

.big {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 16px;
}

.xbig {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 24px;
}

.expanded {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 2px;
}

.justified {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	text-align: justify;
}
.center {
	text-align: center;
}
.footer {
	font-family: "Times New Roman", Times, serif;
	font-size: 9px;
	color: #999999;
}

.box1 {
	padding: 3px;
	border-width: thin;
	border-style: solid;
	border-color: #CCCCCC #666666 #666666 #CCCCCC;
}

.box2 {
	font-style: italic;
	word-spacing: 2pt;
	padding: 3px;
	border-width: thin;
	border-style: solid;
}

#mc {
	background-attachment: fixed;
	background-image: url(/m1/bg_001.gif);
	background-repeat: no-repeat;
	background-position: left center;
}

.logos {
	background-color: #FFFFFF;
}
.blackfont {
	color: #000000;
}
.details {
	color: #000000;
	padding: 15px;
	border: 2px solid #0066cc;
	background-color: #fff;
}
.details a {
	color: #000000;
}
.curveBox {
  margin: 0 auto;
  color: #000;
  width: 100%;
  padding: 0px;
	background-color: #fff;
  border: 3px solid #0066cc;
	border-radius: 15px;
}
.curveBox2 {
	color: #ffffff;
	width: 100%;
	padding: 20px 0px;
	border: 1px solid #ffffff;
	background-color: #0061AB;
	margin-top: 15;
	margin-right: auto;
	margin-bottom: 15;
	margin-left: auto;
}
.curveBox2 p {
	padding: 5px 20px;
}
.curveBox a {
    color: #000000;
}
.curveImg {
    margin: 0 auto;
    padding: 0px;
	width: 150px;
	height: 150px;
}
#topscroll {
	position: fixed;
	visibility: visible;
	z-index: 9;
	height: 30px;
	width: 30px;
	top: 30px;
	right: 30px;
}
#botscroll {
	position: fixed;
	visibility: visible;
	z-index: 9;
	height: 30px;
	width: 30px;
	bottom: 30px;
	right: 30px;
}
.underline {
	text-decoration: underline;
}
ul {
	list-style-type: square;
	padding-left: 12px;
}
.cm {
	text-align:center;
}
#afmlogo img {
	max-width: 100%
}
#homelogo {
	margin:0px auto 20px auto;
	max-width: 90%;
}


#copyright {}
.boldred {
	font-weight: bold;
	color: #FF0000;
}
.sidemenu {
 width: 170px;
 max-width: 170px;
}
.sidemenu a {
	color:#ffffff;
	display:block;
	padding: 5px;
	background-color: #0061AB;
	text-decoration:none;
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #CCCCCC;
	border-bottom-color: #333333;
}
.sidemenu a:hover {
background-color:#ffffff;
color:#000066;
}
.sidemenu p {
	color:#fff;
	display:block;
	padding: 5px;
	background-color: #0061AB;
	text-decoration:none;
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #CCCCCC;
	border-bottom-color: #333333;
	font-weight: bold;
	margin: 0px;
}
#c1, #c2, #c3, #c4, #c5, #c6, #c7, #c8 {display: none}

@media (min-width: 768px) {
	html,body {
		background-image: url(/m1/bg.jpg);
		background-repeat: repeat-x;
		background-attachment: fixed;
	}
	#mob-menu {
		display: none;
	}
	.mob-hide {
		display: inline-block !important;
	}
	#main-menu {
		position: relative;
		background-color: transparent;
		display: block;
		max-width: 768px;
		margin: 40px auto 0px auto;
		text-align: center;
		top:0px;
	}
	#main-menu a {
		display: inline-block;
		height: 26px;
		width: 183px;
		background-color: transparent;
		background-image: url(/m1/bbgu.gif);
		background-repeat: no-repeat;
		background-position: center top;
		color: #FFF;
		text-decoration: none;
		font-weight: bold;
		padding-top: 5px;
		position:relative;
		top:-15px;
		left:0px;
		text-align:center;
		line-height: 20px;
		border: none;
	}
	#main-menu a:hover {
		background-image: url(/m1/bbgo.gif);
		background-repeat: no-repeat;
		background-position: center top;
	}
	#container {
		padding: 0px;
		width: 100%;
	}
	#content {
		padding: 0px 20px;
	}
	.table {
		display: block;
		position: relative;
		max-width: 100%;
	}
	.tr {
		display: grid;
		grid-template-columns: 40% 20% 20% 20%;
		grid-template-rows: auto;
		vertical-align: top;
		margin:0px;
		padding: 0px;
	}
	.tr.pl {
		display: grid;
		grid-template-columns: 40% 20% 20% 20%;
	  grid-template-rows: auto;
	  grid-template-areas:
	    "f1 f2 f3 f4";
	}
	.tr.sm {
		grid-template-columns: 190px auto;
	}
	.tr.col4 {
		grid-template-columns: 25% 25% 25% 25%;
	}
	.tr.col5 {
		grid-template-columns: 20% 20% 20% 20% 20%;
	}
	.table.projects .tr {
		grid-template-columns: 60% 40%;
	}
	.table.galhome .tr {
			grid-template-columns: 32% 32% 32%;
			grid-gap: 2% 20px;
			justify-content: space-between;
	}
	.table.galhome .td {
		margin-bottom: 15px;
	}
	.table.galhome img {
		width:100px;
		height: 100px;
		max-width: 100%;
	}
	.tr.col4 .td img {
		max-width: 90%;
		text-align: center;
	}
	.td {
		vertical-align: top;
	}
	.td.fw {
		grid-column: 1 / span 5;
	}
	.td.cs {
		grid-column: 2 / span 3;
	}
	.table.home .tr {
		max-width:760px;
		display: block;
	}
	.table.home .tr .td {
		display: inline-block;
		margin:0px;
		padding: 0px 0px 15px 0px;
		width: 185px;
		max-width: 185px;
	}
	.td.p33 {
		width:32%;
		max-width:33%;
	}
	#c1, #c2, #c3, #c4, #c5, #c6, #c7, #c8 {display: inline-block; position: absolute;}
	#c1 {
		height: 59px;
		width: 59px;
		max-height:59px;
		max-width: 59px;
		background-image: url(/m1/bordtopleft.gif);
		background-repeat: no-repeat;
		background-position: left top;
		top:0px;
		left:0px;
		z-index: 111;
	}
	#c2 {
		background-image: url(/m1/bordtop.gif);
		background-repeat: repeat-x;
		background-position: left top;
		top:0px;
		left:0px;
		z-index: 110;
	}
	#c3 {
		background-image: url(/m1/bordtopright.gif);
		background-repeat: no-repeat;
		background-position: right top;
		height: 59px;
		width: 59px;
		max-height:59px;
		max-width: 59px;
		top:0px;
		right:0px;
		z-index: 111;
	}
	#c4 {
		height: 59px;
		width: 59px;
		max-height:59px;
		max-width: 59px;
		background-image: url(/m1/bordleft.gif);
		background-repeat: repeat-y;
		background-position: left top;
		top:0px;
		left:0px;
		z-index: 110;
	}
	#c5 {
		height: 59px;
		width: 59px;
		max-height:59px;
		max-width: 59px;
		background-image: url(/m1/bordright.gif);
		background-repeat: repeat-y;
		background-position: right top;
		top:0px;
		right:0px;
		z-index: 110;
	}
	#c6 {
		height: 59px;
		width: 59px;
		max-height:59px;
		max-width: 59px;
		background-image: url(/m1/bordbotleft.gif);
		background-repeat: no-repeat;
		background-position: left bottom;
		bottom:0px;
		left:0px;
		z-index: 111;
	}
	#c7 {
		background-image: url(/m1/bordbot.gif);
		background-repeat: repeat-x;
		background-position: left bottom;
		bottom:0px;
		left:0px;
		z-index: 110;
	}
	#c8 {
		height: 59px;
		width: 59px;
		max-height:59px;
		max-width: 59px;
		background-image: url(/m1/bordbotright.gif);
		background-repeat: no-repeat;
		background-position: right bottom;
		bottom:0px;
		right:0px;
		z-index: 111;
	}
}

@media (min-width: 1024px) {
	#content, .table.home .tr, #main-menu {
		max-width: 1000px
	}
	.table.home .tr .td, #main-menu a {
		width: 245px;
		max-width: 245px;
	}
}
