 /*This installs font, look at w3*/
@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,500);  

#content {
	width: 100%;
}
	
a {
	text-decoration: none;
	
}

#content a {
	border-bottom: 2pt solid #fdfcfc;
	padding-bottom: 2px;
	color: white;
	font-weight: 400;

}

html {
    /*really important!!! cause body is static by defualt and is child of the overfllow html parent*/
	background-color: #535353;
	color: white;
}

body {
    margin: auto;
    /*really important, 100% width works properly, if its margin is well defied*/ 
    
    /*background color here for body sizing*/ 
	position: relative;
	width:100%;
	height:1000px;
}


.header {
	width:100%;
	/* This is also working because I set the body margin auto and position relative */
	height:80px;
	background-color: rgba(255,255,255,1);    /* other colors #e04b0f , #cb3030 */ 
/* USE RGBa for OPACITY CHANGE so the child is not interupted!!! really cool!!!! */
	opacity: 1;
	color: white;
	box-shadow: 0px -2px 10px 0px #000000;
	z-index: 3;
	position: fixed;
	top: 0px;
}

#menu {  /* #menu needs to be defined first before defining li, delete and see what happens*/
	list-style-type:none;/*this MUST be here to remove the bullets*/
    text-decoration: none;
    text-align: center; /* this is how to make it CENTRED IT IS NOT A DIV TO BE CENTERED BY MARGINE AUTO!!! */
	position: relative;
	width:900px;
    height:80px;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    /* margin left auto cause the #menu to be at the right position */
}

#menu a {
	color: black;
}

#menu li {
	color: black;
	cursor: pointer;
    font-size: 16pt;
    font-family: Roboto;
    font-weight: 400;
    position: relative;
	display: inline-block;
	top: 50%;
    padding: 0px 58px 0px 0px; /*its better to use this rather than margine*/
    
}

/* Start of menu */
.col-1 {
	width: 100%;
}
.col-2 {
	width: 49%;
}
.subMenu {
	
	width: 100%;
	position: fixed;
	background-color: rgba(255,255,255,0.97);
	z-index: 2;
	color: black;
	font-family: Roboto;
	border-bottom: 5pt solid #F9A825;
	padding-bottom: 2em;
	top: -40em;
	display: none;

}

/*be CAREFUL ul li will also assign the children! you need to overide the children e.g ul li ul li {} */

.subMenu ul:nth-child(1) {
	position: relative;
	padding-top: 100px;
	margin-right: 3em;
	margin-left: auto;
	margin-bottom: auto;
	margin-top: auto;
	text-decoration: none;
	list-style-type: none;
	font-weight: 500;
	text-align: center;
	font-size: 17pt;
	
}

.subMenu ul li {
	
	display: inline-block;
	width: 49%;
		
		
}



.subMenu ul li li{
	position: relative;
	text-decoration: none;
	list-style-type: none;
	font-weight: 400;
	font-size: 15pt;
	text-align: left;
	width: 100%;
	padding-top: 10pt;

}	
.subMenu ul li li:nth-child(1){
	border-top: 4px solid #FFEB3B;
	padding-top: 10pt;
	margin-top: 0.2em;
}

.subMenu ul li ul a {
	color: black;
	
}

.subMenu a div {
	width: 100%;
	position: relative;
	border-bottom: 4pt solid rgba(255, 255, 255, 0) ;
	
}

.subMenu a div:hover {
	border-bottom: 4pt solid #AEEA00;
	
}

/* iOS cross */
.cross {
	z-index: 4;
	position: fixed;
	top: 70pt;
	left: -40pt;
	display: none;

}

.cross img {
	width: 40pt;
}

/* end of menu */



#banner {
    position: relative;
	width: 100%;
	
}

#BODY {
	position: relative;
	z-index: 1;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: -25px;
	box-shadow: inset 0px 1px 7px black;
}

#content {
	
	width: 45em;
	margin: auto;
	
}

.images {
	margin: 60px;	/* MARGIN NOT MARGIN-TOP!!! this makes sure they are under the paragraph ;) by chance got it */
	width: 700px;
	border-top: 2px dotted white;
	border-bottom: 2px dotted white;
}

h1 {
	color: white;
	font-family: Roboto;
	font-weight: 300;
	text-align: center;
}



h3 {
    text-align: left;
	font-family: Roboto;
	font-weight: 300;
	color: white;
	font-size: 20pt
}

.centre {

    text-align: center;
    margin: auto;
    padding-left: 4em; 
	font-family: Quicksand;
	font-weight: 400; /*font is too light otherwise*/
	color: white;
	line-height: 200%;
}

h5 {
	color: white;
	font-family: Roboto;
	font-weight: 300;
	font-size: 16pt;
}

p {
	font-size: 14pt;
    text-align: justify;
    padding-left: 4em; 
	font-family: Roboto;
	font-weight: 300; /*font is too light otherwise*/
	color: white;
	line-height: 200%;
}

article ol { 
	color: white;
	text-align: left;
    padding-left: 7em; 
	font-family: Roboto;
	font-weight: 400; /*font is too light otherwise*/
	color: white;
	line-height: 200%;

	
}

.hype {
	
	margin-top: 30px;
	width: 700px;
	border-top: 2px dotted white;
	border-bottom: 2px dotted white;
}

center {
	font-family: Roboto;
	font-weight: 400; /*font is too light otherwise*/
	color: white;
	line-height: 200%;
}

#lastP {
	padding-bottom: 10em;  /*more universal than using the #content height */
}



h4 {
	font-family: Roboto;
	font-weight: 400;
	color: white;
	text-align: center; 
	padding-top: 40px;
	padding-bottom: 50px;
}

body img {
	position: relative;
	width: 100px;
	margin: auto;
	display: block; /*display should be block so that it will be centre*/
}

#link {
	width: 260px;
	margin: auto;
}

#fbook {
	margin-left:120px;
	position: relative;

}

#twitter {
	position: relative;
    margin-right: 125px;
	margin-top: -100px;

}


#displayIphone {
	display: none;
}

lastP span {
	display: none;
}

/* ----------- iPad ----------- */

@media only screen 
  and (min-width: 768px) 
  and (max-width: 1024px) {
	 
	#menu {
	 	margin: auto;
	}
	
	#menu li {
		right: 80px;
		padding-right: 30px;
	}
}

/* ----------- Mobile ----------- */

@media only screen  
  and (max-width: 736px) {
	  #menu {
	width: 750px;	
	}
	#menu li {
		left:-30px;
		padding-right: 30px;
	}
		  
	.header {
		overflow-x: scroll;
		overflow-y:  hidden;
		/* makes sure everything is smooth on iphone if 'touch' */
		-webkit-overflow-scrolling: auto;
	}
	
	/* Begin Scrollbar customisation */
	::-webkit-scrollbar {
	    height: 5pt;
	} 
	 
	/* Handle */
	::-webkit-scrollbar-thumb {
	    -webkit-border-radius: 0px;
	    border-radius: 1pt;
	    background: rgba(255,0,0,0.8); 
	    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
	}
	::-webkit-scrollbar-thumb:window-inactive {
		background: rgba(255,0,0,0.4); 
	}	
	
	/* End scrollbar customisation */
	
	.subMenu {
		overflow-y: scroll;
		overflow-x: hidden;
		height: 100%;
		z-index: 2;
	}
	
	.subMenu ul li ul li {
		
		right: 23px;;
	}
	.subMenu ul:nth-child(1) {
		margin: 0px;
		padding-right: 0em;
	}
	
	.subMenu ul {
		right: 10px;
	}
	.cross {
		display: block;
	}
}
