
    :root {
        --primary-color: #b31b1b;
        --secondary-color: #2e261f;
        --button-color: #36824b;
        --plot-primary-color: #385B75;
    }
    /* Import local fonts */
@font-face {
    font-family: 'Montserrat';
    src: url('/swamp/assets/external/fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/swamp/assets/external/fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/swamp/assets/external/fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/swamp/assets/external/fonts/Merriweather-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/swamp/assets/external/fonts/Merriweather-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/swamp/assets/external/fonts/Merriweather-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

/* Custom CSS for the layout */
body {
    font-family: 'Montserrat', sans-serif; /* Set the default font */
    /*max-width: 1200px;*/ /* Set the maximum site width */
    margin: 0 auto; /* Center the content */
    padding: 0 0px; /* Add some padding to the sides */
    letter-spacing: 0.02em; /* Adjust letter spacing for body text */
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif; /* Ensure Montserrat font is applied */
    letter-spacing: -.03em; /* Adjust letter spacing for headings */
}

h1 {
    font-weight: 300; /* Light */
    font-size: 4.0rem; /* Headline size */
}

h2 {
    font-weight: 300; /* Light */
    font-size: 2.25rem; /* Subhead size */
}

h3 {
    font-weight: 400; /* Regular */
    font-size: 1.75rem; /* Title size */
}

h4 {
    font-weight: 400; /* Regular */
    font-size: 1.33em; /* Section tag size */
}

h5 {
    font-weight: 400; /* Regular */
    font-size: 1.15em; /* Section tag size */
}

h6 {
    font-weight: 400; /* Regular */
    font-size: 0.9em; /* Section tag size */
}

p {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: .85rem;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
}

.caption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Regular */
    font-size: .85rem; /* Caption size */
    letter-spacing: 0.01em; /* Adjust letter spacing for captions */
}

.large-text {
    font-size: 1.5em; 
}

.medium-text {
    font-size: 1.2em; 
}

.medium-small-text {
    font-size: 1.0em; 
}

.small-text {
    font-size: 0.8em; 
}

.very-small-text {
    font-size: 0.7em; 
}

.super-small-text {
    font-size: 0.6em; 
}

@media (max-width: 768px) {
    .super-small-text {
        font-size: 0.5em; 
    }
}

.bold-text {
    font-weight: 700; 
}

.full-width {
    width: 100%;
    margin: 0;
    padding: 0;
}

.centered-text {
    text-align: center;
}

/* Additional styles */
.header-logo {
    max-height: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.header-logo-short {
    display: none;
}

.header-logo-long {
    display: block;
}

@media (max-width: 768px) {
    .header-logo-short {
        display: block;
    }
    .header-logo-long {
        display: none;
    }
}

.divider {
    border-left: 1px solid rgb(46, 46, 46); 
    height: 25px; 
    margin: 0 0px;
}

nav .navbar-nav {
    margin-left: auto; 
}

.navbar-border {
    border-top: 5px solid var(--primary-color); /* 3px red border */
}

.home-text {
    display: none;
}

@media (max-width: 768px) {
    .home-icon {
        display: none;
    }
    .home-text {
        display: inline;
    }
}

.nav-link.active-nav {
    position: relative;
}

.nav-link.active-nav::after {
    content: '';
    position: absolute;
    bottom: -0.5rem; /* Adjust the position of the bar */
    left: 0;
    width: 100%;
    height: 3px; /* Height of the bar */
    background-color: var(--primary-color); /* Color of the bar */
}

@media (max-width: 768px) {
    .nav-link.active-nav::after {
        content: none;
    }
}

#nav-dashboard {
    display: none;
}

#nav-donate {
    color: white;
    background-color: var(--primary-color);
    margin-top: -9px;
    padding-top: 16px;
    width: 100px;
    text-align: center;
    margin-left: 10px;
}

@media (max-width: 768px) {
    #nav-donate {
        color: #666;
        background-color: inherit;
        margin-top: 7px;
        padding-top: 0;
        width: auto;
        text-align: inherit;
        margin-left: 0;
    }
}

.header-graphic {
    width: 100%;
    max-height: 850px; /* Adjust the height as needed */
    object-fit: cover; /* Ensures the image covers the entire width */
    margin-bottom: 0; /* Remove bottom margin */
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    max-width: 800px;
    height: 100%;
    background-color: rgba(46, 38, 31, .6); /* Black with 50% transparency */
    backdrop-filter: blur(3px); /* For modern browsers */
    -webkit-backdrop-filter: blur(3px); /* For Safari */
    color: white;
    border-right: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: flex-start; /* Align items to the left */
    padding: 50px;
    box-sizing: border-box;
}

.header-overlay h1 {
    font-size: 3rem;
    margin: 0;
}

.header-overlay h2 {
    font-size: 2rem;
    margin: 0;
    text-align: left;
}

@media (max-width: 1024px) {
    .header-overlay {
        display: none;
    }

    .header-text {
        display: block !important;
        margin-bottom: 25px;
        text-align: center; /* Align text to the left */
        width: 100%; /* Full width */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .header-text h2 {
        font-size: 1.5rem;
    }
}

.header-text {
    display: none;
}

.listen-live-button {
    position: absolute;
    bottom: 20px; 
    right: 20px; 
    background-color: var(--button-color); 
    color: white; 
    border: none; 
    border-radius: 20px; 
    padding: 10px 20px; 
    font-size: 1rem;
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    z-index: 10; 
    /*display: none; /* for now, hide the button */
}

.listen-live-button i {
    margin-right: 5px; /* Space between icon and text */
}

.listen-live-button:active {
    background-color: var(--button-color); 
}

.stat-row-container {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.stat-row {
    background-color: var(--secondary-color);
    color: white; 
    padding: 1px 15px; 
    text-align: center; 
    margin: 0; 
    margin-left: auto; 
    margin-right: auto; 
}

.stat-column {
    padding: 5px; 
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
}

.stats-bar-headline {
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0;
}

.h-spacer {
    margin: 0 10px; 
}

.v-spacer {
    margin: 10px 0; 
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.divider-heading {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.5em;
    text-align: center;
    position: relative;
}

.divider-line {
    width: 1px; 
    height: 2em;
    background-color: #000;  
    margin: 0 auto;  
}

.divider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-justify {
    text-align: justify;
}

.btn-href {
    background-color: var(--button-color); 
    color: white; 
    border: none; 
    border-radius: 20px; 
    padding: 7px 20px; 
    font-size: 1rem;
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    z-index: 10; 
    text-decoration: none;
}

.btn-href:hover {
    background-color: white;
    color: var(--button-color);
    text-decoration: none;
}

.btn-href:active {
    background-color: var(--button-color); 
}

.spinner {
    height: 25px;
    padding: 0em;
}

.spinner-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

.back-to-top-link {
    color: var(--button-color);
}

.species-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.species-image {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 5%;
}

@media screen and (max-width: 768px) {
    .species-image {
        max-height: 80px;
        margin-top: 5px;
    }
    
}

.total-detections-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.total-detections-bar-fill {
    height: 100%;
    background-color: var(--plot-primary-color);
}

.species-info {
    height: 35px;
}

.species-plot {
    height: 50px;
}

.play-icon-overlay {
    position: absolute;
    bottom: 10px; 
    left: 15px; 
    font-size: 3em; 
    color: white;
    pointer-events: auto; 
    cursor: pointer; 
    z-index: 10; 
}

.info-icon-overlay {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    color: white;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.chart-icon {
    vertical-align: middle;
    color: var(--plot-primary-color);
}

.chart-icon-overlay {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    color: white;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.card-title {
    font-size: 1em;
}

.card-subtitle {
    font-size: 0.75em;
}

.card-img-top {
    position: relative;
    width: 100%; /* Ensure the image takes the full width of the card */
    height: auto; /* Maintain aspect ratio */
}

.card-img-overlay .bi-play-circle-fill {
    pointer-events: auto; 
    cursor: pointer; 
}

.photo-author-overlay {
    position: absolute;
    bottom: 0px; 
    right: 0px;
    font-size: 0.5rem; 
    color: white; 
    background-color: rgba(46, 38, 31, 0.6); 
    padding: 2px 5px; 
    border-radius: 3px; 
    z-index: 10; 
}

.confidence-score {
    font-size: 1rem; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.confidence-score-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stack the text and bar vertically */
}

.confidence-score-text {
    font-size: 1rem; 
    margin-bottom: 0; 
}

.confidence-score-bar {
    width: 100%;
    height: 5px;
    background-color: var(--color); /* Use the color based on the score */
    border-radius: 5px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.confidence-score-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--value) * 1%);
    height: 100%;
    background-color: var(--color); /* Use the color based on the score */
}

.recorder-info {
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color */
}

.recorder-info:hover {
    background-color: var(--button-color);
    color: white;
}

.recorder-info a {
    text-decoration: none;
    color: inherit;
}

.recorder-info:hover a {
    color: white; 
}

.recorder-info:active {
    background-color: var(--button-color);
}

.recorder-note {
    background-color: var(--plot-primary-color);
    border-radius: 10px;
    color: white;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
}

.chart-icon {
    font-size: 1.2em;
    margin-left: 10px;
}

.weather-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-info {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 5px;
    padding-left: 10px;
    font-size: 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 10px;
}

.footer-logo {
    max-height: 50px;
    max-width: 300px;
}

.footer {
    background-color: var(--secondary-color);
    padding: 20px;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

.footer .footer-content {
    padding: 20px;
    max-width: 1200px;
}

.footer p {
    margin-top: 20px;
    text-align: center;
    font-size: .875rem;
    letter-spacing: 0.02em; /* Adjust letter spacing for footer paragraphs */
}

.footer-bottom-logos {
    padding: 20px;
    max-width: 1200px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.footer .footer-logo {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 275px;
    max-height: 60px;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* SPECIES PAGE */

.species-page-content {
    max-width: 1200px; /* Adjust the maximum width as needed */
    margin: 0 auto; /* Center the container */
    padding: 0 0px; /* Add some padding to the sides */

}

.species-main-content {
    padding-left: 15px;
    padding-right: 15px;
}

.species-header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.species-header-image {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.species-overlay-row {
    width: 100%;
    margin: 0;
}

.species-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)); /* Gradient background */
    color: white;
    padding: 20px;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
}

.species-overlay-text {
    margin: 0;
}

#species-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
}

#species-main-content {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#species-main-content.visible {
    opacity: 1;
}

.species-info-row {
    margin-top: 0px;
    padding: 0px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 5px;
}

.learn-more-btn {
    background-color: var(--button-color); 
    border-radius: 20px;
    font-size: 0.8rem;
    max-width: 200px;
}

.learn-more-btn:hover {
    background-color: white;
    color: var(--button-color);
    text-decoration: none;
}

.learn-more-btn:active {
    background-color: var(--button-color); 
}

.learn-more-btn:visited {
    background-color: var(--button-color); 
    color: white;
}

.species-daily-activity-plot {
    height: 90px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.species-weekly-detections-plot {
    height: 175px;
    margin-top: 10px;
    margin-bottom: 25px;
}

@media (max-width: 576px) {
    .species-weekly-detections-plot {
        height: 200px;
    }
}

.recent-detections-heading {
    margin-top: 5px;
    margin-left: 0px;
}

.detections-table {
    margin-top: 20px;
}

.detections-table th {
    position: relative;
    text-align: center; /* Center the text in the header */
    cursor: pointer; /* Make the entire header clickable */
}

.detections-table th .sortable-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detections-table th .bi-arrow-down-up {
    font-size: 0.8em;
    margin-left: 5px; /* Add some space between the text and the icon */
}

.detections-table td {
    font-size: 0.85em;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .truncate {
        white-space: pre-wrap;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
}

.play-button {
    color: var(--button-color);
    font-size: 1.5em;
}

.play-button:hover {
    color: #0056b3;
    text-decoration: none;
}

.play-button:active {
    color: var(--button-color);
}

.confidence-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

/* Recorder page styles - reusing species page classes where possible */
.recorder-header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.recorder-header-image {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.recorder-info-row {
    margin-top: 0px;
    padding: 0px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 5px;
}

#recorder-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
}

#recorder-main-content {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#recorder-main-content.visible {
    opacity: 1;
}

/* Recorder table styles */
.recorder-detections-table {
    margin-top: 20px;
}

.recorder-detections-table th {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.recorder-detections-table th .sortable-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.recorder-detections-table th .bi-arrow-down-up {
    font-size: 0.8em;
    margin-left: 5px;
}

.recorder-detections-table td {
    text-align: center;
    vertical-align: middle;
}

.species-column-header {
    width: 40%;
}

.species-column {
    display: flex;
    align-items: center;
    text-align: left !important;
}

.species-thumbnail {
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .hide-on-small-screens {
        display: none;
    }
}

.species-name {
    vertical-align: middle;
}

/* About page */
.about-link {
    color: var(--button-color);
    font-weight: 400;
}

.about-sidebar{
    height: 350px;
    margin-top: -16px;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .about-sidebar {
        height: 300px;
    }
}

.recorder-image {
    width: 100%;
    max-width: 350px; /* Adjust as needed */
    height: auto;
    border-radius: 5px;
    margin: 0 20px 20px 0; /* Adjust margins as needed */
}

.float-left {
    float: left;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.team-image {
    width: 90%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team-name {
    font-weight: bold;
    color: #333;
}

.partner-logo{
    width: 100%;
}

/* PLAYER WIDGET */
#popup-backdrop,
#livestream-popup-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 990;
}

#close-livestream-popup-button:hover,
#close-popup-button:hover,
#popup-replay-button:hover {
    cursor: pointer;
}

#popup-next-button,
#popup-previous-button {
    color: inherit;
    cursor: pointer;
}

#popup-next-button.disabled,
#popup-previous-button.disabled {
    color: rgb(222, 222, 222);
}

#popup {
    ::part(canvases) {
        display: none;
    }
}

#popup,
#livestream-popup {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--bs-gray-100);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    top: 100%;
    opacity: 0;
    display:none;
    transition:
      opacity 0.75s,
      top 0.75s,
      display 0.75s allow-discrete;
}

#livestream-popup-play-button {
    display: none;
}


@media only screen and (max-width: 360px) {
    #popup,
    #livestream-popup  {
        width: 240px;
    }
}

@media only screen and (min-width: 360px) {
    #popup,
    #livestream-popup  {
        width: 360px;
    }
}

@media only screen and (min-width: 600px) {
    #popup,
    #livestream-popup  {
        width: 500px;
    }
}

@media only screen and (min-width: 900px) {
    #popup,
    #livestream-popup  {
        width: 800px;
    }
}

#popup.visible,
#livestream-popup.visible  {
    display: block;
    top: 50%;
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.popup-button {
    background: none;
    border: none;
    font-size: 1.0rem;
    cursor: pointer;
    margin-left: 25px;
    color: #000;
}

.popup-button:hover {
    color: var(--button-color);
}

.popup-button:visited {
    color: #000;
}








