:root {
  --primary-color: #00264c; /* USGS Blue */
  --primary-color-light: #00264c3d; /* Low alpha USGS Blue */
  --secondary-color: #F7F3EF;
  --highlight-color: #C0362C; /* Golden Gate Red */
  --highlight-color-light: #C0362C3d; /* Low alpha Golden Gate Red */
  --box-color: #efefef; /* Box background color */
  --hover-color: #ff4c3f;
  --warning-color: #fff4c6; /* Warning Yellow */
  --warning-color-border: #ffb94f; /* Warning Yellow */
  --text-shadow-color: rgba(0, 0, 0, 0.75);
  --button-hover-color: rgba(231, 231, 231, 1);
  --button-hover-text-color: rgba(51, 51, 51, 1);
  --iep-color: #264C00; /* IEP Green */
}

.mobile-warning {
  display: none; 
  width: 100%;
  background-color: var(--warning-color);
  border: 2px solid var(--warning-color-border);
  color: black;
  text-align: justify;
  font-size: 0.9em;
  padding: 0.5em;
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 0.65em; 
}

.mobile-warning-icon {
  font-size: 1.5em; 
  color: var(--warning-color-border);
}

.close-button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: black;
}

.content {
  padding: 0px;
}

.header-container {
  background-image: url("bay_bridge2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;  
  padding-top: 0px;
  padding-bottom: 0px;
  text-align: center;
}

/* Title Text */
.header-text {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 20px;
  color: white;
  text-shadow: 2px 2px 2px var(--text-shadow-color); 
}

.header-text-container {
  backdrop-filter: blur(4px);
  padding-top: 35px;
  padding-bottom: 35px;
}

.title {
  margin-bottom: 5px;
  font-size: 54px;
  font-weight: bold;
}

.subtitle {
  margin-top: 5px;
  font-size: 28px;
}

/* Body */
.col-sm-12 {
  padding: 0px;
}

.main-header .logo {
  background-color: var(--primary-color) !important;
}

.header .pull-left {
  color: white;
}

/* Center tabs */
.nav.nav-tabs.shiny-tab-input.pull-right.shiny-bound-input {
  display: flex !important;
  justify-content: center !important;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.505);
}

/* Inactive Tab HOVER and animation*/
.nav-tabs-custom>.nav-tabs>li>a {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Pseudo-element covers the full height, but 0 width initially */
.nav-tabs-custom .nav-link:not(.active)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 10%;
  width: 0;
  background-color: var(--highlight-color);
  z-index: -1;
  transition: width 0.2s ease-in-out;
  transform: translateX(-50%);
}

/* Animate on hover */
.nav-tabs-custom .nav-link:not(.active):hover::before {
  width: 100%;
}

/* Text color and border radius styling */
.nav-tabs-custom>.nav-tabs>li:hover>a {
  color: var(--primary-color);
  border-radius: 5px;
}
/* -------------------- */
 
/* Active Tab Box*/
.nav-tabs-custom>.nav-tabs>li>a.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);  
}

.nav-item {
  margin: 4px !important;
  border-top-width: 0px !important;
  border-color: var(--primary-color);
  background-color: var(--secondary-color);
}

/* Active Tab Text Box*/
.nav-link.active {  
  font-size: 16px;  
  color: var(--secondary-color) !important;
  border-color: var(--primary-color) !important;
  border-width: 1px !important;
  border-radius: 5px !important;
}

/* Navbar background color */
.nav-tabs-custom {
  background-color: white !important;
}

.content .tab-pane {
  margin-left: 0%;
  margin-right: 0%;
}

.content-wrapper {
  background-color: white;
  border-radius: 0px;
  overflow: auto;
}

.tab-content {
  background-color: white;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 5px;
  box-shadow: none;
  border-bottom: none;
  position: relative;
}

.tab-pane {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
}

.tab-pane.active.fade-in {
  opacity: 1;
}

.active {
  font-size: 16px;
}

.box-header {
  border: 1.5px solid var(--primary-color);
  border-bottom: none !important;
}

.box {
  border-top-color: var(--primary-color) !important;   
  border-radius: 2px !important; 
  /* background-color: var(--box-color) !important; */
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.5);
}

.gam-plot-controls {
  border: 1.5px solid var(--primary-color);
  border-top: none !important;
}

.param-plot-controls {
  border: 1.5px solid var(--primary-color);
  border-top: none !important;
}

.padded-column {
  padding-bottom: 20px !important;
}

.unpadded-column .unpadded-row {
  padding: 0px !important;
  margin: 0px !important;
}

.unpadded-row {
  margin-left: -15px !important;
  margin-right: -15px !important;
}

.about-padding {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.text-column {
  border-right: 1px solid var(--primary-color) !important;
}

.main-sidebar {
  background-color: var(--primary-color) !important;
}

.download-button {
  background-color: var(--primary-color);
  color: white;
}

/* Figure 1 special padding */
#plot4-box .modebar.modebar--hover.ease-bg {
  padding-top: 25px;
}

/* Hyperlink styling */
a {
  color: var(--highlight-color); 
  text-decoration: none;
}

a:visited {
  color: var(--highlight-color); 
}

a:hover {
  color: var(--hover-color); 
  text-decoration: underline;
}

a:active {
  color: var(--hover-color); 
}

/* Button styling */
.btn.btn-default.action-button.shiny-bound-input {
  background-color: var(--primary-color);
  color: white;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 5px;
}

.param-button {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn.btn-default.action-button.shiny-bound-input:hover {
  background-color: var(--button-hover-color);
  color: var(--button-hover-text-color);
}

.btn.btn-default.shiny-download-link.download-button.shiny-bound-output:hover {
  color: black;
}

/* Map Icons */
#map {
  margin-bottom: 5px;
}

.leaflet-marker-icon.usgs-icon.leaflet-zoom-animated.leaflet-interactive {
  fill: var(--primary-color);
}

.info.legend.leaflet-control {
  margin-bottom: 2px;
  margin-right: 2px;
}

.iep-icon {
  fill: var(--iep-color);
}

/* Fix Slider Positions */
.irs--shiny .irs-line {
  top: 30px; 
}

.irs-grid {
  top: 40px !important;
}

.irs-bar {
  background-color: var(--primary-color) !important;
  height: 6px !important;
}

/* Recolor widget defaults */
span.irs-from,
span.irs-to {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.active.day {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Tighten USGS header vertical padding */
.usa-header {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.usa-logo {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

/* Position mobile modal below the header */
#mobileWarningModal .modal-dialog {
  margin-top: 110px !important;
}

/* Neutralize USWDS focus outlines on Bootstrap/Shiny elements */
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:focus-within,
.btn:focus,
.btn:focus-visible,
.btn:focus-within,
.form-control:focus,
.selectize-input:focus,
.shiny-bound-input:focus,
.shiny-bound-input:focus-visible,
.action-button:focus,
.action-button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}
