html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  background-color: #222;
  font-family:sans-serif;
  font-size: 16px;
  overflow: hidden;
}

* {
  box-sizing: border-box;
  text-transform: uppercase0;
  font-size: 14px;
}

h2 { font-size: 150%; text-align: center; padding-bottom: 0px; margin: 0; }
h3 { font-size: 110%; text-align: center; padding-bottom: 8px; margin: 0; }

a { text-decoration: none; color: black; }
a:hover { text-decoration: underline; }

#map{
  width:100%;
  height:100%;
  background-color: black;
}

.sidebar {
  color: #eee;
  background-color: #333;
  opacity: 95%;
  transition: transform .25s ease-out;
}

.map-switcher-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.link {
  opacity: .5;
}

.link:hover {
  text-decoration: none;
  opacity: 1;
}

.clickable {
  cursor: pointer;
  opacity: 0.75;
}

.clickable:hover {
  opacity: 1;
}

.map-link {
  font-size: 14px;
  flex-grow: 1;
  padding: 6px 6px 6px 6px;
  text-align: center;
  width: 95px;
}

.map-link.selected {
  background: dimgrey;
  font-size: 14px;
  flex-grow: 1;
  padding: 6px 6px 6px 6px;
  text-align: center;
  width: 100px;
}

.map-link:hover {
  text-decoration: none;
}

.selected {
  text-weight: bold;
}

#left-sidebar.closed {
  transform: translateX(-404px)
}

#left-sidebar {
  width: 404px;
  left: 0;
  bottom: 0;
  margin: 0;
  top: 0;
  position: absolute;
}

#right-sidebar {
  width: 220px;
  right: 0;
  top: 0;
  bottom: auto;
  position: absolute;
}

#right-sidebar select {
  max-width: 220px;
}

#right-sidebar.closed {
  transform: translateX(220px)
}

.sidebar-close {
  background-color: inherit;
  position: absolute;
  top: 8px;
  cursor: pointer;
  height: 48px;
  width: 16px;
}

.sidebar-close:hover * {
  opacity: 1;
}

#left-sidebar > .sidebar-close {
  border-left: 1px solid #222;
  left: 100%;
}

#right-sidebar > .sidebar-close {
  border-right: 1px solid #222;
  right: 100%;
}

.triangle {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid;
  opacity: .6;
}

#left-sidebar .triangle{
  border-left: 0px;
  border-right: 9px solid;
}

#right-sidebar .triangle {
  border-left: 9px solid;
  border-right: 0px;
}

#left-sidebar.closed .triangle{
  border-left: 9px solid;
  border-right: 0px;
}

#right-sidebar.closed .triangle {
  border-right: 9px solid;
  border-left: 0px;
}

.panel {
  padding: 16px;
  padding-left: 8px;
  padding-right: 12px;
  padding-bottom: 10px;
  overflow-x: hidden;
  height: 100%;
  scrollbar-gutter: stable both-edges;
}

#left-panel {
  padding-bottom: 24px;
}

.button-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.button-panel > span {
  text-align: center;
  cursor: pointer;
  margin-left: 10px;
  margin-right: 10px;
}

.button-panel > span:hover {
  text-decoration: underline;
}

.panel::-webkit-scrollbar {
  width: 8px
}

.panel::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 53%, .0);
  border-radius: 4px;
}

.panel:hover::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 53%, .4);
  border-radius: 4px;
}

.panel::-webkit-scrollbar-thumb:hover {
  background: hsla(0, 0%, 53%, .8);
}

.panel:hover::-webkit-scrollbar-track {
  background: hsla(0, 0%, 53%, .1);
}

#categories {
  padding: 0;
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
}

hr { opacity: .6;}

.item.hidden > * {
  visibility: visible;
  opacity: 50%;
}

#categories .header {
  opacity: .8;
  width: 100%;
  padding: 6px 0px;
  cursor: pointer;
}

#categories .hidden {
  text-decoration: line-through;
  opacity: 0.6;
}

#categories .header:hover {
  opacity: 1;
}

#categories .hidden:hover {
  opacity: .8;
}

#categories .group-categories {
  display: block;
  column-count: 2;
  column-gap: 8px;
  width: 100%;
}


#categories .category-item {
  opacity: .8;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 3px;
  padding-left: 0px;
  cursor: pointer;
}

#categories .category-item:hover {
  opacity: 1;
}


.item > * {
  pointer-events: none;
}

#categories .category-item .icon {
  text-align: left;
}

#categories .category-item .title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#categories .category-item .bubble {
  float: right;
  text-align: right;
  flex: 1;
}

.progress-item-wrapper {
  padding-bottom: 6px;
  width: 100%;
}

.progress-item {
  cursor: pointer;
  align-items: center;
  display: flex;
}

.progress-item > * {
  pointer-events: none;
}

.progress-item-remove {
  pointer-events: all;
}

.progress-item .icon {
  text-align: left;
}

.progress-item .title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  flex: 2 1 auto;
}

.progress-item .counter {
  margin-left: 4px;
  text-align: right;
}

.progress-item-remove {
  border: 1px solid grey;
  align-self: center;
  cursor: pointer;
  margin-left: 4px;
  padding-left: 4px;
  padding-right: 4px;
  color: grey;
}

.progress-item-remove:hover {
  color: white;
}

.collapsed {
  display: none!important;
}

.item.hidden > .title {
  text-decoration: line-through;
}

.button-toggle {
  cursor: pointer;
  color: #ddd;
}

.button-toggle.hidden {
  opacity: 50%;
  text-decoration: line-through;
}

.button-toggle:hover {
  color: #fff;
}

.container {
  display: flex;
  height: 100%;
  width: 100%;
}

.middle {
  align-items: center;
  justify-content: center;
}


.input-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  padding: 4px 0 4px 0;

}

.form-control {
  display: inline-block;
  min-width: 0;
}

.button-group {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.input-group-prepend {
}

.input-group-append {
}

.btn{
  padding: 4px;
  padding-left: 8px;
  padding-right: 8px;
}

.btn-link {
  padding: 0px;
  padding-left: 8px;
  padding-right: 8px;
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
}

.button-group .btn-link {
  padding-left: 4px;
  padding-right: 4px;
}

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


*:disabled {
  color: linen;
  pointer-events: none;
  opacity: .5;
}

.form-control {
  padding: 4px;
  flex: 1 1 auto;
}

.icon {
  padding-right: 5px;
}

.popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 12px;
  min-width: 260px;
}

.popup-content {
  margin: 10px 13px 8px 13px;
  line-height: 1.3;
  font-size: 13px;
  min-height: 1px;
}

.popup-content p {
  margin: 17px 0;
  margin: 1.3em 0;
}

.popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}
.popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  pointer-events: auto;
  transform: rotate(45deg);
}

.popup-content-wrapper,
.popup-tip {
  background-color: #fff;
  color: black;
  font-size: 13px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.popup-close-button {
  color: black;
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 4px 0 0;
  border: none;
  text-align: center;
  width: 18px;
  height: 14px;
  font: 16px/14px Tahoma,Verdana,sans-serif;
  text-decoration: none;
  font-weight: 700;
  background: 0 0;
  cursor: pointer;
  opacity: 75%;
}

.popup-close-button:hover {
  text-decoration: none;
  opacity: 100%;
}

.popup-controls {
  padding: 4px;
}

.popup-controls > * {
  cursor: pointer;
  opacity: .7;
}

.popup-controls > *:hover {
  opacity: 100%;
}

.popup-controls > *.disabled {
  opacity: 30%;
  cursor: default;
  pointer-events: none;
}

.popup-link {
  display: inline-block;
  float: right;
  margin-left: 12px;
  color: black;
}

.popup-link > * {
  pointer-events: none;
}

#popup-data{
  font-size: 14px;
  font-family: monospace;
  max-width: 360px;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-all;
  overflow-wrap: break-word;

  max-width: 360px;
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
}

#popup-data-toggle {
  padding-top: 8px;
  margin-top: -8px;
  margin-bottom: 8px;
  cursor: pointer;
}

#popup-youtube-link > * {
  width: 24px;
  height: 22px;
}

#popup-title {
  font-size: 14px;
  font-weight: bold;
}

#popup-subtitle {
  font-size: 14px;
}

#popup-note {
  font-size: 12px;
  margin-top: 2px;
  list-style-type: none;
}

#popup-subnote {
  margin-top: 3px;
}

#popup-subnote > * {
  font-size: 14px;
}

.popup-subnote-item {
  margin-left : 0.1em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 16px;
  display: flex;
  justify-content: space-between;
}

.popup-subnote-item .icon {
  opacity: .6;
  flex: 0 0 auto;
}

.popup-subnote-item a {
  opacity: .75;
  color: black;
  margin-left : 0em;
  font-size: 13px;
  flex-grow: 1;
}

.popup-subnote-item a:hover {
  text-decoration: none;
  opacity: 1;
}

.popup-subnote-toggle::before {
  content:'\23f4';
  padding-left: 16px;
  font-size: 16px;
  cursor: pointer;
}

.popup-subnote-toggle.open::before {
  content:'\23f7';
  padding-left: 16px;
  font-size: 16px;
  cursor: pointer;
}

.popup-subnote-toggle {
  opacity: .6;
}
.popup-subnote-toggle:hover{
  opacity: 1;
}

.popup-subnote-info {
  margin: 4px;
}

.popup-subnote-info-item {
  font-size: 12px;
  opacity: .75;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.popup-subnote-info-item:hover {
  opacity: 1;
}

#popup-data + #popup-data-toggle hr::after {
  content: '\d7';
  position: absolute;
  left: 50%;
  transform: translate(-50%, -22px);
  font-size: 20px;
}

#popup-data.collapsed + #popup-data-toggle hr::after {
  content: '';
}

#alert {
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 40px;
  padding: 12px;
  text-align: center;
  background-color: #333;
  opacity: 95%;
  color: white;
  transition: transform .25s ease-out;
}

#alert.closed {
  transform: translateY(40px)
}

#search-result {
  width: 100%;
  margin: 0;
  position: relative;
  transition: transform .25s ease-out;
}

#search-result.closed {
  transform: translateX(-404px)
}

#search-items {
  padding: 0;
  flex-wrap: wrap;
}

.search-item {
  display: block;
  align-items: center;
  opacity: .6;
  position: relative;
  padding: 3px 6px;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.exact {
  
}


.search-item.selected{
  opacity: 1;
  background: transparent;
}

.search-item:hover {
  opacity: .8;
}

input:focus{
    outline: none;
}

input::selection {
  color: black;
  background-color: lightgrey;
}

#search-count {
  padding: 6px;
  opacity: .6;
}

#topbar {
  width: 100%;
  margin: 0;
  top: 0;
  height: 60px;
  position: absolute;
  transform: translateY(-60px);
  border-bottom: 1px solid dimgrey;
}

.top-panel {
  padding: 8px;
}

.mobile-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
}

.mobile-title {
  flex: 2 1 auto;
  padding-top: 0px;
  padding-right: 5px;
}

.topbar-btn {
  padding-left: 12px;
  padding-right: 12px;
  color: white;
  text-align: center;
  background: none;
  border: 1px solid grey;
  height: 40px;
}

.topbar-btn.selected {
  background: dimgrey;
}


@media (max-width: 1220px) {
  #left-sidebar {
    width: 220px;
  }

  #left-sidebar.closed {
    transform: translateX(-220px)
  }

  #right-sidebar {
    width: 220px;
  }

  #right-sidebar.closed {
    transform: translateX(220px)
  }

  #categories .group-categories {
    column-count: 1;
  }

  input::placeholder {
        //color: transparent;
  }
}

@media (max-width: 700px) {
  #left-sidebar {
    width: 180px;
  }

  #left-sidebar.closed {
    transform: translateX(-180px)
  }

  #right-sidebar {
    width: 180px;
  }

  #right-sidebar.closed {
    transform: translateX(180px)
  }

  #categories .group-categories {
    column-count: 1;
  }
  input::placeholder {
        //color: transparent;
  }
}

@media (max-width: 500px) {
  .sidebar-close {
    display: none;
  }

  #left-sidebar, #left-sidebar.closed {
    transform: translateX(-100vw);
    width: 100vw;
    top: 60px;
  }

  #left-sidebar.mobile {
    transform: translateX(0px);
  }

  #left-sidebar .caption {
    display: none;
  }

  #categories .group-categories {
    column-count: 2;
  }

  #right-sidebar, #right-sidebar.closed {
    transform: translateX(100vw);
    width: 100vw;
    top: 60px;
  }

  #right-sidebar.mobile {
    transform: translateX(0px)
  }

  #topbar {
    transform: translateY(0px)
  }
}


/* --------------------------------------------------------------------------------------- */

.maptalks-tooltip {
  display: block;
  background: #fff;
  padding: 0px 4px 0px 4px;
  height:24px;
  line-height:24px;
  font-size:14px;
  white-space: nowrap;
}

#map-tooltip {
  background-color: white;
  color: black;

  display:none;
  position:absolute;

  border-radius: 6px;
  padding: 12px;
  max-width: 320px;

  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.overflow-container {
  max-width: 320px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}

.overflow-container a {
  color: black;
  text-decoration: none;
}

.arrow-left::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%; /* Position the triangle to the left of the popup */
  margin-top: -8px; /* Half the height of the triangle */
  border-width: 8px;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.arrow-right::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%; /* Position the triangle to the right of the popup */
  margin-top: -8px; /* Half the height of the triangle */
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

#popup-found-label {
  position: relative;
  top: -2px;
}

.popup-subnote-ul {
  padding: 0px;
  margin: 0px;
  max-width: 300px;
  max-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
}

.popup-subnote-li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-subnote-li::before {
  content: "•";
  padding-right: 8px;
}

.small {
  font-size: 12px;
}

.padded {
  margin-bottom: 5px;
}

.scrollbar::-webkit-scrollbar {
  width: 6px;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.8);
  border-radius: 4px;
}

.scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  max-height: 208px;
  overflow-x: hidden;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.tag-item {
  background-color: #eee;
  border-radius: 16px;

  padding-left: 7px;
  padding-right: 7px;

  cursor: pointer;
  max-width: 320px;

  border: 1px solid white;
}

.tag-item:hover {
  border: 1px solid grey;
}

.tag-title {

  margin: 0;
  padding: 0;

  vertical-align: middle;


  font-size: 90%;
  color: black;
  text-decoration: none;

  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-title:hover { text-decoration: none; }

/*
.tag-image {
  display: inline-block;
  max-height: 0px;
}

.tag-item:focus-within .tag-image{
  width: 100%;
  max-height: 300px;
  transition: all 0.3s ease;
}
*/

.image-popup {
  position: absolute;
  z-index: 9999;
  display: none;


  transform: translateX(-50%) translateY(-100%);

  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#search-form {
  padding-top: 2px;
}

.search-container {
  /*top: 24px;*/
}

#save-controls {
  z-index: 1;
  position: absolute;
  right: 235px;
  top: 16px;
}

#rank-controls {
  z-index: 1;
  position: absolute;
  display: flex;
  gap: 8px;
  right: 78px;
  top: 14px;
}

@media (max-width: 950px) {

  #save-controls {
    z-index: 1;
    position: absolute;
    right: 78px;
    top: 12px;
  }

  #rank-controls {
    z-index: 1;
    position: absolute;
    display: flex;
    gap: 8px;
    right: 78px;
    top: 40px;
  }

}

@media (max-width: 760px) {
  #save-controls {
    top: auto;
    left: 0;
    right: 0;
    bottom: 42px;
    padding-left: 64px;
    padding-right: 64px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #rank-controls {
    bottom: 16px;
    top: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

