/***********************
  BOOTSTRAP OVERRIDE
***********************/
.alert {
  margin-bottom: 0 !important;
}
.navbar {
padding: 0 !important;
}
.navbar-toggler {
  border-color: transparent !important;
}
.dropdown, .dropleft, .dropright, .dropup {
    display: none;
}

/********************
  QCONTENT OVERRIDE
*********************/
.q-cp-live-edit { /*ensures the edit button sitts below the floating MegaMenu and not behind it*/
    top: 120px !important;
    z-index: 10000 !important;
}

/********************
  NEW CUSTOM CODE
*********************/
/*SOCIAL SHARE ICONS
#share-buttons { /*the top, left & bottom container margin so the toggle btn isn't right up against it on mobile
    margin: 20px 0 20px 20px;  }

    #share-buttons i {
    	color: #24a8a8;
    	font-size: 1.3em;
    	text-decoration: none;
    	padding: 10px;
    	border: 0;
    	box-shadow: 0;
    	display: inline;  }
      #share-buttons i:hover {
    	  color: #66C6BA;	  }

    #share-buttons a {
    	text-decoration: none;	  }*/

/*MAIN NAVIGATION*/
#mainNavigation td {
        padding: 20px;
        text-align: center;
        max-width: 900px;    }
    #mainNavigation tr {
        background-color: #fff;
        display: inline;
        margin: 20px;    }
    .MenuItemMainNav {
    }

/*ACCORDION STRUCTURE & FUNCTION*/
.MegaMenuAccordion {
      background-color: #fff;
      text-transform: capitalize;
      cursor: pointer;
      padding: 0 20px;
      line-height: 1.8;
      width: 90%;
      border: none;
      text-align: left;
      outline: none;
      font-size: 15px;
      transition: 0.4s;
    }

    .active {
      background-color: #fff;
    }
    .MegaMenuAccordion:hover {
      background-color: #eee;
    }

    .MegaMenuPanel {
      padding: 0 18px;
      display: none;
      background-color: white;
      overflow: hidden;
    }
    .MegaMenuPanel p {
      padding-left: 20px;
    }

/*ADA & SEARCH ICONS
#adaSearchIcons {
    margin-right: 20px;
  }
  #adaSearchIcons i {
        color: #24a8a8;
      	font-size: 1.3em;
      	text-decoration: none;
      	padding: 10px;
      	border: 0;
      	box-shadow: 0;
      	display: inline;    }
      #adaSearchIcons i:hover {
        color: #66C6BA;	  }

    #adaSearchIcons a {
    	text-decoration: none;	  }

    #google_translate_element {
      float: left;
      position: absolute;
      top: 20px;
      /*left: -25px;   }
    .goog-te-gadget {
      font-size: 0 !important;
    }*/

/****************
  MEGA MENU STYLE
****************/
* {   box-sizing: border-box;  }

  body {
      margin: 0;
    }
  .fixed-top-zero { /*this is a copy of Bootstrap's "fixed-top" class, but I removed "top: 0" so the alert bar shows when engaged*/
      position: fixed;
      /* top: 0; */
      right: 0;
      left: 0;
      z-index: 1030;
  }

  .navbarMegaMenu {
      overflow: hidden;
      /*background-color: CadetBlue; FOR TESTING*/
      font-family: 'Montserrat', sans-serif;/*used in the logo of the Town name*/
      text-transform: uppercase;
  }

  .navbarMegaMenu a {
      font-size: 1rem;
      /*color: white; FOR TESTING WITH BG COLOR*/
      text-align: center;
      /*padding: 14px 16px;*/
      text-decoration: none;
  }
  /*.bulletedList a { /*powers the ADA section
      float: none;
      font-size: 14px;
      text-align: left;
      padding: 0;
  }*/

  .dropdownMegaMenu {
      float: left;
      overflow: hidden;
  }

  .dropdownMegaMenu .dropbtnMegaMenu {
    text-align: center;
      font-size: 14px;
      line-height: 2.5;
      border: none;
      outline: none;
      color: #0161a6; /*top nav portal text color*/
      padding: 20px 0; /*ensures the button touches the edge of the dropdown pannel for mouse-over effect*/
      min-width: 100px; /*keeps the main categories from being squished too small*/
      height: 80px; /*added to balance with the logo to the left*/
      background-color: inherit;
      font: inherit;
      margin: 0;
  }
  .mobileMenu-PortalTitles{
    color: #0161a6 !important;
    /*font-size: 1.5rem;*/
    font-size: 1.2rem;
  }
  .mobileMenu-ColumnTitles {
    color: #999999 !important;
    font-size: 1.2rem;
    font-weight: 500;
  }
  .mobileMenu-ColumnList {
    color: #000 !important;
    max-width: 200px;
    display: block;
    position: relative;
    top: 8px;
    left: 20px;
    font-size: 1rem;
    font-weight: 200;
  }


/* TOP NAV-TABS HOVER */
.navbarMegaMenu a:hover, .dropdownMegaMenu:hover .dropbtnMegaMenu {
      color: #061939; /*gold #ffc107 on-hover "ACTIVE TAB" text color of main portal titles*/
      /*background-color: teal; FOR TESTING*/      }

  .dropdown-contentMegaMenu {
  /*the entire drop-down pannel/container of the MegaMenu*/
      display: none; /*stays hidden until a mouse hovers over it*/
      position: absolute;
      /*background-color: #0161a6d9; transparent blue*/
      /*background-color: #fff;*/
      margin: auto;
      width: 100%;
      /*width: 80%;*/
      padding-bottom: 20px; /*adds a space after the last item in each column list*/
      top: 100%; /*100% of the bar - nests the pannel right at the bottom edge of the navbar*/
      right: 0;
      /*left: 0;*/
      /*box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.2);*/
      z-index: 12;  }
  .columnMegaMenu {
  /*the drop-down pannel columns of each main topic*/
    background-color: #edf2f7; /*grey*/
    max-height: 550px;
    overflow: auto; /*if they add too much crap, a scroll bar will appear*/
    border-bottom: 5px solid #0161a6;
    box-shadow: 9px 9px 8px rgba(0,0,0,0.2);
    }

    /*  #adaSearchIcons .dropdown-contentMegaMenu {
          display: none; /*stays hidden until a mouse hovers over it
          /*text-align: center; added to center translator and ADA text
          position: absolute;
          background-color: #fff;
          min-width: 250px;
          min-height: 120px; /*ensures search bar and translator space is not too big
          right: 10px;
          width: auto;
          left: none !important;
          box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.2);
          z-index: 1;  }
        #adaSearchIcons .dropdownMegaMenu:hover .dropdown-contentMegaMenu {
            display: block;
        }

/* CATEGORY HEADER */
  .dropdown-contentMegaMenu .headerMegaMenu {
      background: pink;
      padding: 5px 15px;
      margin: 0;
      color: red;  }

.dropdownMegaMenu:hover .dropdown-contentMegaMenu {
    display: block; /*displays the list when the mouse hovers over the main portal item*/
}
.MenuGroupcategoryMegaMenu img { /*"MenuGroup" is generated by QContent JS and "categoryMegaMenu" is the class I added to remove generated caret*/
    display: none;
}

/* Create three equal columns that floats next to each other */
.three {
  width: 33.33%;
}
/* Create two equal columns that floats next to each other */
.two {
  width: 50%;
}

  .columnMegaMenu {
    /*  float: left;
      padding-left: 14px;
      /*background-color: #fff; BGcolor for the category options*/
      min-height: 210px;
  }
  /* Create single column for search bar */
  .fullWidthColumnMegaMenu {
      float: left;
      width: 95%;
      margin: auto;
      padding-top: 20px;
      padding-bottom: 20px;
      padding-left: 14px;
      background-color: #fff;
      /*BGcolor for the category options*/
  }
/* MAIN-CATEGORY TITLES */
.categoryMegaMenu {
  cursor: none;
    float: none;
    color: #000;
    font-size: 20px;
    padding-left: 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.columnMegaMenu h4 { /*all that's NOT generated in the MegaMenu (column titles)*/
    font-family: 'Montserrat', sans-serif !important;
    /*font-family: 'PT Serif', serif !important;*/
    color: #061939; /*grey #6c757d LIST text color*/
    font-size: 1rem !important;
    cursor: context-menu;
    float: none;
    padding-top: 20px;
    /*padding-left: 16px;*/
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.columnMegaMenu p { /*all that's NOT generated in the MegaMenu (column titles)*/
    cursor: context-menu;
    float: none;
    /*color: #6c757d; grey LIST text color*/
    color: teal;
    font-size: 0.9rem;
    font-style: italic; /*describes a MegaMenu category*/
    padding-left: 16px;
    padding-right: 16px; /*neatly wraps the text*/
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.columnMegaMenu a { font-family: 'PT Serif', serif !important; }
.columnMegaMenu td { /*all that's JS generated in the MegaMenu (lists and titles)*/
    cursor: pointer;
    float: none;
    color: #061939;
    /*color: #6c757d; grey LIST text color*/
    text-transform: capitalize;
    margin: 0 10px 0 0;
    padding: 2px;
    /*padding-left: 16px;
    margin-bottom: 8px;*/
    text-decoration: none;
    /*display: block;*/
    text-align: left;
}

.MenuGroupcolumnMegaMenu td { /*ensures the color of the a tags is a charcoal grey*/
    color: #212529;
    line-height: 1.5;
}
.MenuGroupcolumnMegaMenu td:hover { /*the JS generated "MenuGroup" for the folder LIST in the MegaMenu (ex: folder titles)*/
    color: #0161a6; /*LIST text hover color*/
    background-color: #f7f7f7; /*very light grey BG for each list item*/
  }

.MenuGroupcategoryMegaMenu td { /*the TITLE where JS generated " CustomStyle="categoryMegaMenu" " was placed*/
    color: IndianRed; /*large title color*/
    cursor: text;
}
.columnMegaMenu img { /*this removes the JS generated caret from the sub-folders*/
  display: none;
}
.columnMegaMenu a:hover {
    /*background-color: #fff;*/
}

/* Clear floats after the columns */
.rowMegaMenu:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1199px) {
  /*@media screen and (max-width: 990px) {*/
  /*.navbarMegaMenu a {
      display: none;    }*/
  .hideBTNstyle {
      border: 0;
      background-image: none;
      background-color: transparent;    }
  button:focus { /*this removes that ugly blue default border on-click*/
      outline: none;
    }
  .columnMegaMenu {
      min-height: 60px;    }
  .dropdownMegaMenu { /*makes the ADA options stack full width on tablets and phones*/
    width: 100%;
    margin: 10px auto;
    }
  .dropdownMegaMenu .dropbtnMegaMenu {
      text-align: left;  }
  h4 {
      font-size: 1rem;
      line-height: 1;      }
  .dropdown-contentMegaMenu {
    position: static;
    background-color: transparent;
	  box-shadow: none;
    position: static;
        left: 100px; /*added for mobile view of dropwdown to not cover up single-column titles below*/
        min-width: 200px; /*added to keep Google Translate from not having a wide enough container*/
        width: auto;
        /*margin-right: 10px;*/
      }
      #adaSearchIcons .dropdown-contentMegaMenu { /*ADA options stack on mobile*/
          display: block;
          position: relative;
          background-color: #fff;
          min-width: 300px;
          min-height: 100px;
          right: none;
          width: 100%;
          margin: auto;
          left: none !important;
          box-shadow: none;
          z-index: 1;
      }
      .dropdownMegaMenu .ADAbtnMegaMenu {
        display: none; /*ADA icons dissapear on mobile*/
      }

      .align-items-center {
      align-items: start !important;
      }
      .fixed-top-zero {
          position: relative;
        }
      .dropdown-contentMegaMenu {
          top: auto;
        }
      li.dropbtnMegaMenu { /*make the MegaMenu disappear so the mobile menu shows instead*/
          display: none;
        }

      /*for the Bootstrap mobile dropdown items*/
      .dropdown-menu {
          border: 0;
        }
        .dropdown, .dropleft, .dropright, .dropup {
          display: block;
          position: relative;
        }
        .MenuItemcolumnMegaMenu td {
            display: block;
            line-height: 2rem;
            margin: 0 10px; /*to indent the sub-folder list*/
            color: #6c757d;
        }
        .MenuGroupcolumnMegaMenu td { /*generated JS list in the mobile Bootstrap dropdown list*/
          display: block;
          line-height: 2rem;
          padding-left: 10%;
          color: #6c757d;
        }
        #adaSearchIcons .dropdown-contentMegaMenu {
            min-width: none; /*was 250px*/
            right: none; /*was 10px*/
            left: 10px !important;
        }
        #share-buttons { /*the left margin so off for mobile*/
            margin: 20px 0;  }
        #adaSearchIcons { /*the top & bottom margins are so on for mobile*/
            margin: 20px 0 20px 0;  }


}
@media screen and (max-width: 600px) {
    .columnMegaMenu {
        width: 100%;
        height: auto;
    }
}