/* inspired by https://codepen.io/jdigi/pen/MWwOQO */
body {
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  list-style-position: inside;
  overflow: hidden;
  background-color: #000;
}
.credit {
  margin-top: 30%;
}
.overlay a {
  color: white;
}
h1 {
  margin: 4px 0;
  font-size: 40px;
  text-align: center;
  color: gold;
}
button:hover {
  cursor: pointer;
}
.start button {
  margin-top: 10%;
  display: inline-block;
}
div:has(#baseHealth) {
  color: gold;
}
#baseHealth {
  margin: 0;
  font-size: 60px;
}
.info,
.start {
  color: white;
  text-align: center;
}
.overlay button {
  width: 240px;
  font-size: 48px;
}
#popularity {
  margin: 4px 0 0 0;
  font-size: 60px;
}
#end {
  text-align: center;
  border-radius: 12px;
  width: 420px;
  height: 220px;
  margin: 0 auto;
  border: 20px solid goldenrod;
  padding-bottom: 20px;
  color: white;
  background: darkslategray;
  font-size: 24px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.container,
#holder {
  margin: 0 auto;
  max-width: 700px;
}
.hide {
  display: none;
}
.drag {
  background-color: #e56a5a;
  border-radius: 5px;
  border: 2px solid black;
  cursor: pointer;
  float: left;
  margin-left: 5px;
  height: 100px;
  width: 100px;
  -webkit-transition: background-color 0.25s ease-in;
  -moz-transition: background-color 0.25s ease-in;
  -ms-transition: background-color 0.25s ease-in;
  -o-transition: background-color 0.25s ease-in;
  transition: background-color 0.25s ease-in;
}
.drag:last-of-type {
  margin-right: 5px;
}
.drag:hover {
  background-color: #f94a34;
}
.flex {
  display: flex;
}
.dropIt {
  background: #5eced2;
  border-radius: 5px;
  height: 80vh;
  margin: 0 auto;
  padding-top: 5px;
  width: 200px;
  border: 1px solid #000;
}
#holder {
  width: 200px;
  margin: 0 auto;
}
.dropIt.active {
  border-right: 20px solid yellow;
  border-left: 20px solid yellow;
}
.monster,
#holder div {
  color: white;
  font-size: 48px;
}
.overlay {
  z-index: 20;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(48, 3, 58, 0.9);
  width: 100%;
  height: 100%;
}
/* cards style based on https://codepen.io/gavinn/pen/xxzPqa */
#holder div {
  display: block;
  width: 100px;
  height: 150px;
  border: 3px solid black;
  border-radius: 20px;
  position: absolute;
  padding: 10px;
  top: 100%;
  font-weight: bold;
}
#holder div:nth-child(1) {
  transform: rotate(-40deg) translateY(-200px);
}
#holder div:nth-child(2) {
  transform: rotate(-20deg) translateY(-200px);
}
#holder div:nth-child(3) {
  transform: rotate(0deg) translateY(-200px);
}
#holder div:nth-child(4) {
  transform: rotate(20deg) translateY(-200px);
}
#holder div:nth-child(5) {
  transform: rotate(40deg) translateY(-200px);
}
#holder div:nth-child(6) {
  transform: rotate(60deg) translateY(-200px);
}
