@media only screen and (max-width: 950px) {
	#widget-left, #widget-right { 
		/*background: purple;*/
	}
	
	div.widget > div.value {
		font-size: 0.9em
	}
	div.widget > div.title {
		font-size: 0.7em
	}
}

@media only screen and (max-width: 880px) {
	section#widgets > section {
		width: 45.2%;
	}
	
	#widget-left, #widget-right { 
		/*background: blue;*/
	}
	
	div.widget > div.value {
		font-size: 1.0em
	}
	div.widget > div.title {
		font-size: 0.8em
	}
}

@media only screen and (max-width: 850px) {
	h1 { font-size: 2.5em; }
	h3 { font-size: 2.2em; }
	h2 { display: block; text-align: center; }
	
	#wrapper { padding: 20px 15px; }
	p { padding: 0; }
	
	section#widgets > section {
		width: 100%;
	}
	
	#widget-left, #widget-right { 
		margin-bottom: 15px; 
	}
	
	nav { 
        height: auto;
    }
    nav ul {
    	min-width: 100% !important;
        display: none;
        height: auto;
        float: none;
        width: auto;
    }
    nav li {
        width: 50%;
        float: left;
        position: relative;
        background: #fff;
        padding: none;
        padding-right: 0px !important;
    }
    nav li a {
        /*border-bottom: 1px solid #576979;
        border-right: 1px solid #576979;*/
        padding-left: 10px;
        color: #484848;
        
        
        background-color: rgb(250,250,250); /* Needed for IEs */
        
        -moz-box-shadow: 0 1px 1px #cfcfcf inset;
   		-webkit-box-shadow: 0 1px 1px #cfcfcf inset;
        box-shadow: 0 1px 1px #cfcfcf inset;
        
        filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
		-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
		zoom: 1;
        
    }
    nav a {
        text-align: left;
        width: 100%;
    }
    
    nav {
        border-bottom: 0;
        margin-top: 40px;
    }
    nav li {
        display: block;
        float: none;
        width: auto;
    }
    nav a#pull {
        display: block;
        background-color: #424242;
        width: 100%;
        position: relative;
        color: white;
        text-indent: 25px;
    }
    nav a#pull:after {
        content:"";
        background: url('../images/nav-icon.png') no-repeat;
        width: 30px;
        height: 30px;
        display: inline-block;
        position: absolute;
        right: 15px;
        top: 10px;
    }
    
    .inlineEditContainer {
    	width: 100%;
    }
    
    .inlineEditContainer input[type=button] {
		width: 100%;
	}
}

@media only screen and (max-width: 600px) {
	header .logo {
		width: 100%;
		-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
	    box-sizing: border-box;
	}
	
	/*h1:after {
		content: "600px";
	}*/
	
	#widget-left, #widget-right { 
		margin-bottom: 15px; 
	}
	
	table.rs_table {
	    border: 0px;
	}
	
	/* Force table to not be like tables anymore */
    table.rs_table table, 
    table.rs_table thead, 
    table.rs_table tbody, 
    table.rs_table th, 
    table.rs_table td, 
    table.rs_table tr { 
        display: block; 
    }
 
    /* Hide table headers (but not display: none;, for accessibility) */
    table.rs_table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
 
    table.rs_table tr { 
        border: 1px solid #ccc;
        margin-bottom: 10px; 
    }
 
    table.rs_table td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
        white-space: normal;
        text-align: right;
        font-weight: bold;
    }
 
    table.rs_table td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align:left;
        font-weight: 400;
    }
 	
 	input[type=button] {
		width: 100%;
		margin-bottom: 2px;
	}
 	
 	.inlineEditContainer p.double input[type=button],
	.inlineEditContainer p.double input[type=submit] {
		width: 100%;
		float: none;
		margin-bottom: 2px;
	}
 
    /*
    Label the data
    */
    table.rs_table td:before { content: attr(data-title); }
}

@media only screen and (max-width: 480px) {
	
	/*h1:after {
		content: "480px";
	}*/
	
	#wrapper { margin: 0 20px; }
	
	.inlineEditContainer label,
	.inlineEditContainer input,
	.inlineEditContainer textarea,
	.inlineEditContainer select {
    	width: 100%;
    }
    
    div.contentWrapper label.responsive {
    	width: 100%;
    }
    
    .inlineEditContainer.filter p {
    	width: 100%;
    }
    
    .inlineEditContainer.exportfilter p {
    	width: 100%;
    	text-align: center;
    }
}

@media only screen and (max-width: 320px) {
	
	/*h1:after {
		content: "320px";
	}*/
	
	nav li a {
		/*border-bottom: 1px solid #576979;*/
	}
	#wrapper { margin: 0 10px; }
}

/** iPhone only **/
@media screen and (max-device-width: 480px) {
	
}