/* CSS Document */

body {
    /* body top margin so body content isnt' obscured by header */
    margin-top:160px;
}

/* ########## Fixed header ########## */
#ddfixedheader {
	position: fixed;
	display: flex;
	left: 0;
	top: 0;
	justify-content: space-between;
	align-items:center;
	padding: 0px;
	background-color: #389b9a;
	/* background: url("/heartsofreality/i/global/header-bg.jpg") repeat; */
	width: 100%;
	z-index: 1000;
	transition: all .5s;
	text-align: center;
}

#ddfixedheader, #ddfixedheader * {
    box-sizing: border-box;
}

/* ########## Left logo DIV area ########## */
#ddfixedheader #logoarea {
    width: 313px;
    margin-right: 10px;
	font-family: 'AnimeAce20BB', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif"; 
	color:#ffffff;
	font-size: 1em;
	letter-spacing: .1em;
}

#ddfixedheader #logoarea a{
	font-family: 'AnimeAce20BB', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif"; 
	color:#ffffff;
	font-size: 1em;
	letter-spacing: .1em;
	text-decoration: none;
	display:block;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;

}

#ddfixedheader #logoarea a:hover{
	background-color: #5C5B5B;
	transition: background-color 0.5s ease;
	color:#ffffff;
}

#ddfixedheader #logo img {
    width: 300px;
    height: auto;
    transition: all .5s;
}

.register a{
	
	display:block;
	border-color: #ffffff;
	border-style: solid;
	border-width: thin;
	color:#ffffff;

}

.signin a{
		border:none;
	text-decoration: underline;

}

.register a:hover{
	background-color: #5C5B5B;
	transition: background-color 0.5s ease;
	color:#ffffff;
} 

/* ########## Uneven Line Menu ########## */
div.uneven-hamburger-icon {
    width: 37px;
    /* keep width/height ratio to 1.56 if changing dimensions */
    height: 24px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    display: none;
    margin-right: 25px; /* original */
    margin: 15px 25px 15px 0;
    justify-content: space-between;
}

div.uneven-hamburger-icon > div {
    width: 80%;
    height: 3px;
    background-color: #ffffff;
    transform-origin: 0 50%;
    transition: all .5s;
}

div.uneven-hamburger-icon > div.line1 {
    width: 100%;
}

/* ########## Center UL Menu inside Fixed Header ########## */

#ddfixedheader ul#ddmainulmenu {
    margin-left: auto;
    margin-right: 20px;
    position: relative;
	display:none;
}

#ddfixedheader ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ddfixedheader ul#ddmainulmenu a {
	font-family:Arial Narrow, Helvetica, Arial, "sans-serif";
	color: #f9f9f9; 
	font-size: .9em;
	letter-spacing: .1em;
	display:block;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 10px 5px;
	text-decoration: none;
	margin: 0px 5px;
}

#ddfixedheader ul#ddmainulmenu > li {
    /* top level LIs */
    display: inline-block;
    position: relative;
}

ul#ddmainulmenu li {
    /* top level LIs */
	border-bottom: #69498d solid thin;
}

#ddfixedheader ul#ddmainulmenu li > a {
    /* top level LI links */
}

#ddfixedheader ul#ddmainulmenu > li:hover > a {
    /* top level LI links */
	
	/*border-color: #b2a3ae;
	-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;*/
}

#ddfixedheader ul#ddmainulmenu li > a:after {
    /* Arrow beneath top level LI links  */
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border: 6px solid thin;
    border-top-color: #eee;
    bottom: -12px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

#ddfixedheader ul#ddmainulmenu li:hover > a:after {
    /* Arrow beneath top level LI links hover style */
    border-top-color: gray;
}

#ddfixedheader ul#ddmainulmenu li > a:only-child {
    /* style for top level LI links with no sub UL */
    
}

#ddfixedheader ul#ddmainulmenu li > a:only-child:after {
    /* style for top level LI links with no sub UL */
    display: none;
}

#ddfixedheader ul#ddmainulmenu > li > a:hover {
   background-color:#5C5B5B;
	transition: background-color 0.5s ease;
}

#ddfixedheader ul#ddmainulmenu > li ul {
    /* sub ULs style */
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid gray;
    background:#75638f;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10%);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
}

#ddfixedheader ul#ddmainulmenu > li:hover > a {
    color: #ffffff;
	
}

#ddfixedheader ul#ddmainulmenu > li:hover ul {
    opacity: 1;
    overflow: auto;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-transition: opacity .5s, -webkit-transform .5s, visibility 0s;
    transition: opacity .5s, transform .5s, visibility 0s;
}

#ddfixedheader ul#ddmainulmenu > li ul a {
    display: block;
    padding: 10px;
}

#ddfixedheader ul#ddmainulmenu > li ul a:hover {
    background: #5C5B5B;
    color: #FFFFFF;
}

/* ########## Right DIV containing search and social icons ########## */
#ddfixedheader #rightarea {
    font-size: 20px;
}

#ddfixedheader #rightarea ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#ddfixedheader #rightarea ul li{
    display: inline;
}

#ddfixedheader #rightarea ul li > *{
    padding: 10px;
}

#ddfixedheader #rightarea ul li label {
    cursor: pointer;
}

/* ########## Fixed header when user begins to scroll down ########## */
html.collapseheader #ddfixedheader {
    position: fixed;
    border-bottom-width: 0;
    border-bottom-color: #698bbd;
    box-shadow: 0 2px 2px #eee;
    opacity: 1;
}

/* ########## Shared style for mobilemenucontainer and ddsearchcontainer DIVs ########## */
div#ddmobilemenucontainer, div#ddsearchcontainer {
    position: fixed;
    width: 100%;
    z-index: 10000;
    display: block;
    background: #54337a;
    left: -100%;
    /* initially position container out of view */
    top: 90px;
    /* shift container downwards so the header is still visible when search is shown */
    bottom: 0;
    padding-top: 50px;
    opacity: 0;
    cursor: crosshair;
    text-align: center;
   font-family: 'AnimeAce20BB', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif"; 
		font-size: .9em;
	letter-spacing: .1em;
    /* use google font */
    -webkit-transform: scale(.9) translate3d(-0, -50px, 0);
    transform: scale(.9) translate3d(-0, -50px, 0);
    -webkit-transition: -webkit-transform .5s, opacity .5s, left 0s .5s;
    transition: transform .5s, opacity .5s, left 0s .5s;
}

/* ######### Mobile Menu Container DIV style ######### */
div#ddmobilemenucontainer {
    text-align: left;
    overflow: auto;
}

div#ddmobilemenucontainer, div#ddmobilemenucontainer * {
    box-sizing: border-box;
}

    /* ########## Accordion Menu main UL style ########## */

div#ddmobilemenucontainer ul {
    list-style: none;
    padding: 0;
    width: 350px;
    position: relative;
    margin: 0 auto;
}

div#ddmobilemenucontainer ul li {
    display: block;
    position: relative;
}

div#ddmobilemenucontainer ul li a {
    width: 100%;
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px;
    box-sizing: border-box;
	-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}

div#ddmobilemenucontainer ul li a:hover {
    background-color:#204d8f;
    color: #FFFFFF;
	transition: background-color 0.5s ease;
	
}

div#ddmobilemenucontainer ul li a.header {
    /* style for accordion headers */
    background: #5C5B5B;
    color: white;
    outline: none;
}

div#ddmobilemenucontainer ul li a span.accordionarrow {
    /* style for right arrow span added to headers */
    position: absolute;
    right: 10px;
    transition: all .2s;
}

div#ddmobilemenucontainer ul li a.header.active {
    /* style for accordion header when expanded */
    background: #5C5B5B;
}

div#ddmobilemenucontainer ul li a.active span.accordionarrow {
    /* style for right arrow span when header expanded */
    transform: rotate(90deg);
}

div#ddmobilemenucontainer > ul ul {
    /* hide sub ULs inside accordion by default */
    display: none;
}

div#ddmobilemenucontainer > ul li ul a {
    padding-left: 30px;
}

/* ########## DD Search Container DIV ########## */
div#ddsearchcontainer div {
    padding: 5px;
    color: white;
}

div#ddsearchcontainer form {
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
    -webkit-transition: all .5s 0s;
    transition: all .5s 0s;
}

div#ddsearchcontainer form input[type="text"] {
    width: 90%;
    top: 0;
    left: 0;
    z-index: 99;
    padding: 10px;
    border: none;
    border-bottom: 2px solid gray;
    outline: none;
    font-size: 3em;
    background: #eee;
}

/* ########## Uneven Hamburger Icon style ########## */
html.openddmobilemenu div.uneven-hamburger-icon div.line1 {
    width: 80%;
    transform: rotate(45deg);
}

html.openddmobilemenu div.uneven-hamburger-icon div.line2 {
    opacity: 0;
    transform: translate3d(-10px,0,0);
}

html.openddmobilemenu div.uneven-hamburger-icon div.line3 {
    transform: rotate(-45deg);
}

/* ########## Mobile Menu and Search Containers style when visible ########## */
html.openddmobilemenu div#ddmobilemenucontainer, html.opensearch div#ddsearchcontainer {
    left: 0;
    opacity: 1;
    -webkit-transform: scale(1) translate3d(0, 0, 0);
    transform: scale(1) translate3d(0, 0, 0);
    -webkit-transition: -webkit-transform .5s, opacity .5s, left 0s 0s;
    transition: transform .5s, opacity .5s, left 0s 0s;
}

html.opensearch div#ddsearchcontainer form {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition: all .5s .5s;
}

/* ########## Media Query Breakpoints ########## */
@media (max-width: 1100px) {
	 /* body top margin so body content isnt' obscured by header */
	body{margin-top: 185px;}
}
@media (max-width: 900px) {
	 /* body top margin so body content isnt' obscured by header */
	body{margin-top: 180px;}
    
	#ddfixedheader ul#ddmainulmenu {
        display: none;
    }

    div.uneven-hamburger-icon {
        display: flex;
        margin-left: auto;
    }
}

@media (max-width: 700px) {
    /* body top margin so body content isnt' obscured by header */
	body {margin-top: 130px;}
	div.uneven-hamburger-icon {margin-right: 2%;}
}

@media (max-width: 480px) {
    #ddfixedheader #rightarea ul li:not(:first-of-type) {display: none;}
    div#ddsearchcontainer form input[type="text"] {width: 95%;}
}
