body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; /* 使body占据整个视窗高度 */
  margin: 0;
  background-color: #f2e8db; /* 背景色 */
}

/* 垂直居中的样式应用于 .media-container */
.media-container {
  width: 360px;
  height: 360px;
  margin: 20px auto;
  border: 2px solid #786c5a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  background-color: #ffffff;
}


.media-container>canvas {
  width: 1080px;
  height: 1080px;
  transform: scale(0.3333);
  position: absolute;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 初始状态下的按钮样式（深色） */
button {
  background-color: #786c5a; /* 初始深色背景 */
  color: #ffffff; /* 文字颜色 */
  border: none;
  border-radius: 5px; /* 添加圆角 */
  padding: 10px 20px;
  cursor: pointer;
}

/* 鼠标悬停时的样式（更深的颜色） */
button:hover {
  background-color: #5c503f; /* 鼠标悬停时的深色背景色 */
}

/* 当按钮被禁用时的样式（浅色） */
button:disabled {
  background-color: #a39f9f; /* 禁用时的浅色背景色 */
  color: #ffffff; /* 按钮文字颜色 */
}

/* 隐藏默认的文件上传按钮 */
input[type="file"] {
  display: none;
}

/* 创建自定义的文件上传按钮样式 */
.custom-file-input {
  background-color: #786c5a; /* 背景色 */
  color: #ffffff; /* 文字颜色 */
  padding: 10px 20px;
  border: none;
  border-radius: 5px; /* 圆角 */
  cursor: pointer;
  transition: background-color 0.3s; /* 鼠标悬停过渡效果 */
}

/* 鼠标悬停时的样式 */
.custom-file-input:hover {
  background-color: #5c503f; /* 鼠标悬停时的背景色 */
}

.bg {
  position: fixed;
  right: 0;
  bottom:32px;
  width: 150px;
  height: 60px;
  margin: 0 auto;
}

.slideShine {
  width: 200px;
  font-size: 32px;
  font-weight: bold;
  text-align: center;

  background: rgb(92, 80, 63,.8) -webkit-linear-gradient(left, rgb(92, 80, 63,.2), #fff,rgb(92, 80, 63,.2)) 0 0 no-repeat;
  -webkit-background-size: 80px;

  -webkit-background-clip: text;
  -webkit-text-fill-color: rgb(92, 80, 63,0.2);

  -webkit-animation: slideShine 3s infinite;
}

@-webkit-keyframes slideShine {
  0% {
      background-position: -50% 0;
  }
  100% {
      background-position: 150% 100%;
  }
}