/* public\css\base\typography.css */
* {
  font-family: var(--font-base);
  font-weight: 400;
  box-sizing: border-box;
  /* outline: 1px solid red !important; */
}

/* 全站禁止文字選取 */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* 防止手機長按選單 */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* NOTE: 同時設在 html 與 body，iOS Safari 才不會讓水平溢出的元素造成整頁可左右平移；
   clip 不建立捲動容器，舊瀏覽器 fallback 到 hidden */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* 防止圖片拖曳和右鍵 */
/* img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -ms-user-drag: none;
  user-drag: none;
  pointer-events: none;
} */

/* 例外:允許表單元素可以選取和輸入 */
input,
textarea,
select,
button,
a,
img {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
}

/* 自訂箭頭 */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: border-color 0.3s ease;

  background-color: transparent;
}
