.main {
  background-color: rgb(0, 0, 0);
  min-height: 70vh;
  max-height: 80vh;
  width: 90%;
  margin-top: 70px;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.player,
.enemy {
  background-color: rgb(12, 12, 12);
  height: 100%;
  width: 300px;
  position: absolute;
  border-radius: 10px;
  border: 3px solid rgb(5, 255, 14);
  overflow: hidden;
}
.player-img {
  height: 400px;
}
.enemy-img {
  height: 400px;
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover;
  background-position: center;
}

.player-img > .start-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.player5 {
  height: 100%;
  width: 100%;
  background-color: white;
}

.title-player,
.title-enemy {
  position: absolute;
  top: -70px;
  color: whitesmoke;
  letter-spacing: 5px;
}
.title-player {
  left: 110px;
}
.title-enemy {
  right: 130px;
}
.player {
  left: 15px;
}
.enemy {
  right: 15px;
}

.hp {
  height: 40px;
  width: 90%;
  margin: 20px auto;
  border-radius: 2px;
  /* overflow: hidden; */
  background-color: white;
}

.over-hp {
  transition: all 0.3s ease-in-out;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.over-hp > .hp-result {
  position: absolute !important;
  right: 20px;
}
.gold-attack {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  width: 200px;
}

.gold-attack h2 {
  color: gold;
  display: inline;
  text-align: center;
}

.gold-attack button {
  margin-top: 10px;
  width: 100px;
  padding: 10px;
  text-transform: uppercase;
  background-color: darkred;
  border: none;
  color: whitesmoke;
  font-size: 20px;
  letter-spacing: 2px;
  border-radius: 5px;
}
button:hover {
  transform: translateY(-2px);
  cursor: pointer;
}
button:active {
  transform: scale(0.95);
}

.potion {
  width: 100px;
}
.potion > button {
  width: 100px;
  background-color: gold;
  border: none;
  padding: 7px;
  border-radius: 5px;
}

/* UPGRADES */

.upgrades {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
}
.upgrades > img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  background-color: white;
  border-radius: 5px;
  border: 1px solid black;
}
.upgrades > img:hover {
  transform: scale(1.07);
  cursor: pointer;
}

.selected-weapon {
  border: 2px solid red;
}
