body {
  margin: 0;
  padding: 0;
  background-image: url('../22.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 14px;
  font-family: sans-serif;
  color: white;
  overflow-x: hidden;
}

a {
  color: white;
  font-size: 14px;
}

#main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#wrap {
  position: relative;
  margin: 10px auto;
  width: 100%;
  max-width: 1100px;
  height: auto;
  aspect-ratio: 1100 / 680; /* รักษาสัดส่วนเดิม */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#text {
  width: 25%;
  min-width: 250px;
  height: auto;
  position: absolute;
  left: 17%;
  top: 12%;
}

#code {
  display: none;
  color: rgb(196, 255, 255);
  font-size: 16px;
  margin-top: 70px;
  line-height: 25px;
  font-size: larger;
  font-weight: bolder;
}

#clock-box {
  position: absolute;
  left: 5%;
  bottom: 5%;
  font-size: 24px;
  display: none;
  text-align: center;
}

#clock-box a {
  font-size: 24px;
  text-decoration: none;
}

#clock {
  margin-left: 10px;
}

#clock .digit {
  font-size: 48px;
}

#canvas {
  width: 100%;
  height: auto;
  max-width: 1100px;
  display: block;
  margin: 0 auto;
}

#error {
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
  display: none;
}

.hand {
  cursor: pointer;
}

.say {
  margin-left: 5px;
  color: rgb(0, 0, 0);
}

.space {
  margin-right: 150px;
}

#message-box {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-family: monospace;
  text-align: center;
  width: 90%;
}

