body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #d3d3d3; /* Changed to a grey color */
}

.door-frame {
  perspective: 1000px;
  position: relative;
}

.door {
  transition: transform 1s;
  transform-origin: left center;
  position: absolute;
  z-index: 2;
}

.person {
  transition: opacity 0.5s;
  width: 100px;
  position: absolute;
  left: 50px;
  top: 40px;
  z-index: 1;
}

.visible {
  opacity: 1;
}

.hidden {
  opacity: 0;
}