/**********************************************
*** GENERAL
**********************************************/

.final-score {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 520px;
    color: #000;
    background-color: #cde;
    border-radius: 10px;
    font-family: 'Lato';
    text-align: center;
    padding: 10px;
    width: 160px;
    text-transform: uppercase;
}

.final-score:focus {
    outline: none;
}

#dice-1 {
    top: 130px;
}

#dice-2 {
    top: 240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body {
    background-image: url(back.jpg);
    background-size: cover;
    background-position: center;
    font-family: Lato;
    font-weight: 300;
    position: relative;
    height: 100vh;
    color: #def;
}

.wrapper {
    width: 65%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 15px;
}

.player-0-panel,
.player-1-panel {
    width: 50%;
    float: left;
    height: 600px;
    padding: 80px 100px;
}


/**********************************************
*** PLAYERS
**********************************************/

.player-name {
    font-size: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 100;
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
}

.player-score {
    text-align: center;
    font-size: 80px;
    font-weight: 100;
    color: yellow;
    margin-bottom: 130px;
}

.active {
    background-color: #111;
}

.active .player-name {
    font-weight: 300;
}

.active .player-name::after {
    content: "\2022";
    font-size: 47px;
    position: absolute;
    color: red;
    top: -3px;
    right: 5px;
}

.player-current-box {
    background-color: lawngreen;
    border-radius: 5px;
    width: 60%;
    margin: 0 auto;
    padding: 15px;
    text-align: center;
}

.player-current-label {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    color: #000;
}

.player-current-score {
    font-size: 30px;
    color: #fff;
}

button {
    position: absolute;
    width: 160px;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    border: none;
    font-family: Lato;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 300;
    transition: background-color 0.3s, color 0.3s;
    background-color: lawngreen;
    padding: 10px;
    border-radius: 10px;
}

button:hover {
    font-weight: 600;
}

button:hover i {
    margin-right: 20px;
}

button:focus {
    outline: none;
}

i {
    color: red;
    display: inline-block;
    margin-right: 15px;
    font-size: 32px;
    line-height: 1;
    vertical-align: text-top;
    margin-top: -4px;
    transition: margin 0.3s;
}

.btn-new {
    top: 45px;
}

.btn-roll {
    top: 395px;
}

.btn-hold {
    top: 445px;
}

.dice {
    position: absolute;
    left: 50%;
    top: 178px;
    transform: translateX(-50%);
    height: 100px;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.10);
    border-radius: 15px;
}

.winner {
    background-color: green;
}

.winner .player-name {
    font-weight: 300;
    color: white;
    transition: all ease-in-out 0.5s;
}

.loser {
    background-color: red;
}

.loser .player-name {
    font-weight: 300;
    color: white;
    transition: all ease-in-out 0.5s;
}

#left-player,
#right-player {
    font-size: 20px;
}