/*
  Main CSS File for the app
*/

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  min-height: 100%;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

.visible {
  display: block !important;
}

.hidden {
  display: none !important;
}

.lead.lead-small {
  font-size: 17px;
}

/* OpenEI Skin Fix */

a:hover,
a:focus {
  text-decoration: none;
}

.main-content {
  height: calc(100% - 45px);
  display: flex;
  flex-direction: column;
}

.main-content .content {
  flex: 1 0 auto;
}

.header {
  position: relative;
  overflow: auto;
  /* terribad OpenEI style rule */
}

.header .menu {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  border: none;
}

h1.title {
  font-weight: normal;
  font-size: 36px;
}

#footer-info-copyright {
  position: relative;
  margin-top: 0.5em;
}

.xdr-body-container {
  padding-top: 15px;
}

/* Nav */
.navbar-rempd {
  border-radius: 0;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  ul.rempd-nav li a.active {
    position: relative;
  }

  ul.rempd-nav li a.active::before {
    content: "";
    position: absolute;
    display: table;
    background-color: #0d6efd;
    border: none;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 50%;
    height: 3px;
    margin: 0 auto;
  }

  ul.rempd-nav li a.sub-link.active::before {
    display: none;
  }
  ul.rempd-nav li a.sub-link.active {
    background-color: rgba(13, 110, 253, 0.2);
    pointer-events: none;
    cursor: default;
  }
}

.navbar-rempd .nav a {
  color: white;
  font-size: 1.4em;
  font-weight: bold;
}

.navbar-rempd .nav a:hover,
.navbar-rempd .nav a:focus {
  text-decoration: none;
  background-color: #000
}

.navbar-rempd .dropdown-menu {
  background: #2d2d2d
}

.nav .open>a,
.nav .open>a:hover,
.nav .open>a:focus {
  background: #2d2d2d;
}

.navbar-rempd .dropdown-menu :hover {
  background: #2d2d2d;
}

.navbar-rempd .dropdown-menu>li>a:hover,
.navbar-rempd .dropdown-menu>li>a:focus {
  color: white;
}

.navbar-openei {
  margin-bottom: 0;
  background-color: #f5f3f2;
  min-height: 36px;
}

.navbar-openei .navbar-brand {
  height: 40px;
}

.navbar-openei .navbar-header {
  height: 42px;
}

.navbar-openei .nav.navbar-nav.primary-nav a {
  padding: 12px 15px;
}

.navbar-openei .navbar-nav>li.user-menu {
  padding: 4px;
}

.navbar-openei .navbar-nav>li.user-menu>a {
  font-size: 1.2em;
}

.navbar-openei .user-menu .first-initial {
  width: 16px;
}

.navbar-openei .user-menu .dropdown-menu {
  top: 45px;
}

.navbar-openei .user-menu .dropdown-menu:before {
  top: -5px;
  right: 25px;
}

.dropdown-menu>.active>a,
.dropdown-menu>.active>a:hover,
.dropdown-menu>.active>a:focus {
  color: #333333;
}

/* responsive nav */
@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu {
    background: #fff;
  }

  .navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
    color: #5e6367;
    text-shadow: none;
  }
}

/* bootstrap OpenEI fix */

.no-gutter>[class*='col-'] {
  padding-right: 0;
  padding-left: 0;
}

/* bootstrap OpenEI fix */
.progress {
  min-height: 0px;
  min-width: 0px;
}

.content-wrapper {
  display: flex;
  align-items: stretch;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* General styles */
.btn {
  border-radius: 0;
}

.btn:focus,
.btn:active {
  outline: none;
}

.col-no-padding {
  padding-left: 0;
  padding-right: 0;
}

/* REMPD content styles */
.hero {
  background:
    linear-gradient(-120deg, rgba(132, 250, 176, .15) 0%, rgba(143, 211, 244, .15) 100%),
    url('../../assets/img/hero.png') no-repeat center center;
  background-size: cover;
}

.hero-logo {
  height: 100px;
  margin: -30px 0 0 -30px;
}

.hero-text {
  background-color: #fff;
  border-radius: 0.4rem 0.4rem 0 0;
  color: #2d2d2d;
  text-align: center;
  line-height: 40px;
  margin: 6rem auto;
  padding: 1rem;
  width: 92%;
}

.hero-text .underline {
  text-decoration: underline;
  text-decoration-color: #42AF9C;
}

.body-text {
  padding: 0 50px;
  margin-bottom: 30px;
}

.text-break-all {
    word-break: break-all;
}

.body-tables {
  margin: 0 50px 20px 50px;
  width: 90%;
}

.table>thead>tr {
  background-color: #5e6367;
  color: #fff;
  font-weight: bolder;
}

.figure {
  margin: 2em auto;
  text-align: center;
}

.body-italics {
  font-style: italic;
}

.chart {
  margin: 0 auto;
}

.resources>li {
  margin-top: 5px;
}

@media (max-width: 992px) {
  .hero-text {
    width: 100%;
  }
}

/* XSmall Devices - Hero*/
@media (max-width : 767px) {
  .hero-logo {
    margin: -30px 0 0 10px;
  }

  .body-tables {
    display: block;
    max-width: -moz-fit-content;
    max-width: fit-content;
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Small Devices, Tablets */
@media (min-width: 768px) and (max-width : 840px) {
  .hero-logo {
    margin: -30px 0 0 -30px;
  }

  .hero-text {
    width: 100%;
  }
}

/* Medium Devices, Desktops */
@media (min-width : 768px) {}

/* Custom XL screens */
@media (min-width : 1400px) {}