.toggle,
[id^="drop"] {
  display: none;
}

/* Giving a background-color to the nav container. */
nav {
	
	background-color: #E0F3FD;
	background-image: -webkit-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: -moz-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: -o-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: linear-gradient(180deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	margin-right:-2px;
	margin-top:0.8em;
}


.active, .active:hover{
	background-color:#0897dd!important;
color:#ffffff!important;
background-image: none!important;
}


/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
  content: "";
  display: table;
  clear: both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
  float: left;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  
}

/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display: inline-block;
	float: left;
	background-color: #E0F3FD;
	background-image: -webkit-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: -moz-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: -o-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: linear-gradient(180deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	border-right: solid 1px #CDE5F0;
}



/* Styling the links */
nav a {
	display: block;
	padding: 1.1em 1.5em;
	color: #0897dd;
	font-size: 0.9em;
	font-weight:700;
	line-height: 40px;
	text-decoration: none;
}



/* Background color change on Hover */
nav a:hover {
  background-color: inherit;

}


nav ul li ul li a{
	padding: 1.1em;

  color:#0897dd;

}



nav ul li ul li:hover, nav ul li ul li a:hover {
	background-color: #E0F3FD;
	
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
  display: none;
  position: absolute;
  /* has to be the same number as the "line-height" of "nav a" */
  top:50px;
  z-index:999999999999999999!important;
}

/* Display Dropdowns on Hover */
nav ul li:hover > ul {
  display: inherit;
}

/* Fisrt Tier Dropdown */
nav ul ul li {
  width: 300px;
  float: none;
  display: list-item;
  position: relative;
  border:0;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
  position: relative;
  top: -40px;
  /* has to be the same number as the "width" of "nav ul ul li" */
  left: 170px;
}

/* Change ' +' in order to change the Dropdown symbol */
li > a:after {
  content: " ";
}
li > a:only-child:after {
  content: "";
}

/* Media Queries
--------------------------------------------- */


@media all and (max-width: 1100px) {


/* Styling the links */
nav a {
	padding: 1.5em 0.85em;
	font-size: 1em;

}

}

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

  .toggle + a,
	.menu {
		display: none;
	
	}

	.toggle {
	display: block;
	background-color: #E0F3FD;
	background-image: -webkit-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: -moz-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: -o-linear-gradient(270deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	background-image: linear-gradient(180deg,rgba(245,251,253,1.00) 0%,rgba(207,236,251,1.00) 100%);
	padding: 0.75em;
	color: #0897dd;
	font-size: 15px;
	text-decoration: none;
	border: none;
	margin-top: 0;
	margin-bottom: 0;
	font-weight: 700;	
	
	}
	
	
	nav, nav ul ul{
	margin-right:inherit;
	background:transparent;
	box-shadow: none;
	}
	
	
	nav ul {
	
	float:none;
	


	}
	
	
	nav > label:first-child{
	
	background-image: url(../kuvat/hamburger.svg);
	background-repeat: no-repeat;
	background-position: 96% center;
	background-size: 20px 16px;
					background-color:#0897dd!important;
	color:#ffffff;
	margin-bottom:0.5em;

	}
	
	
	

	

	[id^=drop]:checked + ul {
		display: block;
	}

	nav ul li {
		display: block;
		width: 100%;
		border:0;
		}
		
		
		
	nav ul{
	margin-right:0;

	
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;

	}
	
	nav ul ul li a{
	
			color:#5B5A5A;
			
		

	}
	
	
	nav a {
	
	padding:0.85em;
	
}

	
	
  
	nav ul li ul li .toggle,
	nav ul ul a{
padding:0.85em!important;
	font-size: 15px;
	}
	
	

  
  
	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #ffffff; 

	}

	nav ul ul {
		float: none;
		position:static;
		color:#ffffff;
	}
		
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}
		
	nav ul ul li {
		display: block;
		width: 100%;
	}







	

}

@media all and (max-width : 330px) {

	/*nav ul li {
		display:block;
		width: 94%;
	}*/

}