html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Container dan Background */
.container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bg-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.gif-button {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  z-index: 5;
}

/* Hover Efek */
.gif-button:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 4px #ff7eb9)
          drop-shadow(0 0 8px #ff7eb9);
}

/* POSISI BUTTONS */
.button-kuda {
  top: -2%;
  left: -10%;
  width: 48%;
  height: 48%;
  background-image: url('kuda.gif');
}

.button-ola {
  top: 35%;
  left: 40%;
  width: 30%;
  height: 30%;
  background-image: url('ola fix bgt.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(0% 25% 0% 25% round 10px); /* area klik lebih kecil */
}

.button-Mancing {
  top: 45%;
  left: 65%;
  width: 22%;
  height: 28%;
  background-image: url('mancing.gif');54 
}

.button-frontdesk {
  top: 40%;
  left: -17%;
  width: 55%;
  height: 50%;
  background-image: url('front desk fix.gif');
}

.button-alurmasuk {
  top: 5%;
  left: 70%;
  width: 12%;
  height: 12%;
  background-image: url('alurmasuk.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(-10% 0% -10% 20% round 10px); /* area klik lebih kecil */
}

.button-Ticketbooth {
  top: 45%;
  left: 74.3%;
  width: 50%;
  height: 50%;
  background-image: url('ticket booth fix.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(-10% 0% 0% 25% round 10px); /* area klik lebih kecil */
}

.button-logohalfis {
  top: -2%;
  left: 70%;
  width: 25%;
  height: 50%;
  background-image: url('logo halfis.gif');
}

.button-fortunetelling {
  top: 35%;
  left: 13%;
  width: 33%;
  height: 33%;
  background-image: url('fortune telling.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(-10% 20% -10% 20% round 10px); /* area klik lebih kecil */
}

.button-symbol {
  top: 90%;
  left: -1%;
  width: 8%;
  height: 8%;
  background-image: url('symbol.png');
  
}

.button-dpp {
  top: 27%;
  left: 65%;
  width: 20%;
  height: 25%;
  background-image: url('dpp.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(20% 25% 20% 25% round 10px); /* area klik lebih kecil */
}

.button-hi {
  top: -7%;
  left: 79%;
  width: 20%;
  height: 25%;
  background-image: url('hi.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(30% 25% 20% 25% round 10px); /* area klik lebih kecil */
}

.button-mkp {
  top: 29%;
  left: 79%;
  width: 20%;
  height: 25%;
  background-image: url('mkp.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(25% 25% 20% 25% round 10px); /* area klik lebih kecil */
}

.button-psdk {
  top: 15%;
  left: 90%;
  width: 11%;
  height: 11%;
  background-image: url('psdk fix.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(-10% 0% -10% 0% round 10px); /* area klik lebih kecil */
}

.button-sosio {
  top: 15%;
  left: 66%;
  width: 11%;
  height: 11%;
  background-image: url('sosio fix.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(-10% 0% -10% 0% round 10px); /* area klik lebih kecil */
}

.button-ilkom {
  top: -7%;
  left: 65%;
  width: 20%;
  height: 25%;
  background-image: url('ilkom.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(30% 25% 20% 25% round 10px); /* area klik lebih kecil */
}

.button-Fisipol {
  top: 48.7%;
  left: 26.5%;
  width: 48%;
  height: 50%;
  background-image: url('FISIPOL FIX 2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(30% 0% 10% 0% round 10px); /* area klik lebih kecil */
}
.button-logohalfis {
  pointer-events: none; /* ❌ gak bisa diklik */
}

body {
  background-color: #1C2542;
}

/* Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px); 
  padding: 25px;
  border-radius: 20px;
  text-align: center;

  /* ini yang penting */
  width: 60vw;          /* sekitar 60% layar, adjust aja kalau mau */
  max-width: 800px;     /* biar nggak terlalu gede di layar besar */
  max-height: 85vh;     /* batas tinggi */
  overflow-y: auto;     /* kalau konten tinggi, bisa scroll lembut */

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  z-index: 10;
}

.popup img {
  width: 100%;     /* gambar ngikut ukuran popup */
  height: auto;
  display: block;
}


.popup.show {
  opacity: 1;
  pointer-events: auto;
}


button {
  margin-top: 10px;
  background: pink;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: hotpink;
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* 45% gelap, bisa kamu atur */
  backdrop-filter: blur(3px); /* ini bikin efek dreamy blur, opsional */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 8; /* harus di bawah popup */
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
#open-link-btn {
  position: absolute;         /* biar bisa kamu geser bebas */
  bottom: 110px;               /* jarak dari bawah popup */
  right: 125px;                /* jarak dari kanan popup */
  background: transparent;
  color:  transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: none;              /* hidden secara default */
  transition: all 0.25s ease;
    width: 250px;
  padding: 12px 0;
  text-align: center;
}

.popup-img-button {
  position: absolute;
  bottom: 60px;      /* jarak dari bawah popup */
  right: 60px;       /* jarak dari kanan popup */
  width: 150px;      /* ukuran tombol gambar */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.popup-img-button:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px #ff7eb9);
}

.popup-inner-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* biar nggak blok klik kecuali di gambar bebek */
}

.inner-btn {
  position: absolute;
  width: 90px;
  height: auto;
  cursor: pointer;
  display: none;
  pointer-events: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
  animation: float 3s ease-in-out infinite;
}

/* Efek bebek mengapung 🫧 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.inner-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px #de2076);
}

/* 🦆 Posisi tiga bebek */
#bebek1 {
  width: 23%;
  height: 40%;
  top: 34%;
  left: 37%;
}

#bebek2 {
  width: 18%;
  height: 30%;
  top: 18%;
  left: 68%;
}

#bebek3 {
  width: 20%;
  height: 30%;
  top: 20%;
  left: 11%;
}

#ticketBtn {
  position: absolute;
  top: 37%; /* bisa kamu ubah sesuai posisi yang pas di popup */
  left: 78%;
  transform: translate(-50%, -50%);
  width: 15%; /* ubah sesuai ukuran yang kamu mau */
  display: none; /* default: tidak tampil kecuali popup Ticket Booth aktif */
  cursor: pointer;
  transition: transform 0.2s ease;
}

#ticketBtn:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Khusus untuk iPad dalam mode landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px)
  and (orientation: landscape) {

  body {
    overflow-x: auto; /* aktifkan scroll horizontal */
    overflow-y: hidden; /* matikan scroll vertikal */
    width: 160vw; /* perbesar area sedikit agar bisa digeser */
    zoom: 1.2; /* otomatis zoom sedikit */
  }

  img, canvas {
    max-width: none; /* cegah auto-resize gambar */
  }

  html {
    touch-action: pan-x; /* agar bisa geser kanan–kiri dengan jari */
  }
}

