/*Generated Stylesheet*/

body {
  margin:25px;
  -webkit-animation: bugfix infinite 1s; /* needed for checkbox hack */
}
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} } /* needed for checkbox hack */

body #header nav
{
	z-index:2;
	position:relative;
	background:#dd1d21;	
}
.flexrow.menubarback.rowback, footer .footer_bar .flexrow
{
	background:#dd1d21;
}
body #header .menu_in_header
{
	text-align:left!important;
}

@media(min-width:50em)
{
	.menu_in_header
	{
		position:absolute;
		bottom:0;
		right:0;
	}
	
	body #header .menu_in_header nav ul li a
	{
		padding:0.5em;
		border:none;
	}
	
	body #header .menu_in_header nav > ul
	{
		height:auto;
	}


}

@media(max-width:50em)
{
	.menu_in_header
	{
		min-width:240px;
	}	
}

.menu_in_header .flexspacer
{
	display:none;
}



body #header nav  ul
{
	display:none;
  width:100%;
  list-style:none;
  margin:0px;
  padding:0px;
	background:#dd1d21;
}

body #header nav>ul
{
	height:2.5em;
}

body #header nav ul li
{
  background:#dd1d21;
	transition: background-color 0.5s ease, color 0.5s ease;
}

body #header nav  ul li a
{
  display:block;
  padding:0.75em;
  color:#ffffff;
  text-decoration:none;
  border-right:1px solid rgba(0,0,0,0.9);
	line-height:1em;
	white-space:nowrap;
	transition: background-color 0.5s ease, color 0.5s ease;
}

body #header nav>ul>li:first-of-type>a
{
  border-left:1px solid rgba(0,0,0,0.9);
}

xxxbody #header nav  ul li:last-of-type a
{
	border-right:0px;
}


body #header nav  ul li ul a
{
padding:0.7em 1em 0.7em 1em;
  padding-left:2em;
}

body #header nav  ul li ul ul a
{
  padding-left:3em;
}

body #header nav  ul li a:hover
{
	background:rgba(0,0,0,0.6);
	color:#FFFFFF;
	transition: background-color 0.5s ease, color 0.5s ease;
}

body #header nav>ul>li.active>a, body #header nav>ul>li>a.active
{
	background:#000000;
	color:#FFFFFF;
	transition: background-color 0.5s ease, color 0.5s ease;
}

body #header nav ul li li
{
  background:rgba(0,0,0,0.6);
	background-color: rgba(255,255,255,0.2);
	transition: background-color 0.5s ease, color 0.5s ease;
	border-bottom:1px solid rgba(0,0,0,0.2);
	border-top:1px solid rgba(255,255,255,0.2);
}

body #header nav ul li li a
{
	border-right:1px solid rgba(0,0,0,0.1);
}


body #header nav  ul li a ul li a
{
	padding-left:1.5em;
}

body #header nav  ul li a ul li a  ul li a
{
	padding-left:3.125em;
}

body #header nav input.trigger
{
  position: absolute;
  top: -9999px;
  left: -9999px;
	line-height:1em;
}

body #header nav input.trigger:checked~ul, body #header nav input.trigger:checked~ul li ul
{
	display:block !important;
	height:auto;
}
	#header nav .imgmnu
	{
		display:none;
	}

@media (min-width:50em)
{

	#header nav .imgmnu
	{
		display:block;
	}
	
	#header nav .imgmnu::after
	{
		transform: scale(0.9);
		transition: 0.5s;
	}
	
	#header nav .imgmnu:hover::after
	{
		transform: scale(1);
		transition: 0.3s;
	}
	body #header nav input.trigger:checked~ul, body #header nav input.trigger:checked~ul li ul
	{
		/* older flexbox */
		display: -webkit-box;
		display: -moz-box;
		display: box;
		-webkit-box-orient: horizontal;
		-moz-box-orient: horizontal;
		box-orient: horizontal;

		/* newer flexbox */
		display: flex;
		flex-direction: row;
  }


	body #header nav  ul li ul a
{
  padding-left:1em;
}

body #header nav  ul li ul ul a
{
  padding-left:1em;
}


}

body #header nav label {
    position:relative;
    display:block;
    min-height:2em;
    padding:0.25em 0.75em 0.25em 0.75em;
    font-size:1.1em;
    margin:0;
    cursor:pointer;
    background:#dd1d21;
		color: #ffffff;
    line-height: 2em;
    xxxcolor:lighten($primaryColor,80%);
  }

body #header nav label:after {
    position: absolute;
    right: 1em;
    top: .2em;
    content:"\2261";
    font-size:1.8em;
    color:#ffffff;
  }

@media(min-width:50em)
{
	body #header nav ul
	{
    /* older flexbox */
    //display:block;
    display: -ms-flexbox;
    flex-direction: -ms-row;
    display: -webkit-box;
    display: -moz-box;
    display: box;

    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;

    /* newer flexbox */
    display: flex;
    flex-direction: row;
	}

	body #header nav ul li
	{
    position:relative;
    text-align: center;

    /* older flexbox */
    -ms-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;

		/* newer flexbox */
    flex: 1;
	}

  // 2nd level

  body #header nav ul li ul
	{
    display:none !important;
    position:absolute;
    top:3.0625em;
    left:0;
    display:block;
    width:12.5em;
    z-index:200;
	}

	body #header nav ul li ul li
	{
    text-align:left;
	}

	body #header nav ul li ul li ul
	{
    z-index: 300;
    top:0px;
    left: calc(12.5em - .1);
	}

	body #header nav ul li ul li ul li a
	{
    padding-left:30px !important;
  }

	body #header nav ul li > ul
	{
    display:none;

  }

@keyframes menufadein{
 0% {opacity 0;	visibility: hidden;	transform: rotateX(-90deg);	}
 100% {opacity 1;	visibility: visible;	transform: rotateX(-0deg);	}
}

  body #header nav ul li:hover > ul
	{
    display: block !important;
		position:absolute;
		max-height: 90vh;
		overflow-y:auto;
		top:100%;
		min-width:10em;
		 animation-duration: 0.3s;
		 animation-name: menufadein;
		 animation-fill-mode: forwards;
		 transform-origin: 0 0;
		 scrollbar-width: thin;
  }

	body #header nav ul li > ul::-webkit-scrollbar-thumb {
		background-color: #000000;
  border-radius: 0.25em;
	opacity:0.5;		
}
	

body #header nav ul li > ul::-webkit-scrollbar {
  width: 0.5em;
}

  body #header nav label
	{
      display:none;
	}
}



body footer .links_bar
{
	display:block;
}

footer .footer_bar .flexspacer
{
	flex: 1 2 0%;
}

footer .links_bar nav, body footer .flexmain:not(.footermsg)
{
	width:100%;
	background-color: #dd1d21 !important;
	color: #ffffff !important;
}

footer .links_bar nav .links
{
	display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
	-ms-flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-justify-content: center;
	-wenkit-justify-content: center;
	justify-content: center;
	clear:both;
	width:100%;
}


footer .links_bar nav .links li, footer .links_bar nav .links ul, footer .links_bar nav .links
{
	list-style-type:none;
	margin:0;
	padding:0;
}

footer .links_bar nav .links>li
{
	padding-top:0.5em;
}


footer .links_bar nav .links>li
{
	display:block;
	text-align:left;
	margin:0;
	padding-left: 1em;
	padding-right: 1em;
	padding-top:0.2em;
	padding-bottom:0.2em;
}

footer .links_bar nav .links a, footer .links_bar nav .links span
{
	display:block;
	padding-left:0.6em;
	padding-right:0.6em;
	padding-top:0.4em;
	padding-bottom:0.4em;
}

footer .links_bar nav .links span
{
	padding-bottom:0;
}

footer .links_bar nav .links ul a
{
	display:block;
	padding-left:0.6em;
	padding-right:0.6em;
	padding-top:0.3em;
	padding-bottom:0.3em;
}

footer .links_bar nav .links>li
{
	-ms-flex: 1 0 120px;
	-webkit-flex: 1 0 120px;
	flex: 1 0 120px;
	font-weight:bold;
}

footer .links_bar nav .links .fa
{
	width:1.6em;
}

footer .links_bar nav .links>li li a
{
	font-weight:normal;
	line-height:1em;
}

body #header.website4u nav
{
  width:100%;
  border: none;
  border-radius:0;
}

.links
{
	display:-o-flex;
	display:-wekbit-flex;
	display:-moz-flex;
	display:-ms-flex;
	display:flex;
	-moz-flex-wrap:wrap;
	-o-flex-wrap:wrap;
	-ms-flex-wrap:wrap;
	-webkit-flex-wrap:wrap;
	flex-wrap:wrap;
}

.links li
{
	flex: 1 1 auto;
}

	.show_mob
	{
		display:none;
	}

@media (max-width:50em)
{
	body #header nav  ul li a
	{
	xborder-left:1px solid rgba(0,0,0,0.9);
	xborder-right:1px solid rgba(0,0,0,0.9);
	xborder-bottom:1px solid rgba(0,0,0,0.9);
	border-bottom:1px solid rgba(0,0,0,0.2);
	border-top:1px solid rgba(255,255,255,0.2);
	border-left:none!important;
	border-right:none!important;
	}

	body #header nav ul li li
	{
		border-top:none;
		border-bottom:none;
	}
	
	
	.menubarback  .flexspacer
	{
		display:none;
	}

	.hide_mob .show_mob
	{
		display:block;
	}

	.hide_mob .hideable
	{
		display:none;
	}

body .aside.left
{
		-webkit-order:1;
		-ms-order:1;
		order:1;
    xmargin-right:2em;
}

body .aside.left, body .aside.right
{
	padding-top:0;
}


}

