﻿.clear {
  clear: both;
}

/***** Start of primary nav ******/

.logo {
  max-width: 250px;
}

#menu-button {
  display: none;
}
nav.mobile {
  display: none;
}

nav.primary {
  padding: 0;
  display: inline-block;
  margin: 0;
  width: 100%;
  position: relative;
}
nav.primary ul {
  margin: 0;
  padding: 0;
}
nav.primary ul li {
  display: inline-block;
  margin: 0;
  list-style-type: none;
  width: auto;
}

nav.primary ul li a {
  color: #000;
  line-height: 60px;
  font-size: 16px !important;
  text-decoration: none;
  display: block;
  color: #ffffff;
  margin: 0;
  text-align: center;
  -webkit-transition: 0.4s ease-in;
  -moz-transition: 0.2s ease-in;
  -o-transition: 0.2s ease-in;
  transition: 0.2s ease-in;
  font-weight: 500;
  padding: 0 12px;
}

nav.primary ul li a:hover {
  z-index: 9999999999;
}

/* Appearance of the sub-level links */
nav.primary ul li li a {
  font-size: 16px;
  line-height: 28px;
  padding: 10px 35px;
  color: #000000;
  background-color: #ffffff;
  text-align: left;
  border-right: none;
  border-left: none;
  border-bottom: 1px solid #e5e5e5;
  transition: 0.3s;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover {
  background-color: #00355e;
  color: #00e175 !important;
}
/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
  display: none;
  position: absolute;
}
nav.primary ul ul ul {
  position: absolute;
  left: 100%;
  top: 0;
}
nav.primary ul li:hover > ul {
  display: block;
  line-height: 18px;
  z-index: 100;
}

nav.primary ul ul li {
  float: none;
  width: 270px;
  position: relative;
  margin: 0;
  display: block;
  top: 15px;
}

@media screen and (max-width: 1730px) {
  nav.primary ul li a {
    padding: 0 7px;
  }
}

@media screen and (max-width: 1575px) {
  nav.primary ul li a {
    font-size: 12px;
  }
}

@media screen and (max-width: 1575px) {
  nav.primary ul li a {
    font-size: 12px;
  }
}

@media screen and (max-width: 1155px) {
}

/******** End of primary Nav ***************/

@media screen and (max-width: 950px) {
  /*==============================
	Mobile Nav Styles			
================================*/
  nav.primary {
    display: none;
  }
  #menu-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
    background: #00355e;
    text-align: right;
  }
  #menu-button a {
    color: #fff;
    text-decoration: none;
    padding: 0 0 0 0.8em;
    font-weight: normal;
    margin-right: 10px;
  }
  #menu-button span {
    font-size: 16px;
  }

  .logo {
    width: 125px;
  }

  nav.mobile {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #00355e;
    z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
    overflow: hiden;
  }

  /* MENU HEADER SOCIAL MEDIA */
  nav.mobile .social-media {
    position: relative;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    word-spacing: 13px;
    padding: 0 0 0 15px;
    color: #ccc !important;
  }

  nav.mobile .social-media a:link,
  nav.mobile .social-media a:visited {
    color: #ccc;
    text-decoration: none;
  }
  nav.mobile .social-media a:hover,
  nav.mobile .social-media a:active {
    color: #fff;
    text-decoration: underline;
  }

  /* MENU HEADER STYLES */

  nav.mobile .logo {
    width: 175px;
  }
  nav.mobile .mobile_top {
    padding: 25px 15px;
  }

  /* MENU CLOSE 'X' BUTTON */

  .mobile-top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav.mobile .menu-toggle {
    color: #00e175 !important;
    font-size: 24px;
    font-weight: 300;
  }

  */ nav.mobile .menu-toggle:hover {
    /* Menu close button on hoveer */
    color: #86c94a;
  }

  /* MENU LIST STYLE */
  nav.mobile ul {
    list-style: none;
    font-weight: 300;
    margin: 0;
    padding: 0;
  }
  nav.mobile ul li {
    position: relative;
  }
  .mobile_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile_top img {
    max-width: 150px;
  }

  /* FIRST LEVEL */
  nav.mobile ul li a {
    position: relative;
    display: block;
    font-size: 15px;
    padding: 15px 35px;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    font-weight: 500;
    transition: 0.25s;
  }
  nav.mobile ul li a:hover {
    color: #00e175;
  }

  /* SECOND LEVEL */

  nav.mobile ul li li a {
    position: relative;
    display: block;
    text-decoration: none;
  }
  nav.mobile ul li li a:hover {
  }

  /* THIRD LEVEL */
  nav.mobile ul li li li:last-child {
    border: none;
  }
  nav.mobile ul li li li a {
    background: #555;
    position: relative;
    display: block;
    padding: 10px 10px 10px 25px;
    color: #ccc;
    text-decoration: none;
    border-left: 4px #555 solid;
  }
  nav.mobile ul li li li a:hover {
    background: rgba(85, 85, 85, 0.5);
  }

  nav.mobile ul li .click {
    /* dropdown menu idicator arrow be sure to include this image with your image files */
    position: absolute;
    display: block;
    cursor: pointer;
    z-index: 12399994;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    padding: 22px 20px;
    color: #fff;
    font-size: 14px;
    color: #00e175 !important;
  }

  /* FONT AWESOME ICONS */
  nav.mobile ul li a .fa {
    width: 25px;
    font-weight: 100;
    padding: 8px 3px;
    margin: 0 6px 0 0;
    text-align: center;
    background: #292929;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  }

  nav.mobile ul li .fa-chevron-down {
    color: #ffffff;
  }

  .mobile:not(.open) + .menu-toggle.exit-click {
    display: none;
  }
  .mobile.open + .menu-toggle.exit-click {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 499;
    pointer-events: none;
    background: rgba(36, 32, 33, 0.5);
    opacity: 0;
    transition: ease opacity 0.3s;
  }
  /******** End of Toggle Overlay ***************/

  /******** Menu Overlay ***************/

  .mobile.open + .menu-toggle.exit-click {
    pointer-events: auto;
    opacity: 1;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.4);
  }

  body.menu-toggle.exit-click {
    overflow: hiden !important;
  }
}

@media screen and (max-width: 1020px) {
  #menu-button {
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  #menu-button {
    width: 100%;
  }
}
