#menu {
  height: 41px;
  background-color: white;
  color: white;
  margin: 0px;
  padding: 0px;
  left: 0px;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  border-bottom: solid 1px #DBD8D6;
}

#menu a:link {
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  font-size: 12pt;
}

#menu a:visited {
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  font-size: 12pt;
}

#menu table {
  margin: 0px auto 0px auto;
  height: 41px;
//  height: 100%;
  width: 100%;
//  max-width: 900px;
  border-collapse: collapse;
  border-spacing: 0px;
//  border: solid 1px blue;
}

#menu table td {
  box-sizing: border-box;
  vertical-align: middle;
  text-align: center;
  padding: 0px;
  font-size: 18px;
  margin: 0px;
  height: 40px;
  max-height: 40px;
}

#menu table tr td:first-child {
  width: 20%;
  height: 40px;
  max-height: 40px;
  padding-bottom: 0px;
  vertical-align: bottom;
}

#menu table tr td:first-child, #smalllogo {
  text-align: left;
  padding: 8px;
  vertical-align: middle;
}

#menu #smalllogo img {
  padding: 0px;
  margin-bottom: 0px;
  vertical-align: middle;
}

/*
#menu table tr td:last-child {
  text-align: right;
  padding: 0px;
  margin: 0px;
  border: solid 3px lime;
}
*/

#menu span {
  display: inline-block;
  cursor: pointer;
  z-index: 101;
}

#menu span.mainitem {
  width: 100%;
  height: 40px;
  padding-top: 10px;
  margin: 0px;
  box-sizing: border-box;
}

#menu span.mainitem:hover {
  color: #333333;
 padding-top: 9px;
}

#menu span.mainitem:hover a {
  color: #333333;
/*   padding-top: 9px; */
}

#menu span.mainitem div {
  font-size: 16px;
  vertical-align: top;
  text-align: left;
  display: none;
  z-index: 102;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  box-shadow: 0px 4px 4px rgba(0,0,0,.25);
}

#menu span.mainitem:hover div{
/*  display: block; */
  left: 0px;
  top: 40px;
  width: 100%;
  position: absolute;
  color: #145E8F;
/*  background-color: #efefef; */
  background-color: rgba(239,239,239,.95);
  padding: 10px;
  text-transform: none;
  margin: 0px auto auto auto;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: solid 1px #145E8F;
  transition-duration: 1s;
}

#menu span.mainitem:hover div a{
  color: #145E8F;
}
 
#menu span div span.ddmenuholder {
  display: flex; 
  justify-contents: center; 
  width: 100%; 
  max-width: 960px; 
  margin-left: auto; 
  margin-right: auto; 
  vertical-align: top;
}

#menu #productsmenu span.mainitem span.ddmenuholder {
  max-width: 700px;
  justify-contents: left; 
  margin-left: 10%;
  margin-right: auto;
}

#menu #purchasemenu span.mainitem span.ddmenuholder {
  max-width: 700px;
  justify-contents: left; 
  margin-left: 30%;
  margin-right: auto;
}

#menu span div a:link {
  color: #145E8F;
  text-decoration: none;
  font-weight: normal;
}

#menu span div a:visited {
  color: #145E8F;
  text-decoration: none;
}

#menu span div a:hover {
  color: #000000;
  text-decoration: underline;
}

#menu span div span.categories {
/*  background-color: #efefef; */
  background-color: rgba(239,239,239,0);
  display: inline-block;
  vertical-align: top;
  margin: 0px auto;
  border-left: dotted 1px #145E8F;
  border-bottom: none;
  padding: 0px 10px;
}

#menu span div span.categories:first-child {
  border-left: none;
}

#menu td:hover {
  background-color: #EFEFEF;
}

#menu td:hover a {
  color: #145E8F;
}

#menu span:hover a {
  color: #145E8F;
 background-color: rgba(239,239,239,0);
}


#menu span div p.substuff {
  margin: 2px 0px;
  padding-left: 0px;
  text-transform: none;
}

#menu span div p.substuff a {
  font-size: 14px;
  color: #145E8F;
  padding-bottom: 8px;
  display: inline-block;
  margin-left: 8px;
}

#menu span div p.substuff a:last-child {
  padding-bottom: 16px;
}


.bump {
  display: inline-block;
  padding-bottom: 16px;
}

#mobileNav {
  display: none;
}

#mobileNav #cartstuff {
  display: none;
}

@media screen and (max-width: 760px) {
  #fixedheader {
    width: auto;
  }

  #mobileNav {
    color: #236194;
    display: inline-block;
    height: 38px;
    width: 100vw;
    font-size: 20px;
    background-color: #efefef;
    overflow-x: hidden;
  }

  #mobileNav #mobilesearch, #mobileNav #mobilesmalllogo, #mobileNav #cartstuff, #mobileNav #mobilenavbar {
    display: inline-block;
  }

  #mobileNav #mobilesearch, #mobileNav #cartstuff, #mobileNav #mobilenavbar {
    position: absolute;
  }

  #mobileNav #msearchmenu {
    display: none;
  }

  #mobileNav #mobilesmalllogo {
    padding-top: 10px;
    width: 100%;
    text-align: center;
  }

  #mobileNav #mobilesmalllogo img {
    height: 18px;
    margin: auto;
  }

  #mobileNav #mobilesearch {
    cursor: pointer;
    left: 45px;
    top: 8px;
    z-index: 1000;
  }

  #mobileNav #mobilenavbar {
    cursor: pointer;
    left: 15px;
    top: 8px;
    z-index: 1001;
  }

  #mobileNav #cartstuff {
    right: 0px;
    top: 5px;
    z-index: 1000;
  }

  #mobileNav #cartstuff .header-wrapper .account-wrapper {
    padding-left: 5px;
    z-index: 1002;
  }

  #mobileNav #cartstuff .header-wrapper .account-wrapper .account-block {
    right: -28px;
  }

  #mobileNav #cartstuff .header-wrapper .account-wrapper .account-content {
    margin-left: -20px;
    width: 100%;
  }

  #mobileNav #cartstuff .header-wrapper .account-wrapper .accountLabel {
    margin-right: 0px;
  } 

  #mobileNav #mobilesearch div, #mobileNav #mobilenavbar div {
    display: none;
    width: 100vw;
    overflow-x: hidden;
    padding: 10px;
    z-index: 200;
    line-height: 2em;
    background-color: rgba(239,239,239,.9);  
  }

  #mobileNav #mobilesearch #msearchmenu {
    margin-left: -45px;
  }

  #mobileNav #mobilesearch form {
    padding-bottom: 5px;
    width: 100%;
  }

  #mobileNav #mobilesearch form input {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    line-height: normal;
  }

  #mobileNav #mobilenavbar div {
    text-align: center;
  }

  #mobileNav #mobilenavbar #mnavmenu {
    margin-left: -15px;
    font-size: 20px;
    font-family: 'Roboto', Arial, sans-serif;
  }

  #mobileNav #mobilenavbar #mnavmenu a {
    font-size: 20px;
  }
}

#menu #cartstuff {
  text-align: right;
  margin: 0px 0px 0px 0px;
  padding: 0px;
}

#menu #cartstuff a {
/* these are the cart icons on the top right of the page*/
  padding: 0px;
  margin: 0px;
}

#menu #cartstuff a i.fa {
/* these are the cart icons on the top right of the page*/
  background-color: #efefef;
  padding: 0px;
  margin: 0px;
}

@media screen and (max-width: 760px) {

  #menu table tr td:first-child, #menu table tr td:last-child {
    width: 10%;
  }

  #menu #productsmenu span.mainitem span.ddmenuholder {
    max-width: 800px;
    justify-content: center; 
    margin-left: 0px;
    margin-right: auto;
  }

  #menu #purchasemenu span.mainitem span.ddmenuholder {
    max-width: 800px;
    justify-content: center; 
    margin-left: 0px;
    margin-right: auto;
  }
}