* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding: 12px;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  max-width: 100%;
  overflow-x: clip;
}

p {
  display: block;
  margin: 0 0 0.8em;
}

th {
  font-family: var(--font);
  font-size: 15px;
  color: var(--page-section, var(--accent));
  text-align: center;
  font-weight: 650;
}

ul {
  margin-left: 1.25em;
  list-style-type: disc;
  list-style-position: outside;
}

tr {
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
}

td {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
}

h1 {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.4vw + 0.7rem, 1.6rem);
  line-height: 1.25;
  color: var(--accent);
  font-weight: 650;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2 {
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.6vw + 0.7rem, 1.25rem);
  line-height: 1.3;
  color: var(--accent);
  font-weight: 650;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

a {
  font-family: var(--font);
  font-size: inherit;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--link-hover);
}

.thlink,
.thtext,
.thtext_black,
.thtext_blue,
.thtext_white,
.thtext_active {
  font-family: var(--font);
  font-size: 15px;
  color: var(--page-section, var(--accent));
  text-align: center;
  font-weight: 650;
}

.thtext_black { color: var(--text); }
.thtext_blue,
.thtext_active { color: var(--page-section, var(--accent)); }
.thtext_white { color: #ffffff; }

.text_grey { color: var(--muted); }
.text_light_grey { color: #7e8b9c; }
.green { color: var(--green); }
.blue { color: var(--blue); }
.red { color: var(--red); }
.orange { color: var(--orange); }
.white { color: #ffffff; }
.active_page { color: var(--accent); }
.active_letter { color: var(--red); }

.gender_w { background-color: rgba(255, 140, 170, 0.14); }
.gender_m { background-color: rgba(62, 207, 255, 0.1); }

.tableborder {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.tr_light { background-color: rgba(255, 255, 255, 0.03); }
.tr_dark { background-color: rgba(255, 255, 255, 0.07); }

.th {
  background-color: var(--surface-2);
  font-family: var(--font);
  font-size: 15px;
  color: var(--accent);
}

.tdspoiler {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  padding: 10px 14px;
  background-color: var(--inset);
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.link_highlight {
  font-family: var(--font);
  font-size: inherit;
  color: var(--accent);
  text-decoration: none;
}

.font_1 { color: var(--text); }
.font_2 { color: var(--muted); }
.font_3 { color: var(--accent); }

.error,
.successful,
.information {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 650;
}

.error { color: var(--red); }
.successful { color: var(--green); }
.information { color: var(--orange); }

.sitegeneradedinsecondstext {
  font-size: 12px;
  color: var(--muted);
}

.site_not_found {
  width: min(400px, 100%);
  text-align: left;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.feature_not_activated {
  background-color: rgba(255, 107, 107, 0.16);
  color: var(--text);
  padding: 12px;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  width: min(420px, 100%);
}

.feature_expiration_warning {
  background-color: rgba(255, 176, 32, 0.16);
  color: var(--text);
  padding: 12px;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  width: min(420px, 100%);
}

.error_div {
  width: 95%;
  text-align: center;
  padding: 12px 10px;
  margin-bottom: 15px;
  font-weight: 650;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

.spoiler_forum {
  background-color: var(--surface);
  color: var(--surface);
}

.codeheader_forum {
  color: var(--text);
}

.code_forum {
  background-color: var(--inset);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  overflow-x: auto;
}

.menu { color: var(--accent); }

.autocompleter_update {
  border: 1px solid var(--border-strong);
  text-align: left;
  background-color: var(--surface);
  position: absolute;
  z-index: 20;
  margin: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.autocompleter_li {
  list-style-type: none;
  position: relative;
  margin-left: 0;
  cursor: default;
  border: 0;
  font-size: 15px;
  padding: 6px 10px;
}

.autocompleter_ul {
  border: 0;
  width: 100%;
  background-color: var(--surface);
  margin-left: 0;
}

.selected {
  cursor: default;
  list-style-type: none;
  color: var(--text);
  background-color: rgba(var(--accent-rgb), 0.16);
}

#infobox_background {
  display: none;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000000;
  opacity: 0.55;
  width: 100%;
  height: 200%;
}

iframe,
video,
embed,
object,
img,
svg {
  max-width: 100%;
}

.body_mc img,
.deepend_mc img,
.popup_mc img,
.title_mc img,
.headline_mc img,
.body_mc svg {
  max-width: 100%;
  height: auto;
}

/* Layout cells must be allowed to shrink below intrinsic content width */
#headerintern + table,
#headerintern + table > tbody,
#headerintern + table > tbody > tr {
  width: 100%;
  max-width: 100%;
}

#headerintern + table > tbody > tr > td {
  min-width: 0;
}

.body_mc,
.deepend_mc,
.headline_mc,
.popup_mc,
.title_mc,
.headed_mc,
#body {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  overflow-x: clip;
}

.body_mc table,
.deepend_mc table,
.headline_mc table,
.popup_mc table {
  max-width: 100% !important;
}

/* Hardcoded HTML width="715" etc. */
.body_mc table[width],
.deepend_mc table[width],
.popup_mc table[width] {
  width: 100% !important;
  max-width: 100% !important;
}

.body_mc pre,
.deepend_mc pre,
.body_mc .code_forum {
  max-width: 100%;
  overflow-x: auto;
}
