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

header, section, footer, aside, nav, main, article, figure{
  display: block;
}

main{
  width: 1020px;
  min-height: 764px;
  background-color: #404040;
  position: relative;
  margin: auto;
  margin-top: -8px;
  border: 2px solid #faf8f7;
  z-index: 0;
}

header{
  width: 1020px;
  height: 148px;
  border: 2px solid #faf8f7;
  position: absolute;
  top: -2px;
  z-index: 1;
}

nav{
  width: 1020px;
  height: 48px;
  background-color: #e6e6e6;
  border: 2px solid #faf8f7;
  position: absolute;
  top: 148px;
  left: -2px;
  z-index: 2; /* Sits above the header */ 
}

aside{
  width: 202px;
  min-height: 514px;
  /* background-color: #e6e6e6;
  border: 2px solid #000; */
  position: absolute;
  padding: 5px 5px 5px 5px;
  top: 198px;
  left: -2px;
  z-index: 1;
}

.opacity{
  width: 196px;
  background-color: #666;
  opacity: 0.7;
}

.border{
  border: 2px solid #000;
}

h1, h2, h3, p, ol, ul, li{
  margin: 4px 4px 4px 4px;
  font-family: Trebuchet;
}

h1{
  font-size: 1.4em;
  color: #fff;
}

h2{
  font-size: 1.2em;
  color: #fff;
}

h3{
  font-size: 1.1em;
  color: #fff;
}

p, ul, ol li{
  font-size: 0.8em;
}

.purple{
  color: #a231e5;
}

.blue{
  color: #2506ad;
}

.brown{
  color: #e68407;
}

section{
  width: 820px;
  min-height: 518px;
  background-color: #262626;
  border: 2px solid #faf8f7;
  position: absolute;
  top: 198px;
  right: -2px;
  z-index: 1;
}

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

/* WORKING ON THE SECTION */

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

figure.left{
  margin: 5px 0px 0px 5px;
  left: 640px;
  top: 0px;
  width: 145px;
  background-color: #f2f2f2;
  border: 1px solid #555;
}

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

footer{
  padding: 5px 5px 5px 5px;
  width: 1010px;
  height: 38px;
  background-color: #999999;
  border: 2px solid #faf8f7;
  position: absolute;
  bottom: -2px;
  left: -2px;
  z-index: 2; /* Sits above the header */ 
}

.opacity3{
  padding: 0px;
  width: 1020px;
  min-height: 48px;
  background-color: #999;
  opacity: 0.5;
}

/* 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{
  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:#777;
  background-color:#fff;
}

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

nav a:visted{
  color:#777;
  background-color:#222;
}