
body { margin:0; height:100%; overflow:hidden;font-family: 'Nunito', sans-serif;}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Explicit: canvas above stars */
}
.flag-label {
  position:absolute;
  padding:4px 8px;
  background:rgba(15,23,42,0.9);
  border:1px solid rgb(234, 207, 144);
  border-radius:10px;
  color:white;
  font-size:12px;
  white-space:nowrap;
  transform:translate(-50%, -50%);
  display:none;
  z-index: 10; /* Flags above everything */
  pointer-events: auto;
}

#stars, #stars2, #stars3 {
  position: fixed; /* Changed from absolute for full viewport coverage */
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh; /* Extended for seamless animation loop */
  background-color: #000;
  overflow: hidden; /* Prevent scroll bleed */
  z-index: -1; /* CRITICAL: Behind canvas */
}

#stars {
  background: transparent url("https://raw.githubusercontent.com/MateuszSuder/starsBackground/master/src/img/star.png") repeat top center;
  animation: stars 50s linear infinite;
  opacity: 0.9; /* Slight boost for visibility */
}

#stars2 {
  background: transparent url("https://raw.githubusercontent.com/MateuszSuder/starsBackground/master/src/img/star50px.png") repeat top center;
  animation: stars2 100s linear infinite;
  opacity: 0.7;
}

#stars3 {
  background: transparent url("https://raw.githubusercontent.com/MateuszSuder/starsBackground/master/src/img/star.png") repeat top center;
  animation: stars3 150s linear infinite;
  opacity: 0.5;
}

@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: 0 -5000px; }
}

@keyframes stars2 {
  from { background-position: 0 0; }
  to { background-position: 0 -10000px; }
}

@keyframes stars3 {
  from { background-position: 0 0; }
  to { background-position: 0 -15000px; }
}

#globe-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Summary panel unchanged */
#summary-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: #0f172a;
  border-left: 2px solid rgb(234, 207, 144);
  color: white;
  padding: 20px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.5);
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 100;
  font-size: 15px;
}
#summary-close {
  position:absolute;
  top:10px; right:10px;
  cursor:pointer;
  font-size:20px;
  color:rgb(234, 207, 144);
  font-weight:bold;
}
#globe-wrapper {
  position: relative;
  height: calc(100vh - 120px); /* subtract header + footer */
  overflow: hidden;
  z-index: 1;
}
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 25px;
      border-bottom: 1px solid #ffffff12;
      color: #ecd396;
      padding: 1rem 0 1rem 0;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      background-color: #00000080;
    }

    header .logo {
      position: absolute;
      left: 5rem;
      top: 50%;
      transform: translateY(-50%);
    }

    header img {
      height: auto;
      width: 40px;
      display: block;
    }

    /* --- Desktop Navigation --- */
    nav {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      width: 100%;
      max-width: 1400px;
      position: static;
      background-color: transparent;
      transform: none;
      height: auto;
    }

    nav a {
      color: #ecd396;
      text-decoration: none;
      text-transform: uppercase;
      font-size: 1.05rem;
      letter-spacing: 0.4px;
    }

    nav a:hover {
      transform: scale(1.03);
      text-shadow: 0 0 8px #ffffff;

    }
    footer {
      background-color: #00000080;
      color: #bbb;
      padding: 1rem 1rem;
      position: fixed;
      bottom: 0;
      left: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: space-between;
      gap: 20px;
      width: 100%;
      height: 50px;
      box-sizing: border-box;
      z-index: 1000;
      border-top: 1px solid #ffffff12;
    }

    .social-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      padding: 0;
      gap: 1rem;
    }

    .social-icon img {
      width: auto;
      height: 25px;

    }

    .social-icon:hover {
      scale: 1.5 1.5;
      transition: all 0.3s ease;

    }
    .flag-label {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  color: #ffdd57;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #8B6914;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: auto;
  transform: translate(-50%, -140%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 10;
}
.flag-label:hover {
  background: rgba(139, 105, 20, 0.95);
  transform: translate(-50%, -140%) scale(1.1);
}