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

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

body {
    background-image: linear-gradient(rgba(62, 20, 20, 0.5), rgba(62, 20, 20, 0.5)), url(img/back2.jpg);
    background-size: contain;
    background-position: center;
    font-family: Lato;
    font-weight: 300;
    position: relative;
    height: 100vh;
    color: #555555;
}

.wrapper {
    width: 1000px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

}

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

.player-name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 2px;
    text-align: center;
    position:relative;
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
}
.active { background-color: #f7f7f7; }
.active .player-name {
    font-weight: 300;
}
.active .player-name::after {
    content: "\2022";
    font-size: 47px;
    position: absolute;
    top: -7px;
    right: 10px;
    color: #EB4D4D;

}

.player-score {
    color: #EB4D4D;
    font-size: 80px;
    font-weight: 100;
    text-align: center;
    margin-bottom:130px;
    /*margin: 5% 16%;*/
}

.player-current-box {
    background-color: #EB4D4D;
    padding: 12px;
    width: 40%;
    color: white;
    margin: 0 auto;
    text-align: center;

}

.player-current-label {
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 12px;
}

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

.active {
    background-color: #f7f7f7;
}

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

button:hover {font-weight: 600;}
button:hover i {margin-right: 20px;}
button:focus {
    outline: none;
}

i {
    margin-right: 15px;
    color: #EB4D4D;
    font-size: 32px;
    font-weight: 100;
    margin-top: -6px;
    display: inline-block;
    line-height: 1;
    vertical-align: top;
    transition: margin 0.3s;
}

.btn-new { top: 45px;}
.btn-roll { top: 403px;}
.btn-hold { top: 467px;}

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

.game-rules {
    color: gray;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.game-rules-text{
    visibility: hidden;
    position: absolute;
    z-index: 1;
    width: 400px;
    padding: 10px;
    border-radius: 6px;
    background-color: darkgray;
    color: white;
    bottom: 20px;
    right: 0px;
}
.game-rules-text li {
    padding: 4px;
}
.game-rules:hover .game-rules-text{
    visibility: visible;
}

#winning-score{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 520px;
    color: #555;
    font-size: 18px;
    font-family: 'Lato';
    text-align: center;
    padding: 10px;
    width: 160px;
    text-transform: uppercase;
}
#winning-score:focus{outline: none;}