@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

:root {
  --primary: #000000;
  --primary-light: #a7a7a7;
  --secondary: #50e256;
  --tertiary: #f5f5f5;
  --button: #484848;
  --link: #06f;
  --container-width: 1232px;
}
[x-cloak] {
  display: none !important;
}
body {
  font-family:
    'Noto Sans TC', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  background-color: var(--tertiary);
}
input[type='radio'] {
  accent-color: var(--primary);
}

.c-primary {
  color: var(--primary);
}
.c-primary-light {
  color: var(--primary-light);
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.shrink-0 {
  flex-shrink: 0;
}
.flex-col {
  flex-direction: column;
}
.justify-between {
  justify-content: space-between;
}
.t-h-1 {
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 4.8px;
}

.t-p-1 {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 2.4px;
}

.t-p-2 {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 2.4px;
}

.t-link {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 2.4px;
  color: var(--link);
  text-decoration: none;
}

.mt-md {
  margin-top: 48px;
}
.mt-sm {
  margin-top: 36px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mr-auto {
  margin-right: auto;
}
.ml-auto {
  margin-left: auto;
}
.p-t-fix {
  padding-top: 7px;
}
.gap-sm {
  gap: 30px;
}
.gap-xs {
  gap: 15px;
}
.gap-xxs {
  gap: 8px;
}
.button {
  border: none;
  cursor: pointer;
  border-radius: 30px;
  display: inline-flex;
  padding: 14px 50px;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  background-color: var(--button);
  text-decoration: none;
}
.button[disabled] {
  background-color: var(--primary-light);
  cursor: not-allowed;
}

.input {
  border-radius: 30px;
  border: 1px solid #d9d9d9;
  height: 50px;
  width: 100%;
  padding: 0 16px;
  background: var(--tertiary);
}

.container {
  max-width: var(--container-width);
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section {
  padding-top: 48px;
  padding-bottom: 48px;
}
/* test page */
.section-scale .button {
  margin-top: 48px;
}

.section-scale .container {
  padding: 0;
}
.section-scale .container > * {
  padding: 0 16px;
}

.drop-bar-container {
  margin-top: 64px;
}

.drop-bar-text {
  gap: 8px;
}
.drop-bar-text div {
  flex: 1 1 30%;
}
.drop-bar-text div:nth-child(2) {
  text-align: center;
}
.drop-bar-text div:nth-child(3) {
  text-align: right;
}

.drag-element-circle {
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 99999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.drag-element-circle--outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.drag-element-text {
  padding-top: 6px;
  color: var(--primary);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 3px;
}

.drag-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 48px 0;
  gap: 20px;
}

.drag-element {
  position: relative;
  display: flex;
  gap: 10px;
  list-style: none;
}
.drag-element.is-dragging,
.drag-element.is-dragged {
  pointer-events: none;
}

.is-dragging .drag-element-circle,
.is-dragging .drag-element-text,
.drag-element.is-dragged .drag-element-circle,
.drag-element.is-dragged .drag-element-text {
  opacity: 0.4;
}

.drag-element-picker {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  visibility: hidden;
  opacity: 0;
  left: 0;
  top: 0;
  position: absolute;
  width: 40px;
  height: 50px;
  background: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="40" height="50" viewBox="0 0 40 50" fill="none"><path d="M20 50C13.2917 44.2917 8.28167 38.99 4.97 34.095C1.65833 29.2 0.00166667 24.6683 0 20.5C0 14.25 2.01083 9.27083 6.0325 5.5625C10.0542 1.85417 14.71 0 20 0C25.2917 0 29.9483 1.85417 33.97 5.5625C37.9917 9.27083 40.0017 14.25 40 20.5C40 24.6667 38.3442 29.1983 35.0325 34.095C31.7208 38.9917 26.71 44.2933 20 50Z" fill="black"/></svg>');
}

.drag-position {
  position: absolute;
  color: var(--primary);
  font-size: 14px;
  top: -20px;
}

.drag-element-picker div {
  padding-bottom: 8px;
}

.drag-element-picker.is-dragging {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.drop-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 22px;
}

.drop-bar-line {
  background-color: var(--secondary);
  width: 100%;
  height: 4px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drop-bar-line::after {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background-color: var(--secondary);
  position: absolute;
  right: 0;
}

.drop-bar-line.bar-last::after {
  display: none;
}

.drop-bar-dot {
  width: 22px;
  height: 22px;
  background-color: var(--secondary);
  border-radius: 99999px;
  position: absolute;
}

.drop-bar-dot:first-child {
  left: 0;
}

.drop-bar-dot:last-child {
  right: 0;
}
/* radio / text answer types */
.question-image-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.question-image {
  max-width: 320px;
  width: 100%;
  height: auto;
}
.radio-answer-list,
.text-answer-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.radio-answer-row,
.text-answer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.text-answer-row .input {
  flex: 1;
  min-width: 200px;
}
/* test page end */
