/* noto-sans-sc-regular */
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: regular;
  src: url('//lib.baomitu.com/fonts/noto-sans-sc/noto-sans-sc-regular.eot');
  src: local('Noto Sans SC'), local('NotoSans SC-Normal'), url('//lib.baomitu.com/fonts/noto-sans-sc/noto-sans-sc-regular.eot?#iefix') format('embedded-opentype'), url('//lib.baomitu.com/fonts/noto-sans-sc/noto-sans-sc-regular.woff2') format('woff2'), url('//lib.baomitu.com/fonts/noto-sans-sc/noto-sans-sc-regular.woff') format('woff'), url('//lib.baomitu.com/fonts/noto-sans-sc/noto-sans-sc-regular.ttf') format('truetype'), url('//lib.baomitu.com/fonts/noto-sans-sc/noto-sans-sc-regular.svg#NotoSans SC') format('svg');
}

/* material-design-icons */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('//lib.baomitu.com/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.eot');
  src: local('Material Icons'), local('MaterialIcons-Regular'), url('//lib.baomitu.com/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.woff2') format('woff2'), url('//lib.baomitu.com/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.woff') format('woff'), url('//lib.baomitu.com/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.ttf') format('truetype');
}

:root {
  --select-bg: rgba(147, 107, 255, 0.286);
  --hover-bg: rgba(60, 251, 76, 0.286);
  --active-bg: rgba(25, 240, 43, 0.427);
  --link-color: #f00;
  --link-bg: #37723a;
  --button-bg: #4ca951;
  --button-hover-bg: #57d15d;
  --button-active-bg: #37723a;
}

/* [theme="dark"] {
  --select-color: rgba(255, 107, 147, 0.286);
} */
::selection {
  background-color: var(--select-bg);
}

::-moz-selection {
  background-color: var(--select-bg);
}

::-webkit-scrollbar {
  display: none;
}

@supports (scrollbar-width: none) {
  * {
    /* Firefox */
    scrollbar-width: none;
  }
}

:root,
input,
select,
button {
  font-family: Noto Sans SC;
  line-height: 1.2;
}

body {
  margin: 0;
  text-align: center;
  background-color: #f1eff6;
}

a {
  text-decoration: none;
  color: var(--link-color);
  border-radius: 2px;
  cursor: pointer;
}

a:hover,
input[type='checkbox'] + label:hover,
input[type='radio'] + label:hover {
  background-color: var(--hover-bg);
}

a:active {
  background-color: var(--active-bg);
}

button,
input[type='button'],
input[type='file'] + label {
  background-color: var(--button-bg);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 0.9em;
  padding: 0.1em 0.6em;
  margin: 0.1em;
  cursor: pointer;
  line-height: normal;
}

button:hover,
input[type='button']:hover,
input[type='file'] + label:hover {
  background-color: var(--button-hover-bg);
}

button:active,
input[type='button']:active,
input[type='file'] + label:active {
  background-color: var(--button-active-bg);
}

button,
label,
input[type='button'] {
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  /* Fix style inconsistency for Safari 14.5- */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type='checkbox'],
input[type='file'],
input[type='radio'],
.hide {
  display: none !important;
}

.i-pause::after {
  font: 1em 'Material Icons';
  content: '\e034';
}

.i-settings::after {
  font: 1em 'Material Icons';
  content: '\e8b8';
}

input[type='checkbox'] + label::before {
  font: 0.9em 'Material Icons';
  content: '\e835';
  margin: 0 0.2em;
  display: inline-block;
  transform: translateY(0.1em);
}

input[type='checkbox']:checked + label::before {
  content: '\e834';
}

input[type='radio'] + label::before {
  font: 0.9em 'Material Icons';
  content: '\e836';
  margin: 0 0.2em;
  display: inline-block;
  transform: translateY(0.1em);
}

input[type='radio']:checked + label::before {
  content: '\e837';
}

textarea,
input[type='text'] {
  border: 1px solid #888;
  border-radius: 2px;
  padding: 0.2em;
  margin: 1px;
  line-height: 1.2;
}

.main {
  display: none;
}

.title {
  color: #00f;
  word-break: break-all;
}

small {
  font-size: 70%;
}

.info,
strong.error {
  color: #f00;
}

strong.warning {
  color: #fa0;
}

strong.accept {
  color: #080;
}

.index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.index > .header {
  color: blue;
  font-size: 2em;
  font-weight: bold;
  margin: 0;
  padding: 2rem;
  overflow-wrap: break-word;
}

.index > .footer {
  margin: 0;
  padding: 2rem;
  overflow-wrap: break-word;
}

.index > .content {
  flex-grow: 1;
  width: 90%;
  max-width: 480px;
  margin: 0 auto;
}

.index > .content fieldset {
  margin: auto;
  border: none;
  border-top: 1px dashed gray;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.index > .content legend {
  padding: 0 1em;
  margin: 0 auto;
}

.index > .content a {
  display: inline-block;
  margin: 5px;
  border: 2px solid var(--link-bg);
  border-radius: 5px;
  padding: 10px;
  flex-grow: 1;
  word-break: break-all;
}

.info {
  font-size: 1em;
  line-height: 1.33em;
}

.profile {
  font-size: 0.8em;
  line-height: 1.5em;
}

.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.fade {
  opacity: 0 !important;
  visibility: hidden;
}
