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

body {
  background-image: url('wp8531374-3787041880.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.list-item img.icon {
  height: 36px;
  rotate: -20deg;
}

.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, .splice-item .number {
  font-size: 90%;
  min-width: 6ch;
  text-align: right;
}

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

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

.splice-result {
  margin-top: 12px;
  border: 2px outset skyblue;
  background-color: #FFF9;
  border-radius: 8px;
  padding: 12px 8px;
  width: 100%;
}

.sample .hi-level {
  margin-left: 12px;
}

.hi-level {
  text-transform: capitalize;
  font-size: 80%;
}

.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;
}

.splice-data {
  padding-top: 12px;
  font-size: 90%;
  margin-bottom: 6px;
}

.splice-samples {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.splice-samples .list-item {
  height: auto;
  align-items: center;
  display: inline-flex;
  min-width: 20%;
}

.splice-item {
  padding: 4px 8px;
  border: 1px solid gray;
  border-radius: 6px;
  height: 38px;
  align-content: center;
  background-color: #FFFB;
}

.splice-item + .splice-item { margin-left: 8px; }

.splice-samples .pokemon .species {
  margin-right: 12px;
  text-align: center;
}

.splice-evos, .splice-skill {
  display: inline-flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 4px 8px;
  margin-right: 8px;
  margin-left: -12px;
  min-width: 72px;
  align-items: center;
}

:has(.splice-evos, .splice-skill) .label {
  width: 100%;
  font-size: 2.2em;
  text-align: center;
  font-weight: bolder;
}

.splice-skill div {
  width: 100%;
}

.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;
}

.splice-skill button {width: 50%;}

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

.accordion {
  background-color: skyblue;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  outline: none;
  transition: 0.4s;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  border: 1px solid gray;
}

.accordion.active {
  background-color: rgb(167, 230, 255);
  border-bottom-width: 0;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

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

.accordion.active + .panel { 
  border: 1px solid gray;
  border-top-width: 0;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: #FFF9;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  width: 100%;
}

.img-button {
  max-height: 100%;
}

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;
}