.control {
	display: flex;
	justify-content: space-between;
  margin: 2rem auto;
  width: 88vw;
  max-width: 500px;
}

.rule {
  margin: 2rem auto;
  width: 88vw;
  max-width: 500px;
}

.rule p {
  font-size: 0.89rem;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: #666;
  margin: 1rem 0;
}

.gray-button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 1rem 1.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-out;
  border-radius: 0.355rem;
  margin: 0 2rem;
}

.gray-button:hover {
  background-color: #666;
}

.gray-button.clicked {
  background-color: #838383;
}

canvas {
  width: 88vw;
  max-width: 500px;
}

canvas.user-is-sheep {
  transform: rotateZ(180deg);
}


/* 对话框容器 */
.dialog-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* 半透明黑色背景 */
  z-index: 999;
  display: none; /* 默认隐藏对话框 */
}

/* 对话框 */
.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

/* 对话框标题 */
.dialog-header {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #ccc;
}

/* 对话框内容 */
.dialog-body {
  font-size: 14px;
  color: #333;
  margin: 10px 0;
  padding: 0;
}

/* 对话框按钮 */
.dialog-button {
  font-size: 14px;
  /* font-weight: bold; */
  color: #fff;
  background-color: #333;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin: 10px;
}

/* 对话框按钮:hover */
.dialog-button:hover {
  background-color: #444;
}
