@charset "utf-8";
/* CSS Document */

		#nav
		{
			width: 100%; /* 1000 */
			margin: 0;
			/*font-family: 'Ubuntu Condensed', sans-serif;*/
			font-family: 'Ubuntu Condensed', sans-serif;
			font-weight: 400; 
			/*text-transform: uppercase; */
			font-size: 1.5em; 
			line-height: .9em;/**/
			height: auto; 
			text-decoration:none;
			position: relative;
			top: 0;
			left: 0;
			/*margin-left: -30em;*/ /* 30 480 */
			display:block;
			/*background-color: #fff;*/
			background-color: transparent;
			/*z-index: 100;*/
		}




			#nav > a
			{
				display: none;
			}

			#nav li
			{
				position: relative;
				list-style-type: none;
				text-align: center;
				
				/*min-width: 12%;*/

								
			}
				#nav li a
				{
					color:#fff;
					display: block;
					width: auto;
				}
				#nav li a:hover
				{
					color: #fef1bc;
				}
				#nav li a:active
				{
					/*background-color: #04c5e0 !important;
					color: #fff !important;*/
				}

			#nav span:after
			{
				width: 0;
				height: 0;
				border: 0.313em solid transparent; /* 5 */
				border-bottom: none;
				border-top-color: #AB1A1C;
				content: '';
				vertical-align: middle;
				display: inline-block;
				position: relative;
				right: -0.313em; /* 5 */
				
			}





			/* first level */

			#nav > ul
			{
				/*height:60px;  60 */			/*background-color: #0068b5;*/
			}
				#nav > ul > li
				{
					/*width: 25%;
					height: 100%;*/

					padding: 0 .5% 0 0 !important;
					margin: 10px .5% 0 1% !important;
					float: left;
				}
					#nav > ul > li > a
					{
						height: 100%;
						font-size: 1em; /* 24 */
						line-height: 1em; /* 60 (24) */
						/*text-align: center;*/
						padding: 0 .5% !important;
						text-decoration: none;
					}
						#nav > ul > li:not( :last-child ) > a
						{
							/*border-right: 1px solid #cc470d;*/
							
							
						}
						#nav > ul > li:hover > a,
						#nav > ul:not( :hover ) > li.active > a
						{
							/*background-color: #cc470d;*/
						}


				/* second level */

				#nav li ul
				{
					background-color: #634b41;
					color: #fff;
					display: none;
					position: absolute;
					top: 100%;
					
					width: auto;
					margin: 0;
				}
					#nav li:hover ul
					{
						display: block;
						left: 0;
						right: 0;

					}
						#nav li:not( :first-child ):hover ul
						{
							left: -1px;
							border-top: 2px solid #fff;
						}
						#nav li ul a
						{
							/*font-size: 1.25em;*/
							border-bottom: 2px solid #fff;
							border-left: 2px solid #fff;
							border-right: 2px solid #fff;
							padding: 0.75em; /* 15 (20) */
							text-transform:none;
							font-size: .95em;
							text-align: left;
							text-decoration: none;
							color: #fff;
						}
							#nav li ul li a:hover,
							#nav li ul:not( :hover ) li.active a
							{
								/*background-color: #e15a1f;*/
								background-color: #533f36;
								text-transform:none;
								text-decoration: none;
								color: #fff;
							}

		@media only screen and ( max-width: 940px )
		{
			#nav 	{font-size: 1.3em; 
			/*
			#nav > ul > li {padding: 0 0 0 .5% !important; margin: 10px .3% 0 1% !important; }
			#nav > ul > li > a 	{ padding: 5px .3%; font-size: .85em;}
		*/
		
			
					
		}
		/*@media only screen and ( max-width: 730px )
		{
			#nav
			{
				width: 100%;
				position: static;
				margin: 0;
			}
		}
*/
		
	
		
		
		@media only screen and ( max-width: 820px )
		{
			html { 			/*font-size: 75%; /* 12 */				}

			#nav	{	position: relative;	top: auto;	left: auto; margin: 0 0 0 5px; font-size: 1.5em; 	/*background-color: transparent;*/}
			
				#nav > a 	{
					width: 2.5em; /* 50 */
					height: 2.5em; /* 50 */
					text-align: left;
					text-indent: -9999px;
					background-color: #3c6aa6;
					position: relative;
					font-size:1em;
					font-weight:bold;
					border-top-left-radius: 9px;
					border-top-right-radius: 9px;
					border-bottom-right-radius: 9px;
					/*border-top-left-radius: 18px; border-top-right-radius: 18px; border-bottom-left-radius: 18px; */
					
	
					
				}
					#nav > a:before,
					#nav > a:after
					{
						position: absolute;
						border: 2px solid #fff;
						top: 35%;
						left: 25%;
						right: 25%;
						content: '';
					}
					#nav > a:after		{					
						top: 60%;					}

				#nav:not( :target ) > a:first-of-type, 
				#nav:target > a:last-of-type
				{	display: block;			}


			/* first level */

			#nav > ul 		{				
				height: auto;
				display: none;
				position: absolute;
				left: 0;
				right: 1%;
				/*width: 96.5%;*/
				background-color: #3c6aa6;
				border: none;
				color: #fff;
				
			}
				#nav:target > ul
				{
					display: block;
				}
				#nav > ul > li
				{
					width: 90%;
					float: none;
					margin: 5px 0;
					padding: 13px 0;
					

				}
					#nav > ul > li > a
					{
						line-height: 2.5em;
						text-align: center;
						/* nämä
						padding: 0 3%; 
						margin: 1%;*/
						padding: 0; 
						margin: 0;
	
						color: #fff;
					}
						#nav > ul > li:not( :last-child ) > a
						{
							border-right: none;
							border-bottom: 1px dotted #fff;
						}

					
					#nav > ul li a:hover,
					#nav li ul:not( :hover ) li.active a
							{
							color: #222;
							}
					

				/* second level */

				#nav li ul
				{
					position: static;
					padding: .8em 1.25em ; /* 20 */
					padding-top: 0;
					background-color: #644d43;
					margin-bottom: .5em;
					
				}
					#nav li ul a
						{
							border-bottom: 1px dotted #fff;
							border-left: none;
							border-right: none;
							/*padding: 0.75em; 
							text-transform:none;
							font-size: .95em;
							text-align: left;
							text-decoration: none;*/
						}
											
						#nav li ul li a:hover,
							#nav li ul:not( :hover ) li.active a
							{
								/*background-color: #e15a1f;
								background-color: #8e7463;*/
								text-transform:none;
								text-decoration: underline;
								color: #fff;
							}
	
				
		}