@font-face {
  font-family: 'Andy Bold';
  font-style: normal;
  font-weight: 400;
  src: url("../media/Andy_Bold.ttf") format('truetype');
  font-display: swap;
}

* {user-select: none;
  cursor: default;
  outline: none !important;}

body {font-family: "Andy Bold", "Comic Sans";
  font-size: 20px;
  text-shadow: 0 0 2px #000;
  color: #fff;}

.container {display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: #aaa url(../media/wallpaper.jpg) center center / cover;
  background-blend-mode: hard-light;}

section {display: block;
  width: 545px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  margin: 130px auto;
  padding: 30px 50px;
  backdrop-filter: blur(5px) saturate(0.4);
  box-shadow: 0 10px 20px 5px rgba(0,0,0,0.4);}
section h1 {display: block;
  height: 40px;
  line-height: 50px;
  margin: 0 0 20px 0;
  font-size: 40px;
  text-align: center;}
section h2 {display: block;
  height: 30px;
  line-height: 40px;
  margin: 15px 0;
  font-size: 30px;}

input, label, select {cursor: pointer;}
input[type="number"] {padding: 0 0 0 5px !important;
  cursor: text;}

table {border-collapse: collapse;
 margin: 10px 0 0 0;}
table td {padding: 5px;}

select, input[type="number"] {display: inline-block;
  height: 30px;
  min-width: 150px;
  padding: 3px 0 0 3px;
  border: none;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  font: unset;
  color: #fff;
  text-shadow: 0 0 2px #000;}

span.dmg {color: #ffa050;--shadow: 0 0 1px #000;
  text-shadow: var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow), var(--shadow);}
span.dmg.crit {color: #e45a1a;
  font-size: 24px;
  line-height: 20px;}

.select {display: inline-block;
  position: relative;
  z-index: 1;
  height: 30px;
  min-width: 100%;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
  cursor: pointer;
  float: left;
  --value: 0;}
.select:after {content: "";
  display: block;
  position: absolute;
  right: 8px;
  top: 13px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-width: 3px;
  border-right-width: 3px;
  border-top-color: #fff;
  pointer-events: none;}
.select select {display: none;}
.select > div {display: block;
  position: relative;
  z-index: 1;
  left: 0;
  top: 0;
  background: rgba(0,0,0,0);
  border-radius: 3px;
  transform: translateY(calc(var(--value) * -36px - 3px));
  pointer-events: none;}
.select > div .option {display: block;
  position: relative;
  z-index: 2;
  height: 27px;
  line-height: 30px;
  padding: 6px 27px 3px 7px;
  background: rgba(255,255,255,0);
  cursor: pointer;
  transition: background 0.1s ease;
  white-space: nowrap;}
.select > div .option:hover {background: rgba(255,255,255,0.1);}
.select[open] {background: rgba(255,255,255,0);
  z-index: 2;
  overflow: visible;
  --value: var(--value-over) !important;}
.select[open]:after {display: none;}
.select[open] > div {z-index: 2;
  background: rgba(0,0,0,0.9);
  pointer-events: all;
  max-height: 288px;
  overflow-x: hidden;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);}
.select[disabled] {opacity: 0.7;
  pointer-events: none;}
.select[inactive]:not([open]) {opacity: 0.7;
  background: rgba(255,200,200,0.4);}

.checkbox {display: inline-block;
  float: left;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 4px;
  cursor: pointer;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  overflow: hidden;}
.checkbox * {pointer-events: none;}
.checkbox input {display: none;}
.checkbox > span {display: block;
  position: absolute;
  background: transparent;}
.checkbox > span:nth-child(2) {width: 2px;
  height: 5px;
  left: 7px;
  top: 11px;
  transform: rotate(-50deg);}
.checkbox > span:nth-child(3) {width: 2px;
  height: 12px;
  left: 12px;
  top: 5px;
  transform: rotate(40deg);}
.checkbox[checked] {}
.checkbox[checked] > span {background: #fff;}
.checkbox[disabled] {pointer-events: none;
  opacity: 0.5;}
