/* If you want the menu to show up on load, comment out the following block */
#ajmint-header #ajmint-header-megamenu-container {
	visibility: hidden;
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#ajmint-header-megamenu-wrapper {
	position: relative;
	float: left;
	width: 100%;
	height: 150px;
}

#ajmint-header #ajmint-header-megamenu-wrapper {
	height: 0;
}

#ajmint-header-megamenu-container {
	width: 100%;
	height: 150px;
	position: relative;
	float: left;
	z-index: 100;

	font-family: Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 14px;
	line-height: 22px;

	width: 800%; /*width here should be width of all the images. set initial width to something huge like 800% so script can calculate accurate width */
	min-width: 100%; /*but min width needs to be at least 100% */
}

#ajmint-header-megamenu-container.tacked {
	position: fixed;
	top: 50px;
	-webkit-backface-visibility: hidden;
	-webkit-transform: translateZ(0);
}

#ajmint-header-megamenu-container.tacked.hide {
	height: 0;
	overflow: none;
	-webkit-transition: height 300ms linear;
    -moz-transition: height 300ms linear;
    -o-transition: height 300ms linear;
    transition: height 300ms linear;

    -webkit-transition-delay: 100ms;
	-moz-transition-delay: 100ms;
	-o-transition-delay: 100ms;
	transition-delay: 100ms;
}

#ajmint-header-megamenu-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0.8;
}

#ajmint-header-megamenu {
	height: 100%;
	position: relative;
	float: left;
	padding: 10px;
	width: 100%;
}

#ajmint-header-megamenu-intro {
	color: white;
	font-style: italic;
	border-right: 1px solid #b0b0b0;
	padding-right: 10px;
	float: left;
	width: 200px;
	height: 100%;
	overflow: hidden;
}

.tacked.hide #ajmint-header-nav {
	display: none;
}

#ajmint-header-nav {
	text-align: center;
	margin: 10px auto 0 auto;
	border: 1px solid #b0b0b0;
	width: auto;
	/*float: left;*/
	display: inline-block;
	clear: both;
	position: relative;
	padding: 3px 0;
}

.ajmint-header-nav-icons {
	font-size: 1.3em;
	cursor: pointer;
	padding: 3px;
}

.ajmint-header-nav-icons.disable {
	color: #222;
	cursor: auto;
}

.ajmint-header-nav-icons:not(.disable):hover {
	background: #222;
}

.ajmint-header-nav-icons:before {
	margin: 0 !important;
}

#ajmint-header-storylist-container {
	padding-left: 20px;
	/*float: left;*/
	height: 100%;
	overflow: hidden;
}

#ajmint-header-storylist {
	height: 100%;
	margin-left: 0;
	/*margin-left negative shifts over stories to the left */

	-webkit-transition: "margin-left" 200ms ease-in;
	-moz-transition: "margin-left" 200ms ease-in;
	-o-transition: "margin-left" 200ms ease-in;
	transition: "margin-left" 200ms ease-in;
}

#ajmint-header-storylist ul {
	margin: 0;
	-webkit-margin-before: 0px;
	-webkit-margin-after: 0px;
	-webkit-margin-start: 0px;
	-webkit-margin-end: 0px;
	-webkit-padding-start: 10px !important;
	list-style-type: none;
	display: inline;
	float: none;
}

#ajmint-header-storylist ul li {
	display: inline-block;
	padding-right: 20px;
	height: 100%;
}

#ajmint-header-storylist ul li img {
	height: 60%;	
	border-style: none;
	border: 1px solid #b0b0b0;
	float: left;
}

#ajmint-header-storylist ul li:hover img {
	border: 1px solid #999;
}

#ajmint-header-megamenu-container.tacked.hide #ajmint-header-storylist ul li img {
	opacity: 0;
	-webkit-transition: all 100ms ease-in;
	-moz-transition: all 100ms ease-in;
	-o-transition: all 100ms ease-in;
	transition: all 100ms ease-in;
}

.ajmint-header-megamenu-chaptername {
	color: white;
	height: 40%;
	font-weight: 800;
	margin-top: 5px;
	line-height: 1.2em;
	float: left;
	clear: both;
}

#ajmint-header-storylist ul li:hover .ajmint-header-megamenu-chaptername {
	color: #CCC;
}

#ajmint-header-megamenu-container.tacked.hide .ajmint-header-megamenu-chaptername {
	opacity: 0;
	-webkit-transition: all 200ms ease-in;
	-moz-transition: all 200ms ease-in;
	-o-transition: all 200ms ease-in;
	transition: all 200ms ease-in;
}

.ajmint-header-section-title {
	display: none;
	padding-left: 1em;
}

.ajmint-selected .ajmint-header-section-title {
	display: inline;
}

@media (max-width: 853px) {
	#ajmint-header-megamenu-wrapper {
		display: none;
	}

	.ajmint-header-section-title { 
		display: inline;
	}
}