/* No media query: baseline, applies to all */

header {
	display: block;
	width: 98%;
	height: 70px;
	padding: 10px 1%;
	/*box-shadow: 0px 0px 15px -5px #000000;*/
	background: #fff;
	position: fixed;
	z-index: 1001;
	top: 0px;
	left: 0px;
}

#headlinks a.not-mobile {
	display: block;
	visibility: visible;
	float: right;
	height: 50px;
	width: 25%;
	line-height: 50px;
}
a.appschedules {
	background: url("../images/icon_headlinks_schedule.png") no-repeat;
	background-position: center center;
	background-size: 45px 45px;
}
a.appschedules:hover, a.appschedules:active {
	background: url("../images/icon_headlinks_schedule_hover.png") no-repeat;
	background-position: center center;
	background-size: 45px 45px;
}
a.overview {
	background: url("../images/icon_headlinks_overview.png") no-repeat;
	background-position: center center;
	background-size: 45px 45px;
}

a.overview:hover, a.overview:active {
	background: url("../images/icon_headlinks_overview_hover.png") no-repeat;
	background-position: center center;
	background-size: 45px 45px;
}

header #navigation-icon {
	display: none;
}

@media only screen and (max-width: 640px) and (orientation: portrait) {
/*
This is overriding some phone sizes. Moved to media.css.
	header #navigation-icon {
		display: block;
	}
*/
}

@media only screen and (max-width: 800px) and (orientation: portrait) {
/*
This is overriding some phone sizes. Moved to media.css.
	header #navigation-icon {
		display: block;
	}
*/

/*#headlinks a.logout {
	margin-right: 1px!important;
}
*/
    #headlinks {
        min-width: 315px!important;
    }
}

header #headerlogo {
	display: table-cell;
	float: left;
	width: 17%;
	height: 60px;
	margin-right: 1%;
	white-space: nowrap;
	text-align: center;
}

header #headerlogo #logo {
	max-height: 100%;
	max-width: 100%;
	display: inline-block;
	vertical-align: middle;
}

header #titles {
	display: table-cell;
	text-align: left;
	float: left;
	margin-right: 1%;
	width: 48%;
	height: 100%;

}

@media only screen and (max-device-width: 640px) and (orientation: portrait) {
	header #titles {
		display: table-cell;
		text-align: left;
		float: left;
		margin-right: 1%;
		width: 40%;
		height: 100%;
	}
}

header .helper {
	height: 100%;
	vertical-align: middle;
	display: inline-block;
}

header .innertitles {
	display: inline-block;
	vertical-align: middle;
	width: 98%;
}

header h1 {
	font-size: 130%;
	font-weight: normal;
	vertical-align: middle;
	white-space: nowrap;
	color: #444;
	text-shadow: none;
	text-align: left;
}

header h2 {
	color: #444;
	display: block;
	font-size: 1em;
	font-weight: normal;
	margin: 0;
	text-align: left;
}
#headlinks {
	display: table-cell;
	height: 45px;
	line-height: 45px;
	position: absolute;
	top: 25px;
	right: 0;
	/*min-width: 300px;*/
	min-width: 375px;
	max-width: 40%;
	vertical-align: middle;
	z-index: -1;
}

#headlinks .f-c {
	display: none;
	width: 33px;
	height: 33px;
	background-position: center center;
	background-size: 80% auto;
	background-repeat: no-repeat;
	display: block;
	float: right;
	cursor: pointer;
	margin-top: 9px;
	margin-right: 10px;
}

#headlinks .f-c.us {
	/* display: none; */
	background-image: url("../images/btn_f-c_F.png");
}

#headlinks .f-c.metric {
	/* display: none; */
	background-image: url("../images/btn_f-c_C.png");
}

#headlinks a.appschedules {
/*	display: block;
	float: right;
	width: 45px;
	height: 45px;
	margin-right: 30px;
	margin-top: 6px;
	background: url("../images/icon_headlinks_schedule.png") no-repeat;
	background-position: center center;
	background-size: 100%;
	background-size: 100%;
	*/
}

#headlinks a.appschedules:hover {
/*
	background: url("../images/icon_headlinks_schedule_hover.png") no-repeat;
	background-size: 100%;
*/
}

#headlinks a.overview {
/*
	display: block;
	float: right;
	width: 45px;
	height: 45px;
	margin-right: 30px;
	margin-top: 6px;
	background: url("../images/icon_headlinks_overview.png") no-repeat;
	background-position: center center;
	background-size: 100%;
*/
}

#headlinks a.overview:hover {
/*
	background: url("../images/icon_headlinks_overview_hover.png") no-repeat;
	background-size: 100%;
*/
}

#headlinks a.logout {
	display: block;
	float: right;
	width: 45px;
	height: 45px;
	/*margin-right: 30px;*/
	margin-top: 5px;
	background: url("../images/icon_headlinks_logout.png") no-repeat;
	background-position: center center;
	background-size: 100%;
}

#headlinks a.logout:hover {
	background: url("../images/icon_headlinks_logout_hover.png") no-repeat;
	background-size: 100%;
}

#headlinks a.appsettings {
	display: block;
	float: right;
	width: 45px;
	height: 45px;
	margin-top: 5px;
	margin-right: 20px;
	cursor: pointer;
	background: url("../images/icon_headlinks_settings.png") no-repeat;
	background-size: 100%;
}

#headlinks a.appsettings:hover {
	background: url("../images/icon_headlinks_settings_hover.png") no-repeat;
	background-size: 100%;
}

@media only screen and (max-device-width: 640px) and (orientation: portrait) {
	#headlinks {
		display: table-cell;
		height: 45px;
		line-height: 45px;
		position: absolute;
		top: 25px;
		right: 0;
		max-width: 40%;
		vertical-align: middle;
	}

	#headlinks .f-c {
		display: none;
	}

	#headlinks .f-c.us {
		display: none;
	}

	#headlinks .f-c.metric {
		display: none;
	}

	/*
	#headlinks a.appschedules {
		display: block;
		float: right;
		width: 45px;
		height: 45px;
		margin-right: 20px;
		margin-top: 6px;
		background: url("../images/icon_headlinks_schedule.png") no-repeat;
		background-position: center center;
		background-size: 100%;
		background-size: 100%;
	}
*/
	#headlinks a.appschedules:hover {
		background: url("../images/icon_headlinks_schedule_hover.png") no-repeat;
		background-size: 100%;
	}

	#headlinks a.overview {
/*		display: block;
		float: right;
		width: 45px;
		height: 45px;
		margin-right: 20px;
		margin-top: 6px;
		background: url("../images/icon_headlinks_overview.png") no-repeat;
		background-position: center center;
		background-size: 100%;
*/
	}

	#headlinks a.overview:hover {
		background: url("../images/icon_headlinks_overview_hover.png") no-repeat;
		background-size: 100%;
	}

	#headlinks a.logout {
		display: block;
		float: right;
		width: 45px;
		height: 45px;
		margin-right: 20px;
		margin-top: 5px;
		background: url("../images/icon_headlinks_logout.png") no-repeat;
		background-position: center center;
		background-size: 100%;
	}

	#headlinks a.logout:hover {
		background: url("../images/icon_headlinks_logout_hover.png") no-repeat;
		background-size: 100%;
	}

	#headlinks a.appsettings {
		display: block;
		float: right;
		width: 45px;
		height: 45px;
		margin-top: 5px;
		margin-right: 10px;
		cursor: pointer;
		background: url("../images/icon_headlinks_settings.png") no-repeat;
		background-size: 100%;
	}

	#headlinks a.appsettings:hover {
		background: url("../images/icon_headlinks_settings_hover.png") no-repeat;
		background-size: 100%;
	}

} /* close headlinks styles */

.mobile-store-number {
	display: none;
}

#app-wrapper,
#app-wrapper.schedule {
    position: absolute;
    top: 90px;
    width: 100%;
    height: auto;
}
    /* User Count */
	header #usercount #desktop{
		display:none;
		min-width:20%; 
		position:absolute; 
		top:5px;right:10px;
	    cursor:pointer;
	}
	header #usercount #desktop .count{ 
		display:none;
		color:#777; 
		float:right;  
		font-family:"Arial", sans-serif; 
	    font-weight:normal;
	    font-size: .8em;
		text-align:right; 
		width:25px
	}
	header #usercount #desktop .users, header #usercount .other{  
		display:none;
		color:#777; 
		float:right; 
		font-family:"Arial", sans-serif; 
		font-weight:normal;
	    font-size: .8em;
		text-align:right;
		padding-left:5px;
	}
	header #usercount #mobile{
		display:none;
	}
/*
#######################################################
MEDIA QUERY 1 #########################################
#######################################################
*/

@media only screen and (max-device-width : 750px) {
	header {
		/*box-shadow: 0 0 30px -5px #000000; */
		height: 60px;
	}

	header #navigation-icon {
		display: table-cell;
		float: left;
		width: 7%;
		height: 100%;
		cursor: pointer;
		margin-left: 15px;
	}

	header #navigation-icon img {
		display: inline-block;
		width: 27px;
		vertical-align: middle;
		height: 25px;
	}

	header #headerlogo {
		width: 14%;
	}

	#app-wrapper {
		position: absolute;
		top: 80px;
		width: 100%;
		height: auto;
	}
    #app-wrapper.schedule {
		position: fixed;
		top: 80px;
		width: 100%;
		height: auto;
	}

	header #titles {
		width: 45%;
	}

	header h1 {
		font-size: 105%;
	}

	header h2 {
		font-size: 85%;
		font-weight: normal;
	}

	#headlinks {
		top: 15px;
	}

	#headlinks a.overview {
		width: 40px;
		margin-right: 10px;
		/*margin-top: 10px;*/
	}

	#headlinks a.logout, #headlinks a.logout.overview {
		width: 45px;
		margin-right: 10px;
		/*margin-top: 8px;*/
	}

	#headlinks #appsettings {
		width: 29px;
		height: 29px;
		background-size: 90%;
		background-position: center center;
		margin-top: 14px;
		margin-right: 10px;
	}

	#app-wrapper {
	    top: 80px;
	}
	
    /* User Count mobile */
	header #usercount #desktop{  
    	display:none;
	}
	header #usercount #mobile{
		display:none;
/*		display:block; */
	}
	#mobile .count{ 
		color:#777;
		float:right;
		margin:0;
		font-family:"Arial", sans-serif; 
	    font-weight:normal;
	    font-size:.8em;
		text-align:right; 
		width:25px;
	}
	#mobile .other{  
		color:#777; 
		float:right; 
		font-family:"Arial", sans-serif; 
		font-weight:normal;
	    font-size:.8em;
		text-align:right;
		padding-left:3px;
		width:73px;
	}
	#mobile label.top{
		max-width:110px;
		min-width:10%; 
		position:absolute; 
		top:5px;right:10px;
		display:block;
		cursor:pointer;
		}
	/* user count popup mobile*/
	#user_toggle {
		position:absolute;
		top:9px;
		right:10px;
		width:180px;
		height:55px;
		outline:5px solid #fff;
		cursor:pointer;
		z-index:50000;
		background:#fff url("../images/user_count.png") no-repeat;
		}
	#mobile #toggle{
		display:none;
		}
    #mobile #toggle:not(checked) ~ #user_toggle {
        opacity: 0;
        transition: opacity .25s ease-in-out;
        -moz-transition: opacity .25s ease-in-out;
        -webkit-transition: opacity .25s ease-in-out;
        display:none;
	}
    #mobile #toggle:checked ~ #user_toggle {
        opacity: 1;
        transition: opacity .25s ease-in-out;
        -moz-transition: opacity .25s ease-in-out;
        -webkit-transition: opacity .25s ease-in-out;
        display:block;
    }
	#mobile #user_toggle .count{
		float:right; 
		width:25px;
		margin-top:15px;
	}
	#mobile #user_toggle .users{  
		color:#777; 
		float:right; 
		font-family:"Arial", sans-serif; 
	    font-size:.8em;
		font-weight:normal;
		text-align:left;
		padding-left:3px;
		margin-top:15px;
	    width:130px;
	}
    nav.closed {
        display: none;
    }
    nav.mobile-nav {
        display: flex;
    }
}
/*
#######################################################
MEDIA QUERY 2 #########################################
#######################################################
*/

@media only screen and (max-device-width : 640px) {
	header #headerlogo {
		width: 16%;
	}

	header #titles {
		margin-left: 1%;
		width: 36%;
	}

	header h1 {
		display: none;
	}

	header h2 {
		font-size: 95%;
	}


	header h2 span.location {
		font-weight: bold;
	}

	#headlinks a.overview {
		width: 36px;
		/*margin-top: 11px;*/
	}

	#headlinks a.logout, #headlinks a.logout.overview {
		width: 40px;
		/*margin-top: 10px;*/
	}
}

/*
#######################################################
MEDIA QUERY 3 #########################################
#######################################################
*/

@media only screen and (max-device-width : 499px) {
	header h2 span:not(.location) {
		display: none;
	}
}

/*
#######################################################
MEDIA QUERY 4 #########################################
#######################################################
*/


@media only screen and (min-width: 319px) and (max-width: 750px) and (orientation: portrait) {
	#headlinks a {
		float: right;
	}


	a.not-mobile {
		display: none;
		visibility: hidden;
		
	}

	header #navigation-icon {
		display: block;
	}

	header #navigation-icon {
		width: 10%;
		margin-left: 10px;
	}

	header #navigation-icon img {
		width: 25px;
		height: 24px;
	}

	header h2 {
		font-size: .9em;
	}

    header #titles h2 {
/*        border: solid red 1px;*/
        display: block;
        position: relative;
        top: 2.5rem;
        left: -55%;
        z-index: 2;
    }
    #headlinks {
        /* to make the links work in mobile       */
        z-index: 1000; 
    }

}

/*
#######################################################
MEDIA QUERY 5 #########################################
#######################################################
*/
@media only screen and (max-device-width : 370px) {
	header #headerlogo {
		width: 22%;
	}

	header h2 {
		font-size: .8em;
	}
}
