body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

canvas {
  display: block;
}

.serve-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  font-size: 16px;
  z-index: 1;
  cursor: pointer;
}

.marbles-btn {
  position: absolute;
  top: 70px;
  left: 20px; /* Positioned to the right of the serve button */
  padding: 10px 20px;
  font-size: 16px;
  z-index: 1;
  cursor: pointer;
}

.poem {
  position: fixed;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-family: 'Didot', 'Bodoni MT', 'Garamond', serif;  /* 更修长的字体 */
  font-size: 28px;
  line-height: 1.5;  /* 减小行间距 */
  letter-spacing: 1px;  /* 增加字母间距 */
  font-weight: 500;  /* 使字体更纤细 */
  max-width: 400px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1000;
}

.poem p {
  margin: 6px 0;  /* 减小段落间距 */
  opacity: 0.9;
}

.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.music-btn.playing {
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
