/* Reset beberapa margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mengatur tampilan body */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
body {
    text-align: center;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
}

/* Mengatur style header */
.header {
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-size: cover;
    background-position:center; 
    overflow:sroll; margin:0px;
    position: relative;
    width: 100%;
    height: 100vh; /* Fullscreen */
    background-image: url('../assets/nepenthesgo_title.png'); /* Ganti dengan path gambar Anda */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.header-content {
    background: rgba(0, 0, 0, 0.5); /* Latar belakang semi-transparan untuk teks */
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    width: 600px; /* Ukuran lebar maksimum */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-start {
    background-color: #ff6f00;
    color: white;
    padding: 10px 20px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}
.btn-start:hover {
    background-color: #e65c00;
}
.btn-Go {
    background-color: #ff6f00;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    text-align: center;
    padding: 0px;
}

.btn-Go:hover {
    background-color: #e65c00;
}

/* Responsivitas */
@media screen and (max-width: 768px) {
    .header-content {
        max-width: 90%;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .btn-start {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }
    .btn-Go {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    .btn-start {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}

#header_mulai {
    opacity: 1;
    transition: opacity 2s ease, max-height 2s ease;
    max-height: 100vh; /* Fullscreen */
    overflow: hidden; /* Sembunyikan bagian yang berlebih */
}

#header_mulai.hidden {
    opacity: 0;
    max-height: 0; /* Kurangi tinggi elemen untuk efek hilang */
}

.center-button {
    text-align: center; /* Menengahkan elemen secara horizontal */
}

img.polaroid {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

/* Tema Pagi */
body.pagi {
    background-image: linear-gradient(rgba(255,255,255,0.80), rgba(255,255,255,0.50)), url('../assets/dataran-tinggi.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    background-position: center;
    width: 100%;
    overflow: scroll;
    margin: 0px;
    min-height: 100vh;
    color: #000;  /* Teks hitam untuk tema terang */
    z-index: -1;
}

/* Tema Malam */
body.malam {
    background-image: linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)), url('../assets/dataran-tinggi.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    overflow: scroll;
    margin: 0px;
    color: #fff;  /* Teks putih untuk tema gelap */
    filter: brightness(70%);
    z-index: -1;
}

#tempat_btncek {
    display: flex;
    flex-wrap: wrap; /* Membuat tombol bisa melipat ke baris berikutnya pada layar kecil */
    justify-content: center;
    gap: 10px; /* Menambahkan jarak antar tombol */
    padding: 10px;
}

#tempat_btncek button {
    flex: 0 1 80px; /* Setiap tombol memiliki lebar minimum, namun bisa menyesuaikan */
    padding: 10px;
    border-radius: 50%;
    font-size: 14px;
}

@media (max-width: 768px) {
    #tempat_btncek {
        flex-direction: column; /* Tombol akan berjejer vertikal pada layar lebih kecil */
        align-items: center;
    }

    #tempat_btncek button {
        flex: 0 1 60px; /* Mengurangi ukuran tombol di layar kecil */
    }
}

.shadow-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #ffcc00; /* Warna utama */
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5), 
                 0 0 10px rgba(255, 204, 0, 0.8),
                 0 0 20px rgba(255, 165, 0, 0.7);
    font-family: 'Orbitron', sans-serif;
}


.Hotspot {
    background: #fff;
    border-radius: 32px;
    border: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    cursor: pointer;
    height: 16px;
    padding: 3px;
    position: relative;
    transition: opacity 0.3s;
    width: 24px;
  }
  
  .Hotspot:not([data-visible]) {
    background: transparent;
    border: 4px solid #fff;
    box-shadow: none;
    height: 32px;
    pointer-events: none;
    width: 32px;
  }
  
  .Hotspot:focus {
    border: 4px solid rgb(0, 128, 200);
    height: 32px;
    outline: none;
    width: 32px;
  }
  
  .Hotspot > * {
    opacity: 1;
    transform: translateY(-50%);
  }
  
  .HotspotAnnotation{
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.8);
    display: block;
    font-family: Futura, Helvetica Neue, sans-serif;
    font-size: 18px;
    font-weight: 700;
    left: calc(100% + 1em);
    max-width: 128px;
    overflow-wrap: break-word;
    padding: 0.5em 1em;
    position: absolute;
    top: 50%;
    width: max-content;
  }
  
  .Hotspot:not([data-visible]) > * {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-50% + 4px));
    transition: transform 0.3s, opacity 0.3s;
  }
  
  .progress-bar {
    display: block;
    width: 33%;
    height: 10%;
    max-height: 2%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 25px;
    box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .progress-bar.hide {
    visibility: hidden;
    transition: visibility 0.3s;
  }
  
  .update-bar {
    background-color: rgba(255, 255, 255, 0.9);
    width: 0%;
    height: 100%;
    border-radius: 25px;
    float: left;
    transition: width 0.3s;
  }
  
  #ar-button {
    background-image: url(ar_icon.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 12px 50%;
    background-color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    bottom: 16px;
    padding: 0px 16px 0px 40px;
    font-family: Roboto Regular, Helvetica Neue, sans-serif;
    font-size: 14px;
    color:#4285f4;
    height: 36px;
    line-height: 36px;
    border-radius: 18px;
    border: 1px solid #DADCE0;
  }
  
  #ar-button:active {
    background-color: #E8EAED;
  }
  
  #ar-button:focus {
    outline: none;
  }
  
  #ar-button:focus-visible {
    outline: 1px solid #4285f4;
  }
  
  @keyframes circle {
    from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
  }
  
  @keyframes elongate {
    from { transform: translateX(100px); }
    to   { transform: translateX(-100px); }
  }
  
  model-viewer > #ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 60px;
    animation: elongate 2s infinite ease-in-out alternate;
    display: none;
  }
  
  model-viewer[ar-status="session-started"] > #ar-prompt {
    display: block;
  }
  
  model-viewer > #ar-prompt > img {
    animation: circle 4s linear infinite;
  }

  #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Transparan gelap */
    display: none; /* Sembunyikan default */
    justify-content: center;
    align-items: center;
    z-index: 9998;
    flex-direction: column;
    color: white;
    font-size: 1.2em;
  }
  
  .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #model-container {
    display: none;
    margin-top: 20px;
}
#alertgagal {
    display: none;
    z-index: 9999;
}
#alertsukses {
    display: none;
    z-index: 9999;
}
#info-app {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}
#info-btn {
    color: white;
    cursor: pointer;
}
#map {
    width: 100%;
    height: 100vh;
    z-index: 1;
}

#timeline {
    height: 100%; /* Tinggi penuh dalam parent container */
    max-height: 95vh; /* Batasi tinggi agar tidak melebihi layar */
    overflow-y: auto; /* Hanya elemen timeline yang bisa di-scroll */
    padding-left: 4px;
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px; /* Jarak antar card */
}

.timeline-content {
    background: #f9f9f9;
    padding: 4px;
    border-left: 4px solid #007bff; /* Garis timeline */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100px;
}

.timeline-content img {
    display: block;
    margin-top: 5px;
    width: 100%;
}

.compass {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.compass > .arrow {
  position: absolute;
  width: 0;
  height: 0;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 30px 20px 0 20px;
  border-color: red transparent transparent transparent;
  z-index: 1;
}

.compass > .compass-circle,
.compass > .my-point {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  background: url('../assets/kompas.png')
    center no-repeat;
  background-size: contain;
}

.compass > .my-point {
  opacity: 0;
  width: 20%;
  height: 20%;
  background: rgb(8, 223, 69);
  border-radius: 50%;
  transition: opacity 0.5s ease-out;
}

#progress_soal {
  position: relative;
  font-size: 14px;
}

.nilai-angka {
  font-size: 3rem;
  font-weight: bold;
  color: #198754;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  animation: zoomIn 0.5s ease-in-out;
}

@keyframes zoomIn {
  from {
      transform: scale(0.5);
      opacity: 0;
  }
  to {
      transform: scale(1);
      opacity: 1;
  }
}

.leaflet-marker-icon.highlighted {
  animation: bounce 0.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px yellow);
  z-index: 1000;
}

@keyframes bounce {
  from {
      transform: translateY(0);
  }
  to {
      transform: translateY(-10px);
  }
}

.triangle-down {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid red; /* Warna segitiga */
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}