.cbp-af-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: white;
	z-index: 10000;
	-webkit-transition: height 0.3s;
	-moz-transition: height 0.3s;
	transition: height 0.3s;
}

.cbp-af-header .cbp-af-inner {
	width: 90%;
	max-width: 69em;
	margin: 0 auto;
}

.cbp-af-header h1,
.cbp-af-header nav {
	display: inline-block;
	position: relative;
    transition:All 1s ease;
    -webkit-transition:All 1s ease;
    -moz-transition:All 1s ease;
    -o-transition:All 1s ease;
}

 /* We just have one-lined elements, so we'll center the elements with the line-height set to the height of the header */
.cbp-af-header h1,
.cbp-af-header nav li a {
	padding: 0;
    text-transform: uppercase;
    transition:All 1s ease;
    -webkit-transition:All 1s ease;
    -moz-transition:All 1s ease;
    -o-transition:All 1s ease;
}

.cbp-af-header h1 {
	margin: 0;
	float: left;
}

.cbp-af-header nav {
	float: left;
}

.cbp-af-header nav ul {
    width: 100%;
    float: left;
    list-style: none;
    position: relative;
}

.cbp-af-header nav ul li {
    float: left;
    padding: 5px 20px 5px 0; 
}

.cbp-af-header nav ul li ul {
    display: none;
    position: absolute;
    z-index: 9999999999999999;
    background: white;
    padding: 10px 5px;
    margin: 0;
}

.cbp-af-header nav ul li ul li {
    background: white;
    padding: 0 10px;
}

.cbp-af-header nav ul li:hover ul {
    display: block;
    background: white;
    position: absolute;
    z-index: 999999999999999;
    list-style: none;
    transition:All 1s ease;
    -webkit-transition:All 1s ease;
    -moz-transition:All 1s ease;
    -o-transition:All 1s ease;
}



.cbp-af-header nav a {
	color: #aaa;
	font-size: 0.7em;
    font-weight: 900;
}

.cbp-af-header nav a:hover {
	color: #333;
}

/* Transitions and class for reduced height */
.cbp-af-header h1,
.cbp-af-header nav a {
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.cbp-af-header.cbp-af-header-shrink {
	height:80px;
}


.cbp-af-header.cbp-af-header-shrink nav a {
	line-height: 90px;
}

.cbp-af-header.cbp-af-header-shrink h1 {
    transition:All 1s ease;
    -webkit-transition:All 1s ease;
    -moz-transition:All 1s ease;
    -o-transition:All 1s ease;
    margin-top:-150px;
}

.cbp-af-header.cbp-af-header-shrink h1 {
	font-size: 2em;
}

/* Example Media Queries */
@media screen and (max-width: 55em) {
	
	.cbp-af-header .cbp-af-inner {
		width: 100%;
	}

	.cbp-af-header h1,
	.cbp-af-header nav {
		display: block;
		margin: 0 auto;
		text-align: center;
		float: none;
	}
    
    .cbp-af-header nav li {
        float: left;
    }

	.cbp-af-header h1,
	.cbp-af-header nav li a {
		line-height: 60px;
        font-size: 10px;
	}

	.cbp-af-header nav li a {
		margin: 0 5px;
	}

	.cbp-af-header.cbp-af-header-shrink h1,
	.cbp-af-header.cbp-af-header-shrink nav a {
		line-height: 45px;
	}

	.cbp-af-header.cbp-af-header-shrink h1 {
		font-size: 2em;
	}

	.cbp-af-header.cbp-af-header-shrink nav a {
		font-size: 1em;
	}
}

@media screen and (max-width: 32.25em) {
	.cbp-af-header nav a {
		font-size: 1em;
	}
}

@media screen and (max-width: 24em) {
	.cbp-af-header nav a,
	.cbp-af-header.cbp-af-header-shrink nav a {
		line-height: 1;
	}
}
