/* =======================================================
  * Template Name: BIMWORKS.ID
  * Template URL: https://bimworks.id/
  * Author: Ferry dharmawan
  * License: https://bimworks.id/
======================================================== */

/* ======================================================
   GLOBAL
====================================================== */
body {
  background: #0e1116;
  color: #e6e6e6;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
}

a { text-decoration: none; }

/* ======================================================
   TOPBAR (ACC STYLE)
====================================================== */
.topbar {
  height: 56px;
  background: #0b0e13;
  border-bottom: 1px solid #1f2630;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 300;
}

.topbar-logo{
  height: 24px;
  width: auto;
}

  #cesiumContainer {
    width: 100%;
    height: 100%;
    touch-action: none;
}
 
   /* =============================
       OVERLAY UI LAYER        
    ==============================*/
    .ui-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;   /* penting */
    }

    .btn {
      position: absolute;
      padding: 10px 22px;
      background: rgba(0,0,0,0.75);
      color: #fff;
      border-radius: 6px;
      font-size: 10px;
      font-family: Arial;
      cursor: pointer;
      transition: 0.3s;
      backdrop-filter: blur(4px);
      pointer-events: auto;   /* wajib */
    }

    .btn:hover {
      background: rgba(0,0,0,0.92);
      transform: scale(1.05);
    }

    /* =============================
       TOOLTIP / HINT             
    ==============================*/
 .btn-top[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  top: 45px; /* DI BAWAH BUTTON */
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  /* ===== PAKSA UKURAN ===== */
  width: 220px;              /* INI KUNCI UTAMA */
  max-width: none;           /* MATIKAN BATAS LAMA */
  min-width: 220px;

  /* ===== TAMPILAN ===== */
  padding: 18px 24px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 14px;
  text-align: left;

  /* ===== TEKS ===== */
  white-space: pre-line;
  word-break: normal;
  box-sizing: border-box;
}

.btn-top[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  top: 45px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  /* ===== PAKSA UKURAN ===== */
  width: 220px;              /* INI KUNCI UTAMA */
  max-width: none;           /* MATIKAN BATAS LAMA */
  min-width: 220px;

  /* ===== TAMPILAN ===== */
  padding: 18px 24px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 14px;
  text-align: left;

  /* ===== TEKS ===== */
  white-space: pre-line;
  word-break: normal;
  box-sizing: border-box;
}



.btn-bottom[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: 45px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
   /* ===== PAKSA UKURAN ===== */
  width: 220px;              /* INI KUNCI UTAMA */
  max-width: none;           /* MATIKAN BATAS LAMA */
  min-width: 220px;

  /* ===== TAMPILAN ===== */
  padding: 18px 24px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 14px;
  text-align: left;

  /* ===== TEKS ===== */
  white-space: pre-line;
  word-break: normal;
  box-sizing: border-box;
}




.btn-bottom[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: 45px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
   /* ===== PAKSA UKURAN ===== */
  width: 220px;              /* INI KUNCI UTAMA */
  max-width: none;           /* MATIKAN BATAS LAMA */
  min-width: 220px;

  /* ===== TAMPILAN ===== */
  padding: 18px 24px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 14px;
  text-align: left;

  /* ===== TEKS ===== */
  white-space: pre-line;
  word-break: normal;
  box-sizing: border-box;
}



/* Floating info (opsional) */
  .hint {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    z-index: 10;
  }


    html, body, #cesiumContainer {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

  .hint a {
  color: #ffffffcc;      /* warna putih transparan */
  text-decoration: none; /* hilangkan garis bawah */
}

.hint a:hover {
  color: #ffffff;        /* warna saat hover */
}


/* =========================
   MODAL BACKDROP
========================= */
.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

/* =========================
   MODAL BOX
========================= */
.modal-content {
  background: rgba(20,20,20,0.95);
  margin: 8% auto;
  padding: 30px;
  width: 420px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  text-align: left;
  animation: fadeIn 0.3s ease-out;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.modal-text {
  line-height: 1.6;
  white-space: pre-line;
}

/* CLOSE BUTTON */
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #bbb;
  transition: 0.2s;
}
.close:hover {
  color: white;
}

/* ANIMASI */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to   {opacity: 1; transform: scale(1);}
}

.modal-btn {
  margin-top: 20px;
  padding: 12px 22px;
  background: #df0404b9;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: 0.25s;
}

.modal-btn:hover {
  background: #df0404b9;
  transform: scale(1.05);
}


/* Logo */
.hint-logo {
  width: 10px;
  height: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.creator {
  opacity: 0.8;
}

