@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);

*, ::after, ::before {
box-sizing: border-box;
}

/* Header styles and animations */

.ha-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0;
	z-index: 500;
	font-family: 'Montserrat', sans-serif;
	-webkit-transform: translateY(-150%);
	-moz-transform: translateY(-150%);
	transform: translateY(-150%);
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;
}

.ha-header-perspective {
	width: 100%;
	height: 100%;
	position: relative;
	-webkit-perspective: 1100px;
	-moz-perspective: 1100px;
	perspective: 1100px;
	-webkit-perspective-origin: 50% 0;
	-moz-perspective-origin: 50% 0;
	perspective-origin: 50% 0;
}

.ha-header-perspective > div {
	background: rgba(255, 255, 255, .97);
	width: 100%;
	padding: 0px 5%;
	margin: 0px auto;
	height: 60px;
	position: relative;
	text-align: justify;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	overflow: visible;
}

.ha-header-front {
	z-index: 2;
	-webkit-transform-origin: 0% 100%;
	-moz-transform-origin: 0% 100%;
	transform-origin: 0% 100%;
}

.ha-header-perspective .ha-header-bottom {
	background: #ddd;
	-webkit-transform-origin: 50% 0%;
	-moz-transform-origin: 50% 0%;
	transform-origin: 50% 0%;
	z-index: 1;
	-webkit-transform: rotateX(-90deg);
	-moz-transform: rotateX(-90deg);
	transform: rotateX(-90deg);
	-webkit-transition: top 0.5s;
	-moz-transition: top 0.5s;
	transition: top 0.5s;
	position: absolute;
}

/* Justify inline-block elements (h1 on left side, nav on right) */
.ha-header-perspective > div::after {
    content: '';
    display: inline-block;
    width: 100%;
}

/* Text styling */

.ha-header span,
.ha-header nav,
.ha-header nav::before {
	display: inline-block;
	vertical-align: middle;
	text-align: left;
}



.ha-header nav {
	height: 100%;
}

.ha-header nav a {
	display: inline-block;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}




/* Individual states */

.ha-header-hide {
	height: 60px;
	opacity:0;
	-webkit-transform: translateY(-150%);
	-moz-transform: translateY(-150%);
	transform: translateY(-150%);
	overflow:visible;
}

.ha-header-show {
	height: 60px;
	-webkit-transform: translateY(0%);
	-moz-transform: translateY(0%);
	transform: translateY(0%);
	overflow:visible;
}





/*  RESPONSIVE MENU  ============================================================================= */

nav {  
height: 100%;
margin: 0px;
padding: 0px;
width: 100%;
float: right;
font-size: 14px;
font-weight:400;

	font-family: 'Montserrat', sans-serif;
overflow: hidden;
}

nav ul {  
padding: 0px;
margin: 0px;
width: 60%;
float: right;
height: 100%;
overflow: hidden;
position: relative;
}  

nav li {
overflow: hidden;
position: relative;
display: inline;
float: left;
width: 25%;
height: 40px;
margin-top: 10px;
} 
/*nav li:first-child{border-radius:5px 0px 0px 5px;}
nav li:last-child{border-radius:0px 5px 5px 0px;}*/

.clearfix:before,  
.clearfix:after {  
    content: " ";  
    display: table;  
}  
.clearfix:after {  
    clear: both;  
}  
.clearfix {  
    *zoom: 1;  
}  

nav a { 
overflow: hidden;
position: relative;
padding: 0px;
color:#999;
display: inline-block;
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
text-decoration: none;
transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
}  

nav li a {  
    box-sizing:border-box;  
    -moz-box-sizing:border-box;  
    -webkit-box-sizing:border-box;  
}  

nav a:hover {
	color: #222;
}  

nav a:active {  
	color: #222;
}  

nav a#pull {  
    display: none;  
} 

.navSelected {
	color: #222;
	font-weight:700;
}

.navSelected:hover {
	color: #222;
}

@media screen and (max-width: 1050px) { 

nav ul {
		padding: 0px;
		margin: 0px;
		width: 75%;
		height: auto;
	}


}


@media screen and (max-width: 625px) {  
	.ha-header-perspective > div {
	height: 100%;
	}
    nav {  
        border-bottom: 0;  
    } 
	nav a {  
        height: auto;  
    }   
    nav ul {
		padding: 0px;
		margin: 0px;
		width: 90%;
		height: auto;
	}
			
	footer{
		text-align: center;
	}
}  

@media only screen and (max-width : 480px) {  
    nav {  
        border-bottom: 0;  
    } 
	nav a {  
        height: auto;  
    }   
    nav ul {  
        display: none;  
        height: auto;
		width: 100%; 
    }  
	 nav li {
		 margin:0;
		font-size: 16px;
		width: 100%; 
    }
    nav a#pull {  
        display: block;  
        width: 100%;  
        position: relative;
		background-color:rgba(216,37,51,1); 
		color:#FFF;
    }  
    nav a#pull:after {  
        content:"";  
        background: url('../images/nav-icon.png') no-repeat;
        width: 30px;  
        height: 30px;  
        display: inline-block;  
        position: absolute;  
        right: 15px;  
        top: 10px;  
    }  
	
	footer{
		text-align: center;
	}
}  

@media only screen and (max-width : 320px) { 
	nav {	
		background: rgba(0,0,0,0.2);
	} 
	nav a {  
        height: auto;  
    } 
    nav li {  
        display: block;  
        float: none;  
        width: 100%;
		margin-top: 1px;
		border-radius:4px;
    } 	
	nav li:first-child{border-radius:4px;}
nav li:last-child{border-radius:4px;}
	footer{
		text-align: center;
	}
}  