:root {
    --fourpa-dark-blue: #273359;
    --fourpa-light-blue: #337ab7;
    --fourpa-light-blue-rgb: 51, 122, 183;

    --fourpa-dark-grey: #c5c5c5;
    --fourpa-light-grey: #eee;

    --bs-primary-bg: var(--fourpa-light-blue);
    --bs-primary-rgb: var(--fourpa-light-blue-rgb);
    --bs-dark-rgb: 0, 33, 68;
    --bs-secondary-bg: var(--fourpa-light-grey);
    --dq-browser-active-color: #002244 !important;

    --bs-font-size-base: 14;
}


footer {
    --dq-footer-content-bg: #162144;
    --dq-footer-bottom-bg: var(--fourpa-dark-blue);
    --dq-footer-content-link-color: var(--fourpa-dark-grey);
    --dq-footer-bottom-link-color: var(--fourpa-dark-grey);
}

button.btn-link.active {
  color: #fff !important;
  background-color: #002244 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--fourpa-dark-blue);
}

code {
    color: var(--bs-body-color);
    background-color: #f5f5f5;
}

main {
    padding-top: 15px;
}

.aip-logo {
    width: 300px;
    max-width: 300px;
    margin-bottom: 20px;
}

.rounded-border {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.content {
  margin-top: 0;
}

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-4most {
  max-width: 140px;
}

.btn-primary {
    background-color: var(--fourpa-light-blue);/*#337ab7;*/
    border-color: #2e6da4;
}

.btn-primary:hover {
    color: #fff;
    background-color: #286090;
    border-color: var(--fourpa-light-blue);
}

.btn-primary:active:focus {
    color: #fff;
    background-color: var(--fourpa-light-blue);
    border-color: #122b40;
}

.dropdown-item {
    --bs-dropdown-link-active-bg: var(--bs-tertiary-bg);
}

.dropdown-item:active {
    color: var(--bs-dropdown-link-color);
}

#header-navbar {
    z-index: 100;

}

.navbar {
    font-size: 1.2rem;
}

.banner-4most {
  color: white;
  background-color: black;
  overflow: hidden;
}

.carousel-title {
  text-shadow: 1px 1px 7px black, 1px 1px 15px black, 1px 1px 30px black;
}

.carousel-text {
  text-shadow: 1px 1px 7px black, 1px 1px 15px black, 1px 1px 30px black;
}

.carousel-more {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 5px black;
}

.carousel-more a:hover {
  text-shadow: none;
  transition: text-shadow 500ms;
}

.carousel-inner .carousel-item img {
  filter: brightness(70%)
}

.teaser-icon {
  font-size: 300%;
  display: block;
  margin-bottom: 0px;
  color: var(--fourpa-dark-blue);
}

.teaser-icon:hover {
  color: #596488;
}

@media screen and (min-width: 776px) {
  .teaser-icon {
    font-size: 400%;
  }
}

.bg-dark {
  --bs-bg-opacity: 1;
  background-color: var(--fourpa-dark-blue) !important;
}

.spectral-lines-color-box {
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    margin-top: -0.3em;
}

.spectral-lines-form-check {
    margin-left: 0em;
    padding-left: 0em;
    margin-top: -0.3em;
}

.spectral-lines-form-check-input {
    margin-left: 0;
    margin-right: 6px;
    width: 1em;
    height: 1em;
    margin-top: -0.3em;
}

.spectral-lines-line-item {
    display: flex;
    align-items: center;
    margin-left: -1.5em;
    margin-top: -0.3em;
}

.spectral-lines-line-item.highlighted {
    font-weight: bold;
}

.number-counter {
  font-size: 2rem;
  font-weight: bold;
  color: var(--fourpa-dark-blue);
  height: 3rem;
}

.wrap-number-counter {
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  height: 7rem;
}
.wrap-number-counter.visible {
  opacity: 1;
  transform: translateY(24px);
}

/* Slider styling */
.form-range::-webkit-slider-thumb {
    background: #337ab7 !important;
}

.form-range::-moz-range-thumb {
    background: #337ab7 !important;
}

.form-range::-ms-thumb {
    background: #337ab7 !important;
}

.form-range::-webkit-slider-runnable-track {
    background: #ccc;
}

.form-range::-moz-range-track {
    background: #ccc;
}

.form-range::-ms-track {
    background: #ccc;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(0, 34, 68, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(0, 34, 68, 0.25);
}

.form-range:focus::-ms-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(0, 34, 68, 0.25);
}

.table-container {
    height: 400px;      /* adjust based on your row height × 10 */
    overflow-y: auto;    /* scroll if more than 10 rows */
}

/* Container for the loading state */
.plot-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px; /* Matches your plot height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* The actual animated spinner */
.plot-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #004179; /* Matching your spectrum color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}
