/* Global CSS that are applied for all screen sizes */

#footer .footer-nav ul {
	max-width: 982px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

#footer .footer-nav li span {
	display: block;
	padding-top: 5px;
}

#footer .footer-nav a {
	display: block;
	color: #333;
	text-decoration: none;
	border: 1px solid #DDDDDD;
    font-size: 16px;
    text-align: center;
    border-left-style:solid;
    border-top-style:solid;
    border-bottom-style:solid;
    border-right-style:none;
}

 #footer .footer-nav a.last_footer_link {
	border: 1px solid #DDDDDD;
  border-right-style:solid;
/*	width: 100%;*/
}

/* Remove the blue Webkit background when element is tapped */

a, button {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover effect for the whole navigation to make the hovered item stand out */

.no-touch #footer .footer-nav ul:hover a {
	color: #333;
}

.no-touch #footer .footer-nav ul:hover a:hover {
	color: #333;
}

/* Adding some background color to the different menu items */

#footer .footer-nav li {
	background: #F6F6F6;
}


/* For screen bigger than 800px */
@media (min-width: 800px) {

	/* Transforms the list into a horizontal navigation */
	#footer .footer-nav li {
		float: left;
/*		width: 16.66666666666667%; */
		width: 16.6%;
		text-align: center;
	}
	
	#footer .footer-nav li.last_footer_li {
		width: 17%;
	}

	#footer .footer-nav a {
		display: block;
		width: auto;
	}

	/* hover, focused and active effects that add a little colored border to the different items */
	.no-touch #footer .footer-nav li a:hover,
	.no-touch #footer .footer-nav li a:active,
	.no-touch #footer .footer-nav li a:focus {
		border-bottom: 4px solid #004400;
	}

	/* Animating the height of the element*/
	#footer .footer-nav a {
		height: 30px;
	}

	.no-touch #footer .footer-nav a:hover ,
	#footer .footer-nav a:active ,
	#footer .footer-nav a:focus {
		height: 30px;
	}	

	/* Making the text follow the height animation */
	.no-touch #footer .footer-nav a:hover .icon + span {
		margin-top: 3.2em;
	}

	/* Positioning the icons and preparing for the animation*/
	#footer .footer-nav i {
		position: relative;
		display: inline-block;
		margin: 0 auto;
		padding: 0.4em;
		border-radius: 50%;
		font-size: 1.8em;
		box-shadow: 0 0 0 30px transparent;
		background: rgba(255,255,255,0.1);
	}	
	
	/* Animate the box-shadow to create the effect */
	.no-touch #footer .footer-nav a:hover i,
	.no-touch #footer .footer-nav a:active i,
	.no-touch #footer .footer-nav a:focus i {		
		box-shadow: 0 0 0 0 rgba(255,255,255,0.2);
	}
		
}

@media (min-width: 800px) and (max-width: 980px) {

	/* Size and font adjustments to make it fit into the screen*/
	#footer .footer-nav ul {
		font-size: 1.2em;
	}

}

/* The "tablet" and "mobile" version */

@media (max-width: 799px) {
	
	/* Instead of adding a border, we transition the background color */
	.no-touch #footer .footer-nav ul li a:hover,
	.no-touch #footer .footer-nav ul li a:active,
	.no-touch #footer .footer-nav ul li a:focus {
		background: #004400;
	}

}

/* CSS specific to the 2x3 columns version */
@media (min-width:401px) and (max-width: 799px) {
	
	/* Creating the 2 column layout using floating elements once again */
	#footer .footer-nav li {
		display: block;
		float: left;
		width: 50%;
	}
	
	/* Adding some padding to make the elements look nicer*/
	#footer .footer-nav a {
		padding: 0.8em;
		border: 1px solid #DDDDDD;
	    border-left-style:solid;
	    border-top-style:solid;
	    border-bottom-style:none;
	    border-right-style:none;
	}

	#footer .footer-nav a.odd {
	    border-right-style:solid;
	}
	#footer .footer-nav a.pre_last_footer_link {
	    border-bottom-style:solid;
	}
	#footer .footer-nav a.last_footer_link {
	    border-bottom-style:solid;
	    border-right-style:solid;
	} 	
	
	/* Displaying the icons on the left, and the text on the right side using inlin-block*/
	#footer .footer-nav li span, 
	#footer .footer-nav li span.icon {
		display: inline-block;
	}

	#footer .footer-nav li span.icon {
		width: 50%;
	}

	#footer .footer-nav li .icon + span {
		font-size: 1em;
	}

	.icon + span {
		position: relative;
		top: -0.2em;
	}

	/* Adaptating to the icons to animate the size and border of the rounded background in a more discreet way */
	#footer .footer-nav li i {
		display: inline-block;
		padding: 8% 9%;
		border: 4px solid transparent;
		border-radius: 50%;
		font-size: 1.5em;
		background: rgba(255,255,255,0.1);
	}

	/* Transition effect on the border color */
	.no-touch #footer .footer-nav li:hover i,
	.no-touch #footer .footer-nav li:active i,
	.no-touch #footer .footer-nav li:focus i {
		border: 4px solid rgba(255,255,255,0.1);
	}
	
}

/* Adapting the font size and width for smaller screns*/
@media (min-width: 400px) and (max-width: 619) {
	
	#footer .footer-nav li span.icon {
		width: 50%;
	}

	#footer .footer-nav li .icon + span {
		font-size: 0.9em;
	}
}

/* Styling the toggle menu link and hiding it */
#footer .footer-nav #footer .footer-navtoogle{
	display: none;	
	width: 100%;
	padding: 0.5em 0.5em 0.8em;
	font-weight: normal;
	text-align: center;
	color: rgb(7, 16, 15);
	font-size: 1.2em;
	background: none;	
	border: none;
	border-bottom: 4px solid rgb(221, 221, 221);
	cursor: pointer;
}

#footer .footer-navtoogle i{
	z-index:-1;
}

.icon-menu {
	position: relative;
	top: 3px;
	line-height: 0;
	font-size: 1.6em;
}

@media (max-width: 419px) {

	/* Unhiding the styled menu link */
	#footer .footer-nav #footer .footer-navtoogle{
		margin: 0;
		display: block;
	}
	
	/* Animating the height of the navigation when the button is clicked */
	
	/* When JavaScript is disabled, we hide the menu */
	.no-js #footer .footer-nav ul {
		max-height: 30em;
		overflow: hidden;
	}
	
	/* When JavaScript is enabled, we hide the menu */
	.js #footer .footer-nav ul {
		max-height: 0em;
		overflow: hidden;
	}
	
	/* Displaying the menu when the user has clicked on the button*/
	.js #footer .footer-nav .active + ul {		
		max-height: 30em;
		overflow: hidden;
		-webkit-transition: max-height .4s;
		-moz-transition: max-height .4s;
		-o-transition: max-height .4s;
		-ms-transition: max-height .4s;
		transition: max-height .4s;
	}

	/* Adapting the layout of the menu for smaller screens : icon on the left and text on the right*/
	
	#footer .footer-nav li span {
		display: inline-block;
		height: 100%;
	}

	#footer .footer-nav a {
		padding: 0.5em;		
	    border-left-style:solid;
	    border-top-style:solid;
	    border-bottom-style:none;
	    border-right-style:solid;
	}
	#footer .footer-nav a.last_footer_link {
	    border-bottom-style:solid;
	} 	
	
	
	.icon + span {
		margin-left: 1em;
		font-size: 0.8em;
	}
	
	/* make the nav bigger on touch screens */
	.touch #footer .footer-nav a {
		padding: 0.8em;
	}
}

