@import url("https://fonts.googleapis.com/css?family=Fredoka+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;500&family=Lato:wght@400;700&family=Open+Sans:wght@400;600&family=Merriweather:wght@400;700&family=Nunito:wght@400;600&family=Montserrat:wght@400;600&family=Source+Sans+Pro:wght@400;600&family=Oswald:wght@400;600&family=Raleway:wght@400;600&family=Ubuntu:wght@400;500&family=Exo:wght@900&display=swap');

:root {
  --global-zoom: 100%;
  --main-font-family: 'Poppins', sans-serif;
  --light-text-color: #f8fafc;
  --dark-text-color: #334155;
  --panel-bg-dark: rgba(15, 23, 42, 0.7);
  --panel-border-dark: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--global-zoom);
}

body {
  font-family: var(--main-font-family);
  background: linear-gradient(159deg, rgba(0, 71, 171, 1) 0%, rgba(28, 169, 201, 1) 100%);
  color: var(--light-text-color);
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  transition: background 0.5s ease, color 0.5s ease;
  margin: 0;
}

.page-container {
  display: none;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  animation: fadeInPageGeneric 0.4s ease-out forwards;
  position: relative; 
}

@keyframes fadeInPageGeneric {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#initial-page-content,
#menu-page {
  flex-direction: column;
}

#loading-screen {
  background: #222;
}

.loading-animation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-text {
	place-self: center;
	background: linear-gradient(90deg, #00f, #0ff, #00f) -100%/ 200%;
	-webkit-background-clip: text;
	        background-clip: text;
	color: transparent;
	font: 900 clamp(1.5em, 5vw, 4em) exo, sans-serif;
	animation: shimmer 2s linear infinite;
  text-align: center;
}

@keyframes shimmer { to { background-position: 100%; } }


.main-header-banner {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 1rem;
}

.menu-title {
   font-size: clamp(1.2rem, 3vw, 2.8rem);
  color: var(--light-text-color);
  font-family: 'Fredoka One', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  padding: 0 12px;
}

.menu-subtitle-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.menu-subtitle {
  background: #3f51b5;
  color: var(--light-text-color);
  padding: 4px 16px;
  border-radius: 16px;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.8vw, 1.3rem);
}

.two-panel-layout {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.panel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
}

.logo-image {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.welcome-panel-wrapper {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  color: var(--light-text-color);
  transform: scale(0.95);
  transform-origin: top center;
}

.welcome-animation-container {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin: -20px auto 0;
    position: relative;
}

.welcome-animation-container dotlottie-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.welcome-panel-wrapper h2 {
  font-size: 1.7rem;
  margin-bottom: 0px;
  font-weight: 600;
  color: var(--light-text-color);
}

.welcome-text {
  font-size: 1.5rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.enter-button {
  background: rgba(255, 255, 255, 0.2);
  color: var(--light-text-color);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 17px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.enter-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.dark-mode-active .welcome-panel-wrapper {
  background: var(--panel-bg-dark);
  border-color: var(--panel-border-dark);
}

body.dark-mode-active .enter-button:hover {
  background: rgba(51, 65, 85, 0.7);
}


.top-right-controls {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1001;
}

/* --- CRITICAL FIX: ENSURES CONTROLS ARE VISIBLE IN FULLSCREEN --- */
body.unity-fullscreen-active .top-right-controls {
    z-index: 10000;
}

.control-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--light-text-color);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
}

.settings-panel {
  position: absolute;
  top: 55px;
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform-origin: top right;
  transform: scale(0.95) translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease-out;
  color: var(--light-text-color);
}

.settings-panel.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.theme-picker-container {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dark-mode-toggle-label {
  width: 60px;
  height: 30px;
  position: relative;
  display: block;
  background: #ebebeb;
  border-radius: 200px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s;
}

.dark-mode-toggle-label:after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, #ffcc89, #d8860b);
  border-radius: 180px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.dark-mode-toggle-label .fa-sun,
.dark-mode-toggle-label .fa-moon {
  position: absolute;
  font-size: 16px;
  z-index: 1;
  top: 7px;
  transition: opacity 0.3s ease;
}

.dark-mode-toggle-label .fa-sun {
  left: 7px;
  color: white;
  opacity: 1;
}

.dark-mode-toggle-label .fa-moon {
  right: 7px;
  color: #7e7e7e;
  opacity: 0;
}

#dark-mode-toggle-checkbox {
  width: 0;
  height: 0;
  visibility: hidden;
}

#dark-mode-toggle-checkbox:checked+.dark-mode-toggle-label {
  background: #242424;
}

#dark-mode-toggle-checkbox:checked+.dark-mode-toggle-label:after {
  left: 58px;
  transform: translateX(-100%);
  background: linear-gradient(180deg, #777, #3a3a3a);
}

#dark-mode-toggle-checkbox:checked+.dark-mode-toggle-label .fa-sun {
  opacity: 0;
}

#dark-mode-toggle-checkbox:checked+.dark-mode-toggle-label .fa-moon {
  opacity: 1;
}

.settings-select {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 5px;
}

.logout-button {
  background-color: transparent;
  color: inherit;
  border: 1px solid;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.logout-button:hover {
    background-color: rgba(128, 128, 128, 0.15);
}

.menu-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}


.menu-header {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.hexagon-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hexagon {
  position: relative;
  width: 180px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--light-text-color);
  transition: all 0.2s ease-out;
  padding: 15px;
}

.hexagon:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.hexagon-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hexagon-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  word-wrap: break-word;
  padding: 0 4px;
  max-width: 100%;
  white-space: normal;
}


body.dark-mode-active {
  background: #020617;
  color: var(--light-text-color);
}

body.dark-mode-active .menu-title {
  color: #e0f2fe;
}

body.dark-mode-active .menu-subtitle {
  background-color: #38bdf8;
  color: #020617;
}

body.dark-mode-active .settings-panel,
body.dark-mode-active .control-button {
  background: var(--panel-bg-dark);
  border-color: var(--panel-border-dark);
}

body.dark-mode-active .hexagon {
  background-color: #1e293b;
}

body.dark-mode-active .hexagon:hover {
  background-color: #334155;
}

#map-2d-page {
  flex-direction: column;
  padding: 20px;
  padding-top: 80px;
}

.map-page-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-area-wrapper {
  position: relative;
  width: 95vw;
  height: calc(100% - 20px);
  max-width: 1200px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  touch-action: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-image-2d {
    width: 1557px;
    height: 1058px;
    object-fit: contain;
    pointer-events: none;
    transform-origin: 0 0;
}

#map-content-area {
    width: auto;
    height: auto;
    position: relative;
    cursor: grab;
}
#map-content-area:active {
    cursor: grabbing;
}

.map-ui-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--light-text-color);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

.map-ui-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode-active .map-ui-button,
body.dark-mode-active .map-page-header .control-button {
  background: var(--panel-bg-dark);
  border-color: var(--panel-border-dark);
  color: var(--light-text-color);
}

body.dark-mode-active .map-ui-button:hover {
  background: #1e293b;
}

.info-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2002;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.info-popup {
  background: linear-gradient(to bottom, #e0f8f0, #d8e8f8);
  border-radius: 24px;
  width: 90vw;
  max-width: 550px;
  max-height: 85vh;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #333;
  display: flex;
  flex-direction: column;
}

#info-popup-content-wrapper,
#welcome-popup-content-wrapper {
  position: relative;
  flex-grow: 1; 
  overflow-y: auto; 
  scroll-behavior: smooth;
  cursor: grab;
}

.content-wrapper-active-drag {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

#info-popup-content-wrapper::-webkit-scrollbar,
#welcome-popup-content-wrapper::-webkit-scrollbar {
	width: 12px;
}
#info-popup-content-wrapper::-webkit-scrollbar-track,
#welcome-popup-content-wrapper::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1); 
	border-radius: 10px;
}
#info-popup-content-wrapper::-webkit-scrollbar-thumb,
#welcome-popup-content-wrapper::-webkit-scrollbar-thumb {
	background-color: #6c757d;
	border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}
#info-popup-content-wrapper::-webkit-scrollbar-thumb:hover,
#welcome-popup-content-wrapper::-webkit-scrollbar-thumb:hover {
	background-color: #495057;
}

.info-popup .welcome-popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}

.info-popup .welcome-popup-close-btn:hover {
  opacity: 1;
}

.info-page {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 40px 30px;
}

.info-page.active-page {
    display: block;
    opacity: 1;
}

.info-popup-content, .info-popup-content-full {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.info-popup-content {
    flex-direction: column;
    text-align: center;
}

.info-popup-content-full {
    flex-direction: column;
    text-align: center;
}

.info-popup-image-container {
  flex: 0 0 250px;
  max-width: 250px;
}
.info-popup-text-container {
  flex: 1;
  line-height: 1.7;
  text-align: justify;
}
.info-popup-text-container p, .info-popup-content-full p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1em;
}

.info-popup-content-full h2 {
    font-size: 1.8rem;
    margin-bottom: 1em;
    color: #1e3a8a;
}

.developer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}
.developer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.developer-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.developer-card span {
    font-weight: 600;
}

.message-popup-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.message-popup {
  background: white;
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 350px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
}

.popup-icon-circle {
  background-color: #e0f0ff;
  color: #1a73e8;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-popup.success .popup-icon-circle {
  background-color: #e8f5e9;
  color: #4caf50;
}

.popup-icon-circle .location-icon {
  font-size: 28px;
}

.message-popup-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.message-popup-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}

.message-popup-button {
  background-color: #1a1d2d;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.message-popup.success .message-popup-button {
  background-color: #4caf50;
}
.message-popup.success .message-popup-button:hover {
  background-color: #43a047;
}

.message-popup.error {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  color: white;
}

.message-popup-button:hover {
   background-color: #33364d;
}

.back-to-login-container {
  margin-top: 30px;
  text-align: center;
}

.back-to-login-button {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--light-text-color);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.back-to-login-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode-active .back-to-login-button {
  background-color: #1e293b;
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, 0.2);
}

body:not(.dark-mode-active) .settings-panel {
  color: var(--dark-text-color);
}

body:not(.dark-mode-active) .settings-panel select,
body:not(.dark-mode-active) .settings-panel label,
body:not(.dark-mode-active) .settings-panel button,
body:not(.dark-mode-active) .language-button {
  color: var(--dark-text-color);
}

body:not(.dark-mode-active) .language-button {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode-active) .settings-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
  .hexagon {
    width: 140px;
    height: 160px;
  }
  .hexagon-icon {
    font-size: 2rem;
  }
  .hexagon-text {
    font-size: 1rem;
  }
  .info-popup {
    max-width: 95vw;
  }
  .info-popup-content {
      flex-direction: column;
  }

  #initial-page-content {
      padding-top: 1rem;
      padding-bottom: 1rem;
      justify-content: flex-start;
      overflow-y: auto;
  }

  .main-header-banner {
    display: block;
    margin-top: 70px;
  }
  
  .two-panel-layout {
      flex-direction: column;
      gap: 20px;
      align-items: center;
      width: 90%;
  }

  .panel {
      flex: none;
      min-width: 0;
      width: 100%;
  }
  
  .logo-image {
      max-width: 240px;
  }
}

@media (max-width: 480px) {

  .logo-panel
  {
    margin-top: -20px;
  }

  
  #initial-page-content {
    padding-top: 0.3rem;
  }

  html {
    font-size: 80%;
  }
  .hexagon {
    width: 100px;
    height: 120px;
  }
   .hexagon-icon {
    font-size: 1.5rem;
  }
  .hexagon-text {
    font-size: 0.7rem;
  }
  .menu-title {
    font-size: 1.1rem;
     padding: 0 10px;
  }
  .menu-subtitle {
    font-size: 0.85rem;
    padding: 4px 12px;
  }
  .back-to-login-button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .developer-grid {
      grid-template-columns: 1fr;
  }

  .logo-image {
      max-width: 280px;
  }

   .welcome-panel {
    max-width: 400px;
     margin-top: -10px;
  }

  .welcome-panel-wrapper {
      padding: 20px 15px;
      transform: scale(0.89);
      
  }
}

body.dark-mode-active .message-popup {
  background-color: #f8fafc;
  color: #1e293b;
}

.pin-wrapper {
  position: absolute;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -48px;
  z-index: 10;
  animation: dropIn 0.6s ease-out forwards;
  opacity: 0;
  transform-origin: bottom center;
  cursor: pointer;
}

.pin-lottie {
  width: 100%;
  height: 100%;
  pointer-events: none; 
}

.pin-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: white;
  color: black;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s ease-out;
  pointer-events: none;
  z-index: 11;
  white-space: normal;
  width: max-content;
  max-width: 250px;
  text-align: center;
}

.pin-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.pin-wrapper:hover .pin-label {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-15px);
}

@keyframes dropIn {
  0% {
    transform: translateY(-50px) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.pin-info-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2001;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pin-info-popup {
    background: linear-gradient(120deg, #d3f9d8 0%, #a8d5f7 100%);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    width: auto;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}

.pin-info-icon-wrapper {
    font-size: 2.5rem;
    color: #333;
}

.pin-info-text-wrapper h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.3;
}

.pin-info-button-wrapper .pin-info-next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.pin-info-button-wrapper .pin-info-next-btn:hover {
    background-color: #1c3376;
    transform: scale(1.05);
}

.pin-info-popup-close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1e3a8a;
    opacity: 0.7;
    cursor: pointer;
}

.pin-info-popup-close-btn:hover {
    opacity: 1;
}

.pin-info-popup.college-popup {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    max-width: 500px;
    color: #333;
}
.college-info-text-wrapper {
    flex-grow: 1;
}
.college-info-text-wrapper h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #1e3a8a;
    text-shadow: none;
}
#college-popup-details ul,
#college-popup-details ol {
    padding-left: 20px;
    margin: 0;
}
#college-popup-details li {
    margin-bottom: 8px;
    line-height: 1.5;
}
#college-popup-details ol {
    margin-top: 5px;
    margin-bottom: 10px;
}
#college-popup-details li i {
    margin-right: 8px;
    color: #555;
}
.pin-info-popup.college-popup .pin-info-icon-wrapper,
.pin-info-popup.college-popup .pin-info-popup-close-btn {
    color: #333;
}

.pin-info-popup.coe-color { background: linear-gradient(120deg, #b1f0e1, #69c0ff); }
.pin-info-popup.cit-color { background: linear-gradient(120deg, #ffcda5, #ff8a65); }
.pin-info-popup.ccs-color { background: linear-gradient(120deg, #c5cae9, #9fa8da); }
.pin-info-popup.ccje-color { background: linear-gradient(120deg, #ffecb3, #ffd54f); }
.pin-info-popup.cas-color { background: linear-gradient(120deg, #d1c4e9, #b39ddb); }
.pin-info-popup.cbaa-color { background: linear-gradient(120deg, #c8e6c9, #a5d6a7); }
.pin-info-popup.chmt-color { background: linear-gradient(120deg, #f8bbd0, #f06292); }
.pin-info-popup.cte-color { background: linear-gradient(120deg, #ffccbc, #ff8a65); }


@media (max-width: 480px) {
    .pin-info-popup {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px;
    }
    .pin-info-text-wrapper h3 {
        font-size: 1.2rem;
    }
}

.welcome-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2002;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-popup {
  background: linear-gradient(to bottom, #e0f8f0, #d8e8f8);
  border-radius: 24px;
  width: 90vw;
  max-width: 450px;
  max-height: 85vh;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #333;
  display: flex;
  flex-direction: column;
}

.welcome-popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}
.welcome-popup-close-btn:hover {
  opacity: 1;
}

.welcome-page {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  padding: 40px 30px;
}

.welcome-page.active-page {
  display: block;
  opacity: 1;
}

.welcome-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.welcome-popup-image-container {
    width: 100%;
    margin-bottom: 20px;
}

.welcome-popup-image-container.history-logos {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.history-logos img {
    max-width: 120px;
    height: auto;
}

.welcome-popup-image-container dotlottie-player {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto;
}

.welcome-popup-text-container {
  text-align: justify;
}

.welcome-popup-text-container p {
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1em;
}
.welcome-popup-text-container p:last-child {
  margin-bottom: 0;
}

.welcome-popup-text-container h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1em;
  font-weight: 600;
  color: #1e3a8a;
}

.welcome-popup-text-container h3 {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: #1e3a8a;
}

.welcome-popup-nav {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 15px 30px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.welcome-popup-nav.nav-align-left {
    justify-content: flex-start;
}

.welcome-popup-nav.nav-align-space-between {
    justify-content: space-between;
}

.welcome-popup-nav-btn {
  background: none;
  border: 2px solid #555;
  color: #555;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-popup-nav-btn:hover {
    background: #555;
    color: #fff;
}

.loading-welcome-text {
    color: #e0e0e0;
    margin-top: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.character-canvas-wrapper {
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 1200px;
    padding: 10px;
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    transition: all 0.3s ease-in-out;
    position: relative;
}

#character-canvas-container {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    cursor: grab;
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
}
#character-canvas-container:active {
    cursor: grabbing;
}
#character-canvas-container canvas {
    display: block;
}

#unity-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%;
    height: 0;
    display: none;
}

#unity-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: transparent;
}


.character-controls-bottom {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 100px;
    z-index: 2010;
}

.char-nav-arrow {
    background-color: transparent;
    border: none;
    width: auto;
    height: auto;
    font-size: 3rem;
    color: var(--dark-text-color);
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
}

.char-nav-arrow:hover {
    transform: scale(1.1);
    background-color: transparent;
}

.char-nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.character-top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2010;
    pointer-events: none;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.character-top-bar button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-top-bar button:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.character-top-bar button.active {
    border-color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
}

#char-toggle-animation-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 5;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    background-color: rgba(255,255,255,0.7);
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#char-toggle-animation-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

#character-selection-page.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2005;
    background-color: #fff;
}

#character-selection-page.fullscreen-active .character-canvas-wrapper {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    background-image: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

#character-selection-page.fullscreen-active #character-canvas-container,
body.unity-fullscreen-active #character-canvas-container {
    border-radius: 0;
    background-color: transparent;
    padding: 0;
}

#character-selection-page.fullscreen-active #unity-canvas,
body.unity-fullscreen-active #unity-canvas {
    border-radius: 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#character-selection-page.fullscreen-active #unity-container,
body.unity-fullscreen-active #unity-container {
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 9998;
}

@media (max-width: 768px) {
    .character-canvas-wrapper {
        width: 90vw;
        height: 65vh;
    }
    .character-controls-bottom {
        bottom: 10vh;
    }
    .character-top-bar button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .char-nav-arrow {
        font-size: 2.5rem;
    }
}

.campus-3d-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
}
.campus-3d-placeholder h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.campus-3d-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
body.dark-mode-active .campus-3d-placeholder {
    background: var(--panel-bg-dark);
    border-color: var(--panel-border-dark);
}

.college-details-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
}

.college-details-popup {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 520px; /* Increased width for better image display */
    height: auto;
    max-height: 90vh;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    color: #4A5568;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.college-details-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #333;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px 0;
    transition: background-color 0.2s;
}

.college-details-close-btn:hover {
    background-color: #555;
}

.college-details-close-btn::before {
    content: '\00D7';
    font-family: Arial, sans-serif;
}

.college-details-content {
    padding: 30px;
    padding-top: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.college-details-content .college-details-image-wrapper.cbaa-image {
    width: calc(100% + 60px); 
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -20px;
    margin-bottom: 25px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.college-details-content .college-details-image-wrapper.cbaa-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.college-details-content h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    margin-top: 10px;
    color: #2c5282;
    font-weight: 700;
    line-height: 1.3;
}

.college-details-page {
    display: none;
}
.college-details-page.active-page {
    display: block;
    animation: fadeInPageGeneric 0.3s ease-in-out;
}

.college-details-page h3 {
    font-size: 1.2rem;
    color: #2c5282;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid #a0aec0;
}
.college-details-page p, .college-details-page li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4A5568;
}
.college-details-page ol, .college-details-page ul {
    padding-left: 25px;
}
.college-details-page li {
    margin-bottom: 12px;
}
.college-details-page ol li {
    margin-bottom: 8px;
}

.college-details-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.college-details-nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.college-details-nav-btn:hover {
    color: #2c5282;
    transform: scale(1.1);
}

.college-details-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
    color: #a0aec0;
}

.page-indicators {
    display: flex;
    gap: 10px;
}
.page-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: background-color 0.3s ease;
}
.page-indicator.active {
    background-color: #2c5282;
}

@media (max-width: 600px) {
    .college-details-popup {
        max-height: 85vh;
        max-width: 90vw; /* Make it responsive on smaller screens */
    }
    .college-details-content {
        padding: 20px;
        padding-top: 45px;
    }
    .college-details-content .college-details-image-wrapper.cbaa-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -45px;
    }
    .college-details-content h2 {
        font-size: 1.3rem;
    }
    .college-details-page h3 {
        font-size: 1.1rem;
    }
}
@media (max-width: 768px) and (orientation: portrait) {
    .character-canvas-wrapper {
        width: 95vw;
        height: 75vh; 
    }

    #unity-container {
        padding-top: 177.78%;
    }
}

/* --- NEW TUTORIAL STYLES START --- */
.new-tutorial-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* Changed by JS */
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.new-tutorial-popup {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.9), rgba(209, 234, 255, 0.9));
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.new-tutorial-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.new-tutorial-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.new-tutorial-title {
	background: linear-gradient(90deg, #9370DB, #FF69B4, #9370DB) -100%/ 200%;
	-webkit-background-clip: text;
	        background-clip: text;
	color: transparent;
	font: 900 clamp(2em, 8vw, 3.5em) exo, sans-serif;
	animation: shimmer 2s linear infinite;
}

.new-tutorial-page {
    display: none;
    padding: 20px 0;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.new-tutorial-page.active-page {
    display: grid;
}

.tutorial-item, .tutorial-item-wide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0d47a1;
}

.tutorial-item img {
    width: 80px;
    height: 80px;
}

.tutorial-item-wide {
    grid-column: 1 / -1; /* Span across both columns */
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 15px;
}

.tutorial-item-wide img {
    height: 120px; 
    width: auto;
}

.tutorial-item-wide .fa-arrow-right {
    font-size: 2rem;
    color: #333;
    margin: 0 20px;
}

.tutorial-thanks {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

.new-tutorial-nav {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
}

.new-tutorial-nav-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
}

.new-tutorial-nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

@media (max-width: 480px) {
    .new-tutorial-popup {
        padding: 20px;
        max-width: 95%;
    }
    .new-tutorial-title {
        font-size: 2.5em;
    }
    .tutorial-item img {
        width: 60px;
        height: 60px;
    }
    .tutorial-item-wide img {
        height: 90px;
        width: auto;
    }
}

/* --- GALLERY POPUP STYLES --- */
.library-gallery-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* Changed by JS */
    justify-content: center;
    align-items: center;
    z-index: 3001; /* Higher than other popups */
    padding: 15px;
}

.library-gallery-popup {
    background: linear-gradient(160deg, #e0f2f1 0%, #c8e6c9 30%, #bbdefb 100%);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-family: 'Poppins', sans-serif;
}

.library-gallery-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    z-index: 10;
}

.library-gallery-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    margin-top: 10px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.library-gallery-image-wrapper {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
    min-height: 200px;
}

.library-gallery-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.library-gallery-image-wrapper img:active {
    transform: scale(0.98);
}

.library-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background-color: #0d47a1;
    transform: scale(1.2);
}

/* Specific styles for the college details image gallery */
.college-details-page .college-details-image-wrapper {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.college-details-page .college-details-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

.college-details-page .college-details-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.college-details-page .college-details-gallery-dots .gallery-dot {
    background-color: #cbd5e1;
}

.college-details-page .college-details-gallery-dots .gallery-dot.active {
    background-color: #2c5282;
}

/* --- LEGENDS ICON AND POPUP --- */
.map-floating-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 15;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #1e3a8a;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: grab;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    touch-action: none; /* Important for dragging on touch devices */
}

.map-floating-icon:active {
    cursor: grabbing;
}

.legends-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* Changed by JS */
    justify-content: center;
    align-items: center;
    z-index: 3002;
    padding: 15px;
}

.legends-popup {
    position: relative;
    background: linear-gradient(135deg, rgba(215, 248, 233, 0.95), rgba(209, 234, 255, 0.95));
    color: #1e293b;
    border-radius: 20px;
    padding: 25px 35px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.legends-popup h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #1e293b;
}

.legends-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}
.legends-popup-close-btn:hover {
    opacity: 1;
}

.legends-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legends-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    display: inline-block;
    border-radius: 4px;
    flex-shrink: 0;
}