/*
 *	BNE Navbar CSS (frontend)
 *
 * 	@author		Kerry Kline
 * 	@copyright	Copyright (c) 2017-2018, Kerry Kline
 * 	@link		http://www.bnecreative.com
 *
 *	@updated	April 14, 2020
*/


/* == Main Wrapper == */
#bne-navbar,
#bne-navbar * {
	position: relative;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#bne-navbar {
	position: fixed;
	z-index: 999999;
	width: 100%;
	min-width: 100%;
	min-height: 35px;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0px 0px 5px rgba(0,0,0,.2);
	opacity: 0;
    transition: opacity 0.3s, visibility 0.2s;
    visibility: hidden;
}

#bne-navbar.active {
	opacity: 1;
    transition: opacity 0.2s, visibility 0.3s;
    visibility: visible;
}

#bne-navbar .bne-navbar-overlay {
	visibility: hidden;
	opacity: 0;
	background: rgba(0,0,0,.8);
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
	transition: opacity .3s ease;
}

#bne-navbar .bne-navbar-overlay.active {
	visibility: visible;
	transition: opacity .3s ease, visibility .5s ease;
	opacity: 1;
}

/* == Nav Btns == */

/* Grid */
#bne-navbar .bne-navbar-inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}

#bne-navbar .bne-navbar-btn-wrapper {
	-webkit-box-flex: 1;
	    -ms-flex: 1 0;
	        flex: 1 0;
}

#bne-navbar .bne-navbar-btn-wrapper:hover {
	background: rgba(0,0,0,.1);
	box-shadow: inset 0px 0px 4px rgba(0,0,0,.1);
}

/* Btn */
#bne-navbar .bne-navbar-link {
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px;
	color: #777;
	text-align: center;
	transition: all .3s ease;
}


/* Icon / Image */
#bne-navbar .bne-navbar-icon {
	font-size: 25px;
	line-height: 25px;
}

#bne-navbar .bne-navbar-image {
	display: inline-block;
	width: auto;
	max-height: 25px;
	outline: none;
}

/* Title */
#bne-navbar .bne-navbar-title {
	display: block;
	font-size: 12px;
}


/* == Custom Menu == */
#bne-navbar .bne-navbar-menu {
	position: fixed;
	z-index: 2;
	margin-left: auto;
	height: 100%;
	width: 100%;
	max-width: 350px;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #222;
    box-shadow: 0px 0px 5px rgba(0,0,0,.4);
    font-size: 14px;
    -webkit-transition: -webkit-transform 0.4s ease;
			transition: transform 0.4s ease;
	-webkit-transform: translateX(450px);
			transform: translateX(450px);
	-webkit-backface-visibility: hidden;
			backface-visibility: hidden;
}

#bne-navbar .bne-navbar-menu.active {
	-webkit-transform: translateX(0);
			transform: translateX(0);
}

#bne-navbar .bne-navbar-menu.text-light * {
	color: white;
}

#bne-navbar .bne-navbar-menu.text-dark * {
	color: #333;
}

#bne-navbar .bne-navbar-menu-inner {
	height: 100%;
	width: 100%;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

/* Header */
#bne-navbar .bne-navbar-menu .bne-navbar-menu-header {
	z-index: 1;
	padding: 10px 20px;
	height: 45px;
	width: 100%;
	left: 0;
	right: 0;
	top: 0;
	background: rgba(0,0,0,.2);
	border-bottom: 1px solid rgba( 0,0,0,.4);
}

#bne-navbar .bne-navbar-menu .bne-navbar-title {
	display: block;
	float: left;
	font-size: 18px;
	text-align: left;
}

/* Close Btn */
#bne-navbar .bne-navbar-menu .bne-navbar-menu-close {
    position: relative;
    display: block;
    float: right;
	height: 25px;
    cursor: pointer;
	font-size: 25px;
	line-height: 25px;
}


/* Body */
#bne-navbar .bne-navbar-menu .bne-navbar-menu-body {
	padding: 20px;
}

/* Menu */
#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu {
	margin: 0 -20px; /* reverses the .bne-navbar-menu-body padding */
}

#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu ul {
	list-style: none;
}

#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li a {
	display: block;
	border-bottom: 1px solid rgba(0, 0, 0, .2);
	font-weight: bold;
	font-size: 16px;
	transition: all .3s ease;
}

#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li a:hover {
	background: rgba(255, 255, 255, .1);
}

#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li a { padding: 1em 20px; }
#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li li a { padding-left: 40px; }
#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li li li a { padding-left: 60px; }

#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li a:hover { margin-left: -20px; padding-left: 60px; }
#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li li a:hover { margin-left: -40px; padding-left: 100px; }
#bne-navbar .bne-navbar-menu .bne-navbar-custom-menu li li li a:hover { margin-left: -60px; padding-left: 140px; }


/* == Lock Scrolling == */
html.bne-lock, html.bne-lock body {
    height: 100%;
}

html.bne-lock body {
    overflow: hidden;
}



/* == Visibility == */
@media only screen and (min-width:1025px) {
    #bne-navbar.hide_on_standard, #bne-navbar.hide_on_desktop {
        display: none
    }
}

@media only screen and (min-width:768px) and (max-width:1024px) {
    #bne-navbar.hide_on_tablet {
        display: none
    }
}

@media only screen and (max-width:767px) {
   #bne-navbar.hide_on_mobile {
        display: none
    }
}