* {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(rgb(206, 206, 206), rgb(235, 235, 235));
}

audio,
embed {
    position: absolute;
    z-index: -9999;
}

#baseDiv {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    max-width: 1277px;
    max-height: 576;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#canvas1 {
    width: 100%;
    height: 100%;
    border: 5px solid white;
    max-width: 100%;
    max-height: 100%;
}

#displayText {
    position: absolute;
    color: white;
    align-items: center;
    justify-content: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none
}

#healthBars {
    position: absolute;
    display: none;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    padding: 20px;
}

.missingHealth {
    background-color: red;
    height: 40px;
    width: 100%;
}

.health {
    position: absolute;
    background: #818CF9;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.healthBar {
    position: relative;
    width: 100%;
    border: 3px solid #ffab00;
}

.mana {
    position: absolute;
    background: rgba(0, 0, 139, 0.5);
    top: 30;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 15;
}

.name {
    position: absolute;
    top: 50;
    left: 0%;
    left: 0%;
    color: #ffab00;
    text-shadow: 2px 2px 0px #30263d;
}

.score1 {
    font-size: 25px;
    color: #440000;
    position: absolute;
    top: 110%;
    right: 5%;
}

.score2 {
    font-size: 25px;
    color: #440000;
    position: absolute;
    top: 110%;
    right: 0%;
}

#timer {
    height: 60px;
    width: 60px;
    flex-shrink: 0;
    display: flex;
    font-size: x-large;
    align-items: center;
    justify-content: center;
    color: #ffab00;
    text-shadow: 2px 2px 0px #30263d;
}

.startBtns {
    display: none;
    position: absolute;
    color: #ffab00;
    text-shadow: 2px 2px 0px #30263d;
    background-color: transparent;
    border-style: none;
}

#start_pve_btn {
    top: 78%;
}

#start_pvp_btn {
    top: 83%;
}

#info_btn {
    top: 88%;
}

footer {
    border-top: 1px solid #e6e6e6;
    display: block;
    padding-top: 10px;
    margin: 20px auto;
    width: 400px;
}

footer p {
    text-align: center;
    color: #909090;
    font-size: 8px;
}

footer p a {
    text-decoration: none;
    color: #909090;
    font-size: 8px;
}

footer p a:hover {
    text-decoration: underline;
}

.arrow-button {
    position: absolute;
    bottom: 30px;
    width: 0;
    height: 0;
    cursor: pointer;
    background-color: transparent;
    border-style: solid;
    outline: none;
    display: none;
}

#leftArrow {
    display: none;
    left: 20px;
    border-width: 45px 70px 45px 0;
    border-color: transparent rgba(255, 255, 255, 0.5) transparent transparent;

}

#rightArrow {
    display: none;
    left: 120px;
    border-width: 45px 0 45px 70px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.5);

}

.circle-button {
    position: absolute;
    display: none;
    border: none;
    bottom: 30px;
    width: 80px;
    /* Adjust the size of the circular buttons */
    height: 80px;
    /* Adjust the size of the circular buttons */
    background-color: rgba(255, 255, 255, 0.5);
    /* Solid white with 50% transparency */
    border-radius: 50%;
    /* Make the button circular */
}

#circleButton1 {
    right: 20px;
    /* Adjust the distance from the right side */
}

#circleButton2 {
    right: 120px;
    /* Adjust the distance from the right side */
}

.circle-button:active {
    outline: none;
    /* Remove outline on click */
}

#soundSvg {
    width: 3%;
    height: 6%;
    position: absolute;
    bottom: 3%;
    right: 1.2%;
    display: none;
}

#enemy_health_bar {
    transform: scaleX(-1);
}

#enemyName {
    transform: scaleX(-1);
}

.life-bar {
    display: flex;
    width: 100%;
    height: 40px;
    background-color: #f42127;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;


    .actual {
        content: '';
        height: 100%;
        width: 100%;
        background-color: #fff94f;
        z-index: 10;
        transform-origin: center left;
        transition: all 0s ease;
    }

    .lost {
        content: '';
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background-color: #ac0208;
        transform-origin: center left;
        width: 0;
    }

    .lost.active {
        animation-duration: 2s;
        animation-name: loseLife;
        animation-iteration-count: 1;
    }


}