/*-----------------------------------------------

Name:      Responsive Navigation responsive styles
Designer:  Bohnsack Media Design
Copyright: 2024 Bohnsack Media Design, All rights reserved.

----------------------------------------------- */
/* text and divider lines */
/* +/- button and hover */
/* background color */
/* All screen sizes
================================================== */
#toggle-button {
  display: none;
}
#home-btn {
  background-color: #ffffff;
}
#home-btn img {
  height: 65px;
  padding: 15px 25px;
}
header a {
  text-decoration: none;
  color: #008bcc;
  display: block;
}
header a:hover {
  text-decoration: none;
}
header nav {
  display: flex;
  align-items: center;
  width: 100%;
}
header .main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .main-nav ul li a {
  color: #ffffff;
}
header ul li {
  background: none;
  text-transform: uppercase;
  font-weight: 400;
}
header ul li ul li {
  text-transform: none;
  font-weight: normal;
}
header ul li:hover {
  background-color: #008bcc;
}
header ul li a {
  background: url("/images/arrow-down.webp") no-repeat 50% -50%;
  background-size: 15px;
}
/* highlight active nav item */
header ul li.active-item > a {
  background: url("/images/arrow-down.webp") no-repeat 50% 100%;
  background-size: 15px;
}
/* highlight active nav item */
header nav > ul li ul li.active-item a {
  background: url("/images/arrow-right.webp") no-repeat 100% 50% #008bcc;
  background-size: 15px;
}
/* highlight active nav item */
/*  Main Web View
================================================== */
@media screen and (min-width: 992px) {
  /* mobile button */
  nav .touch-btn {
    display: none;
  }
  /*.main-nav { display: block !important;} /* this style is needed in case a user hides the main nav in the mobile view then expands the window */
  /* ----------------------------------------------- primary level ----------------------------------------------- */
  nav ul {
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    justify-content: space-evenly;
  }
  nav ul li {
    position: relative;
    padding: 0;
    margin: 0;
  }
  nav > ul > li > a {
    padding: 5px 10px;
    min-height: 65px;
    display: flex;
    align-items: center;
  }
  nav > ul > li a:hover {
    background-color: #008bcc;
    color: #ffffff;
  }
  nav ul li:hover a {
    color: #ffffff;
  }
  nav > ul > li:last-child a {
    background-color: #ffffff;
    color: #008bcc;
    border-radius: 100px;
    min-height: auto;
    font-weight: 500;
    background-image: none;
    padding: 5px 15px;
  }
  nav > ul > li:last-child a:hover {
    background-color: #008bcc;
    color: #ffffff;
  }
  nav > ul > li:last-child:hover {
    border-radius: 100px;
  }
  /* ----------------------------------------------- secondary level ----------------------------------------------- */
  nav ul li ul {
    display: block;
    position: absolute;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    opacity: 0;
    -webkit-box-shadow: 5px 5px 10px rgba(50, 50, 50, 0.35);
    -moz-box-shadow: 5px 5px 10px rgba(50, 50, 50, 0.35);
    box-shadow: 5px 5px 10px rgba(50, 50, 50, 0.35);
    text-transform: none;
    left: 0;
    width: 200px;
  }
  nav ul li:hover > ul {
    max-height: 1000px;
    overflow: visible;
    margin: 0;
    opacity: 1;
  }
  nav ul li ul li {
    background-color: #008bcc;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f6b43f;
  }
  nav ul li ul li a {
    color: #ffffff;
    display: block;
    padding: 10px 15px;
  }
  nav ul li ul li a:hover {
    color: #ffffff;
    background-color: #f6b43f;
  }
  /* add arrow to parent items */
  ul li ul li a.parent {
    background: url(/images/arrow-parent.gif) no-repeat 97% 50%;
  }
  /* ----------------------------------------------- tertiary level ----------------------------------------------- */
  nav ul li ul li ul {
    float: left;
    position: absolute;
    left: 200px;
    top: 0;
    width: 0;
    margin: 0 0 0 -20px;
    border-left: 1px solid #f6b43f;
  }
  nav ul li ul li:hover > ul {
    margin: 0;
    width: 200px;
  }
  nav ul li ul li {
    width: 200px;
  }
}
/*  #Mobile View
================================================== */
/* Note: Design for a width of 320px */
@media only screen and (max-width: 991px) {
  #toggle-button {
    display: block;
  }
  header ul li a {
    background: url("/images/arrow-right.webp") no-repeat -50% 50%;
    background-size: 15px;
  }
  /* highlight active nav item */
  header ul li.active-item > a {
    background: url("/images/arrow-right.webp") no-repeat 100% 50%;
    background-size: 15px;
  }
  /* highlight active nav item */
  span.menu-toggle {
    margin: 5px;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    width: 50px;
    height: 50px;
    /*-webkit-border-radius: 40px;
    border-radius: 40px;*/
    display: block;
    overflow: hidden;
    /* comment these lines to change the +/- to an arrow (see also comments below)*/
    text-indent: -9999px;
    background: url(/images/pancake.gif) no-repeat 50% 0% #008bcc;
  }
  a.toggleMenu span.menu-toggle {
    /*-webkit-transform-origin:50% 50%;
			-ms-transform-origin:50% 50%;
			transform-origin:50% 50%;
			-webkit-transform:rotate(180deg);
			-ms-transform:rotate(180deg);
			transform:rotate(180deg);*/
    background-position: 50% 100%;
    /* this line is only needed if +/- is used instead of arrows */
  }
  a.toggleMenu.active span.menu-toggle {
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    background-position: 50% 0%;
    /* this line is only needed if +/- is used instead of arrows */
  }
  nav ul li {
    list-style: none;
    border-top: solid 1px #f6b43f;
    border-left: none;
    -webkit-border-radius: 0px !important;
    border-radius: 0px !important;
    padding: 5px 10px;
  }
  nav ul li a {
    color: #ffffff !important;
    padding: 4px 0px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  nav ul li ul {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    border-left: 5px solid #f6b43f;
  }
  nav > ul {
    position: absolute;
    z-index: 100;
    left: 0;
    right: 100%;
    top: 0;
    bottom: 0;
    background-color: #008bcc;
    overflow: hidden;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    margin-left: -200px;
    background: url("../images/smart-structures-logo-v2.svg") no-repeat #008bcc 50% 75%;
    background-size: 150px;
  }
  nav ul li ul li {
    border-top: dashed 1px #f6b43f !important;
  }
  nav > ul.active {
    right: 30%;
    margin-left: 0;
  }
  nav ul li.active > ul {
    max-height: 1000px;
  }
  span.touch-btn {
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    -webkit-border-radius: 30px;
    border-radius: 30px;
    display: block;
    overflow: hidden;
    /* comment these lines to change the +/- to an arrow (see also comments below)*/
    text-indent: -9999px;
    background: url("../images/plus-minus.gif") no-repeat 50% 0% #f6b43f;
    background-size: 30px;
  }
  /* Rotate arrow on click/tap */
  nav ul li.active > a.parent span.touch-btn {
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
    background-position: 50% 100%;
    /* this line is only needed if +/- is used instead of arrows */
  }
  /* nav highlight indicator */
  ul > li.active-item > a {
    border-bottom: none;
    background-color: #008bcc;
  }
  ul > li.active-item ul > li > a {
    border-bottom: none;
  }
}
/* css rules for ipad portrait */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation: portrait) {
  /* This fixes drop menus so they work on ipads */
  nav ul li ul {
    display: none;
  }
  nav ul li:hover > ul {
    display: block;
  }
}
/* css rules for ipad landscape */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation: landscape) {
  /* This fixes drop menus so they work on ipads */
  nav ul li ul {
    display: none;
  }
  nav ul li:hover > ul {
    display: block;
  }
}
