/* http://tympanus.net/codrops/2013/05/08/responsive-retina-ready-menu/ */

.nav ul {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	font-size: 1em;
	width:92%;
}

.nav li {
    padding:0;
}

.nav a {
	display: block;
	color:#fff;
    font-weight: bold;
    padding:5px 10px;
	text-decoration: none;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition:all 0.5s ease;
	text-shadow:1px 1px rgba(0,0,0,.5);
}

/* 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 .nav ul:hover a {
	color: rgba(249, 249, 249, .4);
    background: rgba(0, 0,0, .25);
}

.no-touch .nav ul:hover a:hover {
	color: rgba(249, 249, 249, 0.99);
     background: rgba(0, 0,0, .0);
    font-size:1.05em;
}

/* Adding some background color to the different menu items */
.nav li.connect {
	background:#248cad;
	background: rgba(36,141,173,0.8);
	background: -moz-linear-gradient(top, rgba(36,141,173,0.8) 0%, rgba(23,114,150,0.8) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(36,141,173,0.8)), color-stop(100%, rgba(23,114,150,0.8)));
	background: -webkit-linear-gradient(top, rgba(36,141,173,0.8) 0%, rgba(23,114,150,0.8) 100%);
	background: -o-linear-gradient(top, rgba(36,141,173,0.8) 0%, rgba(23,114,150,0.8) 100%);
	background: -ms-linear-gradient(top, rgba(36,141,173,0.8) 0%, rgba(23,114,150,0.8) 100%);
	background: linear-gradient(to bottom, rgba(36,141,173,0.8) 0%, rgba(23,114,150,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#248dad', endColorstr='#177296', GradientType=0 );
}

.nav li.hardware {
	background: #3bc4aa;
	background: rgba(59,196,171,0.8);
	background: -moz-linear-gradient(top, rgba(59,196,171,0.8) 0%, rgba(33,171,146,0.8) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(59,196,171,0.8)), color-stop(100%, rgba(33,171,146,0.8)));
	background: -webkit-linear-gradient(top, rgba(59,196,171,0.8) 0%, rgba(33,171,146,0.8) 100%);
	background: -o-linear-gradient(top, rgba(59,196,171,0.8) 0%, rgba(33,171,146,0.8) 100%);
	background: -ms-linear-gradient(top, rgba(59,196,171,0.8) 0%, rgba(33,171,146,0.8) 100%);
	background: linear-gradient(to bottom, rgba(59,196,171,0.8) 0%, rgba(33,171,146,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3bc4ab', endColorstr='#21ab92', GradientType=0 );
}

.nav li.content {
	background: #0bbbce;
	background: rgba(11,187,206,0.8);
	background: -moz-linear-gradient(top, rgba(11,187,206,0.8) 0%, rgba(5,155,170,0.8) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(11,187,206,0.8)), color-stop(100%, rgba(5,155,170,0.8)));
	background: -webkit-linear-gradient(top, rgba(11,187,206,0.8) 0%, rgba(5,155,170,0.8) 100%);
	background: -o-linear-gradient(top, rgba(11,187,206,0.8) 0%, rgba(5,155,170,0.8) 100%);
	background: -ms-linear-gradient(top, rgba(11,187,206,0.8) 0%, rgba(5,155,170,0.8) 100%);
	background: linear-gradient(to bottom, rgba(11,187,206,0.8) 0%, rgba(5,155,170,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0bbbce', endColorstr='#059baa', GradientType=0 );
}

.nav li.con-del {
	background: #185fce;
	background: rgba(24,94,206,0.8);
	background: -moz-linear-gradient(top, rgba(24,94,206,0.8) 0%, rgba(20,73,186,0.8) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(24,94,206,0.8)), color-stop(100%, rgba(20,73,186,0.8)));
	background: -webkit-linear-gradient(top, rgba(24,94,206,0.8) 0%, rgba(20,73,186,0.8) 100%);
	background: -o-linear-gradient(top, rgba(24,94,206,0.8) 0%, rgba(20,73,186,0.8) 100%);
	background: -ms-linear-gradient(top, rgba(24,94,206,0.8) 0%, rgba(20,73,186,0.8) 100%);
	background: linear-gradient(to bottom, rgba(24,94,206,0.8) 0%, rgba(20,73,186,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#185ece', endColorstr='#1449ba', GradientType=0 );
}

.nav li.one-care {
	background: #354868;
	background: rgba(53,72,104,0.9);
	background: -moz-linear-gradient(top, rgba(37,64,111,0.8) 0%, rgba(12,37,94,0.9) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(37,64,111,0.9)), color-stop(100%, rgba(12,37,94,0.9)));
	background: -webkit-linear-gradient(top, rgba(37,64,111,0.9) 0%, rgba(12,37,94,0.9) 100%);
	background: -o-linear-gradient(top, rgba(37,64,111,0.9) 0%, rgba(12,37,94,0.9) 100%);
	background: -ms-linear-gradient(top, rgba(37,64,111,0.9) 0%, rgba(12,37,94,0.9) 100%);
	background: linear-gradient(to bottom, rgba(37,64,111,0.9) 0%, rgba(12,37,94,0.9) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#25406f', endColorstr='#0c255e', GradientType=0 );
}

.nav li.kvh-adv {
	background: #5e707c;
	background: rgba(94,112,124,0.8);
	background: -moz-linear-gradient(top, rgba(94,112,124,0.8) 0%, rgba(45,64,80,0.8) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(94,112,124,0.8)), color-stop(100%, rgba(45,64,80,0.8)));
	background: -webkit-linear-gradient(top, rgba(94,112,124,0.8) 0%, rgba(45,64,80,0.8) 100%);
	background: -o-linear-gradient(top, rgba(94,112,124,0.8) 0%, rgba(45,64,80,0.8) 100%);
	background: -ms-linear-gradient(top, rgba(94,112,124,0.8) 0%, rgba(45,64,80,0.8) 100%);
	background: linear-gradient(to bottom, rgba(94,112,124,0.8) 0%, rgba(45,64,80,0.8) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5e707c', endColorstr='#2d4050', GradientType=0 );
}

/* For screen bigger than 800px --------------------------------------------- */
@media (min-width: 800px) {
	
	.nav {
		height:65px;
		margin-top:10px;
	}

	/* Transforms the list into a horizontal navigation */
	.nav li {
		float: left;
		width: 16.66666666666667%;
		text-align: center;
		-webkit-transition: border .5s;
		-moz-transition: border .5s;
		-o-transition: border .5s;
		-ms-transition: border .5s;
		transition: border .5s;
		border-right:1px solid #000;
	}

	.nav a {
		display: block;
		width: auto;
	}

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


	/* Animating the height of the element*/
	.nav a {
		height: 50px;
	}

	.no-touch .nav a:hover ,
	.nav a:active ,
	.nav a:focus {
		height: 65px;
	}	
	
	/* Animate the box-shadow to create the effect */
	.no-touch .nav a:hover i,
	.no-touch .nav a:active i,
	.no-touch .nav a:focus i {		
		box-shadow: 0 0 0 0 rgba(255,255,255,0.3);
		-webkit-transition: box-shadow .4s ease-in-out;
		-moz-transition: box-shadow .4s ease-in-out;
		-o-transition: box-shadow .4s ease-in-out;
		-ms-transition: box-shadow .4s ease-in-out;
		transition: box-shadow .4s ease-in-out;
	}
		
}



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

@media (max-width: 800px) {		
    
    .no-touch .nav ul:hover a:hover {
    font-size: inherit;
}

	.nav ul li {
		-webkit-transition: background 0.5s;
		-moz-transition: background 0.5s;
		-o-transition: background 0.5s;
		-ms-transition: background 0.5s;
		transition: background 0.5s;
	}	

}

/* CSS specific to the 2x3 columns version */
@media (min-width:520px) and (max-width: 800px) {
	
	/* Creating the 2 column layout using floating elements once again */
	.nav li {
		display: block;
		float: left;
		width: 50%;
	}

    .nav li a {  
        padding:10px;
    }
    
	/* Transition effect on the border color */
	.no-touch .nav li:hover i,
	.no-touch .nav li:active i,
	.no-touch .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: 520px) and (max-width: 620px) {
	
	
	.nav li span.icon {
		width: 50%;
	}

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

/* Styling the toggle menu link and hiding it */
.nav .navtoogle {
	display: none;	
	width: 100%;
	padding: 0.5em 0.5em 0.8em;
	font-weight: bold;
    text-transform:uppercase;
	text-align: left;
	color: #fff;
	font-size: .875em;
	background: none;	
	border: none;
	cursor: pointer;
    outline: none;
}

@media (max-width: 520px) {
	
	/* Unhiding the styled menu link */
	.nav .navtoogle{
		margin: 0 auto 10px auto;
		display: block;
		text-align:center;
		background:rgba(0,174,239,.35);
		width:96%;
	}
	
	/* When JavaScript is disabled, we hide the menu */
	.no-js .nav ul {
		max-height: 30em;
		overflow: hidden;
	}
	
	/* When JavaScript is enabled, we hide the menu */
	.js .nav ul {
		max-height: 0em;
		overflow: hidden;
	}
	
	/* Displaying the menu when the user has clicked on the button*/
	.js .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;
	}

	
	/* Adding a left border of 8 px with a different color for each menu item*/
	.nav li {
		border-left: 8px solid rgba(0,0, 0, .20);
	}
    
    .nav li a {
        padding:10px;
    }

	/* make the nav bigger on touch screens */
	.touch .nav a {
		padding: 0.8em;
	}
}

