body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  height: 100vh;
  color: white;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}

.title {
  font-size: 2.5em;
  color: #fff;
  text-shadow: 2px 2px 8px #000;
  margin-bottom: 20px;
}

.start-btn {
  background: #00bfff;
  border: none;
  color: white;
  font-size: 1.2em;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.start-btn:hover {
  transform: scale(1.05);
}

/* Kotak teks */
.text-box {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 250px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation-duration: 0.6s;
  animation-fill-mode: both;
}

.hidden {
  display: none;
}

.popup {
  animation-name: popupAnim;
}

@keyframes popupAnim {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 99;
  opacity: 0;
}

.fade-out {
  animation: fadeOut 1.5s forwards;
}

.fade-in {
  animation: fadeIn 1.5s forwards;
}

@keyframes fadeOut {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Tombol di text box */
#door-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #00bfff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#door-btn:active {
  transform: scale(0.95);
}

.scene-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: black;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2em;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

.left { left: 10px; }
.right { right: 10px; }

.text-box {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  box-sizing: border-box;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}
