@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap");
body {
  --white: #f2f2f2;
  --white-sub: #c2c2c2;
  --white-gray: #e6e6e6;
  --to-white: brightness(0) saturate(100%) invert(99%) sepia(2%) saturate(452%)
    hue-rotate(232deg) brightness(115%) contrast(83%);
  --black: #1a1a1a;
  --black-sub: #444444;
  --dark-gray: #333333;
  --to-black: brightness(0) saturate(100%) invert(12%) sepia(0%) saturate(0%)
    hue-rotate(186deg) brightness(96%) contrast(93%);
  --green: #008300;
  --light-green: #00ff0018;
}

body {
  --main-color: var(--white);
  --sub-color: var(--white-sub);
  --main-invert-color: var(--black-sub);
  --icon-convertor: var(--to-black);
  --red: #ff4213;
  --vote-color: var(--white-gray);
}

body.dark {
  --main-color: var(--black);
  --sub-color: var(--black-sub);
  --main-invert-color: var(--white-sub);
  --icon-convertor: var(--to-white);
  --red: #f37474;
  --vote-color: var(--dark-gray);
}

.scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  font-family: "Zen Maru Gothic";
  font-weight: 400;
  background-color: var(--main-color);
}

.title {
  display: grid;
  border-bottom: 1px solid var(--sub-color);
  align-items: center;
}

h1 {
  text-align: center;
  margin: 0;
  color: var(--main-invert-color);
}

.main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--sub-color);
  overflow: hidden;
}

.input {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 8px;
  gap: 8px;
}

.input > text {
  font-weight: 500;
  color: var(--main-invert-color);
}

.input > textarea {
  resize: none;
  width: 100%;
  outline: none;
  border: none;
  background-color: transparent;
  color: var(--main-invert-color);
  padding: 0;
  overflow: hidden;
}
.submit {
  display: flex;
  justify-content: flex-end;
}
.submit > button {
  margin-right: 0;
  outline: none;
  border: none;
  background-color: var(--green);
  cursor: pointer;
}
.submit > button > text {
  font-family: "Zen Maru Gothic";
  color: var(--white);
  font-weight: 500;
}
.listControl {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}
.order {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.order > text {
  display: block;
  width: 100px;
  text-align: center;
  border: 1px solid var(--sub-color);
  color: var(--main-invert-color);
  font-weight: 500;
  user-select: none;
}
.order > text.select {
  border: 0px;
  color: var(--white);
  background-color: var(--green);
  cursor: default;
}
.count {
  display: flex;
  flex-direction: row;
  gap: 8px;
  color: var(--main-invert-color);
  align-items: center;
}
.count > img {
  filter: var(--icon-convertor);
  user-select: none;
}
.listView {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qabox {
  display: grid;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--sub-color);
}
.vote {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--main-invert-color);
  justify-content: flex-end;
}
.voteicon {
  background-color: var(--vote-color);
  user-select: none;
}
.voteicon.checked {
  background-color: var(--light-green);
  border: 1px solid var(--green);
}
.voteicon > img {
  filter: var(--icon-convertor);
}
.separator {
  border-top: 1px solid var(--sub-color);
}
.content {
  display: flex;
  flex-direction: row;
  gap: 8px;
  color: var(--main-invert-color);
  padding: 4px 0;
}
.content > text:first-child {
  font-weight: 500;
}

.answer {
  color: var(--red);
}
.time {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--main-invert-color);
}
