.about-flex {
  display: flex;
  flex-direction: column;
}

.about-img {
  aspect-ratio: 1;
  max-width: 200px;
  object-fit: cover;
  border-radius: 50%;
}

.about-flex h2 {
  padding-bottom: 10px;
  padding-left: 5px;
  border-bottom: var(--bordercolour) solid 1px;
}

.about-media {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 30px;
}

.avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar {
  height: 100%;
  object-fit: cover;  
}

.inatChart {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
}


@media only screen and (max-width: 992px) {

  .about-media {
    flex-direction: column;
    width: 90%;
  }

}

.inat-user {
  margin: 1rem 0;
  width: 80%;
  font-family: "Lato", sans-serif !important;
}

@media only screen and (max-width: 601px) {

  .inat-user {
    width: 100%;
  }

}

.inat-links {
  margin: 0.5rem 0;
}

.inat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 10px;
}

.inatChart {
  width: 100%;
  height: auto;
  min-height: 400px; /* so it's not too small on mobile */
}
.inatChart {
  width: 100%;
  height: 100%;
}

.map {
  height: 100%;
  width: 100%;
  border: 2px solid #555;
  border-radius: 8px;  
  background-color: #111; /* dark gray/black */
  position: relative; 
  z-index: 999;
}

.inat-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .inat-grid {
    grid-template-columns: 1fr;
  }
  .map {
    height: 300px !important;
  }
}

.leaflet-control-attribution {
  font-size: 1.4rem !important;
  font-family: "Lato", sans-serif;
  color: var(--navitextcolour) !important;
  background-color: var(--navicolour) !important;
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
  background-color: var(--navicolour) !important;
  border: none !important;
}

.leaflet-control-zoom-in span, .leaflet-control-zoom-out span {
  color: var(--navitextcolour) !important;
  font-family: "Lato", sans-serif;
}

.leaflet-control-zoom-in span:hover, .leaflet-control-zoom-out span:hover {
  color: var(--hovercolour) !important;
  font-family: "Lato", sans-serif;
}

.leaflet-popup-content-wrapper {
  background-color: var(--navicolour) !important;
  color: var(--navitextcolour) !important;
  font-family: "Lato", sans-serif;
}

.leaflet-popup-content-wrapper a {
  text-decoration: none !important;
  transition: all 0.1s !important;
  font-family: "Lato", sans-serif !important;
  font-style: normal !important;
  cursor: pointer !important;
  color: var(--navitextcolour) !important;
}

.leaflet-popup-content-wrapper a:hover {
  color: var(--hovercolour) !important;
  cursor: pointer !important;
}

.leaflet-popup-tip {
  background-color: var(--navicolour) !important;
}

.leaflet-popup-close-button span {
  color: var(--navitextcolour) !important;
  font-family: "Lato", sans-serif;
}

.leaflet-popup-close-button span:hover {
  color: var(--hovercolour) !important;
  font-family: "Lato", sans-serif;
}

.leaflet-control-attribution a {
  text-decoration: none !important;
  transition: all 0.1s !important;
  font-family: "Lato", sans-serif !important;
  font-style: normal !important;
  cursor: pointer !important;
  color: var(--navitextcolour) !important;
}

.leaflet-control-attribution a:hover {
  color: var(--hovercolour) !important;
  cursor: pointer !important;
}

.about-bio {
  margin: auto;
  padding-top: 30px;
  display: flex;
  flex-direction: row;
  gap: 50px;
  width: 80%;
  align-items: center;
}

@media only screen and (max-width: 992px) {

  .about-bio {
    flex-direction: column;
  }

}

.species-flex {
  margin: auto;
  padding-top: 30px;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-evenly;
}

.species-card {
  width: 400px;
  height: 150px;
  border: var(--bordercolour) solid 1px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  background-color: var(--backgroundcolour);
}

.species-card:hover {
  transform: scale(1.1);
}

.front-image {
  max-width: 40%;
  height: 100%;
  overflow: hidden;
}

.front-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.species-details {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 5px;
}

.species-card h3 {
  padding-bottom: 5px;
}

.species-article {
  display: flex;
  flex-direction: column;
  align-items: left;
}

@media only screen and (max-width: 1023px) {

  .species-flex {
    width: 100%;  
    gap: 20px;
  }

}

@media only screen and (max-width: 768px) {

  .species-flex {
    justify-content: center;
  }

}

@media only screen and (max-width: 601px) {

  .species-card {
    width: 100%;
    height: 150px;
    border: var(--bordercolour) solid 1px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }
}