#canvas1 {
    border: 5px solid rgb(255, 0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1500px;
    height: 600px;
   
}
.bar-container {
    width: 300px;
    height: 30px;
    background-color: #444;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px #000;
  }

  .attack-bar {
    height: 100%;
    width: 100%;
    background-color: #ff4444;
    transition: width 0.05s linear;
  }
  p {
    margin-top: 20px;
    font-size: 1.2em;
  }