html,
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  touch-action: none;
  background: black;
}

.portrait-btn {
  bottom: auto;
  /* Reset the default bottom value */
  left: auto;
  /* Reset the default left value */
  position: fixed;
  /* Fixed position could be used depending on the layout */
  top: 50%;
  /* Adjust this value to position buttons vertically */
  transform: translateY(-50%);
  /* Center the buttons vertically */
}



#infoPanel {
  
  position: fixed;
  
  left: calc(-1 * var(--panel-width) - 0px);
  /* Use the variable */
  top: 0px;
  width: var(--panel-width);
  height: 100%;
  color: #1b1b1b;
  background-color: var(--panel-bg-color);
  backdrop-filter: blur(var(--blur-size));
  -webkit-backdrop-filter: blur(var(--blur-size));
  font-family: 'Roboto', sans-serif;
  box-shadow: 6px 4px 5px rgba(0, 0, 0, 0.3);
  border-radius: 0 15px 15px 0;
  transition: left 0.5s;
  z-index: 20;
}



#panelLid {
  
  position: absolute;
  right: -20px;
  top: 40%;
  width: 20px;
  height: 60px;
  background-color: #e1e0e0;
  backdrop-filter: blur(var(--blur-size));
  -webkit-backdrop-filter: blur(var(--blur-size));
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

#panelContent {
  height: 100%;
  padding-top: 20px;
  text-align: left;
  font-size: var (--text-size);
  max-height: 100vh;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
  touch-Action: none
}

#panelContent::-webkit-scrollbar {
  display: none;
}

#panelContent img {
  display: block;
  margin-top: 25px;
  margin-bottom: 0px;
  max-height: var(--plan-width);
  object-fit: cover;
  filter: drop-shadow(5px 6px 12px rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: opacity 0.3s ease;

}

.non-clickable-image {
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fullscreen-enabled {
  position: fixed;
  /* Stay in place */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  /* Ensure it's on top */
  background-color: #000;
  /* Optional: depending on your needs */
}





#panelContent h2,
#panelContent p,
#panelContent a {
  padding-left: 40px;
  /* Adds padding on all sides */
  padding-right: 40px;
  /* Adds padding on all sides */
  text-align: left;
  /* Aligns text to the left */
}


#infoImageColor,
.infoImageColor {
  -webkit-mask-image: none;
  mask-image: none;
  background-color: var(--info-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.infoImageColor {
  background-color: var(--info-color);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-position: center;
  -webkit-mask-position: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}



#infoImageColor .info-colored {
  -webkit-mask-image: var(--mask-url);
  mask-image: var(--mask-url);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: var(--info-color);
  width: 100%;
  height: auto;
  display: block;
}




/* Base styles for the button */
.poi-btn {
  filter: drop-shadow(5px 6px 4px rgba(0, 0, 0, 0.4));
  position: absolute;
  width: 75px;
  height: 75px;
  border: none;
  padding: 0;
  z-index: 5;
  cursor: pointer;
  background: none;
  display: block;
  touch-action: none;
  .button:active,
  .button:focus {
    outline: none;
    background-color: inherit;
  }
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Shared styles for ::before and ::after */
.poi-btn::before,
.poi-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

}

.poi-btn::before {
  mask-image: url('./icons/button_on.png');
  background-color: var(--button1-color);
}

.poi-btn::after {
  mask-image: url('./icons/poi_icon.png');
  background-color: var(--button2-color);
}

.poi-btn.off::before {
  mask-image: url('./icons/button_off.png');
}


.info-btn {
  filter: drop-shadow(5px 6px 4px rgba(0, 0, 0, 0.4));
  position: absolute;
  width: 75px;
  height: 75px;
  border: none;
  padding: 0;
  z-index: 5;
  cursor: pointer;
  background: none;
  display: block;
  touch-action: none;
  .button:active,
  .button:focus {
    outline: none;
    background-color: inherit;
  }
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.info-btn::before,
.info-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.info-btn::before {
  mask-image: url('./icons/button_off.png');
  background-color: var(--button1-color);
}

.info-btn::after {
  mask-image: url('./icons/info_icon.png');
  background-color: var(--button2-color);
}

.info-btn.on::before {
  mask-image: url('./icons/button_on.png');
}





.fscrn-btn {
  filter: drop-shadow(5px 6px 4px rgba(0, 0, 0, 0.4));
  position: absolute;

  width: 75px;
  height: 75px;
  border: none;
  padding: 0;
  z-index: 5;
  cursor: pointer;
  background: none;
  display: block;
  touch-action: none;
  .button:active,
  .button:focus {
    outline: none;
    background-color: inherit;
  }
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.fscrn-btn::before,
.fscrn-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.fscrn-btn::before {
  mask-image: url('./icons/fscrn_on.png');
  background-color: var(--button2-color);
}

.fscrn-btn::after {
  mask-image: url('./icons/button_off.png');
  background-color: var(--button1-color);
}

.fscrn-btn.off::before {
  mask-image: url('./icons/fscrn_off.png');
  background-color: var(--button2-color);
}

.scrn-btn {
  filter: drop-shadow(5px 6px 4px rgba(0, 0, 0, 0.4));
  position: absolute;
  width: 75px;
  height: 75px;
  border: none;
  padding: 0;
  z-index: 5;
  cursor: pointer;
  background: none;
  display: block;
  touch-action: none;
  .button:active,
  .button:focus {
    outline: none;
    background-color: inherit;
  }
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.scrn-btn::before,
.scrn-btn::after {

  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.scrn-btn::before {
  mask-image: url('./icons/button_off.png');
  background-color: var(--button1-color);
}

.scrn-btn::after {

  mask-image: url('./icons/scrn_icon.png');
  background-color: var(--button2-color);
}

.scrn-btn.off::before {
  mask-image: url('./icons/button_on.png');
}


.poi-btn,
.fscrn-btn,
.scrn-btn,
.info-btn {
  opacity: 0;

  transition: left 0.5s, opacity 0.5s ease;

  /* This should match the duration of your info panel transition */
}



.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.modal {
  opacity: 0;
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  /* Dim the background */
  align-items: center;
  /* Center vertically */
  justify-content: center;
  /* Center horizontally */
  display: flex;
  transition: opacity 0.5s ease;
}

.modal-content {
  display: block;
  margin: auto;
  height: 80%;
  max-height: 800px;
  transition: opacity 0.5s ease;
  /* Add transition effect */



}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.black-link {
  color: black;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
}

body {
  margin: 0;
  overflow: hidden; /* Prevent scrollbars */
}

/* Attribution styles */
.attribution {
  position: fixed;
  bottom: 10px;
  right: 50px;

  color: #ffffff;


  z-index: 1000; /* Ensure it stays on top */
  width: auto; /* Let the content define the width */
  height: auto; /* Let the content define the height */
  white-space: nowrap; /* Prevent wrapping of text */
}

/* full‐screen splash with “cover” scaling */
#loading-screen {
  z-index: 1000;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: center/cover no-repeat;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#loading-screen.fade-in   { animation: fadeIn 0.3s forwards; }
#loading-screen.fade-out  { animation: fadeOut 1.5s forwards; }

.loading-content {
  text-align: center;
  color: #fff;
}
.loading-content {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

#progress-container {
  width: 30vw;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  overflow: hidden;
}
#progress-bar {
  width: 0;
  height: 100%;
  background: rgba(255,255,255,0.9);
  transition: width 0.1s linear;
}

#black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10;
}

#heightmap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -5;
  object-fit: cover;
  display: none; /* Hide initially */
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

