﻿html, body {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    color: #515354; 
    font-family: sans-serif;
    font-size: small;
    height:100%;
    overflow-y:hidden;
}

#map {
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px;
    float: left;
}

#framecontainer {
    width: 25%;
    height: 100%;
    overflow: hidden;
    display: none;
    border-bottom: 1px solid #FF8C00;
}

#contentframe {
    height: calc(100% - 20px);
    width: 100%;
    border: 0;
    margin: 2px;
}


.trtoolbar {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 2px;
    position: absolute;
    /*width:300px;
    top: 5px;
    left:40px;*/
    top: 5em;
    left: 0.5em;
}

#tabtoolbar {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 2px;
    position: absolute;
    /*width:300px;
    top: 5px;
    left:40px;*/
    top: 21.3em;
    left: 17.1em;
}

.trbutton {
    cursor: pointer;
}

.slide-out-div {
    padding: 20px;
    padding-top:0px;
    width: 200px;

    border: 1px solid #ccc;
    padding: 10px;
    height: 58% !important;
    /*   max-height:300px;*/
    border-radius: 0px 8px 8px 0px;
}

.slide-out-div {
    /* frosted plexiglass overlay */
    background: rgba(255, 255, 255, 0.82);       /* mostly opaque */
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);

    /* subtle shadow for depth */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}

.slide-out-content {
    box-sizing: border-box;
    height: Calc(100% - 68px);
    position: relative;
    overflow-y: auto;
}

.slide-out-header {
    height: 55px!important;
}


.gridrow {
    padding:3px;
    padding-top:10px;
    /*height:25px;*/
    font-size:11pt;
    border-bottom: 1px solid #689ad7;
    font-weight:bold;
}

.gridrow_coords {
    font-size:smaller;
    padding-left:3px;
}

.gridrow_info {
    color:blue;
}

.gridrow_service {
    color:red;
}

.gridrow_chat {
    color:green;
}
.gridrow_navigation {
    float:right; 
    position: relative;
    cursor:pointer;
    font-size:12pt;
}

.ol-zoom-in {
    cursor:pointer;
}

.ol-zoom-out {
    cursor:pointer;
}

.ol-overviewmap {
    
    display: none;
}

.option-item {
    font-size:1.5em;
    color: dimgrey;
}

.content-group {
    color:cornflowerblue;
}

.ol-geocoder.gcd-gl-container {
    top: 19.0em;
    left: 17.1em;
}

.ol-geocoder .gcd-gl-btn {
    width: 1.375em;
    height: 1.32em;
    top: 0.238em;
}

#search-dialog {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 0px;
  color: #333;
}

#count {
    background: darkorange;
    position: absolute;
    top: 4px;
    Right: -26px;
    min-width: 14px;
    height: 14px;
    color: #ffffff;
    border-radius: 50%;
    padding: 1px;
    text-align: center;
    font-size: 11px;
    line-height: 14px;
}

/* --- Main Dialog Container --- */
.ui-dialog {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #333;
    padding: 0;
    overflow: hidden; /* prevent internal scrollbars */
}

/* Ensure internal widget content doesn’t create scrollbars */
.ui-widget-content {
    background: transparent !important;
    border: none !important;
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- Title Bar --- */
.ui-dialog-titlebar {
    background: rgba(255, 140, 0, 0.85);
    color: #fff;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 0.6em 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-dialog-titlebar-close {
    border: none;
    background: transparent;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
}
.ui-dialog-titlebar-close:hover {
    opacity: 1;
    color: #ffe;
}

/* --- Dialog Content Area --- */
.ui-dialog-content {
    padding: 1em 1.2em;
    overflow: hidden !important; /* remove extra scrollbar */
}

/* --- Input Field --- */
.ui-dialog-content input[type="text"],
.ui-dialog-content input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

/* --- Button Bar --- */
.ui-dialog-buttonpane {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 0;
    padding: 0.5em 1em;
}

.ui-dialog-buttonset button {
    background: rgba(255, 140, 0, 0.85);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.ui-dialog-buttonset button:hover {
    background: rgba(255, 140, 0, 1);
}


#trdownloadimagebutton {
    display: none;
}



.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Yep! */
  width: 48%;
  height: 59%;
}

h1 {
    text-align: center;
    text-transform: uppercase;
    color: #FF8C00;
}

h2 {
    text-align: center;
    color: #FF8C00;
}

p {
    font-size: 13px;
	font-family: arial, sans-serif;
	color: #828282;
	/*background: url(images/body.png) repeat 0 0;*/
	min-width: 100%;
    text-align:center;
}

@media screen and (min-device-width: 992px) { 
    .ol-overviewmap {

        display: block;
        bottom: 2em;
    }

    #trdownloadimagebutton {
        display: block;
    }

    #splashscreen {
        height: 40%;
        width: 60%;
    }
}



.ol-popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  min-width: 220px;
  max-width: 280px;
  color: #222;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease-in-out;
  z-index: 9001;
}

/* subtle hover lift */
.ol-popup:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* content section */
.ol-popup-content {
  padding: 4px 0;
  max-height: none;
}

/* popup title / header */
.ol-popup-content h3 {
  margin: 0;
  font-size: 15px;
  color: #111;
}

/* labels */
.ol-popup-content strong {
  color: #333;
}

/* small icons */
.ol-popup-content i {
  color: rgba(255, 140, 0, 0.9);
}

/* closer button */
.ol-popup-closer {
  text-decoration: none;
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 18px;
  color: rgba(80, 80, 80, 0.8);
  transition: color 0.2s;
}
.ol-popup-closer:after {
  content: "×";
  font-weight: bold;
}
.ol-popup-closer:hover {
  color: rgba(0, 0, 0, 0.9);
}

/* link styling */
.ol-popup-content a {
  color: rgba(255, 140, 0, 0.95);
  text-decoration: none;
  transition: opacity 0.2s;
}
.ol-popup-content a:hover {
  opacity: 0.8;
}

/* logo and header row */
.ol-popup-content img {
  height: 20px;
  margin-right: 6px;
  border-radius: 4px;
}

/* action row at bottom (Zoom / Follow / etc.) */
.ol-popup-content .actions {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 140, 0, 0.3);
}

/* reuse WalkerMatt’s tip instead of adding our own */
.ol-popup-tip {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

/* Remove the outer triangle completely */
.ol-popup:before {
  content: none !important;
}

/* Single frosted-glass tail, a touch milkier */
.ol-popup:after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 48px;
  border: solid transparent;
  border-width: 12px;
  border-top-color: rgba(255,255,255,0.82);  /* a tad more opaque */
  background: transparent;
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  box-shadow: none;
  filter: none;
  pointer-events: none;
}


#whistleboard {
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 9;
    right: 6px;
    top: 55px;
    display:block;
}

.whistleboard-info {
    width: 38px;
    height: 38px;
    background-image: url('../Images/whistleboard-orange-32.png');
    background-repeat: no-repeat;
    background-position: 2px;
    background-color: white;
    border: none;
    border-radius: 2px;
    margin: 0 auto;
    margin-top: 1px;
    line-height: .4em;
    cursor: pointer;
}

.wave-float {
  position: fixed;
  bottom: 60px;                 /* start just above footer */
  left: 40%;
  font-size: 32px;
  opacity: 0;
  animation: waveUp 3s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

#hud-bubble {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 153, 0, 0.85);
  color: #eee;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  z-index: 20001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  white-space: nowrap;
}


@keyframes waveUp {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: translate(var(--driftX), -120px) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--driftX), -160px) scale(1); opacity: 0; }
}



/* Footer container */
#whistleboard-footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  display: none;
  pointer-events: none;
  z-index: 9999;
}

/* --- Main Footer --- */
#whistleboard-footer {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px) saturate(130%);
  box-shadow: 0 -1px 10px rgba(0,0,0,0.1); /* subtle depth shadow */
  border-top: 4px solid #FF8C00;

  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  color: #333;
  height: 55px;
  padding: 4px 12px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
}

.wb-column {
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

/* --- Logo --- */
.wb-logo {
  width: 180px;
  justify-content: flex-start;
}
.wb-logo img {
  height: 45px;
  width: auto;
  opacity: 0.95;
}

/* --- Player Columns --- */
.wb-player {
  display: flex;
  align-items: center;
  width: 200px;
}
.wb-trophy {
  font-size: 18px;
  margin-right: 5px;
}
.wb-trophy.gold   { color: #FFD700; }
.wb-trophy.silver { color: #B0B0B0; }
.wb-trophy.bronze { color: #CD7F32; }

.wb-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wb-name {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}
.wb-distance {
  font-size: 11px;
  color: #666;
}

/* --- Statistics --- */
.wb-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  min-width: 380px;
}
.wb-stat-link {
  display: flex;
  flex-direction: row;
  gap: 40px;
  text-decoration: none;
  color: inherit;
}
.wb-stat-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.wb-header {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #FF8C00; /* orange highlight */
  margin-bottom: 2px;
}
.wb-value {
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

/* --- Menu --- */
.wb-menu button {
  background: none;
  border: none;
  color: #666;
  font-size: 17px;
  margin-left: 8px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.wb-menu button:hover {
  color: #FF8C00;
 transform: scale(1.1);
}

@keyframes wb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wb-menu button.refreshing i {
  animation: wb-spin 1s linear infinite;
  color: #FF8C00; /* highlight while spinning */
}

.wb-extra-menu {
  position: relative;
}

/* popup menu */
.wb-popup {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 70px; /* just above footer */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  min-width: 160px;
  text-align: left;
  z-index: 10050;
}
.wb-popup a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.wb-popup a:hover {
  background: rgba(255,140,0,0.15);
  color: #FF8C00;
}

.wb-popup i {
  margin-right: 6px;
  width: 16px;
  text-align: center;
}

/* show popup when menu active */
.wb-extra-menu.active .wb-popup {
  display: block;
}


/* --- Toggle button --- */
.ol-control.ol-layerswitcher button {
  background: rgba(255,140,0,0.85) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 30px;
  height: 30px;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
}
.ol-control.ol-layerswitcher button:hover {
  background: rgba(255,140,0,1) !important;
  transform: scale(1.05);
}





/* responsive: hide refresh at smaller widths */
@media (max-width: 1150px) {
  #wb-refresh-btn {
    display: none;
  }
}

/* --- Responsive Tweaks --- */

/* <= 1250px: hide silver + bronze, keep logo + gold + stats + menu */
@media (max-width:1350px){
  .wb-player:nth-of-type(3),
  .wb-player:nth-of-type(4) {
    display:none;
  }

  #whistleboard-footer {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .wb-logo { width:160px; }
  .wb-player { width:170px; }
  .wb-stats { min-width:320px; gap:25px; }
  .wb-menu { display:flex; gap:8px; margin-left:auto; }
}

/* <= 900px: hide logo, keep gold + stats + menu */
@media (max-width:900px){
  .wb-logo { display:none; }

  #whistleboard-footer {
    justify-content:space-between;
    flex-wrap:nowrap;
  }

  .wb-player { width:150px; }
  .wb-stats { min-width:260px; gap:18px; }
  .wb-menu { display:flex; gap:8px; margin-left:0; }
  .wb-menu button:nth-of-type(n+3) { display:none; } /* max 2 buttons */
}

/* <= 600px: hide gold, keep only stats + menu */
@media (max-width:600px){
  .wb-player:nth-of-type(2) { display:none; }

  #whistleboard-footer {
    justify-content:space-between;
    flex-wrap:nowrap;
  }

  .wb-stats {
    min-width:auto;
    gap:15px;
  }
  .wb-stat-link {
    flex-direction:row;
    gap:15px;
  }
  .wb-header { font-size:11px; }
  .wb-value  { font-size:11px; }

  .wb-menu {
    display:flex;
    gap:6px;
  }
  

}


/* --- Frosted full-screen overlay --- */
#splashscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  cursor: pointer;
  animation: fadeOut 0.6s ease-out forwards;
  animation-delay: 4.5s; /* fade away automatically after ~5s */
}

/* --- Inner box centered by flex --- */
.splash-inner {
  text-align: center;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 40px 60px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  max-width: 480px;
  color: #333;
  animation: fadeIn 0.6s ease-out;
}

/* --- Fade animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}