.mflex-hero {
  background: url('https://hd.unsplash.com/photo-1454165804606-c3d57bc86b40');
  background-size: cover;
  position: relative;
}

/*
Blueish tint overlay
*/
.mflex-hero:after {
  content: '';
  background: #fff;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

/* 
Making sure everything in .hero sits above our :after elements 
*/
.mflex-hero * {
  position: relative;
  z-index: 1;
}

#mflex-masthead {
padding: 1em 0px 1.3em;
  position: relative;
}

#mflex-masthead.is-active {
  /*box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);*/
}

/*
Using this method because browsers can transition opacity very cheaply as opposed to using background: rgba
https://www.html5rocks.com/en/tutorials/speed/high-performance-animations/
*/
#mflex-masthead:after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mflex-masthead.is-active:after {
  opacity: 1;
}

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.mflex-hamburger {
  background-color: transparent;
  border: 0;
  color: #222;
  cursor: pointer !important;
  display: inline-block;
  float: right;
  font: inherit;
  margin: 0;
  overflow: visible; 
  outline: none;
  padding: 0;
  text-transform: none;
  transition: opacity 0.15s;
  -webkit-appearance: none;
}
.mflex-hamburger i{
  font-size: 32px;
}

.mflex-hamburger:hover {
  opacity: 0.7; 
}

.mflex-hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative; 
}

.mflex-hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px; 
}

.mflex-hamburger-inner, 
.mflex-hamburger-inner::before, 
.mflex-hamburger-inner::after {
  width: 30px;
  height: 2px;
  background-color: #222;
  border-radius: 4px;
  position: absolute;
  transition-property: -webkit-transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
  transition-duration: 0.15s;
  transition-timing-function: ease; 
}

#mflex-masthead.is-active .mflex-hamburger-inner, 
#mflex-masthead.is-active .mflex-hamburger-inner::before, 
#mflex-masthead.is-active .mflex-hamburger-inner::after {
    background-color: #000;
}

.mflex-hamburger-inner::before, 
.mflex-hamburger-inner::after {
  content: "";
  display: block; 
}

.mflex-hamburger-inner::before {
  top: -6px; 
}

.mflex-hamburger-inner::after {
  bottom: -6px; 
}

/*
 * Boring
 */
.mflex-hamburger--boring .mflex-hamburger-inner, 
.mflex-hamburger--boring .mflex-hamburger-inner::before, 
.mflex-hamburger--boring .mflex-hamburger-inner::after {
  transition-property: none; 
}

.mflex-hamburger--boring.is-active .mflex-hamburger-inner {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg); 
}

.mflex-hamburger--boring.is-active .mflex-hamburger-inner::before {
  top: 0;
  opacity: 0; 
}

.mflex-hamburger--boring.is-active .mflex-hamburger-inner::after {
  bottom: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg); 
}

.mflex-hamburger-label {
  color: #fff;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-left: 0.3125em;
  text-transform: uppercase;
}

#mflex-masthead.is-active .mflex-hamburger-label {
  color: #000;
}

.mflex-hamburger-box,
.mflex-hamburger-label {
  display: inline-block;
  vertical-align: middle;
}

#mflex-site-nav {
  clear: both;
  display: none;
  flex-direction: column; 
  
  overflow: hidden;
  padding-top: 2.5em;

}

#mflex-site-nav.is-active {
    width: 100%;
    z-index: 9999999;
    position: absolute;
    top: 80px;
    left: 0;
	/*padding: 30px 0px 70px;*/
	padding: 30px 0px 120px;
    background: #fff;
    height: auto;
    overflow: visible;
    display: block;
}
#mflex-site-nav .mflex-col { 
  padding-bottom: 2.5em;
} 

@media screen and (min-width: 550px) {
  #mflex-site-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  #mflex-site-nav .mflex-col {
    flex: 0 0 50%;
  } 
}

@media screen and (min-width: 768px) {
  #mflex-site-nav .mflex-col {
    flex: 0 0 33.333333333%;
  } 
}

@media screen and (min-width: 960px) {
  #mflex-site-nav {
    flex-wrap: nowrap;
  }
  
  #mflex-site-nav .mflex-col {
    flex: 0 0 20%;
  } 
  
  #mflex-site-nav .mflex-col:last-child {
    display: flex;
    justify-content: flex-end;
  }  
}

#mflex-site-nav h4 {
 letter-spacing: .5px;
  /*text-transform: uppercase;*/
}

.titletext {
	
	font-size: 1.5rem!important;
}

#mflex-site-nav ul {
  list-style-type: none;
  margin-top: 0em;
}

#mflex-site-nav li {
  margin-bottom: 0.45em;
}


#mflex-site-nav li a {
  /*color: #b4b9ba;*/
	  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
	font-weight: 600;
	letter-spacing: .3px;
}

#mflex-site-nav li a:hover,
#mflex-site-nav li a:focus {
  color: #686d6e;
}

#mflex-site-nav .mflex-social {
  margin: 0;
  overflow: hidden;
}

#mflex-site-nav .mflex-social li {
  float: left;
  margin: 0 0.3125em;
  width: 32px;
  height: 32px;
}

#mflex-site-nav .mflex-social li svg {
  display: block;
  fill: #b4b9ba;
  width: 100%;
  height: 100%;
  transition: fill 0.3s ease;
}

#mflex-site-nav .mflex-social li:hover svg {
  fill: #686d6e;
}

#mflex-masthead-search {
  float: right;
  margin-top: 0.625em;
  width: 100%;
  max-width: 14em;
  position: relative;
  -webkit-appearance: none;
}

#mflex-masthead-search input {
  background: transparent;
  border: none;
  border-color: #fff;
  border-style: solid;
  border-width: 1px;
  border-radius: 50px;
  outline: none;
  width: 100%;
  padding: 0.75em 1.125em;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}

#mflex-masthead-search button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1em;
  padding: 0;
  position: absolute;
  top: 50%;
  right: 0.75em;
  transform: translateY(-50%);
  -webkit-appearance: none;
}

#mflex-masthead.is-active #mflex-masthead-search button {
  color: #b4b9ba;
}

#mflex-masthead.is-active #mflex-masthead-search input {
  border-color: #b4b9ba;
}

#mflex-masthead-search ::-webkit-input-placeholder {
    color:    #fff;
}

#mflex-masthead-search :-moz-placeholder {
   color:    #fff;
   opacity:  1;
}

#mflex-masthead-search ::-moz-placeholder {
   color:    #fff;
   opacity:  1;
}

#mflex-masthead-search :-ms-input-placeholder {
   color:    #fff;
}

#mflex-masthead.is-active #mflex-masthead-search ::-webkit-input-placeholder {
    color:    #b4b9ba;
}

#mflex-masthead.is-active #mflex-masthead-search :-moz-placeholder {
   color:    #b4b9ba;
   opacity:  1;
}

#mflex-masthead.is-active #mflex-masthead-search ::-moz-placeholder {
   color:    #b4b9ba;
   opacity:  1;
}

#mflex-masthead.is-active #mflex-masthead-search :-ms-input-placeholder {
   color: #b4b9ba
}

#mflex-masthead .mflex-col {
  opacity: 0;
}

#mflex-masthead.is-active .mflex-col {
  transform: translateY(0px);
  transition: opacity 0.0s ease;
  animation: mflex-fade-in-stagger 0.0s ease forwards;
}
/*
#mflex-masthead.is-active .mflex-col:nth-child(1) {
    -webkit-animation-delay: 0;
}

#mflex-masthead.is-active .mflex-col:nth-child(2) {
    -webkit-animation-delay: 0.1s;
}

#mflex-masthead.is-active .mflex-col:nth-child(3) {
    -webkit-animation-delay: 0.2s;
}

#mflex-masthead.is-active .mflex-col:nth-child(4) {
    -webkit-animation-delay: 0.3s;
}

#mflex-masthead.is-active .mflex-col:nth-child(5) {
    -webkit-animation-delay: 0.4s;
}
*/
@mflex-keyframes mflex-fade-in-stagger {
  to {
    opacity: 1;
    transform: translateY(0); 
  }
}
