/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

	/* pagewrap */
	#pagewrap {
		width: 95%;
	}

	/* content */
	#wrap {
		width: 60%;
		padding: 3% 4%;
	}

	/* sidetext */
	#sidetext {
		width: 30%;
		float: left;
	}
	

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}

}

/************************************************************************************
smaller than 650
*************************************************************************************/
@media screen and (max-width: 650px) {

	/* header */
	#header {
		height: auto;
		width: auto;
	}

	
	/* main nav */
	#nav {
		position: static;
	}

	/* site logo */
	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}

	/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	/* content */
	#wrap {
		width: auto;
		float: none;
		margin: 20px 0;
	}

	/* sidetext */
	#sidetext {
		width: 30%;
		margin: 0 auto 40px;
		float: left;
	}
	

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		min-height: 250px;
	}
	
	#box1, #box2, #box3{
display: block;
padding: 1% 1% 1% 1%;
width: 30%;
}

#box1 {   
    margin: 0% 1.5% 30px 1%;  
	border-top-left-radius:2em; 
}


#box2 {
 margin: 0.5% 1.5% 30px 0.5%;   
}



#box3 {
 margin: 0.5% 1% 30px 0%;
 border-bottom-right-radius:2em;	
}

.afb{
	width: auto;
	}

.button{
	width: 100px;
	height: 50px;
}

/*radiobutton*/
	
.regular-radio {
    display: none;
}
 
.regular-radio + label {
    -webkit-appearance: none;
    background-color: #fafafa;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 9px;
    border-radius: 50px;
    display: inline-block;
    position: relative;
	margin-top: 5px;
}
 
.regular-radio:checked + label:after {
    content: ' ';
    width: 12px;
    height: 12px;
    border-radius: 50px;
    position: absolute;
    top: 3px;
    background: #99a1a7;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.3);
    text-shadow: 0px;
    left: 3px;
    font-size: 32px;
}
 
.regular-radio:checked + label {
    background-color: #e9ecee;
    color: #99a1a7;
    border: 1px solid #adb8c0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1), inset 0px 0px 10px rgba(0,0,0,0.1);
}
 
.regular-radio + label:active, .regular-radio:checked + label:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}
 
.big-radio + label {
    padding: 12px;
}
 
.big-radio:checked + label:after {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
}

}

/************************************************************************************
smaller than 560
*************************************************************************************/
@media screen and (max-width: 480px) {

/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}
	
	/* header */
	
	
	#header {
		height: auto;
		width: auto;
		position: relative;
	}

	
	
	/* site logo */
	#site-logo {
		margin: 0;
		position: static;
		width:auto;
		font-size: 4.5em;
	}

	/* site description */
	#site-description { 
		margin: 0;
		position: static;
		width: auto;
		font-size: 2.1em;
	}

	/* content */
	#wrap {
		width: auto;
		float: none;
		margin: 20px 0;
	}

	/* sidetext */
	#sidetext {
		width: 60%;
		margin: 0 auto 40px;
		float: none;
	}
	
	.img{
	width: auto;
	}
	
	#green{
	visibility:hidden; 
	}
	
	#blue{
	position: static;
	width: 100%;
	top: 0px;
	height: auto;
	margin-left:0px;
	
	}
	
#pagewrap{
width: auto;
}






#box1, #box2, #box3{
display: block;
padding: 1% 1% 1% 1%;
width: 30%;
}

#box1 {   
    margin: 0% 1.5% 30px 1%;  
	border-top-left-radius:2em; 
	float: left;
}


#box2 {
 margin: 0.5% 1.5% 30px 0.5%;   
 float: left;
}



#box3 {
 margin: 0.5% 1% 30px 0%;
 border-bottom-right-radius:2em;	
 float: right;
}

.afb{
	width: auto;
	}

.button{
	width: 100px;
	height: 50px;
}

#footer{
background-color: none;
}

/*radiobutton*/
	
.regular-radio {
    display: none;
}
 
.regular-radio + label {
    -webkit-appearance: none;
    background-color: #fafafa;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 9px;
    border-radius: 50px;
    display: inline-block;
    position: relative;
	margin-top: 5px;
}
 
.regular-radio:checked + label:after {
    content: ' ';
    width: 12px;
    height: 12px;
    border-radius: 50px;
    position: absolute;
    top: 3px;
    background: #99a1a7;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.3);
    text-shadow: 0px;
    left: 3px;
    font-size: 32px;
}
 
.regular-radio:checked + label {
    background-color: #e9ecee;
    color: #99a1a7;
    border: 1px solid #adb8c0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1), inset 0px 0px 10px rgba(0,0,0,0.1);
}
 
.regular-radio + label:active, .regular-radio:checked + label:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}
 
.big-radio + label {
    padding: 12px;
}
 
.big-radio:checked + label:after {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
}
/* nav */
.nav-wrap {
    margin-top: 20px;
}
.menu-icon {
    display: none;
}
.nav, .nav li {
    margin: 0;
    padding: 0;
}
.nav li {
    float: left;
    list-style: none outside none;
    margin-right: 5px;
}
.nav a {
    background: none repeat scroll 0 0 #ECEBEB;
    color: #000000;
    display: block;
    padding: 4px 15px;
}
.nav a:hover {
    background: none repeat scroll 0 0 #F8F8F8;
}
.nav ul {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #CCCCCC;
    display: none;
    padding: 2px;
    position: absolute;
    width: 200px;
}
.nav ul li {
    float: none;
    margin: 0;
    padding: 0;
}
.nav li:hover > ul {
    display: block;
}
.nav-wrap {
    position: relative;
}


.nav {
    background: none repeat scroll 0 0 #F8F8F8;
    border: 0px solid #999999;
    clear: both;
    display: none;
    padding: 5px;
    position: static;
    top: 38px;
    width: 320px;
    z-index: 10000;
}
.nav li {
    clear: both;
    float: none;
    margin: 5px 0 5px 10px;
}
.nav a, .nav ul a {
    background: none repeat scroll 0 0 transparent;
    border: medium none;
    color: #666666;
    display: inline;
    font: inherit;
    padding: 0;
}
.nav a:hover, .nav ul a:hover {
    background: none repeat scroll 0 0 transparent;
    color: #000000;
}
.nav ul {
    background: inherit;
    border: medium none;
    display: block;
    position: static;
    width: auto;
	
}
.nav ul li {
    margin: 3px 0 3px 15px;
}
.nav {
    display: block !important;
}


}


