/* ================================================================= */
/* NAVIGATION CSS */
/* ================================================================= */

/* MOBILE NAV FUNCTIONALITY */
/*https://codepen.io/marclloyd77/pen/gtypB*/
/*
Copyright (c) 2021 by Marc Lloyd (https://codepen.io/marclloyd77/pen/gtypB)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* MOBILE NAV FUNCTIONALITY */

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

/* WP Admin Bar Offset */
@media (max-width: 782px) 
{
	.admin-bar nav#menu {
		top: 46px !important;
	}
}

/* WP Admin Bar Offset */
@media (min-width: 783px) and (max-width: 1024px) 
{
	.admin-bar nav#menu {
		top: 32px !important;
	}
}

.resize-animation-stopper * {
	-webkit-animation: none !important;
	        animation: none !important;
	-webkit-transition: none !important;
	-o-transition: none !important;
	transition: none !important;
}

#container, 
#bdpLogo, 
#copyright,
#currentUser {
	-webkit-transition: all 200ms ease-in;
	-o-transition: all 200ms ease-in;
	transition: all 200ms ease-in;
}

#copyright a {
	color: var(--txtColAlt);
	text-decoration: none;
	transition: var(--globalTransition);
}

#copyright a:hover,
#copyright a:focus,
#copyright a:active {
	color: var(--txtColAltHOVER);
}

nav#menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 250px;
	height: 100%;
	margin: 0 -250px 0 0;
	-webkit-transition: all 200ms ease-in;
	-o-transition: all 200ms ease-in;
	transition: all 200ms ease-in;
	background-color: var(--notif);
}

nav#menu ul{
	width: 100%;
	height:100%;
	padding:0;
	margin:0;
	list-style:none;
	background-color: var(--button);
	overflow:hidden;
	z-index: 1;
}

nav#menu li {
	margin:0;
	z-index: 1;
}

nav#menu a {
	color: #fff;
	font-size: 1.1em;
	text-decoration: none;
	display: block;
	padding: 1em;
	font-weight: 300;
	border-bottom: 1px solid var(--notif);
}

nav#menu a:hover {
	background: #111;
}

.sub-menu-header > a::after {
    content: '+';
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    margin-left: 5px;    
}

.sub-menu-header > a.test::after {
	content: '-';
}

nav#menu ul li .sub-menu {
	position: relative;
	display: inline;
}

nav#menu ul li .sub-menu li a::before {
	content: '';
	padding-right: 1em;
}

#navLabel {
	display: block;
	position: absolute;
	top: 50%;
	-webkit-transform: translate(0,-50%);
	    -ms-transform: translate(0,-50%);
	        transform: translate(0,-50%);
	right: 0;
	-webkit-transition:all 200ms ease-in;
	-o-transition:all 200ms ease-in;
	transition:all 200ms ease-in;
}

#header input[type="checkbox"] {
	display:none;
}

#header input[type="checkbox"]:checked ~ nav#menu {
	margin:0;
}

#header input[type="checkbox"]:checked ~ #navLabel {
	right: 250px;
}

#header input[type="checkbox"]:checked ~ #container {
	-webkit-transform:translate3d(260px, 0, 0);
	transform:translate3d(260px, 0, 0);
}

#container.checked {
	-webkit-transform:translate3d(-250px, 0, 0);
	transform:translate3d(-250px, 0, 0);
}

#bdpLogo.checked {
	-webkit-transform:translate3d(-250px, 0, 0);
	transform:translate3d(-250px, 0, 0);
}

#copyright.checked {
	-webkit-transform:translate3d(-250px, 0, 0);
	transform:translate3d(-250px, 0, 0);
}

#currentUser.checked {
	-webkit-transform:translate3d(-250px, 0, 0);
	transform:translate3d(-250px, 0, 0);
}

@media screen and (min-width: 1025px) 
{
	#navLabel {
		display: none;
	}

	nav#menu {
		position: absolute;
		font-size: var(--body);
		margin: 0;
		right: 0;
		top: 1em;
		text-align: right;
		width: auto;
		height: auto;
		-webkit-transition: none;
		-o-transition: none;
		transition: none;
		background-color: initial;
	}

	nav#menu ul {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		width: auto;
		height: auto;
		background-color: initial;
	}

	nav#menu a{
		font-size: 1em;
	}

	nav#menu ul li {
		border-right: 1px solid var(--txtColAlt);
	}

	nav#menu ul li:first-of-type{
		border-left: 1px solid var(--txtColAlt);
	}

	nav#menu ul li a {
		padding: .25em 1em .25em 1em;
		color: var(--txtColAlt);
		text-decoration: none;
		border: 0;
		-webkit-transition: var(--globalTransition);
		-o-transition: var(--globalTransition);
		transition: var(--globalTransition);
	}

	nav#menu ul li a[aria-current] {
		text-decoration: underline;
		text-underline-offset: 5px;
	}

	nav#menu ul li a:hover {
		background: initial;
	}

	nav#menu ul li a:visited {
		color: var(--txtColAlt);
	}

	nav#menu ul li a:active {
		color: var(--txtColAlt);
	}

	nav#menu ul li a:hover:active {
		color: var(--txtColAltHOVER);
	}

	nav#menu ul li a:hover,
	nav#menu ul li a:focus {
		color: var(--txtColAltHOVER);
	}

	nav#menu ul li .sub-menu {
		position: absolute;
		display: block;
		visibility: hidden;
		opacity: 0;
		text-align: center;
		-webkit-transition: var(--globalTransition);
		-o-transition: var(--globalTransition);
		transition: var(--globalTransition);
	}

	nav#menu ul .forms-sub .sub-menu {
		margin-left: -42px;
	}

	nav#menu ul .submissions-sub .sub-menu {
		margin-left: -29px;
	}

	nav#menu ul li .sub-menu li {
		border: none;
	}

	nav#menu ul li .sub-menu li:first-of-type {
		padding-top: .25em;
	}

	nav#menu ul li .sub-menu li a::before {
		content: unset
	}

	.sub-menu-header {
		cursor: default;
	}

	.sub-menu-header > a::before {
	    content: unset;  
	}

	.sub-menu-header > a::after {
	    content: '';
	    border: 4px solid transparent;
	    border-top: 4px solid white;
	    margin-left: 4px;
	    margin-bottom: 3px;
	    display: inline-block;
    	vertical-align: bottom;	
    	-webkit-transition: var(--globalTransition);	
    	-o-transition: var(--globalTransition);	
    	transition: var(--globalTransition);
	}

	.sub-menu-header > a:hover::after,
	.sub-menu-header > a:focus::after,
	.sub-menu-header > a:active::after {
		border-top: 4px solid #111;
	}

	.sub-menu-header > a:hover ~ .sub-menu,
	.sub-menu-header > a:focus ~ .sub-menu,
	.sub-menu-header > a:active ~ .sub-menu {
		visibility: visible !important;
		opacity: 1 !important;
	}

	.sub-menu:hover,
	.sub-menu:focus,
	.sub-menu:active,
	.sub-menu:focus-within {
		visibility: visible !important;
		opacity: 1 !important;
	}

	a.sub-hover {
		color: var(--txtColAltHOVER) !important;
	}

	a.sub-hover::after {
		border-top: 4px solid #111;
	}
}

/* BURGER MENU FUNCTIONALITY */
/*https://codepen.io/mindstorm/pen/XKKmdp*/
/*
Copyright (c) 2021 by mindstorm (https://codepen.io/mindstorm/pen/XKKmdp)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* BURGER MENU FUNCTIONALITY */

.burgerContainer {
	position: relative;
	height: 28px;
	width: 36px;
	cursor: pointer;
}

.burgerContainer .line-top,
.burgerContainer .line-middle,
.burgerContainer .line-bottom {
	position: absolute;
	display: block;
	height: 4px;
	width: 36px;
	border-radius: 2px;
	background: #fff;
}

.burgerContainer .line-top {
	top: 0;
	-webkit-transform-origin: 34px 2px;
		-ms-transform-origin: 34px 2px;
			transform-origin: 34px 2px;
}

.burgerContainer .line-middle {
	top: 12px;
	-webkit-transition: opacity 100ms linear;
	-o-transition: opacity 100ms linear;
	transition: opacity 100ms linear;
}

.burgerContainer .line-bottom {
	bottom: 0;
	-webkit-transform-origin: 34px 2px;
		-ms-transform-origin: 34px 2px;
			transform-origin: 34px 2px;
}

.burgerContainer.is-open .line-top {
	-webkit-animation: line-top-out 200ms linear normal;
			animation: line-top-out 200ms linear normal;
	-webkit-animation-fill-mode: forwards;
			animation-fill-mode: forwards;
}

.burgerContainer.is-open .line-middle {
	opacity: 0;
}

.burgerContainer.is-open .line-bottom {
	-webkit-animation: line-bot-out 200ms linear normal;
			animation: line-bot-out 200ms linear normal;
	-webkit-animation-fill-mode: forwards;
			animation-fill-mode: forwards;
}

.burgerContainer.is-closed .line-top {
	-webkit-animation: line-top-in 200ms linear normal;
			animation: line-top-in 200ms linear normal;
	-webkit-animation-fill-mode: forwards;
			animation-fill-mode: forwards;
}

.burgerContainer.is-closed .line-middle {
	-webkit-transition-delay: 100ms;
		-o-transition-delay: 100ms;
			transition-delay: 100ms;
}

.burgerContainer.is-closed .line-bottom {
	-webkit-animation: line-bot-in 200ms linear normal;
			animation: line-bot-in 200ms linear normal;
	-webkit-animation-fill-mode: forwards;
			animation-fill-mode: forwards;
}

@-webkit-keyframes line-top-in 
{
	0% {
		left: -5px;
		bot: 0;
		-webkit-transform: rotate(-45deg);
		        transform: rotate(-45deg);
	}

	100% {
		left: 0;
		bot: 1px;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
}

@keyframes line-top-in 
{
	0% {
		left: -5px;
		bot: 0;
		-webkit-transform: rotate(-45deg);
		        transform: rotate(-45deg);
	}

	100% {
		left: 0;
		bot: 1px;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
}

@-webkit-keyframes line-top-out 
{
	0% {
		left: 0;
		top: 0;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}

	100% {
		left: -5px;
		top: 1px;
		-webkit-transform: rotate(-45deg);
		        transform: rotate(-45deg);
	}
}

@keyframes line-top-out 
{
	0% {
		left: 0;
		top: 0;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}

	100% {
		left: -5px;
		top: 1px;
		-webkit-transform: rotate(-45deg);
		        transform: rotate(-45deg);
	}
}

@-webkit-keyframes line-bot-in 
{
	0% {
		left: -5px;
		-webkit-transform: rotate(45deg);
		        transform: rotate(45deg);
	}

	100% {
		left: 0;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
}

@keyframes line-bot-in 
{
	0% {
		left: -5px;
		-webkit-transform: rotate(45deg);
		        transform: rotate(45deg);
	}

	100% {
		left: 0;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
}

@-webkit-keyframes line-bot-out 
{
	0% {
		left: 0;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}

	100% {
		left: -5px;
		-webkit-transform: rotate(45deg);
		        transform: rotate(45deg);
	}
}

@keyframes line-bot-out 
{
	0% {
		left: 0;
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}

	100% {
		left: -5px;
		-webkit-transform: rotate(45deg);
		        transform: rotate(45deg);
	}
}
