@charset "UTF-8";
.router-hidden {
  display: none;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: "Geologica", sans-serif;
  font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

a {
  text-decoration: none;
}

.body-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.page-section {
  padding: 50px;
}

@media (max-width: 821px) {
  .page-section {
    padding: 50px 35px;
  }
}

.page-section-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 30px;
  text-align: center;
  padding-bottom: 35px;
  max-width: 50%;
  margin: auto;
}

.page-section-header h1 {
  font-size: 60px;
}

.page-section-header .section-header-underline {
  height: 5px;
  width: 115px;
  margin: auto;
  background-color: #99c9cb;
}

.page-section-header p {
  font-size: 18px;
  margin-top: 20px;
}

@media (max-width: 821px) {
  .page-section-header {
    max-width: 100%;
  }
  .page-section-header h1 {
    font-size: 40px;
  }
}

.no-data-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  text-align: center;
  padding: 50px;
}

.no-data-message h1 {
  font-size: 40px;
}

.no-data-message p {
  font-size: 18px;
  margin-top: 20px;
}

.panel-auth {
  background-size: cover !important;
}

.panel-auth .panel-primary {
  background: white;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0px 0px 5px 3px black;
}

.panel-auth .panel-primary #auth-shinymanager-auth-head {
  display: none;
}

.btn-small {
  background-color: #f69445;
  color: #000000;
  border: transparent;
  border-radius: 0%;
  font-weight: 400;
  font-size: 20px;
  padding: 10px 20px;
  width: 170px;
}

.btn-small:hover {
  background-color: #f47814;
  color: #000000;
}

@media (max-width: 640px) {
  .btn-small {
    width: 100%;
  }
}

.btn-medium {
  background-color: #f69445;
  color: #000000;
  border: transparent;
  border-radius: 0%;
  font-weight: 400;
  font-size: 20px;
  padding: 10px 20px;
  width: 300px;
}

.btn-medium:hover {
  background-color: #f47814;
  color: #000000;
}

@media (max-width: 640px) {
  .btn-medium {
    width: 100%;
  }
}

.btn-large {
  background-color: #f69445;
  color: #000000;
  border: transparent;
  border-radius: 0%;
  font-weight: 400;
  font-size: 20px;
  padding: 10px 20px;
  width: 370px;
}

.btn-large:hover {
  background-color: #f47814;
  color: #000000;
}

@media (max-width: 640px) {
  .btn-large {
    width: 100%;
  }
}

.btn-square {
  background-color: #f69445;
  color: #000000;
  border: transparent;
  border-radius: 0%;
  font-weight: 400;
  font-size: 20px;
  padding: 10px 20px;
  width: 50px;
  height: 50px;
  padding: 0;
}

.btn-square:hover {
  background-color: #f47814;
  color: #000000;
}

@media (max-width: 640px) {
  .btn-square {
    width: 100%;
  }
}

.btn-square_inverted {
  background-color: transparent;
  color: #f69445;
  border: 1px solid #f69445;
  border-radius: 0%;
  font-weight: 500;
  width: 50px;
  height: 50px;
  padding: 0;
}

.btn-square_inverted:hover {
  background-color: #f69445;
  color: #000000;
  border: 1px solid #f69445;
}

@media (max-width: 640px) {
  .btn-square_inverted {
    width: 100%;
  }
}

.country-wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.country-wheel-section #wheel-of-life-image {
  width: 100%;
  max-width: 40vw;
}

@media (max-width: 821px) {
  .country-wheel-section #wheel-of-life-image {
    max-width: 100%;
  }
}

.country-wheel-section .magnify > .magnify-lens {
  width: 320px;
  height: 320px;
}

.key-statistics-card {
  color: #ffffff;
}

.key-statistics-card h2 {
  font-size: 60px;
}

.key-statistics-card .key-statistics-content {
  padding-top: 40px;
}

.key-statistics-card .key-statistics-content #key-stats-desktop {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 50px;
  row-gap: 0;
  text-align: center;
}

.key-statistics-card .key-statistics-content #key-stats-desktop div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.key-statistics-card .key-statistics-content #key-stats-desktop h1 {
  font-size: 36px;
  font-weight: 400;
  font-family: "Protest Riot", sans-serif;
}

.key-statistics-card .key-statistics-content #key-stats-desktop .key-stats-pic-art {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.key-statistics-card .key-statistics-content #key-stats-mobile {
  display: none;
}

.key-statistics-card .key-statistics-content #key-stats-mobile .centered-text-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
}

.key-statistics-card .key-statistics-content #key-stats-mobile .centered-text-box h1 {
  font-weight: 400;
  font-family: "Protest Riot", sans-serif;
}

.key-statistics-card .key-statistics-content .picture-box {
  height: fit-content;
}

.key-statistics-card .key-statistics-content .picture-box img {
  height: 200px;
}

@media (max-width: 640px) {
  .key-statistics-card .key-statistics-content #key-stats-desktop {
    display: none;
  }
  .key-statistics-card .key-statistics-content #key-stats-mobile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 50px;
  }
}

@media (max-width: 821px) {
  .key-statistics-card h2 {
    font-size: 40px;
  }
}

.left-aligned-text-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 50px;
  max-width: 100%;
}

.left-aligned-text-box h1 {
  font-size: 40px;
}

.left-aligned-text-box h2 {
  font-size: 30px;
}

.left-aligned-text-box p {
  font-size: 18px;
}

@media (max-width: 821px) {
  .left-aligned-text-box {
    max-width: 100%;
    gap: 20px;
  }
  .left-aligned-text-box h1 {
    font-size: 24px;
  }
  .left-aligned-text-box h2 {
    font-size: 24px;
  }
}

.centered-text-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.centered-text-box p {
  max-width: 750px;
  font-size: 20px;
}

.centered-text-box h1 {
  max-width: 550px;
  font-size: 30px;
}

@media (max-width: 640px) {
  .centered-text-box p {
    max-width: 100%;
  }
  .centered-text-box h1 {
    max-width: 100%;
    font-size: 24px;
  }
}

.picture-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.picture-box img,
.picture-box video {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
}

.invisible {
  display: none;
}

.page-not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.page-not-found .spinner {
  width: 100px;
  height: 100px;
}

.dropdown-filters-container {
  display: flex;
  grid-template-columns: auto auto;
  gap: 50px;
  max-width: 800px;
  margin-bottom: 50px;
}

@media (max-width: 640px) {
  .dropdown-filters-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
  }
  .dropdown-filters-container .shiny-input-container {
    width: 100%;
  }
}

.break-after::after {
  content: "\A";
  /* Insert line break */
  white-space: pre;
  /* Preserve the line break */
}

.statistics-section {
  height: 675px;
  align-content: center;
}

@media (max-width: 640px) {
  .statistics-section {
    height: 800px;
  }
}

.mfp-accordion-item-primary {
  padding: 30px 0px;
}

.mfp-accordion-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

details[open] .mfp-accordion-icon {
  transform: rotate(180deg);
}

.mfp-accordion-widget {
  width: 800px;
}

@media (max-width: 821px) {
  .mfp-accordion-widget {
    width: 100%;
  }
}

.mfp-gallery__card {
  background: transparent;
}

.onerror-default-image {
  object-fit: contain;
  padding: 1rem;
}

.header {
  background-color: #132b45;
  height: 400px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-image: url("../img/header/10_NS126885087_NGPS26RMI_ISF_1832-banner-cropped.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.header .header-title {
  max-width: 787px;
  font-size: 60px;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 640px) {
  .header .header-title {
    font-size: 40px;
    max-width: 80%;
  }
}

.header .nav-menu {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.header .nav-menu .accordion-item {
  border: none;
  background-color: transparent;
}

.header .nav-menu .accordion-item .accordion-header {
  display: flex;
  justify-content: end;
  margin: unset;
}

.header .nav-menu .accordion-item .accordion-header button {
  background-color: transparent;
  color: #ffffff;
  font-size: 2rem;
  padding: 0 0.5rem;
  width: fit-content;
}

.header .nav-menu .accordion-item .accordion-header button::after {
  display: none;
}

.header .nav-menu .accordion-item .accordion-header button:focus {
  box-shadow: none;
}

.header .nav-menu .accordion-item .accordion-header button .accordion-icon:not(:empty) {
  display: block;
  margin-right: 1rem;
  margin-top: 0.7rem;
}

.header .nav-menu .accordion-item .accordion-body {
  padding: 0;
}

.header .nav-menu img {
  width: 30px;
}

.header .nav-menu .nav-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  justify-content: start;
  padding: 0.5rem;
  padding-right: 1rem;
  background-color: #000000;
  gap: 1.5rem;
  height: fit-content;
  width: fit-content;
  text-wrap: nowrap;
  border-radius: 20px;
}

.header .nav-menu .nav-menu-content a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
}

.header .nav-menu .nav-menu-content .nav-menu-item {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu_home-btn {
  position: absolute;
  top: 0;
  right: 55px;
  z-index: 1;
  padding: 9px 8px 8px 8px;
  border: transparent;
  --bs-btn-hover-bg: transparent !important;
  --bs-btn-hover-border-color: transparent !important;
  margin-top: 0.55rem;
  margin-right: 0.5rem;
}

.nav-menu_accordion {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.header-epi-powered {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  color: white;
  gap: 0.5rem;
  right: 2%;
  bottom: 2%;
}

.header-epi-powered p {
  margin: 0;
  margin-bottom: 2px;
}

.header-epi-powered img {
  height: 30px;
}

.footer {
  background: #132b45;
  color: #ffffff;
  padding-bottom: 30px;
  font-size: 0.8rem;
}

.footer .footer-content {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.footer .footer-content .footer-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
}

.footer .footer-content .footer-group p {
  margin: 30px 0;
  font-size: 18px;
}

.footer .footer-content .footer-group a img {
  max-width: 260px;
}

.footer .footer-content .epi-wilderlab-logos {
  display: flex;
  flex-direction: row-reverse;
  margin-top: 15px;
  gap: 30px;
}

@media (max-width: 640px) {
  .footer .footer-content .epi-wilderlab-logos {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .footer .footer-content {
    flex-direction: column;
    gap: 50px;
  }
}

.footer .titled-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1rem;
  font-size: 15px;
}

.footer .titled-link a {
  height: fit-content;
}

.footer .titled-link a img {
  height: 50px;
  width: auto;
}

.footer .titled-link a #minderoo-logo {
  height: 65px;
}

.footer .titled-link a #wilderlab-logo {
  height: 80px;
}

.footer .titled-link a #epi-logo {
  height: 45px;
}

.country-selector-grid {
  padding: 50px 0px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* mobile: 3 */
  column-gap: 20px;
}

@media (min-width: 1024px) {
  .country-selector-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    /* desktop: 6 */
    column-gap: 50px;
  }
}

.country-selector-cell-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-top: 0;
}

.country-selector-cell {
  padding: 10px;
  background: transparent;
  height: 100%;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  color: #000000;
}

.country-selector-cell:hover {
  transform: scale(1.02);
  transition: transform 0.1s ease-in-out;
  font-weight: 500;
}

.coming-soon {
  font-style: italic;
  font-weight: 400;
}

.coming-soon img,
.coming-soon .mfp-gallery__label {
  opacity: 0.5;
}

.country-selector-filter label {
  display: flex;
}

.samples-map-module {
  margin: auto;
  max-width: 70%;
}

@media (max-width: 1400px) {
  .samples-map-module {
    max-width: 80%;
  }
}

@media (max-width: 821px) {
  .samples-map-module {
    max-width: 100%;
  }
}

.samples-map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Map settings styles */
.samples-map-settings {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: #f69445;
  border-radius: 0px;
  width: 15%;
  min-width: 250px;
}

@media (max-width: 640px) {
  .samples-map-settings {
    width: 100%;
    min-width: unset;
  }
}

.accordion-item,
.accordion-button {
  background-color: unset;
  border: unset;
}

@media (max-width: 640px) {
  .accordion-header {
    margin-right: 25px;
  }
}

/* Map popup styles */
.samples-map-container .maplibregl-popup-content {
  border-radius: 10px;
}

.maplibregl-map {
  overflow: visible !important;
}

.maplibregl-popup {
  z-index: 10000;
}

/* Legend styles */
.samples-map-legend {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
}

.samples-map-legend-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 5px;
  align-items: center;
  overflow: hidden;
}

.module-cell-NE {
  border: 1px solid #000000;
}

.module-cell-CR {
  color: #ffffff;
}

.waffle-plot-module-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.waffle-plot-module-content .waffle-plot-container {
  max-width: 500px;
  width: 500px;
  position: relative;
}

.waffle-plot-module-content .waffle-plot-legend {
  width: 40%;
}

@media (max-width: 821px) {
  .waffle-plot-module-content {
    flex-direction: column-reverse;
    align-items: center;
    gap: 50px;
  }
  .waffle-plot-module-content .waffle-plot-container {
    max-width: 100%;
    width: 100%;
  }
  .waffle-plot-module-content .waffle-plot-legend {
    width: 100%;
  }
}

.waffle-plot-legend .accordion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 821px) {
  .waffle-plot-legend .accordion {
    width: 100%;
  }
}

.waffle-plot-legend .accordion > :first-child {
  border-top: 1px solid #000000;
}

.waffle-plot-legend .accordion-button .accordion-title {
  padding-right: 10px;
}

.waffle-plot-legend .accordion-item {
  width: 100%;
  border-bottom: 1px solid #000000;
  align-content: center;
  border-radius: 0px;
}

.waffle-plot-legend .accordion-button {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2a.75.75 0 0 1 .75.75v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5h4.5v-4.5A.75.75 0 0 1 8 2z'/%3E%3C/svg%3E");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8z'/%3E%3C/svg%3E");
}

.waffle-plot-legend .accordion-body {
  overflow-y: auto;
  max-height: 200px;
}

.waffle-plot-legend .accordion-button {
  padding: 10px 0px;
}

.waffle-plot-legend .accordion-button .accordion-title {
  padding-right: 10px;
}

.IUCN-status-legend-primary-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 30px;
  font-size: 20px;
  font-weight: 500;
}

.IUCN-status-legend-primary-content img {
  width: 50px;
}

.IUCN-status-legend-secondary-content {
  display: grid;
  grid-template-columns: auto auto;
  row-gap: 10px;
  column-gap: 20px;
}

@media (max-width: 821px) {
  .IUCN-status-legend-secondary-content {
    row-gap: 20px;
  }
}

.IUCN-status-legend-species {
  width: 15vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 821px) {
  .IUCN-status-legend-species {
    width: 33vw;
  }
}

.waffle_plot--detections-legend {
  display: flex;
  flex-direction: flex-start;
  gap: 10px;
  position: absolute;
  top: -35px;
}

.waffle-cell-partial {
  align-content: center;
}

.waffle-cell-remainder {
  margin: 0;
  text-align: center;
}

@media (max-width: 425px) {
  .waffle-cell-remainder {
    font-size: x-small;
  }
}

.species-gallery-module {
  width: 100%;
  margin: auto;
}

@media (max-width: 640px) {
  .species-gallery-module {
    width: 100%;
  }
}

.species-gallery {
  gap: 15px;
  row-gap: 65px;
  grid-template-rows: auto;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

@media (max-width: 1400px) {
  .species-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .species-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .species-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.species-gallery-container {
  width: fit-content;
  margin: auto;
}

.species-gallery-species {
  font-size: 20px;
  text-overflow: ellipsis;
  margin-bottom: auto;
}

@media (max-width: 640px) {
  .species-gallery-species {
    font-size: 14px;
  }
}

.species-gallery-scientific {
  font-size: 16px;
  text-overflow: ellipsis;
  margin: 5px 0px 5px 0px;
}

@media (max-width: 640px) {
  .species-gallery-scientific {
    font-size: 14px;
  }
}

.species-gallery-detections {
  font-size: 16px;
  text-overflow: ellipsis;
  margin: 5px 0px 5px 0px;
}

@media (max-width: 640px) {
  .species-gallery-detections {
    font-size: 14px;
  }
}

.species-gallery-image {
  height: auto;
  background-color: #e7ebf0;
}

.species-gallery-cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 194px;
}

.pagination-container .pagination {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 0px;
  gap: 10px;
}

.pagination-container .pagination li.page-item.disabled {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .pagination-container .pagination li.page-item.disabled {
    display: none;
  }
}

.pagination-container .pagination li.page-item .page-link {
  background-color: transparent;
  border: none;
  color: #000000;
  box-shadow: none;
  padding: 0 0.25rem;
}

.pagination-container .pagination li.page-item.active .page-link {
  color: #f69445;
  border-bottom: 1px solid #f69445;
  box-shadow: none;
}

.pagination-container .pagination li.page-item.previous .page-link, .pagination-container .pagination li.page-item.next .page-link {
  color: #f69445;
}

@media (max-width: 640px) {
  .pagination-container .pagination {
    justify-content: space-evenly;
    overflow: hidden;
    gap: 0px;
  }
}

.pagination-container .action-label {
  font-size: 20px;
}

@media (max-width: 640px) {
  .pagination-container .action-label {
    font-size: 16px;
  }
}

.species-gallery-cards--no-image img {
  object-fit: contain;
  padding: 1rem;
}

.species-gallery-cards--no-commonname {
  justify-content: space-between;
}

.species-gallery-cards--no-commonname .species-gallery-species {
  display: none;
}

.species-gallery-cards--no-commonname .species-gallery-scientific {
  font-size: 20px;
  margin-bottom: auto;
}

.species-gallery-cards--phylopic-image img {
  padding: 1rem;
}

.taxa_search_btn_container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
}

.taxa_search_toggle {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.taxa_search_toggle div {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 5px;
}

.taxa_search_toggle div .shiny-input-container {
  width: unset;
}

.taxa_search_filter_container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 30px;
}

@media (max-width: 640px) {
  .taxa_search_filter_container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: unset;
  }
}

.taxa_search_filter_group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 25%;
}

.taxa_search_filter_group .shiny-input-container {
  width: 100%;
}

@media (max-width: 640px) {
  .taxa_search_filter_group {
    width: 80%;
  }
}

:root {
  --animation-height: 150px;
}

.loader-parent {
  width: 100vw;
  height: 300px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader-parent.full-page {
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

.loader-parent .loading-text {
  color: #132b45;
  font-weight: bold;
}

.loader-parent .loader {
  width: var(--animation-height);
  height: var(--animation-height);
  display: inline-block;
  position: relative;
}

.loader-parent .loader::after,
.loader-parent .loader::before {
  content: "";
  box-sizing: border-box;
  width: var(--animation-height);
  height: var(--animation-height);
  border-radius: 50%;
  border: 2px solid #132b45;
  position: absolute;
  left: 0;
  top: 0;
  animation: animloader 2s linear infinite;
}

.loader-parent .loader::after {
  animation-delay: 1s;
}

@keyframes animloader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.hide-search-content > *,
.hide-search-content {
  z-index: -1000;
  height: 20px;
  overflow: hidden;
}

/* Element loader for biosecurity map */
.map-loader:not(.hide) {
  width: 100%;
  height: 600px;
  background: linear-gradient(0.25turn, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%), linear-gradient(transparent);
  background-color: rgba(22, 47, 63, 0.1);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  background-position: bottom 50% right -25%;
  animation: loading 2.5s infinite;
}

#map-content:has(.map-loader:not(.hide)) {
  position: relative;
}

#map-content:has(.map-loader:not(.hide)) #map-parent > div:not(.map-loader) * {
  z-index: -10 !important;
}

#map-content:has(.map-loader:not(.hide)) .map-loader {
  position: absolute;
  z-index: 1000;
}

#map-content:has(.map-loader:not(.hide)) .hide-while-loading {
  position: absolute;
  top: 0;
  z-index: -10000;
  pointer-events: none;
}

@keyframes loading {
  to {
    background-position: bottom 50% right 125%;
  }
}

/* Login button loader */
.login-btn-parent {
  position: relative;
  width: fit-content;
}

.login-btn-parent button span {
  visibility: visible;
}

.login-btn-parent:has(.login-btn-loader.show) button {
  z-index: -10;
  opacity: 0.5;
  pointer-events: none;
}

.login-btn-parent:has(.login-btn-loader.show) button span {
  visibility: hidden;
}

.login-btn-parent .login-btn-loader {
  position: absolute;
  top: calc(50% - 12px);
  left: calc(50% - 6px);
}

.login-btn-parent > .login-btn-loader.show {
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  color: var(--white);
  background: var(--white);
  box-sizing: border-box;
  animation: login_animloader 2s linear infinite;
}

@keyframes login_animloader {
  0% {
    box-shadow: -24px 0 0 -2px, 0px 0 0 -2px, 24px 0 0 -2px;
  }
  25% {
    box-shadow: -24px 0 0 2px, 0px 0 0 0px, 24px 0 0 -2px;
  }
  50% {
    box-shadow: -24px 0 0 0px, 0px 0 0 2px, 24px 0 0 0px;
  }
  75% {
    box-shadow: -24px 0 0 -2px, 0px 0 0 0px, 24px 0 0 2px;
  }
  100% {
    box-shadow: -24px 0 0 -2px, 0px 0 0 -2px, 24px 0 0 -2px;
  }
}

.home-welcome-section {
  color: #000000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
}

.home-info-section {
  background-color: #e7ebf0;
}

.home-info-section .home-info-section-desktop,
.home-info-section .home-info-section-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 20px;
  gap: 50px;
}

.home-info-section .home-info-section-desktop > div,
.home-info-section .home-info-section-mobile > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 50px;
  max-width: 50%;
}

@media (max-width: 821px) {
  .home-info-section .home-info-section-desktop,
.home-info-section .home-info-section-mobile {
    flex-direction: column;
    gap: 50px;
  }
  .home-info-section .home-info-section-desktop > div,
.home-info-section .home-info-section-mobile > div {
    max-width: 100%;
  }
}

.home-info-section .home-info-section-desktop > div,
.home-info-section .home-info-section-mobile > div {
  gap: 20px;
}

.home-info-section .home-info-section-desktop .picture-box,
.home-info-section .home-info-section-mobile .picture-box {
  justify-content: center;
}

.home-info-section .home-info-section-desktop .picture-box img,
.home-info-section .home-info-section-mobile .picture-box img {
  object-fit: fill;
}

.home-info-section .home-info-section-desktop .left-aligned-text-box,
.home-info-section .home-info-section-mobile .left-aligned-text-box {
  gap: 0;
}

.home-info-section .home-info-section-desktop .left-aligned-text-box h1,
.home-info-section .home-info-section-mobile .left-aligned-text-box h1 {
  margin-bottom: 1rem;
}

.home-info-section .home-info-section-mobile {
  display: none;
}

@media (max-width: 640px) {
  .home-info-section .home-info-section-mobile {
    display: flex;
  }
}

@media (max-width: 640px) {
  .home-info-section .home-info-section-desktop {
    display: none;
  }
}

.home-explore-section {
  background-color: #132b45;
  color: #ffffff;
}

.home-explore-section .page-selector {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 35px;
}

.home-explore-section .page-selector .page-selector-card {
  background-size: cover;
  background-position: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 50px;
  height: 378px;
  min-width: 277px;
  width: min-content;
}

.home-explore-section .page-selector .page-selector-card .btn-primary {
  font-weight: 700;
  font-size: 20px;
}

@media (max-width: 640px) {
  .home-explore-section .page-selector .page-selector-card .btn-primary {
    font-size: 18px;
  }
}

.home-explore-section .page-selector .page-selector-card:hover {
  transform: scale(1.02);
  transition: transform 0.1s ease-in-out;
  font-weight: 500;
}

.home-faq-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-faq-section .accordion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 821px) {
  .home-faq-section .accordion {
    width: 100%;
  }
}

.home-faq-section .accordion > :first-child {
  border-top: 1px solid #000000;
}

.home-faq-section .accordion-button .accordion-title {
  padding-right: 10px;
}

.home-faq-section .accordion-item {
  width: 100%;
  border-bottom: 1px solid #000000;
  align-content: center;
  border-radius: 0px;
}

.home-faq-section .accordion-button {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2a.75.75 0 0 1 .75.75v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5h4.5v-4.5A.75.75 0 0 1 8 2z'/%3E%3C/svg%3E");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8z'/%3E%3C/svg%3E");
}

.home-faq-section .accordion {
  max-width: 700px;
}

.home-faq-section .accordion-title {
  font-size: 18px;
}

.home-faq-section .accordion-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  padding: 10px 0px;
}

.home-faq-section .accordion-body {
  font-size: 18px;
  padding: 16px 20px;
}

.home-educator-section {
  background-color: #e7ebf0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

@media (max-width: 640px) {
  .home-educator-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
}

.explore-countries-selection-section {
  background-color: #e7ebf0;
}

.explore-countries-info-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.explore-countries-intro-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

@media (max-width: 640px) {
  .explore-countries-intro-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
}

.country-name-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  background-color: #e7ebf0;
}

.country-name-section .left-aligned-text-box {
  max-width: 75%;
}

.country-name-section .picture-box {
  justify-content: flex-end;
}

.country-name-section .picture-box img {
  max-height: 300px;
}

@media (max-width: 640px) {
  .country-name-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 50px;
  }
  .country-name-section .left-aligned-text-box {
    max-width: 100%;
  }
  .country-name-section .picture-box {
    justify-content: center;
  }
}

.country-educator-section {
  background-color: #e7ebf0;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 20px;
}

.country-educator-section > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 50px;
  max-width: 50%;
}

@media (max-width: 821px) {
  .country-educator-section {
    flex-direction: column;
    gap: 50px;
  }
  .country-educator-section > div {
    max-width: 100%;
  }
}

.country-statistics-section {
  background-image: url("../img/key-statistics/NS119085806_NGSPSSLI2_13102021-01124_MANU_San_FélixMSF_1729_key-stats_cropped.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.country-samples-section {
  background-color: #e7ebf0;
}

.country-gallery-section {
  background-color: #e7ebf0;
}

.explore-taxa-select-section {
  background-color: #e7ebf0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 50px;
}

.explore-taxa-select-section .left-aligned-text-box {
  max-width: 75%;
}

@media (max-width: 640px) {
  .explore-taxa-select-section .left-aligned-text-box {
    max-width: 100%;
  }
}

.explore-taxa-statistics-section {
  background-image: url("../img/key-statistics/NS119085806_NGSPSSLI2_13102021-01124_MANU_San_FélixMSF_1729_key-stats_cropped.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.chat-intro-section {
  background-color: #e7ebf0;
}

.chat-intro-section li {
  margin-bottom: 20px;
}

@media (max-width: 821px) {
  .chat-intro-section li {
    margin-bottom: 5px;
  }
}

.chat-intro-section .chat-intro-section-flex {
  display: none;
}

.chat-intro-section .chat-intro-section-flex > div:first-child {
  border-bottom: 1px solid #8d959e;
  padding-top: 0;
  padding-bottom: 40px;
}

.chat-intro-section .chat-intro-section-flex .left-aligned-text-box {
  width: 100%;
  padding-top: 40px;
}

@media (max-width: 821px) {
  .chat-intro-section .chat-intro-section-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
}

.chat-intro-section .chat-intro-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  row-gap: 50px;
  position: relative;
}

.chat-intro-section .chat-intro-section-grid div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.chat-intro-section .chat-intro-section-grid h1,
.chat-intro-section .chat-intro-section-grid h5 {
  align-content: center;
}

.chat-intro-section .chat-intro-section-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: #8d959e;
}

@media (max-width: 821px) {
  .chat-intro-section .chat-intro-section-grid {
    display: none;
  }
}

.chat-parent-row {
  display: flex;
  flex-direction: row;
  gap: 50px;
  padding: 50px 0;
}

.chat-parent-row .chat-input-col {
  width: 100%;
}

.chat-parent-row .chat-input-col h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.chat-parent-row .chat-input-col .shiny-text-output {
  margin-left: auto;
  width: fit-content;
  font-size: 0.85rem;
  color: #666;
}

.chat-parent-row .chat-input-col .form-group {
  width: 100%;
}

.chat-parent-row .chat-input-col .form-group textarea.shiny-input-textarea {
  border-radius: 0;
  border: 1px solid #000000;
  width: 100%;
  min-height: 200px;
  font-size: 1.1rem;
}

.chat-parent-row .chat-input-col .chat-buttons-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.chat-parent-row .chat-input-col .chat-buttons-row .link-btn {
  margin-right: auto;
  border: none;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  font-size: 18px;
  --bs-btn-hover-color: $darkblue;
  --bs-btn-active-color: $darkblue;
}

.chat-parent-row .chat-input-col .chat-buttons-row .reset-btn {
  padding: 0.5rem;
  aspect-ratio: 1/1;
  font-size: 1.2rem;
}

.chat-parent-row .chat-input-col .chat-buttons-row .submit-btn {
  padding: 0.5rem 1.5rem;
  background: #132b45;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
}

.chat-parent-row .chat-input-col .chat-buttons-row .submit-reset-btns {
  display: flex;
  flex-direction: row;
  gap: inherit;
  align-items: center;
}

@media (max-width: 821px) {
  .chat-parent-row .chat-input-col .chat-buttons-row {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .chat-parent-row .chat-input-col .chat-buttons-row .link-btn {
    margin-right: 0;
  }
}

.chat-parent-row .chat-answer-col {
  width: 100%;
}

.chat-parent-row .chat-answer-col h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (max-width: 821px) {
  .chat-parent-row {
    flex-direction: column;
    gap: 50px;
  }
  .chat-parent-row .chat-input-col {
    flex: 1;
  }
}

.spinner-container {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner-visible {
  display: flex !important;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #132b45;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

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

.text-visible {
  display: block;
}

.text-invisible {
  display: none;
}

.chat-module-section .accordion {
  margin-top: 2rem;
  background-color: #e7ebf0;
}

.chat-module-section .accordion-body {
  overflow-y: auto;
  max-height: 300px;
}

.chat-module-section .accordion-header button {
  font-weight: 700;
}

.chat-modal-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.chat-modal-content .chat-modal-section {
  width: 100%;
}

.chat-modal-content .chat-modal-section .chat-example-img {
  width: 100%;
  border: 1px solid #8d959e;
  border-radius: 10px;
}

.about-intro-section {
  background-color: #e7ebf0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
}

@media (max-width: 821px) {
  .about-intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }
}

.about-mission-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
}

@media (max-width: 821px) {
  .about-mission-section {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 50px;
  }
}

.about-educator-section {
  background-color: #e7ebf0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  gap: 100px;
}

@media (max-width: 821px) {
  .about-educator-section {
    gap: 50px;
  }
}

@media (max-width: 1400px) {
  .about-educator-section {
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }
}

.about-educator-section .left-aligned-text-box {
  width: 50%;
}

.about-educator-section .left-aligned-text-box p {
  margin-bottom: unset;
}

@media (max-width: 1400px) {
  .about-educator-section .left-aligned-text-box {
    width: 100%;
  }
}

.about-educator-section .about-educator-section-media-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: row-reverse;
  align-self: center;
  gap: 2%;
}

@media (max-width: 1400px) {
  .about-educator-section .about-educator-section-media-container {
    margin: auto;
  }
}

@media (max-width: 640px) {
  .about-educator-section .about-educator-section-media-container {
    flex-direction: column-reverse;
    gap: 50px;
  }
}

.about-educator-section .picture-box {
  width: unset;
}

.about-educator-section .picture-box img,
.about-educator-section .picture-box video {
  object-fit: cover;
  height: stretch;
}

.about-mission-section,
.about-intro-section {
  gap: 100px;
}

@media (max-width: 821px) {
  .about-mission-section,
.about-intro-section {
    gap: 50px;
  }
}

.about-mission-section .picture-box,
.about-intro-section .picture-box {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 50%;
}

.about-mission-section .picture-box img,
.about-intro-section .picture-box img {
  max-width: 100%;
  max-height: 600px;
  object-fit: cover;
  width: stretch;
}

@media (max-width: 821px) {
  .about-mission-section .picture-box,
.about-intro-section .picture-box {
    justify-content: center;
    width: 100%;
  }
}

.about-mission-section .left-aligned-text-box,
.about-intro-section .left-aligned-text-box {
  width: 50%;
}

@media (max-width: 821px) {
  .about-mission-section .left-aligned-text-box,
.about-intro-section .left-aligned-text-box {
    width: 100%;
  }
}

@media (max-width: 821px) {
  .about-mission-section button,
.about-intro-section button {
    width: 100%;
  }
}

.about-image-credits-section {
  background-color: #e7ebf0;
}

.about-acknowledgements-section .left-aligned-text-box,
.about-image-credits-section .left-aligned-text-box,
.about-contact-section .left-aligned-text-box {
  width: 50%;
}

@media (max-width: 821px) {
  .about-acknowledgements-section .left-aligned-text-box,
.about-image-credits-section .left-aligned-text-box,
.about-contact-section .left-aligned-text-box {
    width: 100%;
  }
}

.acknowledgement-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  row-gap: 50px;
}

.acknowledgement-cards-container .acknowledgement-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.acknowledgement-cards-container .acknowledgement-card div {
  height: 80px;
}

.acknowledgement-cards-container .acknowledgement-card div img {
  height: 100%;
}

@media (max-width: 821px) {
  .acknowledgement-cards-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

.acknowledgement-cards-container #EPI-card div {
  padding: 10px;
  padding-left: 0;
}

/* ==========================================================================
   DISCONNECT OVERLAY
   Custom disconnect/reconnect modal that replaces the default Shiny behavior.
   ========================================================================== */
.disconnect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disconnect-modal {
  background: #ffffff;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
  min-width: 320px;
  max-width: 40vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.disconnect-modal__title {
  font-weight: bold;
  color: #000000;
  margin-bottom: 20px;
}

.disconnect-modal__message {
  font-weight: normal;
  color: #000000;
  margin-bottom: 20px;
}

.disconnect-modal__note {
  font-size: 0.8rem;
  color: #000000;
  margin-bottom: 30px;
}

.disconnect-modal__actions {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.disconnect-modal__btn {
  font-weight: bold;
  border-radius: 20px;
  padding: 20px 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.disconnect-modal__btn--primary {
  background: #f69445;
  color: #000000;
  border-color: #f69445;
}

.disconnect-modal__btn--primary:hover {
  background: #f47814;
  border-color: #f47814;
}
