* { box-sizing: border-box; }

.pointer-events-none { pointer-events: none; }

body {
  margin: 0;
  padding: 0;
  background-color: #aa0000;
  background-image: url(../img/bg.jpg);
   /* 背景图垂直、水平均居中 */
  background-position: center center;
  /* 背景图不平铺 */
  background-repeat: no-repeat;
  /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
  background-attachment: fixed;
  /* 让背景图基于容器大小伸缩 */
  background-position: center;
  font-family: 'Press Start 2P';
}

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 150px;
}

@media screen and (max-height: 320px) {
  .wrapper {
    margin-top: -40px;
  }
}

.flex_wrapper {
  width: 100%;
  padding-left: calc(20% + 100px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
}

.plane_wrapper {
  position: absolute;
  display: flex;
  align-items: center;
}

.sprite_container {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.sprite {
  position: absolute;
  height: 60px;
  width: 120px;
  transform-origin: center bottom;
}

.rope {
  margin: 0 -2px 0 -22px;
  height: 60px;
  width: 60px;
  z-index: -1;
  transform-origin: center left;
  transition: 0.4s;
}

.message_ghost,
.message {
  font-size: 3rem;
  height: 60px;
  line-height: 60px;
  margin-bottom: 40px;
  background-color: white;
  color: navy;
  padding: 0px 10px;
}

.module {
  position: relative;
  transition: 0.7s ease-in-out;
}

.front { display: flex; }

.input_wrapper {
  position: absolute;
  bottom: 80px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: -1;
}

.inner_wrapper {
  width: calc(100% - 20px);
  max-width: 650px;
  display: flex;
  flex-direction: column;
}

button {
  font-size: 3rem;
  padding: 5px 8px;
  border: 0;
  font-family: 'Press Start 2P';
  background-color: navy;
  color: white;
  margin: 8px 0 0 auto;
}

button:hover {
  color: navy;
  background-color: white;
  cursor: pointer;
}

textarea {
  padding: 5px 8px;
  border: 0;
  /* max-width: 350px; */
  width: 100%;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.4);
  font-family: 'Press Start 2P';
  color: navy;
}

.sign {
  position: fixed;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}