/*                                           */
/*      SGR Engineering Ltd CSS Template.    */
/*      Unathorised use prohibited.          */
/*                                           */

* { /*Ensure no margins or padding anywhere */
  margin: 0px auto;
  padding: 0px;
}

body {
  background:#dcdcdc;
  background-image: url("/imgs/borderfade.jpg");
  background-repeat: repeat-x;
  font-family: "Arial";
  font-size: 14px;
  color: #606060;
}
img.logo {
  margin-left:10px;
  margin-right:10px;
  margin-top:8px;
}
img.fullwidth {
	width:100%;
}
img.left {
  float:left;
  margin-left:10px;
  margin-right:10px;
  margin-top:8px;
}
img.photo{
  margin-top:4px;
  margin-bottom:8px;
  display:block; 
  margin-left:auto;
  margin-right:auto;  
  -moz-box-shadow: 3px 3px 4px #999; /* Firefox */
  -webkit-box-shadow: 3px 3px 4px #999; /* Safari/Chrome */
  box-shadow: 3px 3px 4px #999; /* Opera and other CSS3 supporting browsers */
  -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999')";/* IE 8 */
  : progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999'); /* IE 5.5 - 7 */  
}
p.address {
}
p.menutab { 
  font-weight: bold;
}
p.inset {
  padding: 5px 10px 0px 10px; /* top, right, bottom, left */
  text-align: justify;
}
h2.inset {
  padding: 5px 10px 0px; /* top, left&right, bottom */
}
h2.center {
	text-align:center;
}
li.inset {
   margin-top: 4px;
   margin-right: 8px;
   margin-bottom: 2px;
   margin-left: 24px;
  text-align: justify;
}
table.hosting{
  border-collapse: collapse; 
  border-spacing:0px;
  border-width:1px;
  border-style:solid;
  border-color:#000000;
  margin-top:8px;
  margin-bottom:8px;
}
table.noborder{
  border-spacing: 4px;
  border-width:0px;
}
td {
  color: #808080; 
  text-align: center;
  border-width:1px;
  border-style:solid;
}
td.noborder{
  border-width:0px;
}
td.blue{
  background-color: #ddddfe;
}
td.green{
  background-color: #ddfedd;
}
td.red{
  background-color: #fedddd;
  font-weight: bold;
}
a:active, a:link, a:visited {text-decoration: none; color : #0058ff; font-weight: bold;}
a:hover {text-decoration: underline; color: #000000; font-weight: bold;}
a img {border-width: 0px;}

.floatcontainer { /* styles for the class of div */
  overflow: hidden; /*ensures floats are cleared - modern browsers */
}
.floatcontainer:after {  /*ensures floats are cleared - older browsers */
  content: "";
  clear: both;
  display: block;
  height: 0;
  visibility: hidden;
}
#page { /* styles for the unique div id */
  background:#ffffff;
  max-width:946px;
  margin-top:10px;
  margin-bottom:10px;
  box-shadow: 3px 3px 5px #444444, -3px 3px 5px #444444;
}
.sgrlogo { /* styles for the class of div */
  float:left;
  padding:10px 32px 6px 6px;
}
.sgraddr { /* styles for the class of div */
  float:left;
  padding:10px 32px 6px 6px;
}
#sgrtel { /* style for the unique div id */
  float:right;
  padding:10px 32px 6px 6px;
}

#menutabs {
  overflow: hidden;
  background-image:url(/imgs/menutab_bg.jpg);
}
#menutabs li { /* styles for li elements in menutab div */
  list-style-image: none;
  list-style-type: none;
  float: left;
  text-align: center;
  display: block;
  background-image: url(/imgs/tab_active.jpg);
  background-repeat:no-repeat;
  color: #ffffff; /* active menu text colour */
  width: 130px; /* width and height of menu tabs */
  height: 28px;
}
#menutabs li a:link, #menutabs li a:visited, #menutabs li a:active { /* styles for a links in li elements in menutab div */
  padding: 4px 0px 0px 0px; /* padding around a link, top, right, bottom, left */
  display:block;
  background-image: url(/imgs/tab_inactive.jpg);
  background-repeat:no-repeat;
  color: #888888; /* inactive menu text colour */
  width: 130px; /* width and height of menu tabs */
  height: 28px;
}
#menutabs li a:hover {
  padding: 4px 0px 0px 0px; /* padding around a link, top, right, bottom, left */
  background-image: none; /* rather than replacing the image on hover, this removes it, revealing the li background image */
  color: #ffffff; /* active menu text colour */
  width: 130px; /* width and height of menu tabs */
  height: 28px;
}
.bluebar {
  width: 100%;
  height: 18px;
  background-image: url(/imgs/menubody_blue.jpg);
  padding: 2px 0px 0px 0px;
  overflow:hidden;
  font-family: "Comic Sans MS"; 
  font-size: 12px;  
  color: #ffffff;
  font-style: italic;
  text-align:center;
}
.card {
  float: right;
  clear: right;
  margin-right: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: -325px; /* corresponds to margin on div alongside it, and is needed for fluid width */
  width: 320px;
  height: 130px;
  overflow:hidden;
  background-image: url(/imgs/card_back.jpg);
}
.portfolio {
  float: left;
  margin: 3px;
  max-width: 460px;
  min-height: 150px;
  height: auto;
  overflow:hidden;
}
#mainbody {
  float: left;
  padding-bottom: 8px;
  margin-right:325px; /* corresponds to margin on div alongside it, and is needed for fluid width */
  max-width:600px; /* max width selected to be page width less card width */
  min-width:300px; /* min width selected to be lower than iphone 4 at 320 pixels */
}
@media only screen and (max-width:650px) { /* only applies to screens smaller than specified width */
  #mainbody {
    margin-right:0px;
  }
  .card {
    float:none;
    margin-left:auto;
    margin-right:auto;
  }
}
@media only screen and (max-width:560px) { /* only applies to screens smaller than specified width */
  #sgrtel {
    float:left;
  }
  #sgraddr {
	  display:none;
  }
}

