body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    padding: 2em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1em;
  font-size: 2.5em;
  font-weight: 300;
  }

.project-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1em 2em;
  margin-bottom: 2em;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.project-info p {
  margin: 0.5em 0;
  font-size: 0.9em;
}

.project-info strong {
  color: #ffd700;
}
  
  #scene-container {
    margin: 2em auto;
    width: 90%;
  max-width: 1200px;
  border: none;
  padding: 2em;
    background: white;
  min-height: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  }
  
#scene-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Income summary cards */
.income-summary {
  display: flex;
  justify-content: space-around;
  margin: 2em 0;
  flex-wrap: wrap;
  gap: 1em;
}

.income-card {
  padding: 1.5em;
  border-radius: 10px;
  text-align: center;
  min-width: 150px;
  color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.income-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.income-card h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
  font-weight: 600;
}

.income-card .avg-income {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.5em 0;
}

.income-card .count {
  font-size: 0.9em;
  opacity: 0.9;
  margin: 0;
  }
  
  .image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  gap: 30px;
  margin-top: 2em;
}

.image-box {
  width: 280px;
  text-align: center;
  background: white;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.image-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-box img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.image-box img:hover {
  border-color: #667eea;
}

/* Annotation styles */
.annotation {
  margin-top: 1em;
  text-align: left;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1em;
  border-left: 4px solid #667eea;
}

.annotation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.annotation .country {
  font-size: 1.1em;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.income-label {
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3em 0.6em;
  border-radius: 3px;
  text-align: center;
}

.income-label.high-income {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.income-label.mid-income {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.income-label.low-income {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}

.annotation-content {
  margin-top: 0.5em;
}

.annotation .monthly-income {
  font-size: 1em;
  font-weight: 600;
  color: #27ae60;
  margin: 0.3em 0;
}

.annotation .annotation-text {
  font-size: 0.85em;
  color: #7f8c8d;
  line-height: 1.4;
  margin: 0.5em 0 0 0;
}

/* Tooltip styles (for hover) */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  max-width: 300px;
  white-space: normal;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tooltip-location {
  color: white;
  font-weight: normal;
}

.tooltip-income {
  color: white;
  font-weight: normal;
}

.tooltip-photo {
  color: white;
  font-weight: normal;
  font-size: 12px;
}

.tooltip-continent {
  font-size: 1em;
  color: #f093fb;
  margin-bottom: 0.8em;
  font-weight: 500;
}

.tooltip-map {
  margin: 0.8em 0;
  display: flex;
  justify-content: center;
}

.tooltip-map svg {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin: 1em auto 2em auto;
  padding: 1em;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  max-width: 600px;
}

#nav button {
  padding: 12px 24px;
  font-size: 1em;
  border: none;
  border-radius: 25px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 100px;
}

#nav button#home {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
}

#nav button#home:hover:not(:disabled) {
  background: linear-gradient(45deg, #00f2fe, #4facfe);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#nav button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.progress {
  color: white;
  font-weight: 500;
  font-size: 1.1em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1em;
  }
  
  h1 {
    font-size: 2em;
  }
  
  #scene-container {
    width: 95%;
    padding: 1em;
  }
  
  .income-summary {
    flex-direction: column;
    align-items: center;
  }
  
  .income-card {
    width: 100%;
    max-width: 300px;
  }
  
  .image-box {
    width: 200px;
  }
  
  .image-row {
    gap: 15px;
  }
  
  #nav {
    flex-direction: column;
    gap: 1em;
  }
}
   
/* Filter bar wrapper */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 2em;
  }
  
  /* Dropdown select styling */
  .filter-bar select {
    padding: 10px 16px;
    font-size: 1em;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: white;
    color: #333;
    transition: border-color 0.3s ease;
    min-width: 180px;
    cursor: pointer;
  }
  
  .filter-bar select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
  }

  .popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .popup.hidden {
    display: none;
  }
  
  .popup-content {
    background: #fff;
    padding: 2em;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
  }
  
  #popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #888;
    cursor: pointer;
  }
  #popup {
    overflow-y: auto;
    scroll-behavior: smooth;
  }
  
  #popup-image {
    max-width: 500px;
    height: 300px;
    display: block;
    margin: 0 auto;
  }