.navbar-nav {
	margin: 0;
}

#left-panel {
	position: fixed;
	padding: 0 0 5px 5px;
  	font-size: 14px;
	width: 40%;
	max-width: 640px; /* 40% of 1600px */
	overflow: auto; /* only show scrollbars when needed */
	/*z-index: 2;*/
	/*overflow-y: scroll;*/  /* required for below */
	/*-webkit-overflow-scrolling: touch;*/ /* iOS momentum scrolling */
}

.navLevel1 a {
	color: #333;
	font-weight: normal;
	text-decoration: none;
}
.navLevel1 > ul > li a {
	line-height: 1.25em;
}

#right-panel {
	position: relative; /* for content-loading-cover */
	width: 60%;
	margin-left: 40%;
	padding: 0 5px 10px 5px;
}
body.ios.has-notch #left-panel,
body.ios.has-notch #right-panel {
/*	padding-bottom: 30px;*/
}


.loading-cover {
	position: absolute;
	z-index: 3; /* above form inputs */
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: red; /* override in custom.css, should match body bg color */
	pointer-events: none; /* enable click-through */
	text-align: center;
	display: none;
}

#window-loading-cover {
	position: fixed; /* overlay whole screen */
}

body.home #content-loading-cover {
	display: none !important;
}

.loading-cover img {
	margin: 150px auto 0 auto;
	opacity: 0.01;
}
.loading-cover img.show {
	opacity: 0.5;
	transition: opacity 1.5s linear;
	transition-delay: 0.5s;
}

.navLevel2 {
	float: left;
	width: 50%;
	position: absolute;
	right: 0;
	z-index: 1;
}

.navLevel2 > ul {
  	max-height: 0px;
  	width: 100%;
  	overflow: hidden;
}

/* same max-height for all lists, influences animation speed */
.navLevel2 > ul.active {
	max-height: 800px;
	/* only animate the opening, close instantly to prevent overlap */
	transition: max-height 0.5s linear !important;
}

.menu-color {
	background-color: #fff;
	transition: background 0.25s linear, color 0.25s linear;
}

.navLevel2 li > a .menu-color {
	border-left: 5px solid red;
	padding: 10px;
}

.navLevel1 {
	position: relative; /* required for navLevel2 bottom: 0*/
}

.navLevel1 > ul > li {
	float: left;
	width: 50%;
	cursor: pointer;
	margin-bottom: 5px;
	position: relative; /* required for news-badge */
}

.navLevel1 > ul:last-child > li {
	margin-bottom: 0;
}

.navLevel1 > ul > li a {
	min-height: 55px;
	background: #ffffff;
	display: flex;
	align-items: center;
}

.navLevel1 > ul > li .menu-color {
	height: 55px;
}

.navLevel1 > ul > li .nav-icon {
	width: 40px;
	height: 55px;
	display: inline-block;
}

.navLevel1 li.active span.lvl1-txt,
body.web:not(.touch) a:hover span.lvl1-txt {
	color: #fff;
}

.navLevel1 span.lvl1-txt {
	padding-left: 5px;
	padding-right: 5px;
	transition: color 0.25s linear;
}

.navLevel2 li {
	width: 100%; /* required for opening-animation */
	margin-bottom: 5px;
	padding-left: 5px;
	cursor: pointer;
}

.navLevel2 li:last-child {
	margin-bottom: 0;
}

.navLevel1 > ul li.subs .glyphicon {
	font-size: 1.7em;
}

body .navLevel1 span.badge-danger {
	position: absolute;
	right: 3px;
	top: 3px;
	background: #f00;
	color: #fff;
	font-size: 85%;
}


/** HEADER **/

#header {
	position: fixed;
	/* do not set "top: 0" to keep the header positioned inside body (with iOS safe-areas) */
	left: 0;
	right: 0;
	z-index: 4; /* above panel-headings, calc form inputs (rcc) and #header (cme) */
}

#header ul.row,
.header ul.row {
	padding: 0.4rem 5px 0 5px;
	justify-content: flex-end;
	margin-bottom: 0;
}

#home-header ul.row1 {
	padding: 0;
	margin: 0;
}
#home-header .row .nav-item,
#header .row .nav-item,
.header .row .nav-item {
	display: inline-block;
	padding: 0 10px;
	border-right: 1px solid #6c757d;
	font-size: 0.9em;
}
#home-header .row .nav-item {
	font-size: 1em;
}
#home-header .row .nav-link,
#header .row .nav-link,
.header .row .nav-link {
	padding: 0;
}

#header .row .nav-item:last-child,
.header .row .nav-item:last-child,
#home-header .row .nav-item:last-child {
	border: none;
}

#header .row2,
.header .row2 {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	padding: 0.5rem 5px 0.5rem 5px;
}

/* back btn */
#header .row2 .col-left-btn {
	width: 40%;
	min-width: 40%;
	order: 1;
}
body.more_sponsors #header .row2 .col-left-btn {
	width: auto;
	min-width: 0;
}

/* fav + print btn */
#header .row2 > .col-right-btn,
.header .row2 > .col-right-btn {
	flex-grow: 1;
	order: 3;
	min-width: 80px;
}

/* title is shown between or below buttons depending on the available space */
#header .view-title,
.header .view-title {
	font-size: 1.5rem;
	margin: 0;
	padding-left: 10px;
	order: 2;
	color: #4a9abb;
}

#header .btn,
.header .btn,
#btn-scroll-to-bottom {
	position: relative;
	font-size: 18px;
	width: 36px;
	height: 36px;
	padding: 0;
	/*color: #fff !important;*/ /* ??? (cme tools buttons bg is white) */
	color: #fff;
	border-radius: 100%;
	margin: 0 2px;
    background: #4a9abb;
}
.btn-cerulean {
    background: #4a9abb;
    color: #fff;
}
#header .btn:hover,
.header .btn:hover,
#btn-scroll-to-bottom:hover,
.btn-cerulean:hover {
	background: #347a97;
	color: #fff;
}
#header .home-btn .fas {
	margin-top: 7px;
}
#header .back-btn .fas,
.header .back-btn .fas {
	margin-top: 8px;
}
.fav-btn .fa-star {
	font-size: 15px;
}
#header .btn.fav-btn .fa-star {
	margin-top: 11px;
}

.fav-btn .fa-plus,
.fav-btn .fa-minus {
	position: absolute;
	top: 4px;
	right: 5px;
	font-size: 10px;
}
.fake-fav-btn {
    position: relative;
    font-size: 18px;
    padding: 0;
    color: #fff !important;
    border-radius: 100%;
    margin: 0 2px;
    background: #4a9abb;
    width: 26px;
    height: 26px;
}
#favorites .favorites-empty {
    line-height: 1.8;
}
.fake-fav-btn.fav-btn .fa-plus {
    font-size: 8px;
    top: 3px;
    right: 3px;
}
.fake-fav-btn.fav-btn .fa-star {
    font-size: 12px;
    position: relative;
    top: -1px;
}
#header .print-btn .fa-print,
#header .favlist-edit-btn .fa-pencil-alt {
	margin-top: 7px;
}

#header .home-btn,
#header .favlist-edit-btn {
	display: none;
}

.favorites #header .fav-btn,
.mycontent_favorites #header .fav-btn,
/*.favorites #header .print-btn,*/
.notes #header .fav-btn,
/*.notes #header .print-btn,*/
.menu #header .fav-btn,
.menu #header .print-btn,
.newsfeed #header .fav-btn,
.more_more #header .fav-btn {
	display: none !important;
}
