@import url(/global.css);

#center-col {
  position: relative;
  pointer-events: none;
  z-index: 1;
}

#visuals {
  position: absolute;
  inset: 0;
  perspective: 25rem;
  overflow: hidden;
}

#room {
  height: 100%;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: all;
  pointer-events: none;
}

#candles {
  position: absolute;
  translate: 0 0 4rem;
  inset: 0;

  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-inline: 10%;
}

.candle {
  height: 50%;
  filter: drop-shadow(0 0 8px var(--dark));
}

#left-wall,
#right-wall,
#rear-wall {
  position: absolute;
  height: 100%;
  display: flex;
}

#left-wall {
  left: 0;
  transform-origin: left;
  rotate: 0 1 0 90deg;
}

#right-wall {
  right: 0;
  transform-origin: right;
  rotate: 0 1 0 -90deg;
}

#rear-wall {
  width: 100%;
  height: 100%;
  translate: 0 -80% -60rem;
  justify-content: center;
}

#window {
  opacity: 40%;
  cursor: pointer;
  pointer-events: painted;
}

.arch {
  height: 80%;
  margin: auto 2rem 0;
}

#floor {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  transform-origin: bottom;
  rotate: 1 0 0 90deg;

  display: flex;
  align-items: center;
  justify-content: center;
}

#rug {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

#center {
  position: absolute;
  height: 100%;
  max-width: 80%;
  bottom: 0;
  left: 50%;
  translate: -50% 0 -15vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#table {
  max-height: 30%;
  width: 100%;
  object-fit: contain;
  object-position: bottom;
}

#jorts {
  position: relative;
  top: 3%;
  right: 5%;
  max-width: 100%;
  transform-origin: bottom;
  cursor: pointer;
  pointer-events: painted;
  filter: drop-shadow(0 0 2px var(--light));
}

.shake {
  animation-name: shake;
  animation-duration: 100ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-2px);
  }
}