/** Source Sans 3 */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --white: #ffffff;
  --black: #000000;
  --purple: #7f4099;
  --light-purple: #ede5f3;
  --green: #00aa43;
  --light-green: #e8f4e7;
  --grey: #9e9e9e;
  --plt-purple: #8a399c;
  --plt-yellow: #ffb100;
  --plt-green: #00a843;
  --plt-red: #d3201d;
  --plt-blue: #3488ef;
  --plt-orange: #f67300;
  --plt-aqua: #14c0b8;
  --plt-pink: #ee308c;
  --plt-brown: #b7820d;
  --font-primary: 'Quicksand', sans-serif;
  --font-header: 'Raleway', sans-serif;
  --footer-height: 175px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-max: 9999px;
  --gap-sm: 20px;
  --gap-md: 30px;
  --gap-lg: 50px;
  --padding-section: 50px;
}

h1,
h2,
h3,
h4,
p {
  color: var(--colour-dark);
}

h1,
h2 {
  font-family: var(--font-header);
  font-size: 48px;
  font-weight: bold;
}

h3 {
  font-family: var(--font-header);
  font-size: 30px;
  font-weight: bold;
}

p {
  font-family: var(--font-primary);
  font-size: 20px;
}

body {
  font-family: var(--font-primary);
  font-size: 20px;
}

.bold {
  font-weight: bold;
}

a {
  color: var(--purple);
}

/* All page sections, determines padding and position on the page */
.page-section {
  padding: var(--padding-section);
}

@media (max-width: 640px) {
  .page-section {
    padding: var(--padding-section) 32px;
  }
}

.page-section--tinted {
  padding: var(--padding-section);
  background-color: var(--light-purple);
}

@media (max-width: 640px) {
  .page-section--tinted {
    padding: var(--padding-section) 32px;
  }
}

/* Page sections with one half a picture, the other half a text-box */
.feature-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  align-content: center;
}

.feature-section > div {
  flex: 1.2;
}

.feature-section .picture-box {
  flex: 1;
  justify-content: flex-start;
}

.btn {
  --bs-btn-border-radius: var(--radius-max);
}

.btn-primary {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--purple);
  --bs-btn-border-color: var(--purple);
  --bs-btn-hover-bg: var(--light-purple);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-border-color: var(--black);
}

.btn-outline-primary {
  --bs-btn-color: var(--purple);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--purple);
  --bs-btn-hover-bg: var(--light-purple);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-border-color: var(--purple);
}

.btn-primary,
.btn-outline-primary {
  --bs-btn-focus-shadow-rgb: 38, 143, 203;
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--purple);
  --bs-btn-active-border-color: var(--purple);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-bg: var(--purple);
  --bs-btn-disabled-border-color: var(--purple);
}

.btn-primary:hover,
.btn-outline-primary:hover {
  transform: scale(1.02);
  transition: transform 0.1s ease-in-out;
  font-weight: 500;
}

.btn-secondary {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--light-green);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-border-color: var(--light-green);
}

.btn-outline-secondary {
  --bs-btn-color: var(--green);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--light-green);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-border-color: var(--green);
}

.btn-secondary,
.btn-outline-secondary {
  --bs-btn-focus-shadow-rgb: 38, 143, 203;
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--green);
  --bs-btn-active-border-color: var(--green);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-bg: var(--green);
  --bs-btn-disabled-border-color: var(--green);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
  transform: scale(1.02);
  transition: transform 0.1s ease-in-out;
  font-weight: 500;
}

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

.f-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

.f-row--space-between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.f-row--swap-mobile {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

@media (max-width: 640px) {
  .f-row--swap-mobile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
}

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

.left-aligned-text-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--gap-lg);
}

@media (max-width: 821px) {
  .left-aligned-text-box {
    gap: var(--gap-sm);
  }
}

.centered-text-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--gap-sm);
}

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

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

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

.key-stats-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: var(--gap-lg);
}

@media (max-width: 640px) {
  .key-stats-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.key-stats-container .key-stat-card {
  text-align: center;
}

.key-stats-container .key-stat-card .key-stat-value {
  font-family: var(--font-header);
  font-weight: bold;
  font-size: 48px;
}

.key-stats-container .key-stat-card .key-stat-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: bold;
}

.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;
}

.page-selector {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: auto auto auto;
  gap: var(--gap-lg);
}

@media (max-width: 640px) {
  .page-selector {
    grid-template-columns: auto;
  }
}

.page-selector a {
  margin-top: auto;
}

.page-selector .page-selector-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--gap-sm);
  text-align: center;
}

@media (max-width: 640px) {
  .page-selector .page-selector-card {
    gap: calc(var(--gap-sm) / 2);
  }
}

.page-selector .page-selector-card-title {
  font-family: var(--font-header);
  font-size: 30px;
  font-weight: bold;
}

.section-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

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

.section-header .section-header-downloaders {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  align-self: flex-end;
}

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

.no-data-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: var(--gap-md);
  text-align: center;
  padding: var(--padding-section);
}

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

.no-data-message p {
  font-size: 20px;
  margin-top: var(--gap-sm);
}

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

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

.vertical-divider {
  width: 1px;
  background-color: var(--black);
  align-self: stretch;
  margin: 0px 7px 0px 7px;
  border-radius: 100px;
}

.container-fluid {
  padding: 0;
}

.gt_shiny .rt-sort-right {
  margin-left: auto;
}

.dataTables_wrapper {
  box-shadow: none !important;
}

.dataTables_wrapper table.dataTable {
  border-collapse: collapse;
}

.dataTables_wrapper table.dataTable thead th {
  border-bottom: 2px solid var(--grey) !important;
  font-weight: bold;
  text-align: left;
}

.dataTables_wrapper table.dataTable thead th.sorting::before, .dataTables_wrapper table.dataTable thead th.sorting::after {
  opacity: 0 !important;
}

.dataTables_wrapper table.dataTable thead th.sorting_asc::before, .dataTables_wrapper table.dataTable thead th.sorting_desc::after {
  opacity: 1 !important;
}

.dataTables_wrapper table.dataTable thead th.sorting_asc::after, .dataTables_wrapper table.dataTable thead th.sorting_desc::before {
  opacity: 0 !important;
}

.dataTables_wrapper table.dataTable tbody td {
  background-color: var(--white) !important;
  border-bottom: 1px solid var(--grey) !important;
  box-shadow: none !important;
  align-content: center;
  text-align: left;
}

.dataTables_wrapper table.dataTable tbody tr.odd > *,
.dataTables_wrapper table.dataTable tbody tr.even > * {
  box-shadow: none !important;
  background-color: var(--white) !important;
}

.dataTables_wrapper table.dataTable tbody tr.selected > * {
  background-color: var(--light-purple) !important;
  color: var(--black) !important;
}

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

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

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

.dataTables_wrapper .dataTables_paginate .pagination li.page-item .page-link {
  background-color: transparent;
  border: none;
  color: var(--black);
  box-shadow: none;
  padding: 0 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .pagination li.page-item.active .page-link {
  color: var(--purple);
  border-bottom: 1px solid var(--purple);
  box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .pagination li.page-item.previous .page-link, .dataTables_wrapper .dataTables_paginate .pagination li.page-item.next .page-link {
  color: var(--purple);
}

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

.dataTables_wrapper .dataTables_paginate .action-label {
  font-size: 20px;
}

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

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--black) !important;
  padding: 0 0.25rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous a,
.dataTables_wrapper .dataTables_paginate .paginate_button.next a {
  font-size: 20px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
  color: var(--purple) !important;
  border-bottom: 1px solid var(--purple) !important;
  box-shadow: none !important;
  font-weight: normal !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  color: var(--purple) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.5 !important;
  color: var(--black) !important;
}

@media (max-width: 640px) {
  .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    display: none !important;
  }
}

.gradient-white-circle {
  position: absolute;
  height: 16px;
  width: 16px;
  top: 8px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--grey);
}

.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;
}

.footer {
  background: var(--purple);
  color: var(--white);
  font-size: 0.8rem;
}

.footer .footer-content {
  padding: var(--gap-md);
  padding-bottom: 100px;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.footer .footer-content .footer-group {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--gap-sm);
}

.footer .footer-content .footer-group img {
  height: 70px;
  width: auto;
}

.footer .footer-content .footer-group p {
  margin: var(--gap-md) 0;
  font-size: 20px;
}

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

.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: var(--gap-lg);
  }
}

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

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

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

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

.footer .footer-tcs {
  padding: var(--gap-sm);
}

.footer .footer-tcs > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  border-top: 1px solid var(--white);
}

.footer .footer-tcs p {
  font-size: 15px;
  margin-top: var(--gap-sm);
  margin-bottom: 0;
  color: var(--white);
}

.header {
  background-color: var(--white);
}

.header .nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  height: 100px;
  padding: var(--gap-sm);
}

.header .nav-menu .nav-menu_logos {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.header .nav-menu .nav-menu_logos a {
  display: block;
  height: 100%;
}

.header .nav-menu .nav-menu_logos img {
  height: 100%;
}

@media (max-width: 640px) {
  .header .nav-menu .nav-menu_logos a {
    align-content: center;
  }
  .header .nav-menu .nav-menu_logos img {
    height: 40px;
  }
}

.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: var(--white);
  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.5rem;
}

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

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

.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: var(--black);
  gap: 1.5rem;
  height: fit-content;
  width: fit-content;
  text-wrap: nowrap;
  border-radius: 20px;
}

.header .nav-menu .nav-menu-content a {
  color: var(--white);
  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;
}

.header-hero {
  background-color: var(--purple);
  height: 400px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-image: url("../img/placeholder-images/Banner.png");
  background-size: cover;
  background-position: center;
}

.header-hero .header-title,
.header-hero .subheader-title {
  color: var(--white);
  text-align: center;
  margin: auto;
  margin-bottom: var(--gap-sm);
  max-width: 700px;
}

.header-hero .header-title {
  font-weight: bold;
}

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

.exporter_module_button {
  color: var(--purple);
  text-align: right;
  min-width: 130px;
}

.exporter_module_container {
  padding-left: 10%;
  text-wrap: nowrap;
}

.exporter_module_container a.shiny-download-link.disabled {
  pointer-events: unset;
  cursor: not-allowed;
  color: grey;
}

.maplibregl-popup {
  max-width: fit-content !important;
}

.maplibregl-popup-content {
  border-radius: 12px;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  height: 40px;
}

.map-popup {
  font-family: 'Quicksand', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  font-size: large;
}

.map-popup hr {
  margin: 1rem 0;
  opacity: 1;
  border-color: var(--black);
}

.map-popup > :first-child {
  font-weight: bold;
  padding-right: 15px;
  margin-bottom: 0.5rem;
}

.species-search-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

@media (max-width: 821px) {
  .species-search-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
}

.species-search-inputs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

@media (max-width: 821px) {
  .species-search-inputs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
}

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

.species-search-btn-container {
  align-content: center;
}

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

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

.species-gallery {
  display: grid;
  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;
  font-weight: bold;
  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;
  }
}

.mfp-gallery__image-container {
  width: 100%;
}

.species-gallery-image {
  height: auto;
  background-color: var(--light-purple);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

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

.species-gallery-cards > div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Max lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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: var(--black);
  box-shadow: none;
  padding: 0 0.25rem;
}

.pagination-container .pagination li.page-item.active .page-link {
  color: var(--purple);
  border-bottom: 1px solid var(--purple);
  box-shadow: none;
}

.pagination-container .pagination li.page-item.previous .page-link, .pagination-container .pagination li.page-item.next .page-link {
  color: var(--purple);
}

@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;
  font-weight: bold;
}

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

.mfp-client-gallery {
  width: fit-content;
  margin: auto;
  display: flex;
}

.mfp-client-gallery__page {
  display: none;
}

.mfp-client-gallery__page.is-active {
  display: flex;
}

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

.mfp-client-gallery-pagination .pagination li.page-item.disabled {
  opacity: 0.5;
}

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

.mfp-client-gallery-pagination .pagination li.page-item .page-link {
  background-color: transparent;
  border: none;
  color: var(--black);
  box-shadow: none;
  padding: 0 0.25rem;
  cursor: pointer;
}

.mfp-client-gallery-pagination .pagination li.page-item.active .page-link {
  color: var(--purple);
  border-bottom: 1px solid var(--purple);
  box-shadow: none;
}

.mfp-client-gallery-pagination .pagination li.page-item.previous .page-link, .mfp-client-gallery-pagination .pagination li.page-item.next .page-link {
  color: var(--purple);
}

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

.comparison-map__overview, .comparison-map__group {
  align-items: center;
  gap: var(--gap-lg);
  margin-top: 80px;
}

.comparison-map__overview .last-group, .comparison-map__group .last-group {
  margin-bottom: 80px;
}

@media (max-width: 1400px) {
  .comparison-map__overview, .comparison-map__group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
}

.comparison-map__overview {
  justify-content: space-between;
}

.comparison-map__overview > div {
  flex: 1;
}

@media (max-width: 640px) {
  .comparison-map__overview > div {
    margin-top: var(--gap-md);
  }
}

.comparison-map__table {
  flex: 1;
}

.comparison-map__map {
  flex: 1;
  align-self: center;
}

.comparison-map__map .map {
  height: 450px !important;
  margin-block: auto;
}

.comparison-map-table {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto;
  border-bottom: 1px solid var(--black);
}

.comparison-map-table__cell {
  padding: 10px;
  gap: 10px;
  border-top: 1px solid var(--black);
  align-content: center;
  height: fit-content;
}

@media (max-width: 640px) {
  .comparison-map-table__cell {
    align-items: center;
    margin: auto;
    border-top: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .comparison-map-table__cell--first-col {
    border-top: 1px solid var(--grey);
  }
}

.comparison-map-table__cell--top-row {
  border-top: none;
}

.comparison-map-table--similarity {
  grid-template-columns: auto auto auto;
}

@media (max-width: 640px) {
  .comparison-map-table--similarity {
    grid-template-columns: auto;
  }
}

@media (max-width: 640px) {
  .comparison-map-table--summary {
    grid-template-columns: auto;
  }
}

.icon-circle--primary-colours {
  border-radius: 100%;
  aspect-ratio: 1;
  align-content: center;
  text-align: center;
  font-weight: bold;
  width: 50px;
  height: 50px;
  color: var(--purple);
  background-color: var(--light-purple);
  border-color: var(--purple);
}

.icon-circle--secondary-colours {
  border-radius: 100%;
  aspect-ratio: 1;
  align-content: center;
  text-align: center;
  font-weight: bold;
  width: 50px;
  height: 50px;
  color: var(--green);
  background-color: var(--light-green);
  border-color: var(--green);
}

.functional-groups-module {
  display: flex;
}

@media (max-width: 640px) {
  .functional-groups-module {
    flex-direction: column;
  }
}

.functional-groups-legend,
.functional-groups-plot {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 15px;
}

.divider {
  background-color: var(--black);
  width: 1px;
}

/*LEGEND -------------------------- */
.functional-groups-legend {
  justify-content: space-around;
}

.functional-groups-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.functional-groups-legend-label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  gap: 10px;
}

@media (max-width: 640px) {
  .functional-groups-legend-label {
    font-size: calc(20px - 4px);
  }
}

.functional-groups-legend-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 2px;
}

@media (max-width: 640px) {
  .functional-groups-legend-icon {
    width: calc(34px - 4px);
    height: calc(34px - 4px);
  }
}

.functional-groups-legend-count {
  color: black;
  margin-right: 20px;
}

/*PLOT -------------------------- */
.functional-groups-plot {
  flex: 1;
  justify-content: center;
}

.functional-groups-plot-bar {
  display: flex;
  align-items: center;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.functional-groups-plot-bar div {
  height: 100%;
  transition: width 0.3s ease;
}

.home-samples-map-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--gap-md);
}

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

.home-samples-map-section .left-aligned-text-box {
  flex: 1;
}

.home-samples-map-section .samples-map-container {
  width: 100%;
  flex: 1.3;
}

.home-faq-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-image: url("../img/home_page/plant.png");
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: bottom;
  background-size: 25%;
}

.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-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000000;
  align-content: center;
  border-radius: 0px;
}

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

.home-faq-section .accordion-button .accordion-title {
  font-size: 20px;
  font-weight: 500;
  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 {
  box-shadow: none !important;
  --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='M6.5 2h3v4.5H14v3H9.5V14h-3V9.5H2v-3h4.5z'/%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 6.5h12v3H2z'/%3E%3C/svg%3E");
}

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

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

.home-faq-section .accordion,
.home-faq-section .accordion-item,
.home-faq-section .accordion-button {
  background: transparent;
}

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

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

#schools-species_gallery-status {
  padding: 24px 0;
}

.explore_stories-selector-section {
  padding-top: 0;
}

.species-overview-section .species-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  height: 250px;
}

@media (max-width: 640px) {
  .species-overview-section .species-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    gap: var(--gap-sm);
  }
}

.species-overview-section .species-card-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.species-overview-section .species-card-info {
  gap: var(--gap-md);
}

.species-overview-section .species-card-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.species-overview-section .species-card-title {
  margin-bottom: 0;
}

.species-overview-section .species-card-subtitle {
  font-style: italic;
}

.species-overview-section .species-card-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--gap-sm);
}

.species-overview-section .species-card-status {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--gap-sm);
}

.species-overview-section .species-card-status-icon {
  width: 32px;
  height: 32px;
}

.species-overview-section .species-card-description {
  color: var(--black);
}

.species-overview-section .species-card-media {
  align-items: flex-start;
  gap: var(--gap-sm);
}

.species-overview-section .species-card-image {
  height: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

@media (max-width: 640px) {
  .species-overview-section .species-card-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 300px;
    height: 300px;
    margin: auto;
    object-fit: cover;
  }
}

@media (max-width: 425px) {
  .species-overview-section .species-card-image {
    width: 200px;
    height: 200px;
  }
}

.species-overview-section .species-card-image-credit {
  font-size: 12px;
  color: var(--black);
  text-align: center;
}

.resource-links-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--gap-sm);
}

.about-org-section {
  flex-direction: row-reverse;
}

.about-org-section .btn {
  width: fit-content;
}

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

.acknowledgement-cards-container .acknowledgement-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--gap-sm);
}

.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;
}
