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) - 6px);
  /* 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 */
}



#minimap {
  position: absolute;
  bottom: 50px;
  right: 20px;
  background-size: cover;
  border: 0px solid #000000;
  z-index: 0;
  filter: drop-shadow(12px 15px 8px rgba(0, 0, 0, 0.5));
  touch-action: none;
}




#indicator {
  position: absolute;
  width: var(--indicator-size);
  height: var(--indicator-size);
  background-color: var(--indicator-bg-color);
  mask-image: url('./icons/pointer.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transform-origin: center center;
  pointer-events: none;
  z-index: 30;
}

#indicatorWrapper {
  filter: drop-shadow(4px 6px 4px rgba(0, 0, 0, 0.5));
  position: absolute;
  display: inline-block;
  z-index: 30;
  /* Ensure wrapper is correctly positioned if used to contain the indicator */
}

#indicator::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--indicator-bg-color);
  z-index: 30;
}

#minimap-click-capture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 2;

}

/* 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.off::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 {
  transition: left 0.5s;
  /* This should match the duration of your info panel transition */
}

#pointsContainer {
  position: absolute;
  top: calc(var(--point-size) / -2);
  /* Moves up by half of --point-size */
  left: calc(var(--point-size) / -2);
  width: 100%;
  height: 100%;
  z-index: 5;
  /* Adjust if needed */
  filter: drop-shadow(3px 5px 4px rgba(0, 0, 0, 0.5));
  

}

.point {
  position: absolute;
  width: var(--point-size);
  height: var(--point-size);
  background-color: var(--poi-color);
  -webkit-mask-image: url('./icons/point.png');
  mask-image: url('./icons/point.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: all;
  cursor: pointer;
  /* change cursor to indicate clickable */
  z-index: 5;
  .button:active,
  .button:focus {
    outline: none;
    background-color: inherit;
  }
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.ttpoint {

  position: absolute;
  width: var(--point-size);
  height: var(--point-size);
  background-color: var(--ttp-color);
  -webkit-mask-image: url('./icons/point.png');
  mask-image: url('./icons/point.png');
  -webkit-mask-size: contain;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: all;
  cursor: pointer;
  /* change cursor to indicate clickable */
  z-index: 5;
}

.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;
}