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

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

/* Layout */
.game-layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 340px;
  background-color: #001f3f;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  font-family: 'Orbitron', sans-serif;
}

.sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Galaxy Grid Area */
.game-container {
  flex: 1;
  background-color: #000;  
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../images/bg/galaxy-bg.png'); /* adjust path */
  background-size: cover;        /* or 'contain' / 'auto' */
  background-position: center;
  background-repeat: no-repeat;
}

.galaxy-grid {
  display: grid;
  grid-template-columns: repeat(25, 40px);
  grid-template-rows: repeat(15, 40px);
  gap: 10px;
  position: relative;

  padding: 10px;
  border-radius: 8px;
}


.cell {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background-color: none;
  transition: background-color 0.3s ease;
}

.populated {
/*  border: 1px solid #1a2b44; */
}

.cell:hover {
/*  background-color: #000;
  cursor: pointer; */
}


.star {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 2px solid transparent; /* ✅ Prevents default white border flicker */
  border-radius: 24px;
  transition:
    border 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out,
    transform 0.3s ease-in-out;  /* ✅ Added */
}



.star:hover {
/*  border: 2px solid yellow !important;  */
/*  border-radius: 24px;  */
/*  box-shadow: 0 0 6px yellow;  */
  transform: scale(1.3); /* ✅ Slight zoom */
}





.home-system {
/*  border: 2px solid yellow !important; */
/*  background-color: rgb(27,77,62,0.7);  */
/*  box-shadow: 0 0 2px yellow;  */
}

.home-system:hover {
/*  border: 2px solid yellow !important; */
/*  box-shadow: 0 0 2px yellow;  */
}

.star-info {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #002a4a;
  border: 1px solid #004d7a;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.star-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffd700;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.star.twinkle {
  animation: twinkle 0.4s ease-in-out 1;
}



.star-label {
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  color: #ffd700;
  text-align: center;
  margin-top: 2px;
  pointer-events: none;
  white-space: nowrap;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}




















