/*
 * jQuery FlexPanel v1
 * https://github.com/dcooney/flexpanel
 *
 * Copyright 2013 Connekt Media - http://cnkt.ca/flexpanel
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Author: Darren Cooney 
 * Twitter: @KaptonKaos
 */
 




 
#container,
#wrapper {
  width: 100%;
  position: relative;
}
#container {
  overflow: hidden;
}
#wrapper {
  left: 0;
 /* breaks ipad (e.g. /diabetes-you/recipes.aspx?perpage=72 - doesn't display;other pages don't resize correctly on orientation change) */
/*  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0); 
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000; */
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease; 
  width: 100%;
  position: relative;
  margin: 0 auto;
  padding: 0;
}

.flexpanel {
  position: fixed;
  top: 0;
  right:-80%;
  width: 80%;
  height: auto;
  padding: 0;
  margin: 0;
  /* z-index: 1; */
  z-index:100001;
  display: none;
/*  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-transition: -webkit-transform .5s ease;
  -moz-transition: -moz-transform .5s ease;
  transition: transform .5s ease; */
  background: #444444;
}
.flexpanel .viewport-wrap {
  position: relative;
  width: 100%;
/**/   -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
 -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000; 
  -webkit-transition: -webkit-transform .5s ease;
  -moz-transition: -moz-transform .5s ease;
  transition: transform .5s ease; 
}
.flexpanel .flex-btn {
  width: 40px;
  height: 40px;
  position: absolute;
  left: -44px;
  top: 20px;
  z-index: 9;
/**/  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000; 
  -webkit-transition: all 0.35s ease;
  -moz-transition: all 0.35s ease;
  transition: all 0.35s ease;
}
.flexpanel .flex-btn.in-view {
  opacity: 1;
  filter: alpha(opacity=100);
}
.flexpanel .flex-btn span {
  width: 40px;
  height: 40px;
  /* background: url(/National_Library/oe_/https://www.diabetes.ca/cda/images/btn-menu-black.png) no-repeat center center; */
  display: block;
  overflow: hidden;
  text-indent: -9999px;
  display: block;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  cursor: pointer;
}
.flexpanel .flex-btn span:hover {
  background-color: #ccc;
}
.flexpanel .flex-btn span:active {
  -webkit-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
}
.flexpanel .cover {
  width: 100%;
  position: absolute;
  left: 0%;
  top: 0;
  display: none;
  height: auto;
  z-index: -1;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease; 
}
.flexpanel .viewport {
  height: auto;
  width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  overflow-y: auto;
  background: #444;
  -webkit-box-sizing: border-box;
  -khtml-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
.flexpanel .viewport.smooth {
  -webkit-overflow-scrolling: touch;
}
.flexpanel div.navigation {
  padding: 0 0 50px;
}
.flexpanel div.navigation ul {
  display: block;
  clear: both;
  background: #333;
  padding: 0;
  margin: 0;
/*  -webkit-transform: scale(0.95);
  -moz-transform: scale(0.95);
  transform: scale(0.95);
  -webkit-transition: all 0.45s ease;
  -moz-transition: all 0.45s ease;
  transition: all 0.45s ease; */
}
.flexpanel div.navigation ul li {
  margin: 0;
  padding: 0;
  clear: both;
  list-style: none;
  width: auto;
  display: block;
  font-size: 18px;
  border-top: 1px solid #444;
  border-bottom: 1px solid #111;
}
.flexpanel div.navigation ul li:first-child {
  border-top: none;
}
.flexpanel div.navigation ul li ul {
  margin: 5px 20px 20px;
  border: none;
}
.flexpanel div.navigation ul li ul li {
  font-size: 15px;
  margin: 2px 0;
  border: none;
}
.flexpanel div.navigation ul li ul li a {
  padding: 10px 14px;
  background: #444;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}
.flexpanel div.navigation ul li ul li a:active {
  background: #2f2f2f;
  -webkit-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
}
.flexpanel div.navigation ul li a {
  padding: 10px 20px;
  display: block;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.flexpanel div.navigation ul li a:active {
  background: #232323;
  -webkit-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
}
.flexpanel div.navigation ul li.active > a {
  /* color: #66c9cd !important;
  background: #222 !important;
  font-weight: bold; */
}
.flexpanel div.navigation ul li.active {
  background: #222;
}

body.flexpanel-active #wrapper {
/*   -moz-transform: translate(-75%, 0);
  -webkit-transform: translate(-75%, 0);
  transform: translate(-75%, 0); */
  opacity: 0.4 !important;
  filter: alpha(opacity=40) !important;
}
body.flexpanel-active .flexpanel {
  right: -80%;
}
body.flexpanel-active .flexpanel .cover {
  display: block;
  left: -130%;
}
body.flexpanel-active .flexpanel .viewport-wrap {
  -moz-transform: translate(-100%, 0);
  -webkit-transform: translate(-100%, 0);
  transform: translate(-100%, 0);
}
body.flexpanel-active .flexpanel .viewport-wrap .flex-btn {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}
body.flexpanel-active .flexpanel .viewport-wrap ul {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
}

body.flexpanel-left .flexpanel {
  right: auto;
  left: -80%;
}
body.flexpanel-left .flexpanel .flex-btn {
  left: auto;
  right: -48px;
}
body.flexpanel-left .flexpanel .cover {
  left: auto;
  right: -50%;
}

body.flexpanel-left.flexpanel-active #wrapper {
  -moz-transform: translate(75%, 0);
  -webkit-transform: translate(75%, 0);
  transform: translate(75%, 0);
}
body.flexpanel-left.flexpanel-active .flexpanel {
  right: auto;
  left: -80%;
}
body.flexpanel-left.flexpanel-active .flexpanel .cover {
  display: block;
  left: 130%;
  background: #ff0000;
}
body.flexpanel-left.flexpanel-active .flexpanel .viewport-wrap {
  -moz-transform: translate(100%, 0);
  -webkit-transform: translate(100%, 0);
  transform: translate(100%, 0);
}

body.flexpanel-top #wrapper {
  -moz-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  opacity: 1;
  filter: alpha(opacity=100);
}
body.flexpanel-top .flexpanel {
  right: auto;
  left: 0;
  width: 100% !important;
  -moz-transform: translate(0, -100%);
  -webkit-transform: translate(0, -100%);
  transform: translate(0, -100%);
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}
body.flexpanel-top .flexpanel.ready {
  -webkit-transition: -webkit-transform .5s ease;
  -moz-transition: -moz-transform .5s ease;
  transition: transform .5s ease;
}
body.flexpanel-top .flexpanel div.navigation {
  padding: 0 0 20px;
}
body.flexpanel-top .flexpanel div.navigation ul {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
}
body.flexpanel-top .flexpanel div.navigation ul li {
  text-align: center;
  border: none;
  border-top: 1px solid #efefef;
}
body.flexpanel-top .flexpanel div.navigation ul li a {
  background-color: #fff;
  color: #666;
}
body.flexpanel-top .flexpanel div.navigation ul li.active > a {
  /* background: #efefef !important;
  color: #222 !important; */
}
body.flexpanel-top .flexpanel .flex-btn {
  top: auto;
  left: 0;
  bottom: -30px;
  width: 100%;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  background: none;
  height: 30px;
}
body.flexpanel-top .flexpanel .flex-btn span {
  width: 42px;
  height: 42px;
  -webkit-border-radius: 0 0 4px 4px;
  -moz-border-radius: 0 0 4px 4px;
  border-radius: 0 0 4px 4px;
  background-position: center center;
  background-color: #fff;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-top: none;
}
body.flexpanel-top .flexpanel .flex-btn span:hover {
  background-color: #fff;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
body.flexpanel-top .flexpanel .cover {
  left: auto;
  right: auto;
  display: none;
}
body.flexpanel-top .flexpanel .viewport-wrap {
  width: 100%;
  -moz-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}
body.flexpanel-top .flexpanel .viewport-wrap .viewport {
  background: #fff;
}

body.flexpanel-top.flexpanel-active #wrapper {
  -moz-transform: translate(0, 200px);
  -webkit-transform: translate(0, 200px);
  transform: translate(0, 200px);
}
body.flexpanel-top.flexpanel-active .flexpanel {
  right: auto;
  left: auto;
  -moz-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}
body.flexpanel-top.flexpanel-active .flexpanel .cover {
  display: block;
  left: auto;
  top: 100%;
}
body.flexpanel-top.flexpanel-active .flexpanel .viewport-wrap {
  -moz-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  -webkit-box-shadow: 0 3px 2px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0 3px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 767px) {
  body .flexpanel {
    display: block;
  }
}



/*** CDA-SPECIFIC STYLES ***/
/* 
body copy gray: #232122
gray borders: #dbdbdc		
nav panel bkg gray: #f4f0e9
nav panel CTA bkg gray, footer gray: #fbf7f1
left nav icon gray: #9e9c94
*/
.flexpanel .viewport-wrap {}
.flexpanel .flex-btn {}

/* override colours */
.flexpanel {background-color: transparent; }
.flexpanel .flex-btn span:hover {
  background-color: transparent;
}
.flexpanel .viewport { background: transparent; }
.flexpanel div.navigation ul { background: transparent; }
.flexpanel div.navigation ul li ul li a {
  background: transparent;
}
.flexpanel div.navigation ul li ul li a:active {
  background: transparent;
}
.flexpanel div.navigation ul li a:active {
  background: transparent;
}
.flexpanel div.navigation ul li.active {
  background: transparent;
}
body.flexpanel-top .flexpanel div.navigation ul li a {
  background-color: transparent;
}
body.flexpanel-top .flexpanel div.navigation ul li.active > a {
  background: transparent !important;
  color: transparent !important;
}
/* End override colours */




.flexpanel .viewport {background:#f4f0e9; font-family: 'Roboto', sans-serif;}
.flexpanel .flex-btn {/* left:-2.9rem; width:3rem; height:3rem; */ left:-46px; width:45px; height:45px; }

.flexpanel .flex-btn span {width:auto; height:auto; background-image:none;}
.flexpanel .flex-btn span:hover {background-color:inherit;}
.flexpanel .flex-btn span.flex-btn-inner {background-image:none; background-color:#a12a1e; text-indent:0; height:3rem; line-height:3rem; width:3rem; text-align:center; border-radius:4px 0 0 4px; box-shadow:-2px 2px 2px rgba(0,0,0,0.2);}
.flexpanel .flex-btn span.flex-btn-inner .icon {color:#fff; display:block; text-indent:0; font-size:1.8rem; text-align:center; margin-left:0.4rem;}
.flexpanel div.navigation ul {background:#fbf7f1; }
.flexpanel div.navigation ul#donate {background:#a12a1e;}
 
 .flexpanel div.navigation ul#breadcrumbs {margin-top:20px;}
.flexpanel div.navigation ul li.breadcrumb {background:#484745; border-radius:0;}
.flexpanel div.navigation ul li.breadcrumb-active {background:#ceccc9;}
.flexpanel div.navigation ul li.breadcrumb a {color:#fff;}
.flexpanel div.navigation ul li.breadcrumb-active a {padding-left:2.1em;}

.flexpanel div.navigation ul ul {display:none; }


.flexpanel div.navigation ul li {border-bottom:1px solid #dbdbdc; border-top:none; font-size:1rem;}



.no-touch .flexpanel div.navigation ul#mnMobileNav li:hover, 
.flexpanel div.navigation ul#mnMobileNav li.HighLighted
 {
	background:#f4f0e9;
}
.touch .flexpanel div.navigation ul#mnMobileNav li:active,
.touch .flexpanel div.navigation ul#mnMobileNav li:focus,
.touch .flexpanel div.navigation ul#mnMobileNav li a:active {
	background:#FBF7F1;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}


.flexpanel div.navigation ul li a {padding-left:2.1rem;color:#232122;}
.flexpanel div.navigation ul#breadcrumbs li a {padding-left:1.3rem;}
.flexpanel div.navigation ul#donate li a {color:#fff; text-transform:uppercase; font-size:1.1rem; font-weight:bold;} 

.flexpanel div.navigation ul li.breadcrumb-active a,
.flexpanel div.navigation ul li.HighLighted a {color:#005373; font-weight:bold;}

.flexpanel div.navigation ul#breadcrumbs li a:before {
	content: "\f104"; 
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	color:#9e9c94;
	margin-right:.5em;
}
.flexpanel div.navigation ul#breadcrumbs li.breadcrumb-active a:before {
	content:none;
}
.flexpanel div.navigation ul#breadcrumbs li.breadcrumb-active a:after {
	content:"\f107";
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	color:#9e9c94;
	float:right;

}

/* 
.flexpanel div.navigation ul#breadcrumbs li:last-child a:before {
	content: none; 
}
.flexpanel div.navigation ul#breadcrumbs li.breadcrumb-active:last-child a:before {
	content: "\f107"; 
}
*/


.flexpanel div.navigation ul#mnMobileNav li.hasChildren a:after {
	content: "\f105"; 
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	color:#9e9c94;
	margin-left:.5em;
	float:right;
}

/* 
.touch
:active
:focus
*/

