@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "VT323", monospace;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  padding-bottom: 140px;
  background-image: url(bg-img.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: #333;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.menu {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#p1 {
  width: 120px;
}

.p1Info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#p1Name {
  font-size: 70px;
  padding: 10px;
  margin-bottom: 50px;
  border-radius: 20px;
  background-color: rgba(51, 51, 51, 0.7);
}

#p1Health {
  font-size: 70px;
}

#p2 {
  width: 150px;
}

.p2Info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background: red; */
}

#p2Name {
  font-size: 70px;
  padding: 10px;
  margin-bottom: 50px;
  border-radius: 20px;
  background-color: rgba(51, 51, 51, 0.7);
}

#p2Health {
  font-size: 70px;
}

.playerControls {
  background-color: rgba(51, 51, 51, 0.7);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.playerControls h3 {
  font-size: 30px;
}

.AttackDiv {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /*   background: blue; */
}

.HealDiv {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /*   background: yellow; */
}

#attack {
  margin-left: 20px;
  height: 50px;
  width: 100px;
  border-radius: 20px;
  border: none;
  background-color: #880808;
  outline: none;
  color: #fff;
  font-size: 30px;
}

#heal {
  margin-left: 20px;
  height: 50px;
  width: 100px;
  border-radius: 20px;
  border: none;
  background-color: rgb(50, 191, 50);
  outline: none;
  color: #fff;
  font-size: 30px;
}

.health-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 50px;
}

#play {
  background-color: rgb(16, 16, 95);
  color: white;
  padding: 15px 30px;
  font-size: 35px;
  border-radius: 15px;
  border: none;
  outline: none;
}

#play:hover {
  background-color: rgb(55, 55, 114);
  box-shadow: 0 0 5px #fff;
}

#result {
  font-size: 50px;
  color: #3dff3d;
}

#reset {
  background-color: #880808;
  color: #fff;
  padding: 15px 30px;
  font-size: 35px;
  border-radius: 20px;
  border: none;
  outline: none;
}

#reset:hover {
  background-color: #875353;
  box-shadow: 0 0 15px #fff;
}

.resultContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 150px;
  width: 300px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 120px;
  }

  #p1Name,
  #p2Name {
    font-size: 50px;
    margin-bottom: 30px;
  }

  #attack,
  #heal {
    font-size: 20px;
  }

  .playerControls h3 {
    font-size: 20px;
  }
}
