

/* Colours the background
html,body {
  background-color: #ffc;
} */

/* Background image */
html, body {
  background-image: url("Images/BImg.jpg");
  background-size: 100%;
  background-attachment: fixed;
}

/* To secure correct behavior in older browsers, the CSS display property is set for these HTML elements in block: */
header, section, footer, aside, nav, main, article, figure {
  display: block;
}

/* #### Divisions #### */

main{
  width: 1020px;
  min-height: 764px;
  background-color: #fff; /* White */
  position: relative;
  margin: auto;
  margin-top: -8px;
  border: 2px solid #000066;
  z-index: 0;
}
  
header{
    width: 1015px/*1500px*/;
    height: 150px;
    background-color: #80bfff; /* Light Blue */
    border: 2px solid #fff; /* White */
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
}

nav{
  width: 1015px;
  height: 48px;
  background-color: #6699ff /*#fff*/; /* Blue */
  border: 2px solid #fff; /* White */
  position: absolute;
  top: 148px;
  left: 0px;
  z-index: 2;
}

aside{
  width: 200px;
  min-height: 514px;
  /*background-color: #80bfff;*/
  /*border: 2px solid #fff;*/
  position: absolute;
  top: 198px;
  left: 0px;
  z-index: 1;
}

footer{
  width: 1015px;
  height: 48px;
  background-color: #6699ff;
  border: 2px solid #fff;
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 2;
}

section{
  width: 820px;
  min-height: 514px;
  background-color: #cccccc;
  border: 2px solid #fff;
  position: absolute;
  top: 198px;
  right: 1px;/*650*/
  z-index: 1;
}

article{
  width: 807px;
  height: 160px;
  background-color: #F0F8FF;
  border: 1px solid #fff;
  position: relative;
  margin: 6px 5px 0px 5px;
  z-index: 2;
}

figure{
  position: absolute;
  height: 145px;
  z-index: 4;
}

/* #### CLASSES #### */
figure.left{
  margin: 5px 0px 0px 5px;
  left: 0px;
  top: 0px;
  width: 145px;
  background-color: #ddd;
  border: 1px solid #555;
}

figure.right{
  margin: 5px 5px 0px 0px;
  right: 0px;
  top: 0px;
  width: 640px;
  background-color: #e9d1f7;
  border: 1px solid #f0f;
}

/* #### Navigation #### */

nav ul {
  text-align: center;
  margin: 5px 20px 0px 155px;
  padding-top: 7px;
}

nav ul li {
  display: inline;
  list-style: none;
  float: left;
}

nav a:link, nav a:hover, nav a:visited{                      /* #### NEEDS FIXING #### */
  font-family: Calibri;
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
  padding: 0px 15px 0px 15px;
  border: 2px solid #000;
  border-radius: 6px;
  margin: 5px;
}

nav a:link{
  color: #000;
  background-color: #fff;
}

nav a:hover{
  color: #000;
  background-color: #aaa;
}

nav a:visited{
  color: #777;
  background-color: #222;
}                                                            /* #### UP TO HERE #### */
  
/* #### CLASS #### */

aside.opacity{
  width: 192px;
  background-color: #6699ff/*80bfff*/;
  opacity: 0.7;
}
  
  