.stoic-gym {} /* stoic gym 2020 */ 

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNext-Regular.woff2') format('woff2'),
        url('../fonts/AvenirNext-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNext-Bold.woff2') format('woff2'),
        url('../fonts/AvenirNext-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


*, *:before, *:after { 
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}

body {
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #FFF;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	/*
	/// Non System Font Stack ///
	font-family: Verdana, "Helvetica Neue", Helvetica, Arial, Gotham, Geneva, "sans-serif";
	/// Non System Font Stack ///
	*/
	font-size: 16px;
	font-weight: 400;
	color: #333;
	line-height: 1.6;
	position: relative;
}

img {
	border: none;
    background: transparent;
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */   
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);   /* IE6 & 7 */ 
	outline:0;
}
 img, button, input {
    outline: none;
}

.inner {
	margin: 0 auto;
	padding: 0;
	max-width:1366px;
	position: relative;
}
.center {
	text-align: center;
	margin-left:auto;
	margin-right:auto;
}

#header {
	background-color: #fff;
	margin: 0;
	padding: 0;
	width: 100%;
	position: fixed;
	top:0;
	z-index:7777;
	box-shadow: 0px 1px 7px 0px rgba(0,0,0,0.1);
	-webkit-box-shadow: 0px 1px 7px 0px rgba(0,0,0,0.1);
	-moz-box-shadow: 0px 1px 7px 0px rgba(0,0,0,0.1);
	-ms-box-shadow: 0px 1px 7px 0px rgba(0,0,0,0.1);
	-o-box-shadow: 0px 1px 7px 0px rgba(0,0,0,0.1);
    -webkit-transition: all 1s ease 0s;
    -moz-transition: all 1s ease 0s;
    -o-transition: all 1s ease 0s;
    transition: all 1s ease 0s;
} 
#header:hover {	
	background-color: #fff;
	box-shadow: 0px 1px 41px 0px rgba(0,0,0,0.4);
	-webkit-box-shadow: 0px 1px 41px 0px rgba(0,0,0,0.4);
	-moz-box-shadow: 0px 1px 41px 0px rgba(0,0,0,0.4);
	-ms-box-shadow: 0px 1px 41px 0px rgba(0,0,0,0.4);
	-o-box-shadow: 0px 1px 41px 0px rgba(0,0,0,0.4);
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
} 

#header .inner.top {
	max-width: 1366px;
	height:150px;
	margin:0 auto;
	padding: 0 10px;
	z-index:5554;
	text-align:center;
}
#header .headertext {
	margin:0 auto;
	padding: 0;
	display: inline-block;
}
#header h2 {
	margin: 25px 5px 0 5px;
    padding: 0;
	float: left;
	line-height: 1;
	font-size: 70px;
	font-weight: normal;
	letter-spacing:-1px;
}
#logo {
	background-image: url(../images/Stoic-Gym-logo.svg);
	background-repeat:no-repeat;
	float: left;
	margin:10px 5px;
	-webkit-background-size: 100% auto;
	-moz-background-size: 100% auto;
	-o-background-size: 100% auto;
	background-size: 100% auto;
	width: 162px;
	height: 90px;
    -webkit-transition: all .5s ease 0s;
    -moz-transition: all .5s ease 0s;
    -o-transition: all .5s ease 0s;
    transition: all .5s ease 0s;
}
#biopic {
	background-image: url(../images/Chakrapani_Chuck.jpg);
	background-repeat:no-repeat;
	float: left;
	margin:10px 5px;
	-webkit-background-size: 100% auto;
	-moz-background-size: 100% auto;
	-o-background-size: 100% auto;
	background-size: 100% auto;
	width: 90px;
	height: 90px;
    -webkit-transition: all .5s ease 0s;
    -moz-transition: all .5s ease 0s;
    -o-transition: all .5s ease 0s;
    transition: all .5s ease 0s;
}


/* ====================== MAIN NAV ====================== */
.navbar {
	position:absolute;
	bottom:0px;
	left:10px;
	text-align:center;
	min-height: 40px;
	width: 100%;
	border-top: 1px solid #cfc6af;
}

ul.nav {
/*  display: inline;*/
	list-style: none;
	width:100%;
	margin:0;
	padding:0;

	display: flex;
	flex-flow: space-between;
}
ul.nav li {
	font-size: 18px;
	font-weight:600;
	color: #555;
	white-space:nowrap;
	display:inline-block;
/*	min-width: 18.7%;*/
	position: relative;
	padding: 7px 11px;
	text-align:center;
	cursor: pointer;
		
	flex-shrink: 0;
    flex-grow: 1;
}
ul.nav li > a {
	color: #555;
	display: block;
	width:100%;
	height: 100%;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}
ul.nav li:hover >a {
	color: #fff;
}
ul.nav li:hover, ul.nav li:active {
    background-color: #232020;
    color: #fff;
}
ul.nav li ul {
  padding: 0;
  position: absolute;
  top: 42px;
  left: 0;
  min-width: 260px;
  display: block;
  opacity: 0;
  visibility: hidden;
  line-height:1.2;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	-ms-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}
ul.nav li ul li { 
  background-color: #232020; 
  color: #fff;
  text-align:left;
  float:left;
	white-space: normal;
	width: 100%;
	min-width: 280px;
  padding: 9px 11px;
  border-top:1px solid rgba(255,255,255,0.3);
}
ul.nav li li ul li { 
  background-color: #232020;
}
ul.nav li li, ul.nav li li a { color: #fff; font-size:.92em; width: 100%; display: block; }
ul.nav li li:hover { background-color:#4e4949; }

ul.nav li li li, ul.nav li li li a { color: #fff; font-size:.92em; width: 100%; display: block; }
ul.nav li li li:hover, ul.nav li li li:hover a { background-color:#4e4949; color: #fff}
ul.nav li:hover>ul {
  display: block;
  opacity: 1;
  visibility: visible;
}
ul.nav .has-submenu>a {
	background: url(../images/sub-arrow.png) no-repeat /*right -- ORIG SETTING */ 98% 50%;
	padding-right:18px;
}
ul.nav li li ul, ul.nav li:first-child li ul { top:0; left: -9999px; -webkit-transition: all 0s ease; -moz-transition: all 0s ease; -ms-transition: all 0s ease; -o-transition: all 0s ease; transition: all 0s ease; }
ul.nav li li:hover ul { top: -1px; left: 255px; z-index: 2;}
ul.nav li:last-child li:hover ul { top: 0; left: -255px; }


/* ========================== SUB NAV ========================= */

#subnavbar {
	margin: 0 auto;
	padding: 0;
	background-color: #bbb;
	max-width: 100%;
	text-align: center;
	overflow: visible;
	color:#fff;
}
#subnavbar.blue {
	background-color: #00447c;
}
#subnavbar.lightgreen {
	background-color: #899c7b;
}


ul.sub-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  right:0;
width: 100%;
		
	display: flex;
  	flex-flow: wrap;
}
ul.sub-nav li {
	font-size: 16px;
	font-weight:400;
	color: #fff;
	text-shadow: 0 1px 5px rgba(0,0,0,0.2);
	white-space:nowrap;
	display:inline-block;
    margin: 0 10px;
    padding: 5px 20px;
	cursor: pointer;
	position: relative;
		
	flex-shrink: 0;
    flex-grow: 1;
}
ul.sub-nav li>a {
	color: #FFF;
}
ul.sub-nav li:hover >a {
	color: #DAEFF7;
}
ul.sub-nav li:hover {
	background: rgba(0,0,0,0.2);
}
ul.sub-nav li ul {
  padding: 0;
  position: absolute;
  top: 34px;
	left:0;
  min-width: 240px;
  display: none;
  opacity: 0;
  visibility: hidden;
  line-height:1.2;
}
ul.sub-nav li:hover>ul {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

ul.sub-nav li ul li { 
	background-color: #bbb; 
	display: block; 
	text-align:left;
	white-space: normal;
	width: 240px;
	border-top:1px solid rgba(255,255,255,0.5);
	font-size: .93em;
	padding:  7px 10px;
}
ul.sub-nav li ul li:hover {
	background-color: #bbb;
}

#subnavbar.lightgreen  ul.sub-nav li ul li { 
	background-color: #899c7b; 
	display: block; 
	text-align:left;
	white-space: normal;
	width: 240px;
	border-top:1px solid rgba(255,255,255,0.5);
	font-size: .9em;
	padding:  7px 10px;
}
#subnavbar.lightgreen  ul.sub-nav li ul li:hover {
	background-color: #899c7b;
}

ul.sub-nav .has-submenu>a {
	background: url(../images/sub-arrow.png) no-repeat right;
	padding-right:18px;
}




/* =============================== logo scroller =================================== */

.simply-scroll-container { 
	position: relative;
}
.simply-scroll-clip { 
	position: relative;
	overflow: hidden;
}
.simply-scroll-list { 
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
}	
.simply-scroll-list li {
	padding: 0;
	margin: 0;
	list-style: none;
}	
.simply-scroll-list li img {
	border: none;
	display: block;
}

/* Custom - adds to / overrides above .simply-scroll is default base class */
.simply-scroll { 
	max-width: 1366px;
	height: 140px;
	margin-top: 20px;
	margin-bottom: 1px;
}
.simply-scroll .simply-scroll-clip {
	max-width: 1366px;
	height: 140px;
}
.simply-scroll .simply-scroll-list li {
	float: left; /* Horizontal scroll only */
	width: 300px;
	height: 140px;
	text-align:center;
}
.simply-scroll .simply-scroll-list li img, #content .simply-scroll .simply-scroll-list li img {
	text-align:center;
	margin:0 auto;

	width: auto !important;
	max-width: 180px; 
	height:auto !important;  
	max-height: 95px; 
}

/* ===================== FADING LOGOS ===================== */

.slideshow { width: 100%; height: 130px; }
.slideshow div { width: 100%; height: 130px; }
.slideshow div img { margin: auto; display: block; border: none; }


/* ========================= SOCIAL LINKS ======================== */
#social {
	position:absolute;
	right:20px;
	top:5px;
    margin: 0;
	padding: 0;
	color:#FFF;
	font-size:14px;
}
#social li {
   list-style: none;
	margin: 0 0 0 20px;
   padding: 0;
   float: right;
   white-space:nowrap;
}
#social li:last-child {
	margin: 0;
}

#social li a, #social li a:visited {
	color: #fff;
    font-size: 14px;
    text-transform: uppercase;
}
#social li a:hover {
	color: #FFC800;
}



/* ================================ SEARCH ================================= */

#search input[type="text"] {
    background: rgba(0,0,0,0.1) url(../images/icon-search.png)  3px  no-repeat;
    margin:0;
    padding: 5px 15px 3px 35px;
	border: 0;
    font: 12px Arial,Helvetica,Sans-serif;
    color: #fff;
    height:29px;
	width: 400px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 5px;
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
    }

#search input[type="text"]:focus {
    width: 400px;
	color: #fff;
    background: rgba(0,0,0,0.5) url(../images/icon-search.png)  3px  no-repeat;
}

input {
    outline: none;
}

#searchicon {
	position: absolute;
	right:5px;
	bottom:46px;
	background: url(../images/icon-search-beige.png) no-repeat;
	background-size: cover;
	width:23px;
	height: 21px;
}   
#searchicon:hover{
	bottom:48px;
}


/* ---------------- BANNER ----------------- */
#banner, #banner.home {
	margin: 0;
	padding: 100px 0 0 0;
	width:100%;
	/*height: 500px;*/
	background-color: #FFF;
	position:relative;
	text-align: center;
	overflow:hidden;
	max-height: 550px;
}
#banner.home {
  max-height: inherit;
}

#banner .innertext {
	/*width: 960px;*/
	width: 100%;
	margin:0;
	padding:0 10%;
	z-index:5554;
	position:absolute;
	top: 30%;
	text-align:left;
}

.imghelper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
#banner img {
	display: inline-block;
	text-align:center;
}

#banner H1, #banner H2, #banner H3 {
	font-family: 'Avenir Next', Helvetica, Verdana, Arial, 'Lucida Grande', sans-serif;
	font-weight:400;
	font-size:60px;
	color:#fff;
	line-height:1.1;
	margin: 0;
	padding: 0;
	z-index:5555;
	/*left:0;*/
	text-shadow: 0 1px 9px rgba(0,0,0,0.6);
	letter-spacing:-2px;
}
#banner H2 {
	font-size:50px;
	color:#fff;
	letter-spacing:0;
}
#banner H3 {
	font-size:40px;
	color:#fff;
	letter-spacing:0;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
background: rgba(0,0,0,0.1);
background: -moz-linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
background: -webkit-linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

/* ======================== SLIDER ========================== */

/*! http://responsiveslides.com v1.54 by @viljamis */

.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.rslides li {
  -webkit-backface-visibility: hidden;
  position: absolute;
  display: none;
  width: 100%;
  /*height: 500px;*/
  left: 0;
  top: 0;
	max-height: 300px;
}
.rslides.home li {
  max-height: inherit;
}

.rslides li:first-child {
  position: relative;
  display: block;
  float: left;
}

.rslides img {
  display: block;
  float: left;
  width: 100%;
  height: auto;
  border: 0;
  margin:0 auto;
  }

#banner .callbacks_nav {
  position: absolute;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  top: 60%;
  left: -20px;
  opacity: 0.3;
  z-index: 3;
  text-indent: -9999px;
  overflow: hidden;
  text-decoration: none;
  width: 20px;
  height: 30px;
  background: transparent url(../images/arrows-banner.png) no-repeat left top;
  margin-top: -45px;
    -webkit-transition: all 0.5s ease 0s;
    -moz-transition: all 0.5s ease 0s;
    -o-transition: all 0.5s ease 0s;
    transition: all 0.5s ease 0s;
}

#banner .callbacks_nav.next {
  left: auto;
  background-position: right top;
  right: -20px;
  }

#banner:hover .callbacks_nav {
  left: 10px;
  opacity: 0.5;
}
#banner:hover .callbacks_nav.next {
  left: auto;
  background-position: right top;
  right: 10px;
  opacity: 0.5;
}

#banner .callbacks_nav:hover, #banner .callbacks_nav:active, #banner .callbacks_nav.next:hover, #banner .callbacks_nav.next:active {
  opacity: 1.0;
  }

/* ============================== BODY ================================ */

.content {
	margin:0 auto;
	padding: 50px 20px 60px 20px;
	max-width: 1366px; 
	min-height:200px;
	z-index: 5;
	position: relative;
} 

.content ul { 
	/*margin: 0;*/
	padding: 0 20px;
}
.content li {
	padding: 0 0 9px 0;
}

.content img, .box-1 img, .box-1-2 img, .box-1-3 img, .box-2-3 img {
	max-width:100%;
	height:auto !important;
}

.content p {
	/* margin-after:2em;*/
	margin: 15px 0;
}

.content.fullwidth {
	max-width:100%;
	width:100%;
	overflow: auto;
}

.content .columns3 {
  column-count: 3;
  column-gap: 40px;
  column-width: 180px;
}
.content .columns3 p {
	page-break-inside: avoid; /* For Firefox. */
	-webkit-column-break-inside: avoid; /* For Chrome & friends. */
	break-inside: avoid; /* For standard browsers like IE. :-) */
}

.beigeback img {
	max-width:100%;
	height:auto !important;
}

.content.fullwidth.beigeback {
	padding:0;
	position: relative;
	line-height: 1.1;
    min-height: 350px;
    overflow: hidden;
	background-color: #e3dcca;
}

.content.fullwidth.beigeback.darkgrey  {
	background-color: #232020;
	color:#fff;
	font-size: 20px;
}
.content.fullwidth.beigeback a:link, .content.fullwidth.beigeback.darkgrey a:link, .content.fullwidth.beigeback a:visited, .content.fullwidth.beigeback.darkgrey a:visited  {
	color:#fff;
}
.content.fullwidth.beigeback a:hover, .content.fullwidth.beigeback.darkgrey a:hover  {
	color:#fff;
}
.content.fullwidth.beigeback .button {
	display: inline-block;
	font-size: 18px;
	font-weight: 400;
	text-align: center;
	color: #FFF;	
	background: rgb(169,141,63);
	background: -moz-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(252,211,96,1) 80%);
	background: -webkit-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(252,211,96,1) 80%);
	background: linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(252,211,96,1) 80%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a98d3f",endColorstr="#fcd360",GradientType=1);
	-webkit-transition: all 1s ease 0s;
	-moz-transition: all 1s ease 0s;
	-o-transition: all 1s ease 0s;
	transition: all 1s ease 0s;
}
.content.fullwidth.beigeback .button:hover {
	color: #fff;
	background: #fcd360;
	background-color: #fcd360;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.content.fullwidth.darkgrey h4, .content.fullwidth.darkgrey h5, .content.fullwidth.darkgrey h6,
.content.fullwidth.darkgrey h4 a:link, .content.fullwidth.darkgrey h5 a:link, .content.fullwidth.darkgrey h6 a:link,
.content.fullwidth.darkgrey h4 a:visited, .content.fullwidth.darkgrey h5 a:visited, .content.fullwidth.darkgrey h6 a:visited {
	font-size: 32px;
	font-weight: 400;
	color:#fff;
}

.content.fullwidth.darkgrey h4:hover, .content.fullwidth.darkgrey h5:hover, .content.fullwidth.darkgrey h6:hover,
.content.fullwidth.darkgrey h4:hover a:link, .content.fullwidth.darkgrey h5:hover a:link, .content.fullwidth.darkgrey h6:hover a:link,
.content.fullwidth.darkgrey h4:hover a:visited, .content.fullwidth.darkgrey h5:hover a:visited, .content.fullwidth.darkgrey h6:hover a:visited {
	color:#fff;
}

.content.fullwidth.darkgrey p {
	margin:5px 0 0 0;
}

.fadebackground {
	background: -moz-linear-gradient(top, rgba(250,250,250,0.4) 0%, rgba(245,245,245,0.8) 100%);
	background: -webkit-linear-gradient(top, rgba(250,250,250,0.4) 0%, rgba(245,245,245,0.8) 100%);
	background: linear-gradient(to bottom, rgba(250,250,250,0.4) 0%, rgba(245,245,245,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80f9f9f9', endColorstr='#e6f7f7f7',GradientType=0 );
}





/* ============================= LINKS ============================ */
a:link {
	color: #9a7f38;
	text-decoration: none;
	-webkit-transition: color .1s ease-in-out;
	-moz-transition: color .1s ease-in-out;
	-o-transition: color .1s ease-in-out;
	transition: color .1s ease-in-out;
}
a:visited {
	color: #9a7f38;
	text-decoration: none;
}
a:hover, a:active, a:focus {
	color: #6f5b26;
	text-decoration: none;
	outline:0;
}


a.anchor {
    display: block;
    position: relative;
    top: -170px;
    visibility: hidden;
}

/* ============================= stoic ============================ */
.stoic-issue, .stoic-thumb {
	padding: 0;
	height:350px;
	width:100%;
	text-align: center;
	vertical-align:middle;
	position: relative;
	min-height: 150px;
	overflow: hidden;
	background: rgb(250,250,250);
	background: -moz-linear-gradient(top, rgb(255,255,255) 6%, rgb(249,249,249) 98%);
	background: -webkit-linear-gradient(top, rgb(255,255,255) 6%,rgb(249,249,249) 98%);
	background: linear-gradient(to bottom, rgb(255,255,255) 6%,rgb(249,249,249) 98%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f9f9f9',GradientType=0 );
}

.stoic-thumb {
	height:170px;
	min-height: 100px;
	display:table-cell;
}

.stoic-issue img, .stoic-thumb img { 
	width: 100%; 
	height:auto;  
    margin: auto;
	position: absolute;  
    top: 0;
   	/*bottom: 50px;*/
    left: 0;  
    right: 0;  
}
.content .stoic-thumb.box-1-3 img { 
	width: auto !important;
	width: 100%; 
	height:auto;  
	max-width: 150%;
	max-height: 100%; 
	position: absolute;  
    top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
}

.intro-text-container p {margin-top: 5px;}





/* ============================= FOOTER ============================ */

#footer {
	width: 100%;
	padding: 50px 0 90px 0;
	font-size: 16px;
	color: #fff;
	line-height: 1.4;
	position: relative;
	text-align: center;
	background: rgb(35,31,32);
	background: -moz-linear-gradient(15deg, rgba(35,31,32,1) 30%, rgba(135,112,53,1) 100%);
	background: -webkit-linear-gradient(15deg, rgba(35,31,32,1) 30%, rgba(135,112,53,1) 100%);
	background: linear-gradient(15deg, rgba(35,31,32,1) 30%, rgba(135,112,53,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#231f20",endColorstr="#877035",GradientType=1);
} 

#footer .overlay {
	position: absolute;
	left:0;
	right:0;
	top:0;
	bottom:0;
	background-image: url(../images/stoic-footer-back.png);
	background-size: cover;
	opacity: .6;
}
#footer a:link, #footer a:visited {
	color: #fff;
	text-decoration: none; 
	font-size: 16px;
	padding: 0;
}
#footer .nav a:link, #footer .nav a:visited {
	color: #fff;
	text-decoration: none; 
	font-size: 16px;
	font-weight: bold;
	padding: 0 20px;
	text-transform: uppercase;
}
#footer a:hover, #footer .nav a:hover {
	color: #AF943D;
}

#footer .logo {
	background-image: url(../images/Stoic-Gym-logo.svg);
	background-repeat:no-repeat;
	-webkit-background-size: 100% auto;
	-moz-background-size: 100% auto;
	-o-background-size: 100% auto;
	background-size: 100% auto;
	width: 160px;
	height: 90px;
}


#footer .facebook { background: transparent url(../images/icon-facebook.png) no-repeat; width: 23px; height: 21px; display:inline-block; margin:3px 5px; }
#footer .facebook:hover { opacity: 0.7; }
#footer .facebook:active { opacity: 1; }

#footer .twitter { background: transparent url(../images/icon-twitter.png) no-repeat; width: 23px; height: 21px; display:inline-block; margin:3px 5px; }
#footer .twitter:hover { opacity: 0.7; }
#footer .twitter:active { opacity: 1; }

#footer .linkedin { background: transparent url(../images/icon-linkedin.png) no-repeat; width: 23px; height: 21px; display:inline-block; margin:3px 5px;}
#footer .linkedin:hover { opacity: 0.7; }
#footer .linkedin:active { opacity: 1; }



#mailinglist input[type="text"] {
    background: #FFF url(../images/icon-join.png) no-repeat 0;
    margin:-4px 0 0 0;
    padding: 5px 15px 3px 45px;
	border: 1px solid #ccc;
    font: 12px Arial,Helvetica,Sans-serif;
    color: #ccc;
    height:21px;
	width: 100px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
    }

#mailinglist input[type="text"]:focus {
	width: 180px;
	color: #333;
    }


/* =============================== TEXT FORMATTING ============================== */
H1, H2, H3, H4, H5, H6 {
	margin: 20px 0 10px 0;
	padding: 0;
	font-family: 'Avenir Next', Helvetica, Verdana, Arial, 'Lucida Grande', sans-serif;
	font-weight: bold;
	color:#FFF;
	line-height:1.2;
	text-transform: capitalize;
}
h1, h1 a:link, h1 a:visited {
	font-size : 55px;
	color: #9a7f38;
	margin: 0 0 10px 0;
	letter-spacing: -1px;
	line-height:1.1;
}
h2, h2 a:link, h2 a:visited  {
	font-size : 38px;
	color: #9a7f38;
}
h3, h3 a:link, h3 a:visited {
	font-size : 38px;
	color: #555;
}
h4, h4 a:link, h4 a:visited {
	font-size : 28px;
	color: #9a7f38;
	margin-top: 10px;
}
h5, h5 a:link, h5 a:visited {
	font-size : 28px;
	color: #555;
	margin-top: 10px;
}
h6, h6  a:link, h6 a:visited {
	font-size : 22px;
	color: #555;
	margin: 0;
	line-height: inherit;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, 
a h1:hover, a h2:hover, a h3:hover, a h4:hover, a h5:hover, a h6:hover {
	color: #6f5b26;
}

hr {
	border: none 0;
	border-top: 1px dotted #CCC;
	height: 1px;
	margin: 30px 0;
	width:100%;
	text-decoration: none;
}

hr.grey {
	border: none 0;
	border-top: 1px dotted #555;
	height: 5px;
	margin: 30px 0;
	padding: 0;
	width:100%;
	text-decoration: none;
}

hr.beige {
	border: none 0;
	border-top: 1px solid #9a7f38;
	height: 1px;
	margin: 30px 0;
	padding: 0;
	width:100%;
	text-decoration: none;
}

hr.whiteline {
	border: none 0;
	border-top: 1px solid #FFF;
	height: 1px;
	margin: 10px 0;
	padding: 0;
	width:100%;
	text-decoration: none;
}

hr.center {
	margin-left:auto;
	margin-right:auto;
}


.blue, .blue-text {
	color : #00457c;
}
.lightgreen, .lightgreen a:link  {
	color : #899c7b;
}
.lightgreen a:hover  {
	color : #7697BE;
}
.bergundy {
	color: #9e2533;
}
.yellow {
	color: #ffc600;
}
.beige {
	color: #9a7f38;
}
.orange {
	color: #db8327;
}
.green {
	color : #90d139;
}
.purple {
	color : #663399;
}
.red, a.red, a.red:visited {
	color : #CC0000;
}
a.red:hover {
	color : #90d139;
}
.white, a.white, h6.white,  a:link h6.white, a h6.white {
	color : #FFF;
}
a.white:hover, a:hover h6.white {
	color : #E0DAC5;
}
.grey  {
	color : #777;
}
.lightgrey  {
	color : #ccc;
}
.small { font-size : 13px;}
.medium { font-size : 18px;}
.large { font-size : 22px;}
.extralarge { font-size : 28px;}
.message-error {
	color:#C00;
	font-size:14px;
}


.audiojs p {
	margin: 0;
}



/* ================================ VIDEO ======================= */

.video-container {
	position:relative;
	padding-bottom: 56.25%;
	overflow:hidden;
}
.video-container iframe, .video-container object, .video-container embed {
	position: absolute;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
}

/* =============================== BUTTON ================================ */

a.button, button.button {
	border:0;
	color: #fff;
	display: inline-block;
    font-size: 18px;
	font-weight: bold;
    margin: 20px 0;
    padding: 15px 30px;
	text-align: center;
	line-height: 1;
	background: rgb(169,141,63);
	background: -moz-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	background: -webkit-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	background: linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a98d3f",endColorstr="#e1bb52",GradientType=1);
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
}

a.button.minheight {    
	min-height: 60px;
	vertical-align: middle;
}

a.buttonmid, button.buttonmid {
	border:0;
	color: #fff;
	display: inline-block;
	font-size: 15px;
	font-weight: bold;
	margin: 3px 0;
	padding: 9px 20px;
	text-align: center;
	line-height: 1;
	background: rgb(169,141,63);
	background: -moz-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	background: -webkit-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	background: linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a98d3f",endColorstr="#e1bb52",GradientType=1);
	-webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
}

a.buttonsmall, button.buttonsmall   {
	border:0;
	color: #fff;
	display: inline-block;
	font-size: 13px;
	font-weight: bold;
	margin: 3px 0;
	padding: 7px 15px;
	text-align: center;
	line-height: 1;
	background: rgb(169,141,63);
	background: -moz-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	background: -webkit-linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	background: linear-gradient(0deg, rgba(169,141,63,1) 10%, rgba(225,187,82,1) 80%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a98d3f",endColorstr="#e1bb52",GradientType=1);
	-webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
}
a.button.grey, button.button.grey, a.buttonsmall.grey, button.buttonsmall.grey {
	background: #b4b4b4;
	background-color: #b4b4b4;
}
a.button.lightgreen, button.button.lightgreen, a.buttonsmall.lightgreen, button.buttonsmall.lightgreen {
	background: #899c7b;
	background-color: #899c7b;
}
a.button.green, button.button.green, a.buttonsmall.green, button.buttonsmall.green {
	background: #97BA24;
	background-color: #97BA24;
}

a.button:hover, a.buttonsmall:hover, button.button:hover, button.buttonsmall:hover, a.buttonmid:hover, button.buttonmid:hover, 
a.button.grey:hover, button.button.grey:hover, a.buttonsmall.grey:hover, button.buttonsmall.grey:hover,
a.button.lightgreen:hover, button.button.lightgreen:hover, a.buttonsmall.lightgreen:hover, button.buttonsmall.lightgreen:hover,
a.button.green:hover, button.button.green:hover, a.buttonsmall.green:hover, button.buttonsmall.green:hover
{
	color: #fff;
	background: #fcd360;
	background-color: #fcd360;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}


a.button.darkgrey, button.button.darkgrey, a.buttonsmall.darkgrey, button.buttonsmall.darkgrey {
	background: rgba(0,0,0,0.4);
	background-color: rgba(0,0,0,0.4);
}
a.button.darkgrey:hover, button.button.darkgrey:hover, a.buttonsmall.darkgrey:hover, button.buttonsmall.darkgrey:hover {
	color: #fff;
	background: #fec600;
	background-color: #fec600;
}
a.button.white, button.button.white, a.buttonsmall.white, button.buttonsmall.white {
	color: #333 !important;
	background: #fff;
	background-color: #fff;
	border: 1px solid #ccc !important;
}
a.button.white:hover, button.button.white:hover, a.buttonsmall.white:hover, button.buttonsmall.white:hover {
	color: #fff;
	background: #fcd360;
	background-color: #fcd360;
	border: 1px solid #fcd360 !important;
}

#footer a.button {
	background: #fff;
	border: none;
	color: #555;
	display: inline-block;
	font-size: 16px;
	margin: 0 20px;
	padding: 5px 20px;
	text-align: center;
}
#footer a.button:hover {
	color: #fff;
	background: #fec600;
	background-color: #fec600;
}


/* ===================================== NAV =====================================*/

nav#navbar {
	display: inline-block;
	width: 258px;
}
nav#navbar * {
	list-style-type: none;
}
nav#navbar ul li {
	display: block;
	height: auto;
	width: inherit;
	overflow: hidden;
	/* background: #cad5e1; */
	border-bottom: solid 1px #FFF;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	text-shadow: 0px 1px 1px #fff;
}
nav#navbar ul li:last-child {
	border-bottom: none;
}
nav#navbar ul li a, nav#navbar ul li a:visited {
	text-decoration: none;
	text-transform: uppercase;
	color: #216093;
	text-shadow: 0px 1px 1px #fff;
	display: block;
	padding: 10px;
	line-height: 1.5;
}
nav#navbar ul li.has-submenu {
	background: url(../images/sub-arrow.png) right 15px no-repeat !important;
}
nav#navbar ul li a:hover {
	color: #90d139;
}
nav#navbar ul li ul {
	display: none;
	margin-left: -12px;
	/*margin-right: -12px;*/
	background: url(../images/shadow.png) repeat-x #e3e3e3;
}
nav#navbar ul li.active>ul {
    display: block;
}
nav#navbar ul li ul li {
	border-bottom: solid 1px #ccc;
	border-left: none;
	background: none;
	padding-left: 19px;
	font-size: 13px;
}
nav#navbar ul li ul li:first-child {
	background: url(../images/arrow.png) 20px 0px no-repeat;
}
nav#navbar ul li ul li:last-child {
	background: url(../images/shadow2.png) repeat-x bottom;
}
nav#navbar ul li ul li a, nav#navbar ul li ul li a:visited {
	text-shadow: #FFF 0px 1px 1px;
}
nav#navbar ul li ul li a:hover {
	color: #90d139;
}
nav#navbar ul li:hover ul {
	/*display: block;*/
}
nav#navbar ul li.active > a { color: #90d139; }


/* ====================== FANCY TABLE ======================== */

table {
    /*border-collapse: collapse;
    margin-bottom: 3em;*/
    width: 100%;
    /*background: #fff;*/
}
table td, table th, .fancy td, .fancy th {
    padding: 0.65em .75em;
}
.fancy td.err {
	background-color: #777777;
	color: #fff;
	font-size: 0.85em;
	text-align: center;
	line-height: 1;
	}
table th, .fancy th {
	background-color: #777;
	font-weight: 400;
	color: #FFF;
	font-size: 1.15em;
}

.fancy th a, .fancy th a:visited {
	color: #fff;
}
.fancy th a:hover, .fancy th a:active {
	color: #CFF;
}
/*.fancytable tbody th {
	background-color: #336699;
}*/
.fancy tr:nth-child(odd) {
    background-color: #f7f7f7;
}
.fancy tr:nth-child(even) {
    background-color: #fafafa;
}

.fancy.no-hover tbody tr:hover {
  background-color: inherit;
}


.fancy tr:nth-child(odd), .fancy tbody tr:nth-child(odd) {
    background: rgba(0,0,0,0.02);
}
.fancy tr:nth-child(even), .fancy tbody tr:nth-child(even) {
	background: rgba(0,0,0,0.04);
}
table tr:nth-child(odd), table tbody tr:nth-child(odd) {
    background: rgba(200,200,200,0.01);
}
table tr:nth-child(even), table tbody tr:nth-child(even) {
	background: rgba(200,200,200,0.03);
}

.fancy.simple tbody tr {
	border-bottom:0;
	background: rgba(0,0,0,0.03);
}
.fancy.simple tbody tr:hover, .fancy tbody tr:hover, .fancy tr:hover {
	background: rgba(252,255,244,1);
}
table tbody tr:hover, table tr:hover {
	background: rgba(0,0,0,0);
}



.fancy p, table p { margin-top:0;}
.fancy, table { font-size : 1em;}
.fancy.large, table .large { font-size : 1.4em;}
.fancy.small, table .small { font-size : .9em;}
.fancy.tiny, table .tiny { font-size : .8em;}

.fancy.center td {text-align: center;}

.fancy h4, table h4, .fancy h5, table h5 {
		margin: 0 0 5px 0;
}


.form-errors {
    color: #FF0000;
}

/* ====================== SHOW HIDE ========================= */

.expandicon {
	padding: 5px;
	float: right;
	margin: -40px 0 0 0;
	color: #FFF;
	font-size: 10px;
	text-align: center;
	background-color: #999999;
	border-radius: 3px;
}
.expandiconfull {
	padding:0;
	margin:0;
	height:41px;
	color: #069;
	font-size: 14px;
	text-align: center;
	background: #ebebeb url(../images/expand-arrow.gif) center bottom no-repeat;
}
.expandicon:hover {
	background-color: #9a7f38;
}

.expand-title {
	cursor: pointer;
}
.expand-area {
	padding: 3px;
	background-color:#fcfcfc;
	background-image: -webkit-linear-gradient(rgba( 255, 255, 255, 1), rgba( 252, 252, 252, 1));
	background-image: linear-gradient(rgba( 255, 255, 255, 1),rgba( 252, 252, 252, 1));
}

/* ======================= Go To Top ====================== */
.go-top {
	position: fixed;
	bottom: 1.5em;
	right: 1em;
	width:32px;
	height:32px;
	text-decoration: none;
	color: #FFF;
	background: rgba(0, 0, 0, 0.3) url(../images/arrow-up-white.svg) 50% 50% no-repeat;
	background-size: 50%;
	font-size: 32px;
	padding: 6px 0 0 9px;
	line-height: 1;
	display: none;
	-webkit-border-radius: 16px;
	-moz-border-radius: 16px;
	border-radius: 16px;
	    z-index: 5;
}
a.go-top {
	color: #FFF;
}

.go-top:hover {
	background-color: rgba(0, 0, 0, 0.6);
}
/* ====================== STICKY ====================*/

#header .inner.top.sticky {
	height:140px; /*shorter than original */
	-webkit-transition: all 0.4s ease 0s;
	-moz-transition: all 0.4s ease 0s;
	-o-transition: all 0.4s ease 0s;
	transition: all 0.4s ease 0s;
}
#logo.sticky {
	width: 144px;
	height: 80px;
	top: 7px;
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}
#biopic.sticky {
	top: 7px;
	width: 80px;
	height: 80px;
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}
#header h2.sticky {
    margin: 22px 5px 0 5px;
    font-size: 60px;
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}

/* ----------------- CIRCLES ---------------------- */
.circle-200 {
	width: 200px;
	height: 200px;
	/*border:4px solid #099;*/
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
    -ms-border-radius: 100px;
	 -o-border-radius: 100px;
	border-radius: 100px;
	background-size: cover;
}
.circle-150 {
	width: 150px;
	height: 150px;
	overflow:hidden;
	/*border:3px solid #09C;*/
	-webkit-border-radius: 75px;
	-moz-border-radius: 75px;
    -ms-border-radius: 75px;
	 -o-border-radius: 75px;
	border-radius: 75px;
	background-size: cover;
}
.circle-200 img, .circle-150 img {
	width: 100%;
	height: auto;
}
.fltleft {
	float:left;
	margin:0 20px 20px 0;
}
.fltright {
	float:right;
	margin:0 0 20px 20px;
}
	
/* --------------------------------------- FLIP CARDS START ----------------------------------------- */

.btn:hover,
.btn:focus,
.btn:active{
    outline: 0 !important;
}
/* entire container, keeps perspective */
.card-container {
	-webkit-perspective: 800px;
	-moz-perspective: 800px;
	-o-perspective: 800px;
	perspective: 800px;
    width: 31.2%;
    float: left;
    /* display: block; */
    height: 370px;
    margin: 10px 1%;
}
.card-container.logobiobox {
	-webkit-perspective: 800px;
	-moz-perspective: 800px;
	-o-perspective: 800px;
	perspective: 800px;
    width: 31.2%;
    float: left;
    /* display: block; */
    height: 370px;
    margin: 10px 1%;
}
/* flip the pane when hovered */
	.card-container:not(.manual-flip):hover .card,
	.card-container.hover.manual-flip .card{
	-webkit-transform: rotateY( 180deg );
	-moz-transform: rotateY( 180deg );
	-o-transform: rotateY( 180deg );
	transform: rotateY( 180deg );
	}


	.card-container.static:hover .card,
	.card-container.static.hover .card {
	-webkit-transform: none;
	-moz-transform: none;
	-o-transform: none;
	transform: none;
}
/* flip speed goes here */
.card {
	-webkit-transition: -webkit-transform .5s;
	-moz-transition: -moz-transform .5s;
	-o-transition: -o-transform .5s;
	transition: transform .5s;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	transform-style: preserve-3d;
	position: relative;
	    width: 100%;
    height: 100%;
}

/* hide back of pane during swap */
.front, .back {
	-webkit-backface-visibility: hidden;
   -moz-backface-visibility: hidden;
     -o-backface-visibility: hidden;
        backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	background-color: #FFF;
    box-shadow: 0 0px 2px 0 rgba(0, 0, 0, 0.2);
	width:100%;
	height: 100%;
}
.front:hover, .back:hover {
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);

}

/* front pane, placed above back */
.front {
	z-index: 2;
}

/* back, initially hidden pane */
.back {
	overflow: hidden;
	-webkit-transform: rotateY( 180deg );
	-moz-transform: rotateY( 180deg );
	-o-transform: rotateY( 180deg );
	transform: rotateY( 180deg );
	z-index: 3;
}

/*        CARD Style       */
.card{
    border-radius: 4px;
    color: #444444;
}

.card .cover{
    height: 200px;
    overflow: hidden;
	background: rgb(255,255,255);
	background: linear-gradient(0deg, rgba(255,255,255,1) 41%, rgba(86, 131, 179,1) 100%);
}

.card .speaker{
    border-radius: 50%;
    display: block;
    width: 150px;
   height: 150px;
    margin: -180px auto 0;
    overflow: hidden;
    border: 4px solid #FFFFFF;
	background-color: #F2f2f2;
}
.card .speaker img{
    background: none repeat scroll 0 0 #FFFFFF;
    width: 100%;
}

.card .logo {
    padding: 0;
	height:150px;
	width:100%;
	text-align: center;
/*	display:table-cell;display:table-cell;*/
	vertical-align:middle;
	position: relative;
	min-height: 100px;
	background-color: #fff;
}
.card .logo img {
    width: auto !important;
	max-width: 90%; 
/*	min-width: 200px;*/
	height:auto;  
	max-height: 66%; 
	position: absolute;  
    top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;
}

.card hr {
	border: none 0;
	border-top: 2px solid #ccc;
	height: 2px;
	margin: 10px auto;
	padding: 0;
	width:72%;
	text-decoration: none;
}
.card .contentarea{
    box-shadow: none;
    padding: 10px;
	margin:0;
}
.card .contentarea .main {
/*    height: 120px;*/
	overflow: hidden;
}
.card .back .contentarea .main {
/*  height: 280px;*/
	height: 100%;
    overflow: auto;
    position: absolute;
	padding-bottom: 70px;
}

.card .name {
    font-size: 22px;
    margin: 0;
    text-align: center;
    text-transform: capitalize;
}
.card .profession{
    color: #69405c;
    font-size: 15px;
    text-align: center;
    margin: 0 0 20px 3px;
}
.card p {
    color: #a0b7c6;
    text-align: center;
	margin:9px 0;
}
.card .back p {
    color: #444444;
    text-align: left;
	margin:5px 0;
}

.card .cardfooter {
/*
    border-top: 1px solid #EEEEEE;
*/
	background-color: #FFF;
    color: #999999;
    margin: 0;
    padding: 20px 0;
    text-align: center;
	font-size: 14px;
	position: absolute;
	bottom:0;
	width:100%;
    height: 60px;
}
.card .cardfooter .btn-simple{
    margin: 0 auto 10px auto;
	-webkit-transition: all 0.4s;
	-moz-transition: all 0.4s;
	-ms-transition: all 0.4s;
	-o-transition: all 0.4s;
	transition: all 0.4s;
}
.card .cardheader {
    padding: 15px 20px;
    height: 90px;
}

/*      Just for presentation        */
.btn-simple{
	padding:10px 15px;
    color: #3B8BBE;
    background-color: #f2f2f2;
	cursor: pointer;
	border:1px solid #ccc;
	border-radius: 20px;
}

.btn-simple:hover,
.btn-simple:focus{
    box-shadow: none;
	background-color: #0099CC;
	border:1px solid #0099CC;
	color:#fff;
}
.btn-simple i{
    font-size: 16px;
}

/*       Fix bug for IE      */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .front, .back{
        -ms-backface-visibility: visible;
        backface-visibility: visible;
    }

    .back {
        visibility: hidden;
        -ms-transition: all 0.2s cubic-bezier(.92,.01,.83,.67);
    }
    .front{
        z-index: 4;
    }
    .card-container:not(.manual-flip):hover .back,
    .card-container.manual-flip.hover .back{
        z-index: 5;
        visibility: visible;
    }
}

/* --------------------------------------- FLIP CARDS END ----------------------------------------- */



/* ====================== BOXES ========================= */

.box-1, .box-1-3, .box-1-2, .box-2-3, .box-1-4, .box-3-4, .box-1-5 { float:left; margin-top: 10px; margin-bottom: 10px; margin-left:1%; margin-right:1%; padding:10px 20px; line-height:1.6;  position:relative;}

.box-1 { width: 100%; margin-left:0; margin-right:0; float: none; display:block; clear:both; } 

.box-1-3 { width: 31%; float:left;}
.box-1-3.nomargin { width: 33%; float:left; }
.box-1-3.noresize { width: 31%; float:left; }

.box-1-2 { width: 47.5%; float:left; }
.box-1-2.nomargin { width: 50%; float:left; }

.box-2-3 { width: 64%; float:left; } 
.box-2-3.nomargin { width: 66.9%; float:left; } 
.box-2-3.noresize { width: 64%; float:left; } 

.box-1-4 { width: 22.9%; float:left; } 
.box-1-4.nomargin { width: 24.9%; float:left; } 

.box-3-4 { width: 72.1%; float:left; } 
.box-3-4.nomargin { width: 74.9%; float:left; } 

.box-1-5 { width: 17.8%; float:left; } 

.l { margin-left:0; }
.r { margin-right:0; }

.floatleft {float:left}
.floatright, .floatright-stop900 {float:right}
.floatnone {float:none}

.clearfloat, .clearfix { 
	clear:both;
	height:0;
	font-size: 1px;
	line-height: 0px;
}


.nomargin { margin:0;}
.nopadding { padding:0;}
.special-padding { padding: 80px 40px; }
.special-padding-right {padding-right:30px}
.special-padding-top {padding-top: 80px;}

.border {border: 1px solid #ccc; }
.borderright {border-right:1px dotted #CCC;}
.borderleft {border-left:1px dotted #CCC;}


.box-1 h4, .box-1 h5, .box-1-3 h2, .box-1-3 h3, .box-1-3 h4, .box-1-3 h5, .box-1-2 h2, .box-1-2 h3, .box-1-2 h4, .box-1-2 h5, .box-2-3 h4, .box-2-3 h5 { line-height:1.0; margin-top:10px; }
.box-1 p, .box-1 p, .box-1-3 p, .box-1-3 p, .box-1-2 p { margin:0; padding:4px 0; }

.whitebox {
	background: #FFF;
	border:1px solid #f2f2f2;
}
.greybox {
	background-color: #efefef;
	border:1px solid #dadada;
}
.greyback {
	background-color: #EDEDED;
}
.shadow {
	-webkit-box-shadow: 0px 1px 5px rgba(0,0,0,0.09);
	-moz-box-shadow:    0px 1px 5px rgba(0,0,0,0.09);
	box-shadow:         0px 1px 5px rgba(0,0,0,0.09);
	border:1px solid #f2f2f2;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-ms-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}
.shadow:hover {
	-webkit-box-shadow: 0px 2px 11px rgba(0,0,0,0.28);
	-moz-box-shadow:    0px 2px 11px rgba(0,0,0,0.28);
	box-shadow:         0px 2px 11px rgba(0,0,0,0.28);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}
.boxbackground {
	border:1px solid #F2F2F2;
	background: -moz-linear-gradient(top, rgba(250,250,250,0.4) 0%, rgba(245,245,245,0.8) 100%);
	background: -webkit-linear-gradient(top, rgba(250,250,250,0.4) 0%, rgba(245,245,245,0.8) 100%);
	background: linear-gradient(to bottom, rgba(250,250,250,0.4) 0%, rgba(245,245,245,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80f9f9f9', endColorstr='#e6f7f7f7',GradientType=0 );
}


.logobox, .thumbnail {
/*
	-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.06);
	-moz-box-shadow:    0px 0px 5px rgba(0,0,0,0.06);
	box-shadow:         0px 0px 5px rgba(0,0,0,0.06);
	border:1px solid #eaeaea;
*/
	padding: 0;
	height:200px;
	min-width:125px;
	text-align: center;
	display:table-cell;
	vertical-align:middle;
	position: relative;
	min-height: 100px;
	overflow: hidden;	
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-ms-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}
.logobox:hover {
/*
	-webkit-box-shadow: 0px 2px 11px rgba(0,0,0,0.28);
	-moz-box-shadow:    0px 2px 11px rgba(0,0,0,0.28);
	box-shadow:         0px 2px 11px rgba(0,0,0,0.28);
*/
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}
.logobox img{ 
	width: auto !important;
	max-width: 90%; 
	height:auto;  
	max-height: 66%; 
	position: absolute;  
    top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;
}
.thumbnail img { 
	width: auto !important;
	max-width: 140%; 
	height:auto;  
	max-height: 100%; 
	position: absolute;  
	top: 0;
    right: -15%;
    margin: auto;
}
.logobox:hover img { 
	max-width: 92%; 
	max-height: 67%; 
}
.logobox h4, .logobox h5 { 
	
	position: absolute;  
    top: 35%;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;
}

.heroimage {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
}
.heroimage img {
	width:100%;
	height:auto;
}

.height100, .height-100 { height:100px; overflow:hidden }
.height150, .height-150 { height:150px; overflow:hidden }
.height180, .height-180 { height:180px; overflow:hidden }
.height200, .height-200 { height:200px; overflow:hidden }
.height225, .height-225 { height:225px; overflow:hidden }
.height250, .height-250 { height:250px; overflow:hidden }
.height275, .height-275 { height:275px; overflow:hidden }
.height300, .height-300 { height:300px; overflow:hidden }
.height350, .height-350 { height:350px; overflow:hidden }
.height400, .height-400 { height:400px; overflow:hidden }
.height450, .height-450 { height:450px; overflow:hidden }
.height500, .height-500 { height:500px; overflow:hidden }
.height600, .height-600 { height:600px; overflow:hidden }
.height700, .height-700 { height:700px; overflow:hidden }


.position-bottom, .position-bottom-80, .position-bottom-120 {
	position: absolute;
	bottom:30px;
	text-align: center;
	width: 100%;
}
.position-bottom-80 {
	width: 80%;
}
.position-bottom-120 {
	width: 80%;
	bottom:120px;
}
.padding-bottom-170 {
	padding-bottom:170px;
}

.blue-back, .lightgreen-back, .box-1-2.blue-back, .box-1-2.lightgreen-back {background-color: #014d73; position: relative; color: #fff; font-size: 16px; padding-bottom: 100px;}
.lightgreen-back, .box-1-2.lightgreen-back {background-color: #9a7f38;}

.blue-back h2, .lightgreen-back h2 { color: #fff; font-size: 48px; }

.blue-back .button, .lightgreen-back .button {
	z-index:5555;
	font-size: 20px;
	margin: 0 auto;
	padding: 11px 36px;
	color: #FFF;
	background: rgba(0,0,0,0.05);
	background-color:rgba(0,0,0,0.05);
	border-radius: 5px;
	border:2px solid #ffffff;
	-webkit-transition: all 0.7s ease 0s;
	-moz-transition: all 0.7s ease 0s;
	-o-transition: all 0.7s ease 0s;
	transition: all 0.7s ease 0s;
}
.blue-back .button:hover, .lightgreen-back .button:hover {
	color: #000;
	background: rgba(255,255,255,1);
	background-color: rgba(255,255,255,1);
	-webkit-transition: all 0.5s ease 0s;
	-moz-transition: all 0.5s ease 0s;
	-o-transition: all 0.5s ease 0s;
	transition: all 0.5s ease 0s;
}

.blue-back a.white:hover, .lightgreen-back a.white:hover {
	color : #9a7f38;
}

.content.magazine-area {min-height: 460px;}
.magazine {
	position:absolute;
	left:-150px;
	bottom:-180px;
}

.book-cover {
	height:310px;
/*	width: 300px;*/
	min-width: 150px;
	text-align: center;
/*	display:table-cell;*/
	vertical-align:middle;
	position: relative;
/*
	margin-left: auto;
    margin-right: auto;
*/
}
.book-cover.home {
     display: table-cell;
	    width: 300px;
}

.book-cover  img { 
	width: auto !important;
	max-width: 100%; 
	height:auto;  
	max-height: 100%; 
	position: absolute;  
    top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;
}


/* =================== Modern FANCYBOX ================= 
.fancybox-slide--iframe .fancybox-content {
    width  : 800px;
    height : 600px;
    max-width  : 80%;
    max-height : 80%;
    margin: 0;
}



/* =================== Flex container ================= */
.flex-container {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;  /* create a flex layout context */
	padding: 0;
	margin: 0;
	list-style: none;
	-webkit-flex-flow: row wrap;
	justify-content: center;
	flex-wrap: wrap;
}

.flex-item {
	align-items:stretch;
/*	min-width:180px;*/
	position: relative;
}


/* ================== END  Flex container =============== */


/* =============== SIDEBAR ================= */

.box-1-3.sidebar {
	margin:0 0 0 2%;
	padding:0;
}

.sidebar .header {
	position: absolute;
	top:0;
	left:0;
	right:0;
	padding: 9px 5px;
	background-color: #555;
	color: #fff;
	min-height: 60px;
}
.sidebar .header, .sidebar .header h6, .sidebar .header h5, .sidebar .header h4, .sidebar .header p {
	color: #fff;
}

.sidebar .book-cover {
	text-align: center;
	display:table-cell;
	vertical-align:middle;
	position: relative;
    max-width: 48%;
    width: inherit;
	min-height: 250px;
    height: inherit;
}
.sidebar .book-cover  img { 
	width: auto !important;
	max-width: 100%; 
	height:auto;  
	max-height: 100%; 
	position: absolute;  
    top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;
}



/* :::::::::::::::::::::::::::::::::::::::::: DATE as CALENDAR ::::::::::::::::::::::::::::::: */

.calendar h4 {  margin-top: -20px;}

.date-as-calendar {
  font-variant: normal;
  font-style: normal;
  font-weight: normal;
  font-family: "Helvetica", "Arial", sans-serif;

  /* It seems vertical-align: baseline does not work correctly with display: inline-flex. */
  vertical-align: top;

  /* margin: 1ex; */

  color: #333;
  background: white;
  background : linear-gradient(to bottom right, #FFF 0%, #EEE 100%);

  border: 1px solid #fefefe;
  border-radius: 5px;
  overflow: hidden;

  /*box-shadow: 2px 2px 2px -2px black;*/
	
	float:left;
	margin:5px 20px 0 0;
	clear: both;
}
.date-as-calendar .weekday,
.date-as-calendar .day,
.date-as-calendar .month,
.date-as-calendar .year {
  text-align: center;
  line-height: 1.0;
}
.date-as-calendar .month {
	font-family: "Helvetica", "Arial", sans-serif;
	text-transform: uppercase;
	background-color: #9a7f38;
	color: #FFFFFF;
}
.date-as-calendar .year {
	font-family: "Helvetica", "Arial", sans-serif;
	text-transform: uppercase;
	color: #9a7f38;
}


/*  :::: CALENDAR ::::  Layout rules using position: absolute and pixels. */
.position-pixels.date-as-calendar {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.position-pixels.date-as-calendar .weekday,
.position-pixels.date-as-calendar .day,
.position-pixels.date-as-calendar .month,
.position-pixels.date-as-calendar .year {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 1em;
}
.position-pixels.date-as-calendar .month {
  top: 0px;
  font-size: 12px;
  padding: 2px 0;
}
.position-pixels.date-as-calendar .weekday {
  top: 16px;
  font-size: 10px;
}
.position-pixels.date-as-calendar .day {
  top: 26px;
  font-size: 24px;
}
.position-pixels.date-as-calendar .year {
  top: 50px;
  font-size: 14px;
}

/*  :::: CALENDAR ::::  Layout rules using position: absolute and relative dimensions using em. */
.position-em.date-as-calendar {
  display: inline-block;
  position: relative;
  
  width: 4.2em; 
  height: 4em; 
}
.position-em.date-as-calendar .weekday,
.position-em.date-as-calendar .day,
.position-em.date-as-calendar .month,
.position-em.date-as-calendar .year {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 1em;
}
.position-em.date-as-calendar .month {
  top: 0px;
  font-size: 0.65em;
  padding: 0.3em 0 1em 0;
}
.position-em.date-as-calendar .weekday {
  top: 1.6em;
  font-size: 0.6125em;
}
.position-em.date-as-calendar .day {
  top: 1.1em;
  font-size: 1.5em;
 font-weight:700;
}
.position-em.date-as-calendar .year {
  bottom: 0px;
  font-size: 0.87750em;
}

/* :::: CALENDAR :::: Multiple sizes. */
.date-as-calendar.size0_5x {
  font-size: 8px;
}
.date-as-calendar.size0_75x {
	font-size: 12px;
	margin:2px 10px 5px 0;
}
.date-as-calendar.size1x {
  font-size: 16px;
}
.date-as-calendar.size1_25x {
  font-size: 20px;
}
.date-as-calendar.size1_5x {
  font-size: 24px;
}

/* ======================== LOGIN FORMS ======================== */
.login {
  border-radius: 2px 2px 5px 5px;
  margin:20px auto;
  padding: 10px 20px 20px 20px;
  width: 90%;
  max-width: 640px;
  background: #f2f2f2;
  position: relative;
  padding-bottom: 80px;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
}
.login.loading button {
  max-height: 100%;
  padding-top: 50px;
}
.login.loading button .spinner {
  opacity: 1;
  top: 40%;
}
.login.ok button {
  background-color: #8bc34a;
}
.login.ok button .spinner {
  border-radius: 0;
  border-top-color: transparent;
  border-right-color: transparent;
  height: 20px;
  animation: none;
  transform: rotateZ(-45deg);
}
.login input {
  display: block;
  padding: 15px 10px;
  margin-bottom: 10px;
  width: 100%;
  border: 1px solid #ddd;
  transition: border-width 0.2s ease;
  border-radius: 2px;
  color: #ccc;
}
.login input + i.login-icon {
  color: #fff;
  position: absolute;
  margin-top: -47px;
  opacity: 0;
  left: 0;
  transition: all 0.1s ease-in;
}
.login input:focus {
  outline: none;
  color: #444;
  border-color: rgba(0, 85, 165, 0.85);
  border-left-width: 35px;
}
.login input:focus + i.login-icon {
  opacity: 1;
  left: 23px;
  transition: all 0.25s ease-out;
}
.login a {
  font-size: 0.9em;
  color: rgba(20, 80, 244, 0.85);
  text-decoration: none;
}
.login a:hover {
  color: rgba(20, 180, 255, 0.95);
}
.login .title {
  color: #444;
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0 20px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.login button {
  width: 100%;
  height: 100%;
  padding: 10px 10px;
  background: rgba(0, 85, 165, 0.85);
  color: #fff;
  display: block;
  margin-top: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
  max-height: 60px;
  border: 0px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 0 2px 2px;
  transform: rotateZ(0deg);
  transition: all 0.1s ease-out;
  border-bottom-width: 7px;
	font-size: 132%;
}
.login button .spinner {
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  border: 4px solid #ffffff;
  border-top-color: rgba(255, 255, 255, 0.3);
  border-radius: 100%;
  left: 50%;
  top: 0;
  opacity: 0;
  margin-left: -20px;
  margin-top: -20px;
  animation: spinner 0.6s infinite linear;
  transition: top 0.3s 0.3s ease, opacity 0.3s 0.3s ease, border-radius 0.3s ease;
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
}
.login:not(.loading) button:hover {
  box-shadow: 0px 1px 3px rgba(61, 102, 150, 0.85);
}
.login:not(.loading) button:focus {
  border-bottom-width: 4px;
}
.login-icon.user {
	background: url(../images/login-icon-user.svg);
	width:28px;
	height:28px;
}
.login-icon.key {	
	background: url(../images/login-icon-key.svg);
	width:28px;
	height:28px;
}

::-webkit-input-placeholder { /* Chrome, Safari */
   color: #bbb;
   font-size: 14px;
}

:-moz-placeholder {           /* Firefox 18- */
   color: #bbb;
   font-size: 14px;
}

::-moz-placeholder {          /* Firefox 19+ */
  color: #bbb;
  font-size: 14px;
}

:-ms-input-placeholder {      /* Internet Explorer */
  color: #bbb;
  font-size: 14px;
}


/* ============================= BURGER ============================ */

.nav-icon {
  display: block;
  /*position: absolute;
	  top: 50px;
  left: 40px;*/
  width: 30px;
  height: 25px;

  cursor: pointer;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
	z-index: 1;
}
.nav-icon.open .burger {
  background: none;
}
.nav-icon.open .burger:before, .nav-icon.open .burger:after {
  top: 0;
}
.nav-icon.open .burger:before {
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.nav-icon.open .burger:after {
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.nav-icon:hover:not(.open) .burger:before {
  top: -11px;
}
.nav-icon:hover:not(.open) .burger:after {
  top: 11px;
}

.burger, .burger:before, .burger:after {
  width: 25px;
  height: 4px;
	left:0;
  background: rgba(255,255,255,0.9);
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.burger {
  position: relative;
  margin: 11px auto 0;
}
.burger:before, .burger:after {
  content: "";
  position: absolute;
}
.burger:before {
  top: -9px;
}
.burger:after {
  top: 9px;
}



/* ========== FORM ELEMENTS ==========  */

/*.styled-select {
	margin:10px auto;
   background: url(../images/select-arrow.png) no-repeat 96% 0;
   height: 34px;
   overflow: hidden;
   width: 250px;
}

.styled-select select {
   border: 1px solid #ccc;
   font-size: 16px;
   height: 34px;
   width: 250px;
}*/


.styled-select {
	margin:10px auto;
   background: url(../images/select-arrow.png) no-repeat 96% 0;
   height: 34px;
   overflow: hidden;
   width: 250px;
}
.styled-select select {
   border: 1px solid #ccc;
   font-size: 16px;
   height: 34px;
   width: 250px;
}

select {width:60%; font-size: 1em;}
label input {width:25px;}
input {width:60%; font-size: 1.1em; line-height: 1.6;}
input[type="radio"] { width: 5%; }

input[type="submit"] {width:100%;}

.control-group  { display: flex;}
.control-group .controls { flex: 1; }
.control-group .controls input, .control-group .controls textarea { flex: 1;}



/* ::::::::::::: START  DIALOGUE TOOL TIP :::::::::::::::: */

.fancytip {display: none;}

.ui-widget-header {
    border-bottom: 1px solid #fec600;
}


/* ::::::::::::::: PRINTBLE AREA :::::::::::::::: */

@media print {
	  body * {
		visibility: hidden;
	  }
	#noPrint, #banner, #header, #subnav, #subnav *, #footer {display:none;}
	  #printArea, #printArea * {
		visibility: visible;
	  }
	  #printArea {
		position: absolute;
		left: 0;
		top: 0;
	  }
	#printArea.box-2-3 {width:100%}
}

/* ================================================================= 
::::::::::::::::::::::: Responsive settings  :::::::::::::::::::::::
================================================================== */


@media screen and (max-width: 1366px) {
	.inner {
		padding:0px 20px;	
	}
	#social {
		right:20px;
	}
	#header .inner {
		padding:0px 1px;	
	}

	#banner H1, #banner H2 {
		font-size:45px;
	}
	ul.nav li {
		font-size: 18px;
		padding: 8px 10px;
	}
	ul.nav li ul {
		top: 42px;
	}	
}
@media screen and (max-width: 1200px) {
	#logo {
		width: 144px;
		height: 80px;
	}
	#biopic {
		width: 80px;
		height: 80px;
	}
	#header h2{
		margin: 28px 5px 0 5px;
		font-size: 50px;
	}
	#logo.sticky {
		width: 126px;
		height: 70px;
	}
	#biopic.sticky {
		width: 70px;
		height: 70px;
	}
	#header h2.sticky {
		margin: 28px 5px 0 5px;
		font-size: 50px;
	}
	
	#header .inner.top {
		height:140px;
	}	

	#banner H3 {
		font-size:32px;
	}
	.content .magazine img {
		max-width: 80%;
	}
	.magazine {
		left: -120px;
		bottom: -90px;
	}
	
	ul.nav li {
		font-size: 16px;
		padding: 7px 9px;
	}
	ul.nav li ul {
		top: 39px;
	}	
	.sidebar .book-cover {
		min-height: 220px;
	}
}
@media screen and (max-width: 1024px) {
	#logo {
		width: 144px;
		height: 80px;
	}
	.navbar {
		width:100%;
		right:0;
	}
	ul.nav li {
		font-size: 14px;
		padding: 9px 7px;
	}
	ul.nav li ul {
		top: 39px;
	}	
	
	#banner .innertext {
		bottom: 35%;
	}
	H1 {font-size : 28px; 	letter-spacing: 0;}
	H2, h2 a:link, h2 a:visited, H3, h3 a:link, h3 a:visited {font-size : 24px;}
	H4, h4 a:link, h4 a:visited, h5, h5 a:link, h5 a:visited {font-size : 18px;}
	H6, h6 a:link, h6 a:visited {font-size : 14px;}

	.special-padding {
		padding: 40px 30px;
	}

	.book-cover {
		height: 250px;
		display:table-cell;
	}
	
	
	hr.center {
		margin-left: auto;
		margin-right: auto;
	}
	.sidebar .book-cover {
		min-height: 200px;
	}
}
@media screen and (max-width: 900px) {
	.hide900 {
		display:none;	
	}
	.floatright-stop900 {float:none}
	
	.content {
		padding: 20px;
		min-height:100px;
	}
	ul.nav li {
		font-size: 14px;
		padding: 7px 7px;
	}
	ul.nav li li>a {
		font-size: 12px;
	}
	ul.nav .has-submenu>a {
		background:none;
		padding-right:0;
	}
	ul.nav li ul {
		padding: 0;
		position: absolute;
		top: 38px;
	}
	.book-cover {
		height: 130px;
		min-width: 100px;
	}
	.stoic-issue, .stoic-thumb {
		height: 220px;
	}
	#banner .innertext {
		bottom: 25%;
	}
	.content .magazine img {
		max-width: 70%;
	}
	.card-container {
		width: 47%;
	}
	.sidebar .book-cover {
		min-height: 180px;
	}
}
@media screen and (max-width: 850px) {
	#header .inner.top {
		height:140px; 
	}
	#logo {
		width: 135px;
		height: 75px;
	}
	#biopic {
		width: 75px;
		height: 75px;
	}
	#banner H3 {
		font-size:28px;
	}

	#header .inner.top.sticky {
		height:130px; /*shorter than original */
	}
	#logo.sticky {
		width: 130px;
		height: 72px;
		top: 7px;
	}
	#biopic.sticky {
		top: 7px;
		width: 72px;
		height: 72px;
	}
	#header h2.sticky {
		margin: 26px 5px 0 5px;
		font-size: 26px;
	}
	#header h2 {
		font-size: 40px;
	}
	#footer .header, #footer li.header a {
		font-weight: 400;
		font-size: 18px;
	}
	#footer .logo, #footer2 .logo {
		width: 150px;
		height: 83px;
	}
	.sidebar .book-cover {
		min-height: 150px;
	}
	.content .magazine img {
		max-width: 60%;
	}
}
@media screen and (min-width: 670px) {
	#menubar {
		display: none;
	}
	.mobile {
		display:none;	
	}
}
@media screen and (max-width: 670px) {
	body {
		font: 13px Verdana, Arial, Geneva, sans-serif;
		line-height: 1.4;
	}
	.mobile {
		display: block;	
	}
	.desktop {
		display:none;	
	}
	#banner .innertext {
		padding: 0 3%;
	}
	#banner, #banner.home {
		padding: 35px 0 0 0;
	}
	#banner .innertext {
		bottom: 25%;
	}
	#banner H3 {
		font-size:18px;
		line-height: 1.1;
	}
	.magazine {
		left: 10px;
		bottom: -275px;
	}
	.book-cover {
	    height: 200px;
	}
	.content {
		margin:0;
		padding: 15px 10px;
	}
	.content.fullwidth {
		margin:0;
		padding: 0;
	}
	.content.fullwidth.beigeback.darkgrey {
		font-size: 16px;
	}
	.content .magazine img {
		max-width: 95%;
	}
	.sidebar .book-cover {
		min-height: 90px;
	}	
	
	H1, H2, h2 a:link, H3, h3 a:link, H4, h4 a:link, H5, h5 a:link, H6, h6 a:link {
		margin: 5px 0;
	}
	H1 {font-size : 28px; letter-spacing: 0px;}
	H2, h2 a:link, H3, h3 a:link {font-size : 22px;}
	H4, h4 a:link, H5, h5 a:link {font-size : 18px;}
	H6, h6 a {font-size : 16px;}
	
	.hotbox h4, .hotbox h4 a, .hotbox h5, .hotbox h5 a {
		font-size: 18px;
	}
	
	.small { font-size : 11px;}
	.medium { font-size : 14px;}
	.large { font-size : 16px;}
	.extralarge { font-size : 20px;}

	hr.yellow, hr.grey {
		margin: 20px 0;
	}
	hr.center {
		margin-left: auto;
		margin-right: auto;
	}
	.box-1, .box-1-3, .box-1-2, .box-2-3, .box-1-4, .box-3-4, .box-1-5 { margin-top: 5px; margin-bottom: 5px; margin-left:0; margin-right:0; padding:10px 5px;}
	.box-1-3, .box-1-3.nomargin, .box-1-2, .box-1-2.nomargin, .box-2-3, .box-2-3.nomargin, .box-3-4, .box-3-4.nomargin { width: 100%;} 
	.box-1-4 { width: 48%; margin-left:1%; margin-right:1%;  } 
	.box-1-5 { width: 48%;  margin-left:1%; margin-right:1%; } 
	.box-1-4.nomargin, .box-1-5.nomargin  { margin-left:0; margin-right:0;  } 

	.box-1-3.noresize {
	    width: 33%;
	}
	.box-2-3.noresize {
	    width: 64%;
	}
	
	.box-1 img, .box-1-3 img, .box-1-2 img, .box-2-3 img, .box-1-4 img, .box-1-5 img { max-width:99%; height:auto;}

	.box-1.special-padding-top {padding-top: 75px;}
	
	.width-50, .box-1-2.width-50, .box-1-4.nomargin.width-50, .box-1-3.nomargin.width-50, .box-1-2.nomargin.width-50, .box-3-4.nomargin.width-50 { 
		width: 48%;
		float: left;
		clear: inherit;
		margin-left: 1%;
		margin-right: 1%;
	}
	.width-100, .box-1-4.nomargin.width-100, .box-1-3.nomargin.width-100, .box-1-2.nomargin.width-100, .box-3-4.nomargin.width-100  { width: 100%;  margin-left:0; margin-right:0;	}

	.special-padding-right, .border-left {padding-right:5px; padding-left:5px; border-left:0;}

	.box-1-3.sidebar {
		margin: 0;
	}
	
	.logobox {
		-webkit-box-shadow: none;
		-moz-box-shadow:    none;
		box-shadow:         none;
		border: none;
		height:100px;
		min-height: 100px;
	}
	.logobox:hover {
		-webkit-box-shadow: none;
		-moz-box-shadow:    none;
		box-shadow:         none;
	}
	a.button, button.button {
		font-size: 14px;
		margin: 10px 0;
		padding: 7px 11px;
	}
	a.buttonsmall, button.buttonsmall   {
		font-size: 12px;
		margin: 5px 0;
		padding: 5px 9px;
	}
	a.button.special {
		height: 90px;
		font-size: 13px;
	}	
	#footer {
		padding: 10px 0 20px 0;
		font-size: 13px;
	}
	#footer .nav a:link, #footer .nav a:visited {
		font-size: 13px;
	}
	#footer a:link, #footer a:visited {
		font-size: 12px;
	}
	#footer a.button {
		font-size: 13px;
		margin: 0 15px;
		padding: 5px 10px;
	}
	
	.height100, .height-100, .height150, .height-150, .height180, .height-180, .height200, .height-200, .height225, .height-225, .height250, .height-250, .height275, .height-275, .height300, .height-300, .height350, .height-350, .height400, .height-400, .height450, .height-450, .height500, .height-500, .height600, .height-600, .height700, .height-700, .height800, .height-800 { height: auto; }

	table td, table th, .fancy td, .fancy th { padding: 0.125em; }
	.fancy, table { font-size : 12px;}
	.fancy.small, table .small { font-size :11px;}
	.fancy.tiny, table .tiny { font-size : 10px;}

	hr, hr.grey, hr.yellow, hr.whiteline { 
	margin: 10px 0;
	}
	
	.go-top {
		font-size: 1px;
		padding: 10px 0 0 9px;
	}
	
	.content.fullwidth.beigeback {
		min-height: 250px;
	}
	
	.calendar h4 {  margin-top: -10px;}
	
	.position-bottom-120 {
		bottom:40px;
	}
	.padding-bottom-170 {
		padding-bottom:100px;
	}
	#search input[type="text"], #search input[type="text"]:focus, .styled-select, .styled-select select {
	   width: 110px;
	}
	#search input[type="text"] {
		background: rgba(0,0,0,0.3) url(../images/icon-search.png)  3px  no-repeat;
		margin:-4px 0 0 0;
		padding: 5px 15px 3px 35px;
		border: 0;
		font: 11px Arial,Helvetica,Sans-serif;
		color: #fff;
		height:29px;
		width: 30px;
		-webkit-border-radius: 20px;
		-moz-border-radius: 20px;
		border-radius: 20px;
		-webkit-transition: all 0.7s ease 0s;
		-moz-transition: all 0.7s ease 0s;
		-o-transition: all 0.7s ease 0s;
		transition: all 0.7s ease 0s;
		}
	#search input[type="text"]:focus {
		width: 110px;
		color: #fff;
		background: rgba(0,0,0,0.5) url(../images/icon-search.png)  3px  no-repeat;
	}
	
	select {width:100%; font-size: 1.03em;}
	label input {width:20px;}
	input {width:100%; font-size: 1.03em; line-height: 1.4;}

	.quotesection {
	  min-height: 280px;
	}
	.quotesection p, .quotesection {
		font-size: 16px;
	}
	.quotesection h1, .quotesection h2, .quotesection h3, .quotesection h4, .quotesection h5, .quotesection h6 {
		font-size: 20px;
		line-height: 1.2;
	}
}
/* ||||||||||| END 670  |||||||||||| */



@media screen and (max-width: 480px) {
	
	#banner .innertext {
		bottom: 15%;
	}
	.magazine {
		bottom: -120px;
	}
	
}
/* ||||||||||| END 480  |||||||||||| */


/* ||||||||||||| MOBILE MENUBAR START ||||||||||||| */
	#menubar {
	padding: 0;
	width: 100%;
	height: 41px;
	background-color: #9a7f38;
	position: fixed;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 7px rgba(0,0,0,0.4);
	}

	#menubar ul {
		margin: 0 auto;
		padding: 0;
		display: inline-block;
	}
	#menubar li {
		list-style: none;
		display: block;
		padding: 12px 9px;
		float: left;
		white-space:nowrap;
	}
	#menubar li:first-child {
		padding-left:0;
	}
	#menubar li:last-child {
		padding-right:0;
	}
	#menubar li a {
		padding: 10px 10px 0 0;
		color: #FFF;
		font: 16px Verdana, Arial, sans-serif;
		text-decoration: none;
	}
	#menubar li a:hover {
		color: #fff99c;
	}
	#menubar li a:active {
		color: #9C0;
	}
	.menucontainer {
		text-align: center;
		margin: 0 auto;
	}
/* ||||||||||||| MOBILE MENUBAR END ||||||||||||| */

/* ===================================== MOBILE NAV =====================================*/

	#menuhead {
		display: block;
		width: 97%;
		margin:0 auto;
		padding: 10px;
		background-color: #9a7f38;
		color:#FFF;
		font-size:14px;
		text-align:left;
		min-width:300px;
	}
	
	nav#mobilenav {
		display: inline-block;
		width: 97%;
		margin:0 auto;
		text-align: left;
		min-width:300px;
	}
	nav#mobilenav * {
		list-style-type: none;
		margin:0;
		padding:0;
	}
	nav#mobilenav ul li {
		display: block;
		min-height: 36px;
		line-height: 36px;
		height: auto;
		width: inherit;
		overflow: hidden;
		background-color: #9a7f38;
		border-bottom: 1px solid rgba(255,255,255,0.2);
		font-family: Verdana, Arial, sans-serif;
		font-size: 14px;
	}
	nav#mobilenav ul li:last-child {
		border-bottom: none;
	}
	nav#mobilenav ul li a, #mobilenav ul li a:visited {
		text-decoration: none;
		text-transform: uppercase;
		color: #FFF;
		display: block;
		padding-left: 12px;
		padding-right: 12px;
	}
	nav#mobilenav ul li.has-submenu {
		background: #9a7f38 url(../images/sub-arrow.png) 280px 10px no-repeat;
	}
	nav#mobilenav ul li.has-submenu:hover {
		background: rgba(0, 0, 0, 0.3) url(../images/sub-arrow.png) 280px 10px no-repeat;
	}	
	nav#mobilenav ul li>a:hover {
		color: #fff99c;
	}
	nav#mobilenav ul li ul {
		display: none;
		margin-left: -12px;
		margin-right: -12px;
		background: rgba(0, 0, 0, 0.5) /*url(../images/shadow.png) repeat-x*/;
		-webkit-box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.4);
		-moz-box-shadow:    inset 0 10px 10px -10px rgba(0,0,0,0.4);
		box-shadow:         inset 0 10px 10px -10px rgba(0,0,0,0.4);
	}
	nav#mobilenav ul li.active>ul {
		display: block;
	}
	nav#mobilenav ul li ul li {
		border-bottom: solid 1px rgba(255,255,255,0.2);
		border-left: none;
		background: none;
		padding-left: 20px;
		font-size: 12px;
	}
	nav#mobilenav ul li ul li:first-child {
		-webkit-box-shadow: inset 0px 10px 10px -10px rgba(0,0,0,0.4);
		-moz-box-shadow: 	inset 0px 10px 10px -10px rgba(0,0,0,0.4);
		box-shadow: 		inset 0px 10px 10px -10px rgba(0,0,0,0.4);
	}
	nav#mobilenav ul li ul li:last-child {
		-webkit-box-shadow: inset 0 -10px 10px -10px rgba(0,0,0,0.4);
		-moz-box-shadow:    inset 0 -10px 10px -10px rgba(0,0,0,0.4);
		box-shadow:         inset 0 -10px 10px -10px rgba(0,0,0,0.4);
	}
	nav#mobilenav ul li ul li a:hover {
	color: #fff99c;
	}
	nav#mobilenav ul li:hover ul {
		/*display: block;*/
	}

	#fancybox-bio img {
		max-width: 800px;
		max-height: 600px;
	}




/* ====================== DIRECTORY TABLE ======================== */

table .directory {
   border: inherit ;
}
.directory td, .directory th {
    padding: 0.5em .75em;
}
.directory td.err {
  background-color: #003399;
  color: #fff;
  font-size: 0.75em;
  text-align: center;
  line-height: 1;
  }
.directory th {
  background-color: #006699;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
}
.directory th a, .directory th a:visited {
  color: #fff;
}
.directory th a:hover, .directory th a:active {
  color: #9CC;
}

.directory tr, .directory tbody td {
  border-bottom:2px solid #ccc;
  background: rgb(242,242,242);

  background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmMmYyZjIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);

  background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(242,242,242,1) 100%);

  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(242,242,242,1)));

  background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(242,242,242,1) 100%);

  background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(242,242,242,1) 100%);

  background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(242,242,242,1) 100%);

  background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(242,242,242,1) 100%);

  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f2f2f2',GradientType=0 );

}

.directory h4 {
  font-size: 22px;
  color: #0099CC;
  margin: 5px 0 0 0;
  padding:10px;
  text-align:center;
  border-bottom:2px dotted #0099CC;
  width:100%;
}
#content .directory img, .directory img {
  max-width:275px;
  max-height:220px;
  float:right;
  margin:10px 0 10px 10px;
}

@media screen and (max-width: 700px) {
  #content .directory img, .directory img {
    max-width:175px;
    max-height:120px;
    margin:5px 0 5px 5px;
  }
}

.fancybox-close.special-map {
  position: absolute;
    top: -1px !important;
    right: -2px !important;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8060;
}

.fancybox-wrap, .fancybox-wrap * {
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
}

.field-label-first {
  font-weight: bold;
  text-align:center;
  width:18%;
}

.field-label {
  font-weight: bold;
  text-align:center;
}

.letter-table {
  margin-bottom:15px;
}

.letter-table a, .letter-search {
  margin-right:10px;
  margin-left:10px;
  line-height: 33px;
}

.letter-table a:first-child, .letter-search-first {
  margin-right:20px;
  margin-left:10px;
}

.active-letter {
  background-color: #006699;
  padding: 5px;
  color: #FFF !important;
}

.contact-info-block {
  width:67%;
}

.fancybox-map {
  width:41px;
  height:40px;
  float:right;
  margin: -15px 0 15px 10px;
}

.loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color:rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

#search-filters label {
  display: inline;
  font-size: 14px;
  margin-right: 7px;
}

#search-filters input[type='checkbox'] {
  display: inline;
}

/* ----------------------------
		PAGINATION
------------------------------ */


#pagination li          { border:0; margin:0; padding:0; font-size:11px; list-style:none; /* savers */ float:left; }
#pagination a           {
  border:1px solid #CCC;
  margin-right:2px;
  color: #00769D;
}
#pagination .previous-off,
#pagination .next-off   {
  border:solid 1px #DEDEDE;
  color:#888888;
  display:block;
  float:left;
  font-weight:bold;
  margin-right:2px;
  padding-top: 6px;
  padding-right: 8px;
  padding-bottom: 6px;
  padding-left: 8px;
}
#pagination .next a,
#pagination .previous a { font-weight:bold; }
#pagination a:link,
#pagination a:visited   {
  color:#00769D;
  display:block;
  float:left;
  text-decoration:none;
  padding-top: 6px;
  padding-right: 8px;
  padding-bottom: 6px;
  padding-left: 8px;
}
#pagination a:hover     { border:1px solid #00769D;}
#pagination a.active     {
  color:#FFFFFF;
  font-weight:bold;
  display:block;
  float:left; /* savers */
  margin-right:2px;
  background-color: #00769D;
  padding-top: 6px;
  padding-right: 8px;
  padding-bottom: 6px;
  padding-left: 8px;
}



/* ====================== Mailchimp popup override ======================== */

.mc-modal-bg {
    opacity: 0.6 !important;
}


#search-filters .buttonmid {
	margin-left: 8px;
}

span.highlight {
	font-weight:bold;
}
