.scene {
  width: 80vmin;
  height: calc(80vmin / 1.666);
  perspective: 1200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.8s, height 0.8s;
  z-index: 1;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}
.scene {
  width: 80vmin;
  height: calc(80vmin / 1.666);
  perspective: 1200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.8s, height 0.8s;
  z-index: 1;
}
.scene.expanded {
  width: 95vw;
  height: calc(95vw / 1.666);
}
.card-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s;
}
.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}
.front, .back {
  background-size: cover;
  background-position: center;
}
.back {
  transform: rotateY(180deg);
}

#page-meishi .menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
}
@media (max-width: 600px) {
  .menu {
    bottom: 50px;
  }
}
@media (min-width: 601px) {
  .menu {
    bottom: 220px;
  }
}
.menu select {
  font-size: 0.8rem;
}
    @media screen and (max-width: 600px) and (orientation: portrait) {
  .scene {
    width: 100vmin;
    height: calc(90vmin / 1.666);
  }
}
.scene.expanded {
  transform: none !important;
  width: 100vw !important;
  height: calc(100vw / 1.666) !important;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}