@media all and (min-width: 641px) {
	body {	
		padding: 0;
		font-size:12px;
	}
    h1 {
        font-size:2.2em;
        margin: 1em;
    }
    h2 {
        margin-bottom: 1em;
        font-size: 1.7em;
    }
    h3 {
        font-size: 1.4em;
        font-weight: bold;
        line-height: 1.5em;
        margin: 0 0 .5em;
    }
    h4 {
        font-weight:normal;
        margin: 0 0 .5em;
        padding:0;
        font-size: .9em;
    }

	.wrapper {
		width:972px;
		margin: 0 auto 0;
		position:relative;
	}
	header {
		width:auto;
		height:70px;
		display:block;
		margin:0 auto 1em;
        position:relative;
        
    }
	#header-logo.logo {
		display:block;
		position:absolute;
		left:0px;top:19px;
		width:160px;height:43px;
	}
	#fade {display:none;}
	#content-logo {display:none;}
	#menu_toggle {display:none;}
	
	#menu-overlay {
		position:absolute;
		top: 18px;right:0px;
		background:none;
		width: 812px;
		height:60px;
        z-index:8000;
	}
	#menu-overlay #apps {
		width:150px;
		float:right;
        margin-left: 100px;
	}
	#menu-overlay #links {
		margin: 15px 3px 0 0;
		width:540px;
		float:right;
        font-size: 16px;
	}
	#apps-title {display:none;}
	.menu_container {
		line-height: 20px;
		background:none;
        border-right: 1px solid #333;
	}
    .menu_container:last {
        border-right: 0;
	}
	.nav-app-container {
		padding: 0; margin: 0;	
	}
	.nav-link-container {
		margin:25px 0 0;	
	}
	.nav-link-container li {
        font-weight:normal;
		font-family: 'PT Sans', sans-serif;
		padding: 4px 8px;
		width:auto;
		display:inline-block;
		float:left;
		height: 13px;
	}
	.nav-link-container li a {
        margin-top: -4px;
        color: #ccc;	
	}
    
	#banner_menu {
		position:absolute;
		top:10px;right:0px;
		width:300px;
	}
	#content {
		padding: 0 0;
		margin: 0 auto;
		clear:both;
		width:100%;
	}
	#content .content-block {padding: 1em 0 0}
    
/*
    #smartbed .slide-text-overlay {
        top: 20px;
        width: 572px;
        left: 20px;
        line-height: 1.5em;
        text-align: left;
    }
    
    .slides_container li {
        list-style-type: none;
        padding: 0;
        margin-bottom: 40px;
        text-align: center;
        border: 1px solid #333;
        border-radius: 6px;
        height: auto;
        min-height: 400px;
    }
*/
    
/*
    #home_slider li.slide {
        border:1px solid #333;
        border-radius:8px;
        width:970px;
        overflow:hidden;
    }
    #home_slider .slide img {
        margin: 0 0 0 -1px;
        box-shadow: 0 0 0 1px #333 inset;
        border-radius:8px;
    }
*/

	.connect_title {
		color: #658DB9;
		font-size: 18px;
		margin-bottom: 9px;
		text-decoration: none;
		width: 100%;
		text-align:center;
	}
    .subtabs {
        border-bottom:1px solid #333;
    }
    .subtabs ul {
        height:33px;
        padding:0px;
        margin:0px 0px -1px;
    }
    .subtabs ul li {
        display: inline-block;
        padding: .4em 1.5em 0;
        float:left;
        line-height:30px;
        height:30px;
        border: #333 solid 1px;
        border-radius: 5px 5px 0 0;
        font-size:1.2em;
    }
    .tabs_start {}
    .tabs_mid {}
    .tabs_end {}
    .subtabs ul li.tab_selected {
        border: #333 solid 1px;
        border-radius: 5px 5px 0 0;
        border-bottom: solid 1px #000;
        background:#000;
    }
    

    

    .bioframe_text {
        float:right;width:70%;min-width:300px;
    }
    .pi_container {
        width:290px;   
    }

    /*fonts*/
    .medium {
        font-size:1.1em;
        line-height:1.6em;
    }
	
	/* containers */
	.full 		{width:100%;}
	.half	 	{width:438px;}
	.half_nopad {width:478px;}
	.thirds 	{width:287px;}
	.quarter 	{width:228px;}
	.rightp 	{width:570px;}
	.middle 	{margin: 0 0 0 1em}
	
	/* fonts and content blocks */
	h2 {
		text-align:left;
		line-height:1.5em;
		padding:0 0;
	}
	.content-block h2 {
		font-size: 1.3em;
		font-weight:bold;
		color: #65666;
	}
    .nav-previous {text-align:left;}
    .nav-next {text-align: right;}
	#copyright p {font-size: .7em;padding: 1em 10em 0;line-height:1.2em;}
	#bottom{width:100%;}
    #bottom-menu-wrapper {width:430px;}
/*
    #bottom-menu {
        display:block;margin:12px auto 0;
    }
	#bottom-menu li {
		display:inline-block;
		width:auto;
		font-size:1em;
        width: 25%;
    }
	#bottom-menu a {
		font-size: 1em;
		color: #aaa;
		text-shadow:#111 0px 1px 2px;
    
	}
*/
    #social-footer{
        width: 100%;
        text-align: center;
    }
	
	/* UTILITIES */
	.padding5em {padding: 1em 5em;}
    .padding5 {padding: 5em;}
    .left {float:left;}
    .right {float:right;}
}



@media all and (max-width: 640px) and (min-width: 480px), (max-width: 479px) {
	/* for both landscape and portrait modes on mobile */
	body {min-width:320px;}
	#header-logo {
        display:block;
        text-align: center;
    }
    .wrapper {width:auto;}
    header {
        position:fixed;
        box-shadow: 0px 5px 15px rgba(0,0,0,1);
        border-bottom:1px solid #333;
        background:#000;
		width:100%;
		height:64px;
        z-index: 1100;
	}
	
	#header-logo.logo {
		position:relative;
		margin: 0 auto;
		padding: 12px 0 0;
	}
    #header-logo.logo a {
        display: block;
        width:160px;
        height: 44px;
        margin: 0 auto;
    }
    #content {padding: 74px 0 0;}
	#content {margin: 0 auto 0;width:100%;}
    #content .content-block {margin: 0 5px 1.5em;padding: 5px;}
	
	
	#menu-overlay {
        position:fixed;
		top:66px;
		width:100%;
        height:100%;
        background-image: linear-gradient(to bottom, #111 0%, #000 100px);
		display:none;
        box-shadow: 0px 0px 25px #333;
        border-bottom: 1px solid #333;
	}
    #menu-overlay div {width:100%;}
	#menu-overlay #apps {width:100%;}
	.nav-link-container li {
		padding:.5em .8em .5em 45px;
		border-width: 1px 0 0;
        border-style: solid;
        border-color: #333;
		background:url(images/menu-item.png) no-repeat 5px 4px #000;
	}
    .nav-link-container li.selected {background:url(images/menu-item-selected.png) no-repeat 5px 4px transparent;}
    .menu_container {line-height: 23px;font-size:13px;}
	.nav-app-container {
		padding: 1em 0 1em;	
		margin: 0 auto;
		height: 56px;
		width:260px;
		display:block;
	}
    .subtabs {padding-bottom:1em;border-bottom:1px solid #333;}
    .subtabs ul {padding:0px;margin:0px 0px -1px;}
    .subtabs ul li {
        border:none;
        padding: 7px 0 0 30px;
        line-height:20px;
        height:20px;
        background:url(images/menu-item.png) no-repeat 5px 4px transparent;
        width:auto;
    }
    .subtabs ul li.tab_selected {
        border:none;
        background:url(images/menu-item-selected.png) no-repeat 5px 4px transparent;
    }
    #fade {
        background-image: linear-gradient(to bottom, #222 0%, #000 160px);
        width:100%;
        z-index:1;
    }
	
	

    /* containers --- all fullsize on mobile */
	.full, .half, .half_nopad, .thirds, .quarter, .rightp {width:auto;}
	.left, .right {clear:both;float:none;}
	
    .left, .right {margin: 0 auto;}
	.app-showcase-container,
    .partner {margin-bottom:12px;height:auto;}
    .bioframe {margin: 0 0 2em;}
    .bioframe_text {text-align:left;}
    .pi_container {margin-bottom:75px;}


	/* fonts and content blocks */
    h1 {
        font-size:1.5em;
        margin: .5em 0 1.5em;
        line-height: 1.4em;
    }
	h2 {
		text-align:center;
		line-height:25px;
		margin:0 0 0px;padding:.5em 0;
	}
    h3 {
        font-size: 1.2em;
        line-height: 1.3em;
        margin: 0 0 1em;
    }
   
	.content-block h2 {
		font-size: 1.2em;
		font-weight: bold;
		color: #65666;
	}
    .content-block h2.entry-title {
        text-align: left;
    }
    .nav-previous,
    .nav-next {
        width:100px;  
        text-align: center;
    }
    iframe {max-width:100%;}
	/*footer*/

	#copyright p {font-size: .5em;}
    #bottom-menu-wrapper {width:300px;}
	#bottom-menu {
		padding:0;margin:0 auto;width:240px;
	}
	#bottom-menu a {
		font-size: .9em;
		line-height: 2.5em;
		color: #eef;
        padding: 0;
        display: block;
        text-align: center;
        width: 100%;
	}
	#social-footer{width:150px;margin:0 auto 20px;text-align: center;}
    #social-footer .left {float:left;clear:none;}
	/* utilities */
	.padding5em {padding: .5em 1em;} /* max can only be 1 on mobile */
	.padding5 {padding: 1em;}
}

@media all and (max-width: 640px) and (min-width: 480px) {

    /* Landscape Modes only */
    .nav-link-container li {
        float:left;width:180px;
        border:0px;
    }
}

@media all and (max-width: 479px) {
    /* portrait only */
	
   
}
