body {
    margin: 0;
    ;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
}

#controls-container {
    position: absolute;
    top: 600px;
    left: 10px;
    z-index: 100;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

#playPauseButton,
#toggleOrbitsButton {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #e0f7fa;
    letter-spacing: 1px;
    background-color: rgba(10, 30, 60, 0.75);
    border: 1px solid #00aaff;
    border-radius: 8px;
    padding: 10px 20px;
    min-width: 90px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.5), inset 0 0 5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-in-out;
}

#playPauseButton:hover,
#toggleOrbitsButton:hover {
    background-color: rgba(20, 50, 90, 0.9);
    color: #ffffff;
    border-color: #99ddff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.8), inset 0 0 8px rgba(0, 0, 0, 0.5);
}

#controls-info {
    position: absolute;
    top: 50px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    z-index: 10;
}

#object-info-box {
    position: absolute;
    top: 80px;
    left: 10px;
    padding: 12px;
    background-color: rgba(25, 25, 50, 0.92);
    color: white;
    border-radius: 8px;
    display: none;
    width: 280px;
    max-width: 90vw;
    border: 1px solid #6677aa;
    z-index: 10;
    font-size: 13px;
}

#object-info-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffa500;
}

#object-info-box p {
    margin-bottom: 5px;
}

#object-info-box strong {
    color: #99ccff;
}

#object-info-box iframe {
    width: 100%;
    height: 200px;
    border: 1px solid #445588;
    margin-top: 8px;
}

.star-label {
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(127, 200, 255, 0.9);
    transition: opacity 0.5s;
    background-color: rgba(0, 10, 20, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(127, 200, 255, 0.2);
    cursor: pointer;
    opacity: 0.1;
}

.star-label:hover {
    background-color: rgba(0, 100, 150, 0.5);
    border-color: rgba(127, 200, 255, 0.5);
}
/* --- CSS CHO CÁC NÚT ĐIỀU KHIỂN --- */

/* Style chung cho cả 3 nút */
#playPauseButton,
#toggleOrbitsButton,
#tourButton,
#toggleNearbyButton {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #e0f7fa;
    letter-spacing: 1px;
    background-color: rgba(10, 30, 60, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid #00aaff;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: url('/cursor.cur'), auto !important;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-in-out;
}

/* Hiệu ứng khi di chuột qua */
#playPauseButton:hover,
#toggleOrbitsButton:hover,
#tourButton:hover,
#toggleNearbyButton:hover {
    background-color: rgba(20, 50, 90, 0.8);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.8);
}

/* Style riêng cho nút tour khi đang chạy (bị vô hiệu hóa) */
#tourButton:disabled {
    background-color: rgba(85, 85, 85, 0.4); /* Màu xám hơn */
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #555;
}
#exitViewButton {
    display: none; /* Dòng này để ẩn nút đi lúc đầu */
    background-color: rgba(120, 20, 20, 0.6); /* Màu đỏ để dễ phân biệt */
    border-color: #ff6666;
}

#exitViewButton:hover {
    background-color: rgba(160, 30, 30, 0.8);
    border-color: #ff9999;
}
#object-info-box p {
    margin-bottom: 8px; /* Tăng khoảng cách giữa các dòng */
    line-height: 1.5; /* Giúp văn bản dễ đọc hơn */
}

#object-info-box hr {
    border: none;
    border-top: 1px solid #445588;
    margin: 12px 0;
}

#object-info-box .fun-fact {
    font-style: italic;
    color: #99ccff;
    margin-top: 12px;
}

#object-info-box .stats-grid p {
    margin: 4px 0; /* Giảm khoảng cách cho các dòng thông số */
}


/* ========== Controls: glass / neon ========== */
#controls-container{
  position: absolute;
  left: 16px;
  bottom: 24px;            /* cho cụm nút xuống góc trái dưới */
  z-index: 100;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

#playPauseButton,
#toggleOrbitsButton,
#tourButton,
#exitViewButton,
#toggleNearbyButton{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #E9F7FF;
  background: linear-gradient(180deg, rgba(15,35,65,.55), rgba(10,25,50,.45));
  border: 1px solid rgba(0,170,255,.6);
  border-radius: 12px;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 8px 24px rgba(0,170,255,.18),
    inset 0 0 0 rgba(255,255,255,0.06);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
#playPauseButton:hover,
#toggleOrbitsButton:hover,
#tourButton:hover,
#exitViewButton:hover,
#toggleNearbyButton:hover{
  transform: translateY(-1px);
  border-color: #9ad8ff;
  box-shadow:
    0 10px 28px rgba(0,170,255,.28),
    inset 0 0 0 rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(25,55,95,.7), rgba(12,30,60,.55));
}
#tourButton:disabled{
  opacity: .6; cursor: not-allowed;
  box-shadow: none; border-color: rgba(255,255,255,.18);
}

/* mobile: thu nhỏ chút */
@media (max-width: 768px){
  #controls-container{ left: 12px; bottom: 16px; gap:8px; }
  #playPauseButton,#toggleOrbitsButton,#tourButton,#exitViewButton,#toggleNearbyButton{
    padding:8px 14px; font-size:14px; border-radius:10px;
  }
}



/* ========== Info card ========== */
#object-info-box{
  position: absolute;
  left: 16px;
  top: 90px;
  width: 320px;
  max-width: min(90vw, 360px);
  background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(10,16,28,.92));
  color: #E9F7FF;
  border: 1px solid rgba(120,160,220,.35);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  display: none;        /* chỉ mở khi có dữ liệu */
  z-index: 110;
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}
#object-info-box .box-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 6px;
}
#object-info-box .title{
  font-weight: 800; font-size: 18px; color:#ffd28a; letter-spacing:.2px;
}
#object-info-box .close-btn{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff; border-radius:8px; padding:4px 8px; cursor:pointer;
}
#object-info-box .close-btn:hover{ background: rgba(255,255,255,.12); }

#object-info-box .stats-grid p{ margin: 4px 0; }
#object-info-box strong{ color:#9ad8ff; }

/* mobile tránh đè logo/menu */
@media (max-width:768px){
  #object-info-box{ top: 72px; left: 12px; width: auto; }
}

/* Đặt header/menu cao hơn canvas 3D */
header, .site-header, .navbar, #header, #main-nav {
  position: relative;
  z-index: 9999;
}

/* Hạ canvas và khung 3D xuống thấp hơn header */
#solar-canvas, /* nếu bạn đặt id này cho vùng canvas */
#three-root,
canvas {
  position: absolute; /* hoặc fixed, tùy bạn đang dùng */
  z-index: 1 !important;
}
.star-label{
  font-family: Arial, sans-serif;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none; /* để click xuyên qua nhãn, bắt vào 3D object */
}
