* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9d9e3;
  color: black;
  font-family: Verdana;
}

.room {
  width: 1100px;
  height: 1280px;
  max-width: 100%;
  position: relative;
  margin: 0 auto;
}

.wall {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 50%;
  background-image: url('images/wallpaper.png');
  background-size: cover;
  z-index: 1;
}

.floor {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 55%;
  background-image: url('images/floor.png');
  background-size: cover;
  z-index: 1;
}

.rug {
  position: absolute;
  bottom: 8%; left: 45%;
  transform: translateX(-50%);
  width: 60%;
  z-index: 2;
}
.vase {
  position: absolute;
  bottom: 50%; right: 20%;
  transform: translateX(-50%);
  width: 10%;
  z-index: 2;
}
.fireplace {
  position: absolute;
  bottom: 53%; left: 53%;
  transform: translateX(-50%);
  width: 35%;
  z-index: 2;
}


.light {
  position: absolute;
  top: 0%; left: 50%;
  transform: translateX(-50%);
  width: 10%;
  z-index: 2;
}

.clock {
  position: absolute;
  top: 2%; right: 5%;
  width: 10%;
  z-index: 2;
}

.plants {
  position: absolute;
  top: -5%; right: 20%;
  width: 13%;
  z-index: 2;
}

.plant3 {
  position: absolute;
  bottom: 2%; left: 7%;
  transform: translateX(-50%);
  width: 12%;
  z-index: 2;
}

.chair {
  position: absolute;
  bottom: 17%; left: 25%;
  transform: translateX(-50%);
  width: 30%;
  z-index: 2;
}



.pillow {
  position: absolute;
  bottom: 32%; left: 30%;
  transform: translateX(-50%);
  width: 10%;
  z-index: 2;
}

.chair2 {
  position: absolute;
  bottom: 6%; right: -2%;
  transform: translateX(-50%);
  width: 30%;
  z-index: 2;
}

.plant4 {
  position: absolute;
  bottom: 1%; right: 3%;
  transform: translateX(-50%);
  width: 15%;
  z-index: 2;
}
.laptop {
  position: absolute;
  bottom: 65%; left: 5%;
  transform: translateX(-50%);
  width: 5%;
  z-index: 2;
}

/* all regular hotspots */
.hotspot {
  position: absolute;
  overflow: hidden;
  z-index: 3;
}

/* hover link */
.imgtxt {
  display: block;
  position: relative;
  width: 100%;
}

.imgtxt img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.imgtxt span {
  opacity: 0;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 2rem;
  color: #000;
  background-color: #f9d9e3;
  padding: 2px 10px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.imgtxt:hover img,
.imgtxt:focus img {
  transform: rotate(4deg);
}

.imgtxt:hover span,
.imgtxt:focus span {
  opacity: 1;
}

/* window — sits BELOW other hotspots */
.window-hotspot {
  position: absolute;
  top: 8%;
  left: 1%;
  width: 35%;
  height: 20%;
  overflow: visible;
  z-index: 2;      /* lower than .hotspot z-index: 3 */
}

.window-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border: none;
  pointer-events: none;
}

.window-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  display: flex;
  transform-style: preserve-3d;
}

.window-half {
  width: 50%;
  height: 100%;
  overflow: visible;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.window-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.left-half {
  transform-origin: left center;
}

.right-half {
  transform-origin: right center;
}

.window-frame.open .left-half {
  transform: perspective(600px) rotateY(-110deg);
}

.window-frame.open .right-half {
  transform: perspective(600px) rotateY(100deg);
}

.sound-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  background: #f9d9e3;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
}