@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.galaxymap-section {
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.galaxymap-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffd24d;
  text-shadow: 0 0 20px rgba(255, 210, 77, 0.5), 0 0 40px rgba(255, 174, 0, 0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.image-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  border: 3px solid rgba(255, 210, 77, 0.4);
  background: linear-gradient(135deg, rgba(8, 17, 30, 0.9) 0%, rgba(15, 36, 56, 0.8) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 210, 77, 0.2), inset 0 0 20px rgba(122, 182, 255, 0.1);
  margin-bottom: 30px;
}

.galaxymap {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  user-select: none;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
}

.galaxymap:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.map-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.fullscreen-btn {
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 210, 77, 0.2) 0%, rgba(255, 174, 0, 0.15) 100%);
  color: #ffd24d;
  border: 2px solid #ffd24d;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Exo 2', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(255, 210, 77, 0.2);
}

.fullscreen-btn:hover {
  background: linear-gradient(135deg, rgba(255, 210, 77, 0.4) 0%, rgba(255, 174, 0, 0.25) 100%);
  box-shadow: 0 0 25px rgba(255, 210, 77, 0.4), inset 0 0 10px rgba(255, 210, 77, 0.1);
  transform: translateY(-2px);
}

.fullscreen-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(255, 210, 77, 0.2);
}

/* Popup Modal Styles */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 7, 13, 0.98);
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(2px);
}

.popup-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  user-select: none;
  border: 2px solid #ffd24d;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(255, 210, 77, 0.4), 0 0 100px rgba(255, 174, 0, 0.2);
}

.popup-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ffd24d;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  outline: none;
}

.popup-close:hover {
  transform: scale(1.2);
}

.popup-close:focus {
  outline: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .galaxymap-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .image-container {
    margin-bottom: 20px;
  }

  .galaxymap {
    max-height: 50vh;
  }

  .popup-close {
    top: 20px;
    right: 20px;
    font-size: 35px;
  }

  .fullscreen-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}