/*
      Final Project

      Author: Ryan Brownell, W0274281
      Date: December 12, 2015
      Filename: layout.css

*/

/* Reset All Elements Margins and Padding */
* {
	margin:0;
	padding:0;
}

/* Set HTML Background */

html{
	width: 100%;
	height: 100%;
	background-color: #000;
	background-image: url('../images/bg_texture.png');
	background-size:100% 100%;
	background-min-height: 100%;
	background-max-height: 100%
	background-min-width: 90%;
	background-max-wdith: 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* Body Layout */

body{
}

/* Header Layout */

header{
	margin:0 auto;
	max-width: 1400px;
	min-width: 1000px;
}

/* Navigation Layout */

nav{
	margin:0 auto;
	max-width: 1400px;
	min-width: 1000px;
}

/* Section Layout */

section {
	margin: 0 auto;
	margin-top: 25px;
	padding: 0 5px;
	max-width: 1390px;
	min-width: 990px;
	position: relative;
	overflow: auto;
	background-clip:m-box;
}

/* Article Layout */

article {
	padding: 35px;
	position: relative;
	overflow: auto;
	background-clip:m-box;
}

article figure {
	margin: 20px 0 20px 20px;
	float: right;
	clear: right;
	max-width: 25%;
}

article figure:first-of-type {
	margin-top:0;
}

article figure:last-of-type {
	margin-bottom:0;
}

article figure img{
	width: 100%;
	max-width:100%;
}

article p{
	margin-top: 20px;
} 

article p:first-of-type, article h1 + p, article h2 + p, article h3 + p, article h4 + p, article h5 + p {
	margin:0;
}

article p + h1, article p + h2, article p + h3, article p + h4, article p + h5, article ul + h1, article ul + h2, article ul + h3, article ul + h4, article ul + h5 {
	margin-top: 20px;
}

article ul > li {
	margin-left: 25px;
}

article dl {
	margin-top:20px;
}

article dt {
	margin-top: 20px;
}

article dt:first-of-type {
	margin-top:0;
}

/* Special Classes */

.twocol {
	-webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

/* Footer Layout */

footer {
	margin: 0 auto;
	margin-top: 25px;
	margin-bottom: 6%;
	max-width: 1320px;
	min-width: 930px;
	padding: 0 35px;
}


/* Texture Layer: Adds additional texture layer to add depth to website design. */
div.texturelayer{
	position: fixed;
	bottom:0;
	height: 10%;
	background-image: url('../images/ft_texture.png');
	background-size:100% 100%;
	background-min-height: 100%;
	background-max-height: 10%
	background-min-width: 100%;
	background-max-wdith: 100%;
	width:100%;
}
