*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* VVVVVVVVVV START OF HEADER VVVVVVVVVV*/
header {
    display: block;
    padding-left: 5rem;
}

.header-img{
    top:0;
    left:0;
    width: 100%;
    margin: 0;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
}

.header-img {
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
}

h1 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.sub-heading {
    text-align: center;
}

h4 {
    text-align: center;
}
/* ^^^^^^^^^^ END OF HEADER ^^^^^^^^^^*/

/* VVVVVVVVVV START OF NAVBAR VVVVVVVVVV*/
/*ADAPTED FROM: http://codepen.io/xWaZzo/pen/BKZpQE*/
.nav-icon {
    position: relative;
    text-align: center;
    vertical-align: middle;
    font-size: 2rem;
}

.main-nav {
    background: #ECC264;
    border-right: 1px solid #e5e5e5;
    position: fixed;
    z-index: 1000;
}
.main-nav>ul {
    margin: 0rem 0rem;
}

nav ul,
nav li {
    outline: 0;
    margin: 0;
    padding: 0;
}
.main-nav li:hover>a,
nav.main-nav li.active>a {
    color: #fff;
    background-color: #919191;
}

.main-nav .nav-text, .main-nav li>a {
  font-family: 'Roboto', sans-serif;
}

.main-nav li>a {
      border-collapse: collapse;
      border-spacing: 0;
      color: white;
      font-size: 1.03rem;
      text-decoration: none;
}

.nav-logo {
    max-width: 5rem;
}

/* ^^^^^^^^^^ END OF NAVBAR ^^^^^^^^^^ */



/* VVVVVVVVVV START OF SUB NAV VVVVVVVVVV*/
/* VVVVVVVVVV START OF SUB NAV VVVVVVVVVV */
.sub-nav {
    text-align: center;
    display: inline;
    padding: 0 0 0 5rem;
}

.sub-nav li {
    list-style-type: none;
    display: inline;
    width: 100%;
    margin: 0 -0.15rem;
}

.sub-nav-left {
    background-image: url(../img/sub-nav-left.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Roboto Medium', 'Roboto';
    line-height: 3em;
    width: 40%;
    min-width: 15rem;
    /*
    width: 30%;
    height: 5% !imporant;
*/
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    display: inline-block;
    margin: 0;
}

.sub-nav-right {
    background-image: url(../img/sub-nav-right.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Roboto Medium', 'Roboto';
    line-height: 3em;
    width: 40%;
    min-width: 15rem;
    /*
    width: 20em;
    height: 100%;
*/
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    display: inline-block;
    margin: 0 0 2rem 0;
    /*    margin-bottom: 2em;*/
}

.sub-nav-left,
.sub-nav-right {
    text-decoration: none;
}

.sub-nav-left:hover,
.sub-nav-right:hover {
    text-decoration: underline;
    opacity: 0.90;
    box-shadow: 0px 2.5px #919191;
}

/* END OF SUB NAV */
/* ^^^^^^^^^^ END OF SUB NAV ^^^^^^^^^^ */


/* VVVVVVVVVV START OF FOOTER VVVVVVVVVV */

.img-logo-footer {
    max-width: 5rem;
    padding-top: 0.9rem;
}

.footer-logo {
  align-self: center; 
}

.footer {
    margin-top: 2rem;
    background-color: #fef4ce;
}

.flex-footer {
    margin:0;
    color: #272d30;
    
}

.footer-headers {
    font-weight: bold;
}

.footer-icons {
    max-width: 10%;
}

.footer-icons-a {
    text-decoration: none;
    color: #272d30;
}

.footer-icons-a:hover {
    opacity: 0.75;
}

.footer-copyright {
    color: #696969;
    font-size: 0.8rem;
    text-align: center;
}

.flex-footer-copyright {
    padding-top: 1rem;
}

.footer-link {
  text-decoration: none;
  color: #1483FF;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ^^^^^ END OF FOOTER ^^^^^ */

@media (max-width: 46em) {
  .sub-nav li {
    margin: 0rem 0rem;
    padding: 0rem;
  }
}

@media (min-width:35.1em) {
  .nav-icon{
    display: table-cell;
    padding: 1.2rem 1rem 1.2rem 1rem;
    width: 5rem;
    height: 5rem;
  }
    
    .nav-text {
        padding: 0 1rem 0 0;
    }
  
  .main-nav:hover,
nav.main-nav.expanded {
    width: 15em;
    overflow: visible;
}
  
  .main-nav {
    top: 0;
    bottom: 0;
    height: 100%;
    left: 0;
    width: 5rem;
    overflow: hidden;
    -webkit-transition: width .05s linear;
    transition: width .05s linear;
    -webkit-transform: translateZ(0) scale(1, 1);
  }
  
  .main-nav li {
    position: relative;
    display: block;
    width: 15rem;
  }
  .main-nav li>a {
      position: relative;
      display: table;
      -webkit-transform: translateZ(0) scale(1, 1);
      -webkit-transition: all .1s linear;
      transition: all .1s linear;
  }

  .main-nav .nav-text {
      position: relative;
      display: table-cell;
      vertical-align: middle;
      width: 10rem;
  }

  .main-nav-current {
      color: #fff;
      background-color: #919191;
      z-index: -1;
  }

}


@media (max-width:35em) {

    .footer-icons-a {
        max-height: 0;
        margin: 0;
        padding: 0rem;
    }
    
    .nav-logo {
        max-width: 0;
    }
    
    .nav-icon {
        padding: 0;
        width: 3rem;
        height: 3rem;
    }

    
    .main-nav {
        background: #ECC264;
        border-right: 1px solid #e5e5e5;
        position: fixed;
        margin: 0;
        left: 0;
        bottom: 0;
        width: 100%;
/*        padding-bottom: 1rem;*/
    }
  
    .main-nav ul {
      display: table;
      width: 100%; 
    }
  
    .main-nav li {
      float: left;
      width: 25%;
      list-style-type: none;
      text-align: center;
    }
  
    .main-nav a {
      display: block;
      height: 74px;
    }
  
    .main-nav i, .main-nav span {
      display: block;
    }


    .nav-text {
        font-size:0.7rem;
    }
    
    .main-nav-current {
      background-color: #919191;
     padding-top: 1rem;
  }
    .has-subnav{
        padding-top: 1rem;
    }
    
    .main-nav li:hover>a,
nav.main-nav li.active>a {
    color: #fff;
    background-color: #ECC264;
}

}