/*** Begin Main Styles for All Pages ***/


@font-face {
  font-family: Tolkien;
  src: url(../fonts/Tolkien.woff);
  src: url(../fonts/Tolkien.ttf);
}


@font-face {
  font-family: FontAwesome;
  src: url(../fonts/fontawesome-webfont.ttf);
}


html {
  height: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}


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


body {
  position: relative;
  background-color: #d8cbca;  
  padding-bottom: 11em;       /* added to make room for web links forms */  
  font-family: "Helvetica Neue", Arial, sans-serif; 
}

.banneritem a[target="_blank"]:after {
  content: none;
}

a[target="_blank"]:after {
  font-family: FontAwesome;
  content: " \f08e";
}
/*** End Main Styles for all Pages ***/


/*** Begin Header Styles ***/
#header {
  background-color: #56544E; 
  padding-top: 1%;
}


#header header {
  /*padding-top: 2%;  was 2rem*/
  background-size: cover;
  cursor: default; 
}


.logo_banner  {
  display: flex;
  max-width: 100%;
}


.empty {
  border-color: #56544E; 
  width: 20%;
  border-style: solid; 
}


.logo_img {
  border-radius: 50%;
  padding: 2px;
  border-style: dash;
  border-color: yellow;
  height: calc(1.5em + 8vw);
}


h1, h2 {
  margin: 0px 8px 0px 8px;
  font-size: 24px;
}


.title {
  font-size: calc(0.1em + 9vw);
  color: #ffffff;
  font-family: Tolkien,Arial,san-serif;
  line-height: 75%;
  margin-top: 8px;
}


.sub_title {
  font-size: calc(0.1em + 1.8vw);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  margin-left: 2%;
  line-height: 1.3;
}
/*** End Header Styles ***/
 

/*** Begin Underwriting Styles ***/
#underwriting {
  text-align: center;
}
/*** End Underwriting Styles ***/


/*** Article Styles ***/  
#backdrop {
  margin-bottom: 2em;
}
/*** End Article Styles ***/


/******************************************/
/*** Begin Navigation Styles ***/
/* the visibility toggler */

button#menuToggler{
  text-align: left;
  border: none;
  width: 100%
}

#menuToggler {
  display: none; 
}

/* our menu (Typical horizontal menu) */
ul.menu {
  text-align: center; 
  font-weight: 700; 
  background-color: #000000; 
  margin-top: 1rem; 
  overflow: initial;
}

/* second level */
ul.menu ul {
  left: -9999em; 
  position: absolute; 
  color: #f2f2f2;  
  opacity: 0; 
  padding: 0; 
  top: 40px;
  /*
  width: 300px; 
  margin: 0; 
  */
}

ul.menu ul ul { 
  color: #777777; 
}

ul.menu > li { 
  color: white; 
  display: inline-block; 
  vertical-align: middle; 
  position: relative; /* top level links only in order to avoid overriding */ 

}

ul.menu > li > a { 
  display: inline-block; 
  color: #f2f2f2; 
  text-align: left; 
  padding: .70rem 4rem; 
  text-decoration: none; 
  border:  1px solid white;
  border-width: 0 1px;
  margin-right: -1px;  
  font-size: 1.0625rem;
}

ul.menu li a:hover {
  color: #777777;
} 

ul.menu li a {
  color: #ffffff;
}

/* setting the visibility */
ul.menu > li:hover > ul { 
  opacity: 1; 
  top: 30px; 
  left: 0; 
}

ul.menu > li > ul > li:hover ul {
  opacity: 1;
  top: 36px;
  left: 300px;
}

/* second and third level */
ul.menu ul > li { 
  display: block;
  font-weight: 700;
  background-color: #000000;
  text-align: center;
}

ul.menu ul > li a {    /* is this similar to "ul.menu > li > a" */
  display: block; 
  padding: 10px 15px;
  
  /* To reposition sub-menu */
  width: 257px;
  margin-top: 12px;
}

ul.menu ul > li a:hover,
ul.menu ul > li:hover a { 
  background: #bfbfbf;
}

ul.menu ul ul li a:hover { 
  background: #a6a6a6;
}

/*** End Navigation Styles ***/

/*** Begin Content Styles ***/
#content {
  background-color: #d8cbca;
  height: auto !important;
  min-height: 100%;
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
}

#content .wrapper {
  padding: 2rem 0 1rem 0;
}

#content content {
  text-align: center;
}

#content content #underwriting {
  margin-bottom: 2rem;
}

#content content #underwriting img {
  max-height: 6.5rem;
  max-width: 50%;
}

#content content p {
  max-width: 900px;
  margin: 0 auto;
  padding: .25rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
}

#content content p img {
  border-radius: 50%;
  margin: 0 1.25rem 1.25rem 0;
  width: 30%;
}

#content content p a {
  color: #005fa2;
  font-weight: 600;
}

#content content p a:visited {
  color: #6cabca;
}

#banner img {
  max-width: 100%;
  height: auto;
}

#content content #featured p {
  max-width: 800px;
}

#footer {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: #56544E;
}

#footer footer {
  color: #ffffff;
  margin: 0 20%;
  padding: 2rem 0;
}

#footer footer #copyright {
  margin-left: .265rem;
}

#footer footer #footer-nav {
  margin-left: .265rem;
  font-weight: 700;
  font-size: .75rem; 
}

#footer footer #footer-nav #footer-home {
  padding-left: 0;
  border-left: none;
}

#footer footer #footer-nav #footer-forum {
  padding-right: 0;
}

#footer footer #footer-nav a {
  color: white;
  text-align: center;
  text-decoration: none;
  padding: .5rem .75rem;
  border-left: 0.0625rem solid white;
}

#footer footer #footer-nav a:hover {
  color: #777777;
}

#footer #socialicons {
  margin-top: .9375rem;
}

#footer #socialicons a {
  display: inline-block;
  outline: 0;
  width: 36px;
  height: 36px;
  margin: 0 0 0 .1875rem;
  background-image: url("../images/social-icons.png");
  text-indent: -9999px;
}

#footer #socialicons #icon-rss {
  background-position: -36px 0;
}

#footer #socialicons #icon-fb {
  background-position: -72px 0;
}

#footer #socialicons #icon-twitter {
  background-position: -108px 0;
}

#footer #socialicons #icon-rss:hover {
  background-position: -36px 100%;
}

#footer #socialicons #icon-fb:hover {
  background-position: -72px 100%;
}

#footer #socialicons #icon-twitter:hover {
  background-position: -108px 100%;
}

/*** End Content Styles ***/

/*** Begin @Media Styles ***/

/* Large Devices, Wide Screens */
@media only screen and (max-width: 1200px) {
  #header nav li a {
    padding: .7rem 3rem; 
  }
}


/* Medium Devices, Desktops */

@media only screen and (max-width: 992px) {  
  #menuToggler {
    color: #ffffff; 
    display: block; 
    background-color: #000000;  
     margin-top: 10px;   
  }
  
  #menuToggler span { 
    display: inline-block; 
    vertical-align: middle; 
    font-size: 22px; 
    line-height: 44px; 
    /*line-height: .2rem;*/
    margin-left:20px;
    margin-bottom: 2rem;
  }
  
  #menuToggler a:hover { 
    text-decoration: none;
  }
  
  ul.menu { 
    margin-top:0; 
    visibility: hidden; 
    height: 0; 
    position: absolute;  
    border-left: none; 
    margin:auto;
  } 
/* resetting and blocking the elements in order to have a large touch surface */

  
  ul.menu.open { 
    visibility: visible; 
    height: 100%; 
    position: relative;
  }
  
  ul.menu ul { 
    display: block; 
    position: static; 
    opacity: 1;
  }
  
  ul.menu ul li { 
    text-indent: 10px; 
    font-size: 0.9em;
  }
  
  ul.menu > li, ul.menu li,
  ul.menu a, ul.menu li > a { 
    display: block; 
    border-left: none;
  }
  
/* globally reset all paddings */
  ul.menu a { 
    padding: 12px 20px !important;
  }
  
/* resetting all the hover states - can be omitted in live sites */
  ul.menu a:hover, ul.menu li:hover a {
    background: none !important;
  }
  
  .sub_title {
    line-height: 1.6;
    font-size: calc(0.1em + 1.75vw);
  }
}



/* Small Devices, Tablets */
@media only screen and (max-width: 768px) {
  /* override bootstrap padding of 20px */
  body {
  	padding-left: 0px;
    padding-right: 0px;
  }
  
  #footer footer {
    margin: 0 auto; 
  }
  
  #footer a {
    font-size: .50rem; 
  }
  
  #footer #copyright {
    font-size: .75rem; 
  } 
}

/* Extra Small Devices, Phones */

@media screen and (max-width: 540px) {
  .sub_title {
    line-height: 2;
    font-size: calc(0.1em + 1.7vw);
  }
}


/* Custom, iPhone Retina */

@media screen and (max-width: 320px) {
  .sub_title {
    font-size: calc(0.1em + 1.5vw);
  }
}

/*** End @Media Styles ***/