:root {
  --main-color: #213555;
  --off-blue: #4F709C;
  --alt-color: #1195db;
  --off-white: #F7EEDD;
  --row-bg: #213555;
}

body {
  font-family: monospace;
  font-size: 21px;
  background: #101017;
  margin: 0;
  color: var(--off-white);
}

header {
  position: relative;
}

.buttons {
  position: absolute;
  left: 21px;
  top: 21px;
}

header, .mob-name {
  display: block;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--main-color);
  color: var(--off-white);
}

form {
  margin: 0;
}

#selector {
  font-size: 21px;
  width: 160px;
}

#next-rain {
  margin-left: 8px;
  font-size: 21px;
  font-weight: bold;
  max-width: 70vw;
  overflow: auto;
  white-space: nowrap;
}

@media (min-width: 600px) {
  #output {
    justify-content: center;
  }
}

.npc {
  max-width: 800px;
  min-width: 160px;
  margin: 14px auto;
  font-size: 18px;
}

h5 {
  margin: 0px;
  padding: 6px 4px;
  background-color: var(--main-color);
  border: 0.5px solid var(--main-color);
}

.stat-section {
  margin-top: 2px;
  padding: 0px 1px;
}

.stat-section > p {
  padding: 14px 4px;
  margin: 0px;
}

.stat-section > p:nth-child(3) {
  padding-top: 0px;
}

.npc-body {
  display: grid;
  grid-template-columns: repeat(6, auto);
  border: 2px solid var(--main-color);
  background: #0f232c;
}

#notice {
  cursor: pointer;
  display: none;
  border: 1px solid var(--off-blue);
  background: var(--main-color);
  padding: 12px;
  position: fixed;
  bottom: 8px;
  left: 8px;
}

#notice * {
  cursor: pointer;
}

.smol {
  font-size: 12px;
}

.hide {
  display: none;
}

.header {
  cursor: pointer;
}

.not-collapsed .header.table-item > div:first-child:before {
  content: '[-]';
}
.collapsed .header.table-item > div:first-child:before {
  content: '[+]';
}

.collapsible:hover .header {
}

.mob-drops, .mob-skills, .mob-titles {
  display: flex;
  flex-direction: column;
}

.drops-header, .skills-header, .titles-header {
  background: var(--main-color);
  font-weight: bold;
}

.drop, .skill, .title {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 6px;
  border-bottom: 1px solid var(--off-blue);
  font-size: 16px;
}

.drop:not(.header), .skill:not(.header) {
  display: none;
}

.skill-name {
  grid-column: span 2;
}

.table-item:last-child {
  border: none;
}

.table-item div {
  border: none;
}

.drop-chance, .skill-rank {
  padding-left: 21px;
}

.inputs > span {
  display: inline-flex;
  flex-direction: column;
  margin: 0 16px;
}

.elements {
  grid-template-columns: repeat(4, auto);
}

label {
  font-size: 16px;
  margin-bottom: 4px;
  margin-top: 8px;
}

fieldset {
  max-width: 360px;
  margin: 12px auto;
}

fieldset p {
  font-size: 12px;
  font-weight: normal;
}

#count {
  text-align: center;
}
