body {
  margin: 0;
  background: black;
  color: white;
  font-family: Arial;
}

#area {
  width: 800px;
  height: 400px;
  position: relative;
  overflow: hidden;
  margin: 40px auto;
  border: 2px solid white;
  background: black;
}

#area-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 1200px; /* change per area */
  background-repeat: no-repeat;
  background-size: cover;
}

#area-objects {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

#back-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 10;
}

.object {
  position: absolute;
  cursor: pointer;
  overflow: visible; /* IMPORTANT */
}

.object img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.object:hover {
  filter: drop-shadow(0 0 10px yellow);
}
/* bottom image */
.under {
  z-index: 1;
}

/* door */
.top {
  z-index: 2;
}

/* VIEWPORT */
#viewport {
  width: 800px;
  height: 400px;
  overflow: hidden;
  position: relative;
  margin: 40px auto;
  border: 2px solid white;
}

/* WORLD */
#world {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

/* BACKGROUND LAYER */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
}

#bg {
  background-image: url("https://i.postimg.cc/CKpLGsWL/panbg.png"); /* ROOM IMAGE HERE */
  background-repeat: repeat-x;
  background-size: auto 100%;
}

/* HOTSPOTS */
.hotspot {
  position: absolute;
  cursor: pointer;
}

.hotspot:hover {
  outline: 2px solid yellow;
  box-shadow: 0 0 10px yellow;
}




/* dualouge */


#dialogue {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  min-height: 80px;

  background: #c18864;
  border: 2px solid white;
  padding: 12px;

  display: none;
  z-index: 9999;
}

#dialogue-text {
  font-size: 14px;
}

#action-btn {
  position: fixed;
  padding: 6px 10px;
  background: black;
  border: 1px solid white;
  font-size: 12px;
  pointer-events: auto;
  display: none;
  z-index: 9999;
  cursor: pointer;
}

/* UI BUTTONS */
button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 12px;
  cursor: pointer;
}

#left { left: 10px; }
#right { right: 10px; }