* {
  font-family: "Ubuntu", sans-serif;
}

body {
  background-image: url('3905243.jpg');
  background-attachment: fixed;
}

.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.search-bar {
  display: block;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  height: 36px;
  padding: 4px 8px;
  font-size: 1.1em;
  font-style: italic;
  margin-bottom: 8px;
  border-radius: 4px;
  border: 1px solid gray;
}

.search-bar:active {
  border: 1px solid skyblue;
}

.half-container {
  display: inline-block;
  width: 48vw;
  max-width: 550px;
  border: 2px outset skyblue;
  min-height: 500px;
  max-height: 65vh;
  overflow: hidden;
  background-color: #FFF9;
  border-radius: 8px;
}

.drag-list {
  height: 100%;
  overflow-y: scroll;
  padding: 6px 0px;
}

.list-item, .log-item {
  padding: 4px 8px;
  border: 1px solid gray;
  border-radius: 6px;
  height: 38px;
  align-content: center;
  margin-left: 8px;
  margin-right: 8px;
  background-color: #FFFB;
  display: flex;
  align-items: center;
}

.list-item img.icon {
  margin-right: 12px;
}

.sample .controls {
  display: flex;
  align-items: center;
  height: 100%;
}

.sample .controls img {
  cursor: pointer;
  zoom: 1;
  transition: all 0.3s;
}

.sample .controls img:hover {
  zoom: 1.1;
}

.list-item:has(+ .list-item) { margin-bottom: 8px; }

.list-item .species {
  text-transform: uppercase;
}

.list-item .forme {
  opacity: 0.6;
  font-size: 80%;
  margin-left: 20px;
}

.list-item .number {
  font-size: 90%;
  min-width: 6ch;
  text-align: right;
}

.list-item.hidden {
  display: none;
}

.proportion-label input{
  max-width: 7ch;
}

.pull-right {
  margin-left: auto;
}

.kitbash-result {
  margin-top: 12px;
  border: 2px outset skyblue;
  background-color: #FFF9;
  border-radius: 8px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 16px 6px;
}

.kitbash-result .half-container{
  width: 47%;
  padding: 6px 8px;
  overflow-y: auto;
}

.type-hierarchy.row {
  display: flex;
  align-items: center;
}

.type-hierarchy .label {
  display: inline-block;
  min-width: 4em;
}

.type-influence {
  width: 90%;
  display: inline-block;
  border: 2px outset skyblue;
  background-color: #FFF9;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
}

.influence-row {
  padding: 6px 0px;
  border-bottom: 1px solid #999;
  flex-grow: 1;
  min-height: 1.5em;
}

.kitbash-result .type-influence .influence-row .type {
  font-size: 85%;
  padding: 4px 8px;
}

span:has(+ .stat-priority, + .stat-rating), .base-stats .stat-name, .type-label, .egg-label, .capability-label, .skill-label, .filler-label {
  font-weight: bold;
  min-width: 8em;
  display: inline-block;
}

.kitbash-result .base-stats .stat-name {
  min-width: 10em;
}

.influence-row {
  padding: 6px 0px;
  border-bottom: 1px solid #999;
}

.kitbash-result ul {
  list-style-type: none;
}

.kitbash-result .type {
  min-width: auto;
  display: inline-block;
  padding: 8px 12px;
  border-width: 1px;
  border-radius: 12px;
  margin-right: 8px;
  border-style: solid;
}

.kitbash-result .moves-list .type {
  min-width: 60px;
  display: inline-block;
  padding: 4px 6px;
  border-width: 1px;
  border-radius: 20px;
  margin-right: 8px;
  border-style: solid;
  text-align: center;
}

.move-group {
  border-bottom: 1px solid #AAA;
  padding-bottom: 3px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-grow: 1;
}

.moves-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.kitbash-result .moves-list .move-name {
  min-width: 16em;
} 

.kitbash-result .moves-list .move-level {
  min-width: 2.5em;
  font-size: 90%;
  color: #777;
}

.kitbash-result .capabilities, .kitbash-result .skills {
  display: flex;
  flex-wrap: wrap;
}

.capability-item, .skill-item {
  display: inline-block;
  min-width: 142px;
  margin-right: 8px;
}

.log-item {
  border-width: 2px;
  border-style: dotted;
}

.log-item.terminal {
  border-style: solid;
}

.log-item.safe { border-color: #2e8b57; }
.log-item.warn { border-color: #daa520; }
.log-item.danger { border-color: #dc143c; }

.show-help {
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-size: 2.6em;
  padding: 8px 12px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 25px;
  border: 2px outset skyblue;
  background: #FFFE;
  margin-top: 8px;
}

.readout {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.button {
  background-color: skyblue;
  color: #444;
  cursor: pointer;
  text-align: center;
  border: 1px solid gray;
  outline: none;
  transition: 0.4s;
  border-radius: 8px;
  margin-bottom: 12px;
}

.screenshot {
  width: 9%;
}

.screenshot .img-button {
  height: 36px;
}

.readout .button:active, div .show-help:active {
  background-color: rgb(167, 230, 255);
}

.capacity-indicator {
  width: 100px;
  height: 75px;
  mask: url("ui/vial.png") center no-repeat;
}

.capacity-indicator.safe { background-color: #2e8b57; }
.capacity-indicator.warn { background-color: #daa520; }
.capacity-indicator.danger { background-color: #dc143c; }

.button:hover, .show-help:hover {
  background-color: #daa520;
}

dialog {
  border-radius: 12px;
  border: 2px outset skyblue;
  background: #FFFE;
}

dialog h2 {
  text-align: center;
}

li.disorder-item, li.disorder-item ~ .disorder-item {
  list-style-type: disc;
}

dialog li:has(+ li) {
  margin-bottom: 4px;
}

/* Types */
span.type {
  color: #EEE;
  font-weight: bolder;
}

span.type.normal {
	background-color: #A8A878;
	border-color: #6D6D4E;
}
span.type.fire {
	background-color: #F08030;
	border-color: #9C531F;
}
span.type.water {
	background-color: #6890F0;
	border-color: #445E9C;
}
span.type.electric {
	background-color: #F8D030;
	border-color: #A1871F;
}
span.type.grass {
	background-color: #78C850;
	border-color: #4E8234;
}
span.type.ice {
	background-color: #98D8D8;
	border-color: #638D8D;
}
span.type.fighting {
	background-color: #C03028;
	border-color: #7D1F1A;
}
span.type.poison {
	background-color: #A040A0;
	border-color: #682A68;
}
span.type.ground {
	background-color: #E0C068;
	border-color: #927D44;
}
span.type.flying {
	background-color: #A890F0;
	border-color: #6D5E9C;
}
span.type.psychic {
	background-color: #F85888;
	border-color: #A13959;
}
span.type.bug {
	background-color: #A8B820;
	border-color: #6D7815;
}
span.type.rock {
	background-color: #B8A038;
	border-color: #786824;
}
span.type.ghost {
	background-color: #705898;
	border-color: #493963;
}
span.type.dragon {
	background-color: #7038F8;
	border-color: #4924A1;
}
span.type.dark {
	background-color: #705848;
	border-color: #49392F;
}
span.type.steel {
	background-color: #B8B8D0;
	border-color: #787887;
}
span.type.fairy {
	background-color: #EE99AC;
	border-color: #9B6470;
}
span.type.stellar {
  background: linear-gradient(90deg, #ed6262 0%, #f2c36a 20%, #eeee85 40%, #78e578 60%, #6565f5 80%, #af69f0 100%);
  border-color: gray;
  color: black;
}