:root {
  --emi-navy: #20395f;
  --emi-blue: #0d6efd;
  --emi-border: #d9e1eb;
}

html,
body {
  min-height: 100%;
  background: #ffffff;
  color: #1e2f47;
  font-size: 16px;
}

body {
  padding-bottom: 3rem;
}

.global-toolbar {
  background: #ffffff;
  border-bottom: 1px solid var(--emi-border);
  padding-top: 1rem;
  padding-bottom: 0.9rem;
}

.page-container {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
  overflow: visible;
}

#page-content,
main {
  overflow: visible;
  max-height: none;
}

.emi-analysis-graph {
  display: block;
  width: 100%;
  height: 500px;
  min-height: 500px;
  overflow: visible;
  margin-bottom: 1rem;
}

.emi-analysis-graph .js-plotly-plot,
.emi-analysis-graph .plot-container,
.emi-analysis-graph .svg-container {
  width: 100% !important;
  height: 500px !important;
  min-height: 500px !important;
  overflow: visible !important;
}

.project-intro-card {
  border-color: #9bcfb5;
  background: #e6f4ec;
}

.project-measurement-card {
  border-radius: 0.35rem;
  box-shadow: none;
}

.card-title {
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-size: 1rem;
}

.navbar-brand {
  font-size: 1.35rem;
}

.nav-link {
  font-size: 1rem;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  color: #999fa6;
  background: #191c1f;
  font-size: 0.9rem;
}

.js-plotly-plot .plotly .modebar {
  top: 0.35rem;
}

@media (max-width: 767.98px) {
  html,
  body {
    font-size: 15px;
  }

  .global-toolbar {
    padding-top: 0.75rem;
    padding-bottom: 0.7rem;
  }

  .page-container {
    padding-top: 0.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .emi-analysis-graph,
  .emi-analysis-graph .js-plotly-plot,
  .emi-analysis-graph .plot-container,
  .emi-analysis-graph .svg-container {
    height: 430px !important;
    min-height: 430px !important;
  }
}
