* {
    margin: 0;
    font-family: "Pixelify Sans", sans-serif
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px
}

#playground {
    position: relative;
    overflow: hidden;
    height: 800px;
    width: 900px;
    border: 2px solid black;
    background-color: gainsboro;
    z-index: -1;
}

#playground-cover {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(68, 68, 68, 0.37);
    backdrop-filter: blur(2px);
    height: 800px;
    width: 900px;
    z-index: 2;
    transition: animation 0.2s, opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pause-logo {
    height: 60px;
    width: 50px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    background-color: transparent;
    margin: 0;
    padding: 0;
    transition: transform 0.2s;
    z-index: 3;
}

.pause-part {
    height: 60px;
    width: 22px;
    background-color: white;
    transition: background-color 0.1s;
}

.part {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90vh;
}

.stats {
    display: flex;
    width: 300px;
    flex-flow: column;
    padding: 15px;
    border: 1px solid black;
    border-radius: 15px;
    margin-top: 20px;
    background-color: gainsboro;
}

/* Players Bodys */

#body_1 {
    height: 18px;
    width: 18px;
    background-color: blue;
    border: 1px solid blue;
}
#body_2 {
    height: 18px;
    width: 18px;
    background-color: red;
    border: 1px solid red;
}

/* Score Display */

#center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 900px;
    gap: 10px;
    z-index: 0;
}

#scoreBoard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid black;
    border-radius: 15px;
    background-color: gainsboro;
}

.killcount {
    font-size: 2rem;
}

#round {
    font-size: 2rem;
}

.p1 {
    color: blue;
}
.p2 {
    color: red;
}

#centerboard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#timer {
    font-size: 1.2rem;
}

/* Display Stats */

.display, .display_hp {
    margin: 20px 0;
}
.display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.display_hp {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.hpbarre {
    border: 1px solid black;
    width: 200px;
    height: 10px;
    display: flex;
    justify-content: flex-start;
}
.expbarre {
    border: 1px solid black;
    width: 200px;
    height: 6px;
    display: flex;
    justify-content: flex-start;
}
#hpValuePlayer1, #hpValuePlayer2 {
    font-size: 1.5rem;
    font-weight: 600;
}
#hpPlayer1, #hpPlayer2 {
    width: 100%;
    height: 100%;
    background-color: green;
}
#expPlayer1, #expPlayer2 {
    width: 0%;
    height: 100%;
    background-color: greenyellow;
}
#cooldown_player_1, #cooldown_player_2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: green;
}

/* Button Section */

.buttonfield {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}
.button {
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    background-color: darkgray;
    transition: transform 0.2s, background-color 0.1s;
    font-size: 1.2rem;
}

.button:hover{
    transform: scale(1.1, 1.1);
}

.action-button:hover {
    transform: scale(1.1, 1.1);
}

.action-button:active {
    .pause-part {
        background-color: rgb(192, 92, 92);
    }
}

.button:active {
    background-color: rgb(161, 126, 126);
}

/* Utilitises */

.hidden {
    display: none;
}

/* Animation Section */

@keyframes explsotion {
    0% {
        background-color: white;
        border: 5px solid white;
        transform: scale(0.1, 0.1);
    }
    5% {
        background-color: rgba(255, 247, 176, 0.80);
        border: 5px solid white;
        transform: scale(0.7, 0.7);
    }
    15% {
        border: 4px solid rgba(255, 247, 176);
        background-color: rgb(240, 214, 67, 0.80);
        transform: scale(1.075, 1.075);
        opacity: 1;
    }  
    100% {
        border: 1px solid rgb(185, 170, 80);
        background-color: rgba(126, 119, 99, 0.8);
        transform: scale(1, 1);
        opacity: 0;
    }
}

@keyframes bombExplode {
    0% {
        background-color: white;
        z-index: 2;
        transform: scale(1, 1);
    }
    100% {
        transform: scale(0, 0);
    }
}

@keyframes ringExplosion {
    0% {
        box-shadow: 0 0 12px white;
        transform: scale(0.1, 0.1);
        opacity: 0.6;
    }
    100% {
        box-shadow: 0 0 12px rgb(131, 131, 131);
        transform: scale(5, 5);
        opacity: 0;
    }
}

@keyframes bombeTimer {
    0% {
        background-color: black;
    }
    50% {
        background-color: red;
    }
    100% {
        background-color: black;
    }
}

@keyframes invincibilityAura {
    0% {
        border-color: black;
    }
    50% {
        border-color: yellow;
    }
    100% {
        border-color: black;
    }
}

@keyframes appearance {
    0% {
        transform: scale(0,0);
    }
    100% {
        transform: scale(1,1);
    }
}

@keyframes flicker {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes opacityIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes opacityOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}