
  :root {
    --verd-clar: #b3cb3f;
    --verd-fosc: #85b21b;
    --negre-principal: #343a40;
  }
  body {
    overflow: hidden;
  }
  .navbar {
    padding: 0 30px;
    background-color: var(--negre-principal);
    height: 80px;
    color: #fff;
  }
  .navbar-brand .title,
  .navbar-brand .title:hover {
    font-weight: bold;
    font-size: 2rem;
    color: var(--verd-clar);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .navbar-brand img {
    max-height: 50px;
    max-width: 100%;
  }

  #map {
    height: calc(100vh - 80px);
  }

  #loader {
    width: 300px;
    height: 100px;
    background: #343a40;
    margin: 0 auto;
    z-index: 1001;
    display: flex;
    position: relative;
    margin-top: 50px;
    color: #fff;
    font-size: 26px;
    align-items: center;
    justify-content: center;
    opacity: .9;
  }

  .leaflet-popup-content {
    max-height: 200px;
    overflow-y: scroll;
  }

  .leaflet-marker-icon.hidden {
    display: none;
  }

  #species_sidebar {
    width: 280px;
    z-index: 1000;
    background: #fff;
    height: calc(100% - 80px);
    position: absolute;
    top: 80px;
    left: -280px;
    transition: left .5s ease-out, width .3s ease-out;
  }

  #species_sidebar.open {
    left: 0;
    width: 280px;
  }
  #species_finder {
    display: flex;
    align-items: center;
    height: 40px;
    padding-left: 10px;
    background-color: var(--negre-principal);
    color: #fff;
    overflow: hidden;
  }

  #species_finder i {
    padding-right: 5px;
  }

  #find_species {
    height: 100%;
    width: 230px;
    min-width: 230px;
    font-size: 14px;
    padding-left: 15px;
    border-style: none;
  }

  #find_species:focus,
  #find_species:active {
    outline: none;
  }

  #species_list {
    height: calc(100% - 40px);
    overflow-y: scroll;
    overflow-x: hidden;
    padding-top: 10px;
  }

  .species_card {
    display: flex;
    position: relative;
    width: 280px;
    padding: 2px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--negre-principal);
  }

  .species_card:hover,
  .species_card.selected {
    color: var(--verd-fosc);
  }

  .species_card:hover::after,
  .species_card.selected::after {
    content: ' ';
    position: absolute;
    display: block;
    right: 0;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-right: 40px solid #b3cb3f;
    z-index: -1;
  }


  .species_card .species_name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: .5em 0;
    font-size: 0.85rem;
    line-height: 1;
    flex-basis: 200px;
  }

  .species_card .species_thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    padding: 5px;
  }

  .species_card .species_thumb img {
    width: 65px;
    height: 65px;
  }

  .species_card .common_name {
    text-wrap: nowrap;
    overflow: hidden;
    max-width: 200px;
    text-overflow: ellipsis;
    font-weight: bold;
  }

  .species_card .latin_name {
    text-wrap: nowrap;
    overflow: hidden;
    max-width: 200px;
    text-overflow: ellipsis;
    font-style: italic;
  }

  #hide_left_sidebar_btn {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0px;
    right: -50px;
    background: var(--verd-clar);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }


    #ranking_sidebar {
      width: 350px;
      z-index: 1000;
      background: var(--negre-principal);
      height: calc(100% - 80px);
      position: absolute;
      top: 80px;
      right: -350px;
      color: #fff;
      transition: right .5s ease-out;
    }

    #ranking_sidebar.open {
      right: 0;
    }

    #ranking_sidebar h3 {
      margin-left: 10px;
    }

    #ranking_sidebar .nav-item {
      width: 50%;
      letter-spacing: -1px;
      border-radius: 0 !important;
    }

    #ranking_sidebar .nav-link {
      border: none !important;
      border-radius: 0 !important;
      color: var(--verd-clar);
    }

    #ranking_sidebar .nav-link.active {
      background: var(--verd-clar);
      color: #fff;
    }

    #ranking_sidebar .rank_info {
      font-size: 18px;
    }


    #hide_right_sidebar_btn {
      position: absolute;
      width: 50px;
      height: 50px;
      top: 0px;
      left: -50px;
      background: var(--verd-clar);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #000;
      cursor: pointer;
    }

    /* Right sidebar ranks */
    .rank {
      height: 300px;
      overflow-y: scroll;
      margin-bottom: 1em;
      padding: 0.9em;
    }

    .progress_row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }

    .progress_row:hover {
      background: #515a63;
    }

    .progress_row:hover .progress-bar {
      background-color: #74bf85 !important;
    }

    .observer_name {
      width: 50%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 0.75em;
    }

    .observer_position {
      font-weight: bold;
      color: #f0982a;
    }

    .progress {
      width: 45%;
      background: transparent;
    }

    .progress-bar {
      border-radius: .25rem;
      background: var(--verd-fosc) !important;
    }
