/* CSS Document */
.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
nav { 
	margin:0 auto;
	padding: 0;
  /*border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;*/
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 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;
  width: var(--container);
	}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
  background: none;
  /*border-right:1px solid #da3f20;*/
	}
nav ul ul li {
  border:none;
}
/* Styling the links */
nav a {
	display:block;
	padding: 10px 12px 9px 0;	
	color:#111;
	font-size:12px;
	font-weight: 700;
	text-decoration:none;
	cursor: pointer;
  text-transform: uppercase;
}

nav ul li a img {
	padding: 0;
	margin: -15px 0 -10px 0;
  padding: 1px 0 0 25px;
	height:auto;
  /*border-right: 2px solid #222;*/
}
nav ul ul li { background: #FFF;}
nav ul ul li a { color: #333; line-height: 1.2; padding: 8px 10px; margin-top:0; }
nav ul ul li a:hover {color: #333; text-decoration: underline;}

nav ul li ul li:hover { }

/* Background color change on Hover */
nav ul li a:hover { 
	/*background-color: none; */
	color: #222;
  transition: .5s;
}

/* 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: 36px; 
	z-index: 10;
  width: auto;
  box-shadow: 0px 5px 10px #ccc;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
nav ul ul li {
	width:170px;
	float:none;
	display:list-item;
	position: relative;
}

/* 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:-60px;
	/* 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: " \f107"; font-family:FontAwesome; }
li > a:only-child:after { content: ''; }

nav li a.current-menu {
	color:var(--dark-blue);
}

.stiky {
	position: -webkit-sticky;
	position: sticky;
	z-index: 100;
	top: 0px;
}

.inline {
	display: inline;
}

.logom {
	display: none;
}

.hidemobile {margin-right: 25px;}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

	.stiky {
		position: relative;
		z-index: 100;
		top: -10px;
	}
	.hidemobile {display: none;}
	.logo {
		display: none;
	}
	.logom {
    display: block;
    margin-top: 2px;
    padding: 0;
    width: 100%;
    text-align: center;
    height: 62px;
    position: fixed;
    z-index: 1000;
    background: var(--light);
    box-shadow: 0px 0px 10px #444;
    overflow: hidden;
    left: 0;
  }
  .logom img {
    width: auto;
    height: 50px;
  }

  nav {
    margin: 0;
  }
  nav a {padding: 8px 10px; color: #333}

  /* Hide the navigation menu by default */
  /* Also hide the  */
  .toggle + a{
    display: block;/**/
  }
  .menu {
    display: none;
  }

  /* Stylinf the toggle lable */
  .toggle {
    display: block;
    /*background-color: #254441;*/
    padding:8px 20px;  
    color:#ccc;
    font-size:17px;
    text-decoration:none;
    border:none;
    float: right;
    cursor: pointer;
    position: absolute;
    right: 5px;

  }
  .toggle-menu {
    display: block;
    /*background-color: #254441;*/
    padding: 18px 20px;  
    color: var(--dark);
    font-size:24px;
    text-decoration:none;
    border:none;
    float: left;
    left: 0px;
    cursor: pointer;
    position: fixed;
    z-index: 1001;
    font-weight: 100;
  }

  .toggle-menu:after {
    content: " \f037";font-family:FontAwesome; 
  }

  .toggle:hover {
    /*background-color: #000000;*/
  }

  /* Display Dropdown when clicked on Parent Lable */
  [id^=drop]:checked + ul {
    display: block;
    overflow: auto;
  }

  [id^=drop]:checked + ul.menu {
    display: block;
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow: scroll;
    padding-top:60px;
    background: #FFF;
  }
  li > .toggle:after { content: " \f107";font-family:FontAwesome; }
  li > a:after { content: "";}

  /* Change menu item's width to 100% */
  nav ul li {
    display: block;
    width: 100%;
    background: #FFF;
  }

  nav ul li:hover {
    
  }

  nav ul ul .toggle,
  nav ul ul a {
    padding: 0 40px;
  }

  nav ul ul ul a {
    padding: 0 80px;
  }

  nav a:hover,
  nav ul ul ul a {
    background: #FFF;
  }
  
  nav ul li ul li .toggle,
  nav ul ul a,
  nav ul ul ul a{
    padding:5px 20px;  
    color:#FFF;
    font-size:13px; 
  }
  
  nav ul li a:hover { 
    background-color: red; 
  }
  
  nav ul li ul li .toggle,
  nav ul ul a {
    border-bottom: 1px dotted #efefef;
  }
  nav ul ul li a:before {
  	content:'- ';
  	padding-left: 10px;
  }

  /* Hide Dropdowns by Default */
  nav ul ul {
    float: none;
    position:static;
    color: #FFF;
    /* has to be the same number as the "line-height" of "nav a" */
  }
    
  /* Fisrt Tier Dropdown */
  nav ul ul li {
    display: block;
    width: 100%;
  }

  nav ul ul ul li {
    position: static;
    /* has to be the same number as the "width" of "nav ul ul li" */ 

  }
  nav #search {
    margin: 5px 0 0 0;
    float: right;
    margin-right: 10px;
    color: var(--dark);
    display: block;
    position: fixed;
  }
}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}

}

#search {
  display: block;
  height:38px; 
  padding:8px 1%; 
  background:none; 
  font-size: 20px;
  cursor: pointer;
  float: right;
  z-index: 1000;
  position: absolute;
  top: 0;
  right: 0;
}
#search:hover {
  color: #444;
}
.modal {
  width: 100%;
  margin: 100px auto;
  padding:0;
  position: fixed;
  z-index: 100;
}

.modal .close {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 20px;
  right: 20px;
  opacity: 0.8;
  transition: all 200ms;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #FFF;
}

.modal .close:hover { opacity: 1; }

.modal .content {
  width: 90%;
  margin: 20vh 5%;
}

.modal .content input {
    width: 95%;
    padding: 8px 5px;
    border: 1px solid #555;
    border-radius: 3px;
    background: #333;
    color: #CCC;
}
.modal .content button {
    width: 5%;
    padding: 13px 0px;
    color: #333;
    background: none;
    border:none;
    cursor: pointer;
    position: absolute;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  transition: opacity 200ms;
  visibility: hidden;
  opacity: 0.6;
  z-index: 1000;
}

.overlay .cancel {
  float: right;
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 26px;
  color: var(--bg-white);
  width: auto;
  height: auto;
  cursor: pointer;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}