/* global */
html { overflow: hidden; position:relative; }
body {
  padding-top: 152px;
  color: rgb(0, 56, 30);
  background-color: #BED8A0;
  position:relative;
  overflow-x: hidden;
  max-width: 100%;
}
@font-face {
  font-family: 'avenir';
  font-style: normal;
  src: url('fonts/170801022833Avenir.eot');
  src: local('avenir'), url('fonts/170801022833Avenir.eot') format('embedded-opentype'),
  url('fonts/170801022833Avenir.woff') format('woff');
}
.avenir{font-family: 'avenir' !important;}
body, h1, h2, h3, h4, h5, h6, p, blockquote, li, a{
  font-family: 'avenir' !important;
}

/* modifications to bootstrap styles */
.btn-group-lg>.btn, .btn-lg {
  padding: 1rem 6rem .5rem 6rem;
  border-radius: 45px;
}
:root {
  --primary: #00381E;
}
.btn-primary {
  background-color: #00381E;
  border-color: #00381E;
}
.btn-rounded {
  padding: .3rem 2rem .25rem 2rem;
  border-radius: 25px;
}
.btn-primary:hover { background-color: #00381E; }
.btn-primary.focus, .btn-primary:focus,
.btn-primary:not([disabled]):not(.disabled).active, .btn-primary:not([disabled]):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: #F6D258;
}
.form-control[type="text"], .form-control[type="email"], 
.form-control[type="number"], select.form-control {
  background-color: #99CC66;
}
.card { border: none; }
.card-header {
  background-color: #F6D258;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}
.is-invalid { border-width: 3px; }

/* (phone?), email, facebook, twitter */
#epn-topbar {
  height: 40px;
  width: 100%;   
  max-width: 100%;
  padding-right: 30px;
  padding-left: 30px;
  padding-top: 0.75em;
  padding-bottom: 12px;
  font-weight: 600;
  background-color: #63a70a;
  z-index: 100000;
  position: fixed;
  right: 0px;
  top: 0px;
  left: 0px;
  color: #fff;   
  line-height: 16px;
}
#epn-topbar ul {
  display: inline-block;
  float: none;   
  list-style: none;
  float: right;
}
#epn-topbar ul li {
  float: left;
}
#epn-topbar a {
  color: #ffffff;
}
#epn-topbar a:hover {
  text-decoration: none;
  opacity: 0.5;
  filter: alpha(opacity=50);        
}

/* logo, EPN main site menu */
.fixed-top {
  position: fixed;
  top: 40px;
  background-color: rgb(255, 255, 255);
  border-bottom-color: rgb(99, 167, 10);
  border-bottom-style: solid;
  border-bottom-width: 6px;
  height: 112px;
  font-family: avenir;
  font-weight: 600;
  color: rgb(0, 56, 30);
}
.navbar-light .navbar-nav .nav-link, .navbar-light .navbar-nav .nav-link.active {
  color: rgb(0, 56, 30);
}
.fixed-top .navbar-collapse, .fixed-top .navbar-nav {
  height: 112px;
}
.fixed-top .navbar-nav {
  padding-top: 70px;
}

/* banner image (home page only) */
#banner-div {
  background-image: url('../img/banner/banner-640.jpg');
  background-size: cover;
  background-color: #ffffff;
  background-repeat: no-repeat;
  width: 100%;
  height: 150px;
  text-align: center;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-start;
}
div#insetBlock {
  background-color: #F6D258; 
  width: 50%; 
  padding-left: 60px; 
  padding-right: 60px;
  margin-left: auto;
  margin-right: auto;
  position: relative;  
  top: 10px;
  z-index: 1021;
}

/* logo banner (pages other than home) */
#banner-inside {
  height: 100px;
  background-color: #F6D258; 
  width: 100%;
  text-align: center;
}

/* paper-calculator-specific menu */
.bg-green {
  background-color: #63a70a;
  color: #ffffff;
}
.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
}
.navbar-dark .navbar-nav {
  width: 100%;
}
.navbar-dark a {
  margin-left: auto;
  margin-right: auto;        
}
.navbar-dark .navbar-nav {
  text-align: center;
}

/* round icons row */
#icon_row {
  text-align: center;
  margin-top: 30px;
}
#pc_icon_div {
  display: flex; align-items: center; justify-content: center;
}
#icon_row img, .pc_icon {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* general bullet points (home page only) */
#pc_icon_r_div {
  position: relative; 
  height: 209px;
}
#pc_icon_r_span {
  position:absolute; 
  top:50%; 
  margin-top: -50px; 
  line-height: 2.5em; 
  font-weight: bold;
}

/* agreement box */
#agreement_box, #contact_block, .yellow_block {
  background-color: #F6D258; 
  border: 4px solid #F6D258; 
  margin-top: 30px; 
  margin-bottom: 30px;
}
#agreement_box .col-sm-10,
#contact_block .col-sm-10,
.yellow_block .col-sm-10 {
  background-color: #E8F1DF;
  padding-top: 20px;
  padding-bottom: 20px;
}

#citation_block .col-10, #terms_block .col-10 {
  border: 1px solid #F6D258;
  padding: 15px;  
}
#citation_block .col-10 p,
#terms_block .col-10 p {
  font-style: italic;
}
#next_btn_block {
  text-align: center;
  width: 100%;
  margin-bottom: 30px;
}

/* power-user logo scroll */
#power-logos {
  overflow: hidden; 
  position: relative;
  height: 140px; 
  max-height: 140px;
}
#power_inner a {
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}
#power_inner {
  position: absolute;
  white-space: nowrap;
  width: 11757px;
  height: 100%;
  margin: 0;
  padding: 10px;
  padding-top: 105px;
  transform: translate3d(0, 0, 0);
 /* Apply animation to this element */	
 -moz-animation: power_logos 45s linear 0s infinite;
 -webkit-animation: power_logos 45s linear 0s infinite;
 animation: power_logos 45s linear 0s infinite;
}
@-moz-keyframes power_logos {
 100% { -moz-transform: translateX(-5878.5px); }
}
@-webkit-keyframes power_logos {
 100% { -webkit-transform: translateX(-5878.5px); }
}
@keyframes power_logos {
 100% { 
 -moz-transform: translateX(-5878.5px); /* Firefox bug fix */
 -webkit-transform: translateX(-5878.5px); /* Firefox bug fix */
 transform: translateX(-5878.5px); 
 }
}

#power_users {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 0px;
  z-index: 1000;
}


/* logo, copyright notice footer at bottom */
#footer {
  width: 100%; 
  background-color: #ffffff; 
  height: 122px; 
  border-top: 5px solid #63A70A; 
  border-bottom: 5px solid #63A70A; 
  margin-left: 0px; 
  margin-right: 0px;
}
#bottom-logo {
  margin-left: 8px; margin-right: auto;
  position: relative; top: 19px;
}
#bottom-copyright {
  float: right; margin-right: 8px; margin-left: auto;
  position: relative; top: 80px;
}

@media (min-width: 2561px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-3840.jpg');
    width: 100%;
    height: 900px;
  }
}

@media (min-width: 2049px) and (max-width:2560px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-2560.jpg');
    width: 100%;
    height: 600px;
  }
}

@media (min-width: 1921px) and (max-width:2048px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-2048.jpg');
    width: 100%;
    height: 480px;
  }
}

@media (min-width: 1601px) and (max-width:1920px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1920.jpg');
    width: 100%;
    height: 450px;
  }
}

@media (min-width: 1441px) and (max-width:1600px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1600.jpg');
    width: 100%;
    height: 375px;
  }
}

@media (min-width: 1367px) and (max-width:1440px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1440.jpg');
    width: 100%;
    height: 338px;
  }
}

@media (min-width: 1281px) and (max-width:1366px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1366.jpg');
    width: 100%;
    height: 320px;
  }
}

@media (min-width: 1081px) and (max-width:1280px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1280.jpg');
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 1200px) {
  /* GONE: logo, EPN main site menu */
  .fixed-top, .fixed-top .navbar-collapse, .fixed-top .navbar-nav {
    display: none;
  }     
  .navbar-dark .navbar-nav {
    text-align: left;
  }
  .navbar-dark a {
    margin-left: 0;
    margin-right: auto;        
  }
  body {
    padding-top: 40px;
  }
}

@media (min-width: 1025px) and (max-width:1080px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1080.jpg');
    width: 100%;
    height: 253px;
  }
}

@media (min-width: 769px) and (max-width:1024px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-1024.jpg');
    width: 100%;
    height: 240px;
  }
}

@media (max-width: 768px) {
  /* GONE: PC icon to left of general description (home)*/
  #pc_icon_div { display: none; }
  #pc_icon_r_div { height: auto; position:static; margin-top: 20px; }
  #pc_icon_r_span {
    position:static; 
    top:0; 
    margin-top: 0px; 
  }

  /* COLLAPSE: logo, copyright notice footer at bottom */
  #footer {
    height: 142px; 
  }
  #bottom-copyright {
    float: none; margin-right: auto; margin-left: 8px;
    position: relative; top: 19px;
  }
  
  /* modifications to bootstrap styles */
  .card { margin-bottom: 25px; }
}

@media (min-width: 751px) and (max-width:768px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-768.jpg');
    width: 100%;
    height: 180px;
  }
}

@media (min-width: 721px) and (max-width:750px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-750.jpg');
    width: 100%;
    height: 176px;
  }
}

@media (min-width: 641px) and (max-width:720px) {
/* banner image (home page only) */
  #banner-div {
    background-image: url('../img/banner/banner-720.jpg');
    width: 100%;
    height: 169px;
  }
}

@media (max-width: 576px) {
  /* GONE: yellow inset, social media icons */
  #insetBlock, .epn-social { display: none;}

  /* SHRINK TO FIT: round icon row, get started button, power users button, logo at bottom */
  #icon_row {
    text-align: center;
    margin-top: 0px;
  }
  #icon_row .col-sm-2 {
    float: left;
    width: 20%;
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .btn-group-lg>.btn, .btn-lg {
    padding: 1rem 2rem .5rem 2rem;
  }

  #power_users img {
    width: 50%;
    margin-left: 40px;
  }
  
  #bottom-logo {
    max-width: 90%;
  }
  
  /* agreements box */
  #agreement_box .col-sm-10,
  #contact_block .col-sm-10,
  .yellow_block .col-sm-10 {
    padding-left: 20px; 
    padding-right: 20px;
  }
}


