html, body { width:100%; height:100%; margin:0; padding:0; font-size:100%; font-family:'Quicksand', sans-serif; display:flex; flex-direction:column;}
#head {position:relative; width:100%; height:auto; overflow:hidden; color:black; background:white; padding:10px; flex-shrink: 0;}
    #title {display:inline-block; width:75%; height:auto; letter-spacing:0.5em; font-size:2vmin; overflow-wrap: break-word;}
    #logo {position: absolute; height:100%; top:0; right:0; }
#container {position:relative; width:100%; display:flex; flex-direction:row; flex-grow: 1; overflow:hidden;}
    #map {position:relative; width:35%; height:100%; flex:0 0 auto; max-width:80%; min-width: 0;}
    #photosWrapper {position:relative; width:40%; height:100%; flex:1 1 auto; display:flex; flex-direction:column; min-width: 0;}
      #photos {position:relative; height:100%; flex:1 1 auto;}
          #photo1 {width:100%; height:100%; }
          #photo2 {width:100%; height:50%; display:none;}
      #timeline {width:100%; height:20%; display:none; flex:1 1 auto;}
    #sidePanel {width:25%; height:100%; flex:0 0 auto; max-width:40%; min-width: 5%;}
    #toolbar {width:38px; height:100%; flex:0 0 auto;}

* {
 box-sizing: border-box;
}

.vopp {font-family: 'Lobster Two', cursive; font-size:1.5em;}

.leaflet-container {
    background-color: white;
}

#loading{
  position:absolute;
  background-color: white;
  width: 100%;
  height:100%;
  z-index: 1200;
  opacity:100%;
}

.vsplitter {
  flex: 0 0 auto;
  float: left;
  width: 14px;
  height: 100%;
  background: url(icons/vsizegrip.png) center center no-repeat #f2f2f2ff;
  cursor: col-resize;
}

#split2 {
  background-color: #f2f2f2ff;
}



/* ########################################
   Infos/about panel
   ######################################## */

#sidePanel:not(.active), .panel:not(.active){
  display:none;
 }

.panel {
  height:100%;
  padding:20px;
  overflow-y:scroll;
  background-color: white;
}

.panel .title {
  font-size: 1.25em;
  font-weight: bolder;
  text-align: center;
}

.panel .entry {
  margin: 0.5em;
}

.panel .field {font-weight: bold;}

.panel .value {}

.panel .desc {
  text-align: justify;
  text-justify: inter-word;
  margin-top: 25px;
  line-height: 1.5em;
}

.panel .warn {
  font-weight: bold;
  color: #cd561e;
  text-align: justify;
  text-justify: inter-word;
  margin-top: 25px;
  line-height: 1.5em;
}

.panel img {
  width:125px;
  height:auto;
  margin:10px;
}
.panel img.large {
  width:250px;
}

#about {
  min-height:90%;
}

#container hr{
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

#copyright{
  text-align: center;
  font-size: 0.75em;
}

/* ########################################
  Photo widgets
  ######################################## */

#container .widgets {
  position:absolute;
  width:170px;
  height:auto;
  z-index: 1000;
  display: none;
}

#container .widgets>*{
  display:flex;
}

#container .widgets.topLeft{ position:absolute; top:20px; left:20px; right:auto; }
#container .widgets.middleLeft { position:absolute; top:calc(50% + 20px); left:20px; right:auto; }
#container .widgets.topRight { position:absolute; top:20px; left:auto; right:20px; }

#container .widgets .alignRight{
  justify-content: flex-end;
}

.dropDownDate {
  /*display: inline-block;
  vertical-align: middle;*/
  width: 120px;
  height: 30px;
  margin: 5px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  color: black;
  background-color: rgba(255,255,255,0.5);
  background-image: url(icons/br_down.png);
  background-repeat: no-repeat;
  background-position: 90%;
  appearance: none;
  -moz-appearance: none; /* Firefox */
  -webkit-appearance: none; /* Safari and Chrome */
}

.dropDownDate:disabled {
  background: #dddddd;
  color: grey;
}

.sketchButton {
  /*display: inline-block;
  vertical-align: middle;*/
  background: url("icons/toggle_sketch.svg?v=102") no-repeat;
  background-size: contain;
  cursor: pointer;
  height: 40px;
  width: 40px;
}
.sketchButton.active {
  background: url("icons/toggle_sketch_active.svg?v=102") no-repeat;
  background-size: contain;
}

.chkBkgPhoto {
  margin: 2px 5px;
}

.photoNav {
  margin: 0 5px;
}

.photoNavBt {
  display: inline-block;
  cursor: pointer;
  width:25px;
  height:25px;
  line-height: 22px;
  text-align: center;
  background-color: #f1f1f1;
  color: black;
  border-radius: 50%;
  font-weight: bold;
  font-size: 20px;
  margin: 2px;
}

.photoNavBt:hover {
  background-color: #ddd;
  color: black;
}


.windrose{
  width:75px;
  height:75px;
  background: url("icons/windrose.svg?v=102") no-repeat;
  background-size: contain;
}

.azimuth{
  width:100%;
  height:100%;
  background: url("icons/azimuth.svg?v=102") no-repeat;
  background-size: contain;
}


/* ########################################
  buttons, toolbar, tootip
  ######################################## */

.panelBt {
  border: none;
  cursor: pointer;
  height: 28px;
  width: 28px;
  display: block;
  padding: 4px;
  position: relative;
  background-color: transparent;
}

.toolbarBt {
  border: none;
  cursor: pointer;
  box-sizing: content-box;
  height: 26px;
  width: 26px;
  display: block;
  position: relative;
  margin: 3px;
  padding: 3px;
  background-color: transparent;
}

/* Tooltip text */
#container .tooltip {
  outline: none;
  cursor : default;
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 5px 2px;
  border-radius: 6px;
  /* Position the tooltip text */
  position: absolute;
  z-index: 1100;
  right: 125%;
  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
#container .tooltip::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 100%;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent black;
}

/* Show the tooltip text when the pointer is over the tooltip container */
#container .toolbarBt:hover .tooltip, .panelBt:hover .tooltip {
  visibility: visible;
  opacity: 0.6;
  transition-delay:1s;
}

#container #toolbar {
  --tb-icon-base-color: white;
  --toolbar-select-color: #aa0000ff;
}

.toolbarBt svg {
  width:100%;
  height:100%;
}

.toolbarBt svg path{
  fill:var(--tb-icon-base-color) !important;
}

.toolbarBt:hover svg path{
  fill:var(--tb-icon-select-color) !important;
  opacity:0.5 !important;
}

.toolbarBt svg path#ico-filter{
  fill:transparent !important;
}

.toolbarBt.active svg path{
  fill:var(--tb-icon-select-color) !important;
}

.toolbarBt.panelSwitch.active{
  border-left: 4px solid var(--tb-icon-select-color);
  margin-left: 0;
}

.toolbarBt.activeFilter svg path#ico-filter{
  fill:var(--tb-icon-select-color) !important;
}

/* ########################################
   Share url panel
   ######################################## */


.sharePanel{
  cursor:default;
  visibility: hidden;
  width: 250px;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1200;
  top:0;
  right: 125%;
  color: white;
  font-weight: bold;
  background-color: #575757;
  text-align: left;
}

.sharePanel::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 100%;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #575757;
}

.sharePanel.active{
  visibility: visible;
}

#urlTxt{
  display: block;
  padding:5px;
  margin:5px;
  user-select: all;
  cursor: text;
  font-weight:normal;
  color:black;
  background-color:white;
  border-radius: 10px;
}



/* ########################################
   Timeline
   ######################################## */

#timeline.active{
  position: relative;
  display: block;
}

#thumbs{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  overflow-x: scroll;
  padding-top: 10px;
  padding-bottom: 10px;
}

.photoThumb{
  cursor: pointer;
  flex: 0 0 200px;
  background: center no-repeat;
  background-size: cover;
  height: 100%;
  margin: 0 2px 0 2px;
  position: relative;
  border:4px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photoThumb:hover{
  border:4px dashed #2ca089BF;
}

.photoThumb.activeLink{
  cursor: default;
}

.photoThumb.active{
  border:4px solid #2ca089ff;
}

.thumbDate {
  position:absolute;
  bottom:2px; right:4px;
  font-weight: bold;
  font-size: 1em;
  color: white;
}

.photoThumb:hover .thumbLink.activeLink{
  visibility: visible;
  opacity: 0.75;
}

.thumbLink{
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.1s linear;
  cursor: pointer;
  font-weight: bold;
  font-size: 2em;
  color: white;
  background-color: #2ca089ff;
  flex: 0 0 40px;
  height : 40px;
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
  line-height: 40px;
  margin: 5px;
}

.thumbMark1, .thumbMark2 {
  position:absolute;
  font-weight: bold;
  font-size: 1em;
  color: white;
  background-color: #2ca089ff;
  width:20px;
  height:20px;
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
  line-height: 20px;
}

.thumbMark1 {
  top:2px; left:4px;
}

.thumbMark2 {
  top:2px; right:4px;
}

.thumbNavBt {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
  position:absolute;
  top: 50%;
  transform: translateY(-60%);
  cursor: pointer;
  width:30px;
  height:30px;
  line-height: 20px;
  text-align: center;
  background-color: #f1f1f1ad;
  color: black;
  border-radius: 50%;
  font-size: 40px;
  margin: 2px;
  z-index: 1000;
}

.thumbNavBt:hover {
  background-color: #ddd;
  color: black;
}

#timeline:hover .thumbNavBt{
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s linear;
}

#thumbPrev{
  left: 5px;
}
#thumbNext{
  right: 5px;
}

/* ########################################
   Search result panel
   ######################################## */

#searchPanel{
  overflow-y: hidden;
}

#searchPanelFlexContainer{
  display: flex;
  flex-flow: column;
  overflow-y: hidden;
  height:100%;
}

#resultsPane{
  overflow-y: scroll;
}

.searchTitle{
  font-size: 1.25em;
  font-weight: bolder;
  margin: 10px 0 10px 0;

}

.searchPanelBt {
    border: none;
    cursor: pointer;
    height: 28px;
    width: 28px;
    margin: auto;
    background-color: transparent;
}

#clearSearchBt {
  background: url("icons/clear_search.svg?v=102") no-repeat;
  background-size: contain;
  float:right;
  vertical-align: middle;
}

.searchFilter{
  display:flex;
  align-items: center;
  margin: 10px 0 10px 0;
}

.label{
  flex:0 0 110px; /*fixed size*/
}

.textFilter, .dropDownFilter{
  flex: 1 1 auto;
  min-width:0; /*By default flex items won't shrink below their minimum content size*/
}

.dropDownFilter {
  height: 30px;
  border-radius: 5px;
  border: 1px solid #aaa;
  color: black;
  background-color: white;
  background-image: url(icons/br_down.png);
  background-repeat: no-repeat;
  background-position: 95%;
  appearance: none;
  -moz-appearance: none; /* Firefox */
  -webkit-appearance: none; /* Safari and Chrome */
}

#container ul {
 list-style-type: none;
 text-align: left;
 width:95%;
 overflow-y:auto;
 padding:0;
 margin:0;
}

#container li, #container tr {
 cursor: pointer;
 background-color:white;
 color:#2c5aa0ff;
 font-weight: bold;
 padding:5px;
 border-bottom: 1px dotted #c3d4ef;
}

#container li div.line1){
 font-size:1em;
}
#container li div:not(.line1){
 font-size:0.75em;
}

#container li:hover, #container li.selected, #container tr:hover, #container tr.selected  {
 background-color: #2c5aa0ff;
 color: white !important;
}



/* ########################################
   Map legend & controls
   ######################################## */

.blendOverlay, .photo .leaflet-overlay-pane{
  mix-blend-mode: multiply;
}

.legend {
   width: 160px;
   color: #333333;
   font-family: 'Open Sans', Helvetica, sans-serif;
   padding: 10px;
   background: rgba(255,255,255,0.6);
   box-shadow: 0 0 15px rgba(0,0,0,0.2);
   border-radius: 5px;
   max-height: 250px;
   overflow: auto;
}

.legend .icon {
   width: 18px;
   height: 15px;
   margin-right: 8px;
   opacity: 0.7;
   vertical-align: middle;
   display: inline-block;
}

.legend p {
   font-size: 12px;
   line-height: 15px;
   margin: 3px 0 3px 0; /*top right bottom left*/
}

.info {
   padding: 2px 6px;
   color: #777;
   font: bold 12px sans-serif ;
   background: rgba(255,255,255,0.8);
   box-shadow: 0 0 15px rgba(0,0,0,0.2);
   border-radius: 5px;
   display: none;
   float: none;
   height: 26px;
   line-height: 24px;
}

/* to display control side by side */
/*
.leaflet-top.leaflet-left .leaflet-control{
  clear: none;
}
*/

.zoomToExtentBt{
  width:33px;
  height: 33px;
  background: url("icons/zoom_extent.svg?v=102") no-repeat;
  background-size: contain;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.zoomToExtentBt:hover{
  background-color: rgba(255, 255, 255, 1);
}


/* ########################################
   Clusters
   ######################################## */

.cluster {
    border-radius: 50%;
    text-align: center;
    font-weight: 700;
    font-family: sans-serif;
    border-width: 1px;
    border-style: solid;
}

.cluster.active {
    background: #d40000c8;
    border-color: #d40000c8;
}

.cluster:before {
    content: ' ';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border: 1px solid white;
}
.digits-0 {
    font-size: 14px;
    height: 28px;
    width: 28px;
    line-height: 28px;
    margin-top: -14px;
    margin-left: -14px;
}
.digits-1 {
    font-size: 16px;
    height: 34px;
    width: 34px;
    line-height: 35px;
    margin-top: -17px;
    margin-left: -17px;
}
.digits-1:before {
    border-width: 2px;
}
.digits-2 {
    font-size: 18px;
    height: 48px;
    width: 47px;
    line-height: 47px;
    border-width: 3px;
    margin-top: -24px;
    margin-left: -24px;
}
.digits-2:before {
    border-width: 3px;
}
.digits-3 {
    font-size: 18px;
    height: 58px;
    width: 58px;
    line-height: 57px;
    border-width: 4px;
    margin-top: -29px;
    margin-left: -29px;
}
.digits-3:before {
    border-width: 4px;
}


/* ########################################
   Cluster legend
   ######################################## */

.clustersLegend{
  max-width: 1000px;
}

.clusterLegendContainer{
  position:relative;
  display:inline-block;
  width:40px;
  height:40px;
  margin:2px;
}

.clusterLegend{
  position:relative;
  display:inline-block;
  border-radius: 50%;
  width:100%;
  height:100%;
  font-weight: 700;
  font-family: sans-serif;
  font-size: 11px;
  color:white;
  line-height: 40px;
  text-align: center;
}

.clusterLegend:hover{
  opacity:1;
}

.clusterLegend:before {
    content: ' ';
    position: absolute;
    border-radius: 50%;
    z-index: 1000;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 3px solid white;
}

/* Tooltip text */
.clusterLegendTooltip {
 visibility: hidden;
 width: 100px;
 background-color: black;
 color: white;
 font-weight: bold;
 text-align: center;
 padding: 5px 2px;
 border-radius: 6px;
 /* Position the tooltip text */
 position: absolute;
 z-index: 1100;
 bottom: 125%;
 left: 0;
 /* Fade in tooltip */
 opacity: 0;
 transition: opacity 0.3s;
}

/* Tooltip arrow */
.clusterLegendTooltip::after {
 content: "";
 position: absolute;
 top: 100%;
 left: 20px;
 margin-left: -5px;
 border-width: 5px;
 border-style: solid;
 border-color: black transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.clusterLegendContainer:hover .clusterLegendTooltip {
 visibility: visible;
 opacity: 0.6;

}

/* Bounce In */
.hvr-bounce-in {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
}
.hvr-bounce-in:hover, .hvr-bounce-in:focus, .hvr-bounce-in:active {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
  -webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}


/* Pop */
@-webkit-keyframes hvr-pop {
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}
@keyframes hvr-pop {
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}
.hvr-pop {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-pop:hover, .hvr-pop:focus, .hvr-pop:active {
  -webkit-animation-name: hvr-pop;
  animation-name: hvr-pop;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
