@font-face {
  font-family: 'cube';
  src: url('Cubic11.ttf') format('truetype');
}

/* 全域字型設定 */
input,
button,
textarea,
select,
.buttonfont {
  font-family: 'cube', Arial, sans-serif;
}

/* 主體背景與排版 */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  background-image: url('https://www.manametal.net/assets/images/background.png');
  font-family: 'cube', Arial, sans-serif;
}

/* 容器樣式 */
.container {
  padding: 20px;
  border: 2px solid #000;
  background-color: rgba(255, 255, 255); /* 如需白底可改成 #fff */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 450px;
  box-sizing: border-box;
}

/* 內容與結構 */
#content {
  margin-top: 20px;
  font-size: 20px;
  color: #333;
}

.logo {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 50%;
  height: auto;
}

.table-container {
  text-align: center;
}

/* 狀態樣式 */
input[readonly],
input[disabled] {
  background-color: #e9e9e9;
}

/* 一般輸入框 */
input[type="text"] {
  width: 70%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 16px;
}

/* 按鈕共用樣式 */
input[type="submit"],
button[type="submit"],
button {
  width: 200px;
  height: 40px;
  font-size: 22px;
  color: white;
  background-image:
    url('https://www.manametal.net/assets/images/button/button-goldL.png?v=1205'),
    url('https://www.manametal.net/assets/images/button/button-goldR.png?v=1205'),
    url('https://www.manametal.net/assets/images/button/button.png?v=1205');
  background-size: 28px 36px, 28px 36px, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: left, right, center;
}

/* 表單文字大小 */
select {
  font-size: 18px;
}

textarea {
  font-size: 14px;
}

input {
  font-size: 16px;
}

/* 額外強制字型的元素 */
.buttonfont {
  font-size: 22px;
  color: white;
}

/* 圖片像素風 */
img {
  image-rendering: pixelated;
}

/* RWD 響應式調整 */
@media (max-width: 768px) {
  .container {
    width: 90%;
    background-color: #fff;
  }

  .logo {
    max-width: 80%;
    height: auto;
  }

  select,
  textarea,
  input {
    font-size: 12px;
  }
}
