div#vwrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
}

div#wrap {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1 1 auto;
}

/* ------------------------------------------- */
/* Styling for elements defined in header      */
/* ------------------------------------------- */

header {
  display: flex;
  padding: 0.5em;
  height: 80px;
  color: white;
  background-color: #06778F;
  width: 100%;
  max-width: 980px;
  flex: 0 0 80px;
  margin: 0 auto;
}
header .headerBox {
  text-align: center;
  /*margin: 0.5em; */
  max-height: 100px;
  flex: 1 1 auto;
}
.headerBox h1 {
  color: #FFFFFF;
  margin-bottom: 7px;
}

#header1 {
  background-color: #06778F;
  text-align: left;
  padding-left: 1em;
  width:0;
}
#header2 {
  /*background-color: #81B2C0;*/
  display: flex;
  flex-grow: 4;
  align-items: center;
}
#header3 {
  /*background-color: #034250;*/
  text-align: right;
  padding-right: 1em;
  width:0;
}

header::after {
  position: absolute;
  top: 0px;
  left: 0;
  height: 160px;
  background-color: #06778F;
  width: 100%;
  z-index: -1;
  content: " ";
}

/* ------------------------------------------- */
/* Styling for elements defined in footer      */
/* ------------------------------------------- */

/* See https://stackoverflow.com/questions/55541850/how-to-make-footer-stay-at-bottom-of-the-page-with-flex-box */

div#foot {
  margin-top: auto;
}

footer {
  display: flex;
  height: auto;
  color: #FFFFFF;
  max-width: 980px;
  width: 980px; /* Workaround for IE bug with flexbox and max-width, see media query below */
  margin: 1em auto;
  font-family: "UbuntuRegular", "Lucida Grande", Verdana, Arial;
}
footer a {
  color: #DDDDDD !important;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

footer .footerBox {
  flex: 1 1 auto;
  padding: 0 1%;
}
#footer1 {
  background-color: #06778F;
  margin-right: 1em;
  flex: 0 1 25%;
  /*min-width: 20%*/
}
#footer2 {
  background-color: #81B2C0;
  flex: 0 1 50%;
}
#footer3 {
  background-color: #034250;
  margin-left: 1em;
  flex: 0 1 25%;
  /*min-width: 20%*/
}
footer div.agency_logos {
  float: right;
  height: 30px;
}
footer div.agency_logos img {
  position: relative;
  height: 20px;
  float: right;
}

footer div.agency_logos_left {
	float:left;
	height:30px;
}
footer div.agency_logos_left img {
	position: relative;
	height: 26px;
	top: -4px;
}

footer h2 {
  color: #FFFFFF;
  font-size: 1.0em;
  font-style: normal;
  letter-spacing: 0.1em;
  margin: 8px auto;
  padding: 0 0 5px 0;
  text-transform: uppercase;
  border-bottom: 2px solid #CCCCCC;
  /*max-width: 95%;
   text-align: left; */
}
footer p {
  /*max-width: 95%;*/
  margin: 8px auto;
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
}
#policy_box {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 2.2em;
  font-size: 90%;
}

/* ------------------------------------------- */
/* Styling for narrow screens                  */
/* ------------------------------------------- */

@media all and (max-width: 980px) {
  /* Workaround for an IE bug with flexbox and max-width */
 footer {
   width:auto;
 }
}

@media all and (max-width: 900px) {
  header {
    flex-direction: column;
    height: auto;
  }

  .headerBox {
    margin: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .headerBox img {
    display:block;
    margin-left:auto;
    margin-right: auto;
  }

  #header1 {
    padding-left: 0;
  }
}

@media all and (max-width: 600px) {
  footer {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  }
  .footerBox {
    margin: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
  
}

