/**
 * @project        stlouispoolconstruction
 * @description    Website for stlouispoolconstruction
 * @author         Stephen Flannery Jr. - Captiva Marketing
 * @build          Wed, Sep 12, 2018 8:40 AM
 * @copyright      Copyright (c) 2018, 
 *
 */
 
/* CSS Document */

/* CSS Document */

/* Flexnav Base Styles */

.flexnav,
.flexnav ul {
  list-style: none;
}

.flexnav {
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-height: 0;
  padding-left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.flexnav-show {
  max-height: 2000px;
  opacity: 1;
  -webkit-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  padding-bottom: 3rem;
}

.flexnav ul {
  padding-left: 0;
}

.flexnav ul.flexnav-show {
  padding-bottom: 0;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

.flexnav ul li ul li a {
  background: #bfbfbc;
}

.flexnav ul li ul li ul li a {
  background: #cbcbc9;
}

.flexnav li {
  font-size: 100%;
  position: relative;
  overflow: hidden;
}

.flexnav li a {
  position: relative;
  display: block;
  padding: .96em;
  z-index: 2;
  overflow: hidden;
  color: white;
  background: none;
  border-bottom: 1px solid #a2b8d3;
  font-family: 'Raleway', sans-serif;
  text-decoration: none;
  font-size: .875rem;
}

.flexnav li ul {
  width: 100%;
}

.flexnav li ul li {
  font-size: 100%;
  position: relative;
  overflow: hidden;
}

.flexnav li ul li a {
  display: block;
  background: none;
  color: white;
  border-bottom: 1px solid #a2b8d3;
}

.flexnav li ul.show li {
  overflow: visible;
}

.flexnav .touch-button {
  position: absolute;
  z-index: 999;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  display: inline-block;
  background: #acaca1;
  background: rgba(0, 0, 0, 0.075);
  text-align: center;
}

.flexnav .touch-button:hover {
  cursor: pointer;
}

.flexnav .touch-button .navicon {
  position: relative;
  top: 0.5rem;
  font-size: 12px;
  color: #a2b8d3;
  font-style: normal;
}

.menu-button {
  position: relative;
  display: block;
  padding: 0.5rem 1em;
  background: none;
  color: #a2b8d3;
  cursor: pointer;
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
}

.menu-button .touch-button {
  background: transparent;
  position: absolute;
  z-index: 999;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: inline-block;
  text-align: center;
  display: none;
}

.menu-button .touch-button .navicon {
  display: none;
}

/* Subnav Styles */

.subnav h2 {
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.875rem;
}

.subnav h2 a {
  color: #022754;
}

.subnav ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.subnav ul li ul {
  display: none;
  padding-left: 10px;
}

.subnav ul li ul li a {
  color: #6f6f6f;
}

.subnav ul li a {
  color: #022754;
  text-decoration: none;
  font-size: 1rem;
}

.subnav ul li a:hover {
  color: #4c80d4;
}

@media only screen and (min-width: 48rem) {
  .flexnav {
    overflow: visible;
    max-height: none;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .flexnav-show {
    padding-bottom: 0;
  }

  .flexnav li {
    position: relative;
    list-style: none;
    float: left;
    display: block;
    background: none;
    overflow: visible;
  }

  .flexnav li a {
    border-bottom: none;
    background: none;
    padding: .7rem .6rem;
    font-size: 1.125rem;
  }

  .flexnav li ul li > ul {
    margin-left: 100%;
    top: 0;
  }

  .flexnav li ul li::last-child a {
    border-bottom: none;
  }

  .flexnav li ul li:hover a {
    color: #022754;
  }

  .flexnav li ul.open {
    display: block;
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  .flexnav li ul.open li {
    overflow: visible;
    max-height: 100px;
  }

  .flexnav li ul.open ul.open {
    margin-left: 100%;
    top: 0;
  }

  .flexnav li > ul {
    display: none;
    position: absolute;
    top: auto;
    left: 50%;
    min-width: 300px;
    background: #4c80d4;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0;
  }

  .flexnav li > ul li {
    width: 100%;
  }

  .flexnav > li > a {
    padding: 1.75rem .65rem;
    -webkit-transition: all 350ms linear;
    -o-transition: all 350ms linear;
    transition: all 350ms linear;
  }

  .flexnav > li:hover > a {
    color: #a2b8d3;
  }

  .flexnav .touch-button {
    display: none;
  }

  .flexnav .touch-button .navicon {
    display: none;
  }

  .menu-button {
    display: none;
  }
}

@media all and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .flexnav > li > a {
    padding: 1.75rem .25rem;
    font-size: .75rem;
  }
}