/* ================================================== BATTLEGROUND */

#battleground {
    display: flex;
    flex-direction: column;
    position: relative;
}

#battleground > button {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#battleground > button:not(.active) {display: none}

#player-battleground,
#ennemy-battleground {
    width: 100%;
    height: 50vh;
    position: relative;
}

.dice-slots {
    display: flex;
    position: absolute;
    left: 50%; z-index: 10;
    transform: translateX(-50%);
}

.dice-slots > div {
    width: 75px;
    height: 75px;
    margin: 0 20px;
    background-color: #fff;
    font-size: 30px;
    border: 1px solid #333;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .4s;
}

.dice-slots .element {
    min-width: 50px;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-container {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #333;
    position: absolute;
    left: 60px;
}

/* ------------------------------ Player */

#player-battleground {border-top: 1px solid #311}

#player-dice-slots {bottom: 50px}
#player-dice-slots > div.selected {transform: translateY(-20vh)}

#player-score-container {top: 30px}

/* ------------------------------ Ennemy */

#ennemy-dice-slots {top: 50px}

#ennemy-dice-slots > div.selected {transform: translateY(20vh)}

#ennemy-score-container {bottom: 30px}

/* ================================================== ROUNDS */

#battle-rounds-container {
    padding: 15px;
    background-color: #311;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 50px; top: 50%;
    transform: translateY(-50%);
}

#battle-rounds-container > p {
    color: #fff;
    margin-bottom: 10px;
}

#battle-rounds > div {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: #fff;
}

#battle-rounds > div:not(:last-of-type) {margin-bottom: 10px}
#battle-rounds > div.active {background-color: #c66}
#battle-rounds > div.passed {background-color: #311; border: 1px solid white}

/* ================================================== BATTLE MESSAGES */

#battle-messages-container {
    padding: 20px;
    width: 20%;
    height: 30vh;
    position: fixed;
    bottom: 30px; left: 50px;
    background-color: #fff;
    border: 1px solid #311;
    overflow-y: scroll;
}

#battle-messages-container h3 {margin-bottom: 10px}
#battle-messages-container p {transition: .4s}
#battle-messages-container p:not(:last-of-type) {opacity: .5}
#battle-messages-container p:hover {opacity: 1}

/* ================================================== END MESSAGE */

#end-message-container {
    padding: 30px;
    background-color: #fff;
    border: 1px solid #333;
    text-align: center;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}
#end-message-container:not(.active) {display: none}

#end-message-container button {margin-top: 10px}

/* ================================================== BG */

#arena-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    opacity: .3;
    filter: grayscale();
}