/* screens wider than 600 pixels */
@media only screen and (min-width: 840px) {
	#wrapper {
		margin: 0 auto;
		width: 100%;
		min-width: 600px;
		max-width: 2000px;
	}
}
/***********************************************************/

/* screens smaller than 795px pixels */
@media only screen and (max-width: 840px) {
	#wrapper {
		width: 100%;
		margin: 0;
	}
	
	#erc_logo {
		width: 40%;
	}
	
	#adb_logo {
		width: 56%;
	}
	
	#adb_logo img {
		width: 95%;
		margin-top: 30px;
	}
	
	/* display the navigation menu above the content and in 2 columns */
	#navigation {
		border-bottom: 1px solid #EEEEEE;
		clear: both;
		width: 100%;
		margin-bottom: 15px;
		padding-bottom: 30px;
		margin-left: 0px;
	}
	
	#navigation ul li {
		display: block;
		float: left;
		width: 30%;
		margin: 0.5% 1.667%;
	}
	
	#navigation ul li a{
		padding: 0px 0px 0px 5px;
		margin: 0;
		height: 30px;
		line-height: 30px;
		width: 100%;
	}
	
	/* stretch the content over the whole page width */
	#content {
		clear: both;
		width: 96%;
		padding: 2%;
		/* remove the min-height rule */
		min-height: 100%;
	}
	
	#footer {
		margin: 0% 1%;
	}
	
	input, select, textarea {
		width: 100%;
	}
	
	input[type="submit"]	, input[type="reset"] {
		width: 33%;
	}
	
	input.radio, input.checkbox {
		width:20px;
	}
	
	p.error {
		width: 100%;
	}
	
	
}

/***********************************************************/

/* screens smaller than  pixels */
@media only screen and (max-width: 434px) {
	
	#header {
		height: 130px;
	}
	
	#erc_logo {
		width: 30%;
	}
	
	#erc_logo img {
		width: 90%;
	}
	
	#adb_logo {
		width: 60%;
	}
	
	#adb_logo img {
		width: 90%;
	}
	
	/* display the navigation menu in 2 columns */
	#navigation ul li {
		display: block;
		float: left;
		width: 45%;
		margin: 0.5% 2.5%;
	}

}

/***********************************************************/

/* screens smaller than  pixels */
@media only screen and (max-width: 383px) {

	#header {
	/*	height: 170px;*/
	}

	/* display the navigation menu in 1 column */
	#navigation ul li {
		display: block;
		float: left;
		width: 98%;
		margin: 0px 0px;
	}
	
	#navigation ul li a{
		padding: 0 5px;
		width: 99%;
	}
	
}	