/**********************************************
*** GENERAL
**********************************************/
.final-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;
}

#dice-1 {top: 120px;}
#dice-2 {top: 250px;}

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


.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
h1{
    text-align: center;
    font-size: 55px;
    color: white;
    font-family: 'Lato', sans-serif;
    margin-top: 30px;
    font-weight: 200;
    word-spacing: .3em;
    letter-spacing: .2em;
}

body {
    background-image: linear-gradient(rgba(62, 20, 20, 0.4), rgba(62, 20, 20, 0.4)), url(back.jfif);
    background-size: cover;
    background-position: center;
    font-family: Lato;
    font-weight: 300;
    position: relative;
    height: 100vh;
    color: #555;
}


.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.8);
    overflow: hidden;
}

.player-0-panel,
.player-1-panel {
    width: 50%;
    float: left;
    height: 600px;
    padding: 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:  #0080ff;
    margin-bottom: 130px;
}

.active { background-color: #e6f2ff; }
.active .player-name { font-weight: 300; }

.active .player-name::after {
    content: "\2022";
    font-size: 47px;
    position: absolute;
    color:  #0080ff;
    top: -7px;
    right: 10px;
    
}

.player-current-box {
    background-color:  #0080ff;
    color: #fff;
    width: 40%;
    margin: 0 auto;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
}

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

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

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 {
    color:  #0080ff;
    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: 403px;}
.btn-hold { top: 467px;}

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

.winner { background-color: #f7f7f7; }
.winner .player-name { font-weight: 300; color: #0080ff; }
/**********************************************
*** Select limit of winner
**********************************************/
.game-score-box h3{
    text-align: center;
    display: inline-block;
    margin-left: 70px;
}
.setLimitButton{
    border: 1px solid black;
}
.game-score-box{
    background-color: #f2f2f2;
    padding: 20px 0px 20px 0px;
}
.game-score-input{
    margin-left: 50%;
    padding: 4px 4px 4px 4px;
    
}
/**********************************************
*** Pop up rules
**********************************************/
#confirm {
    display: none;
    background-color: #F3F5F6;
    color: #000000;
    border: 1px solid #0080ff;
    position: fixed;
    width: 950px;
    height: 300px;
    left: 2%;
    top: 20%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
 }
 #confirm button {
    background-color: #FFFFFF;
    display: inline-block;
    border-radius: 12px;
    border: 4px solid #0080ff;
    padding: 5px;
    text-align: center;
    width: 60px;
    cursor: pointer;
 }
 #confirm .message {
    text-align: center;

 }
 .game-rules-button{
     margin-left: 1325px;
     margin-top:  300px;
     
     color: #0080ff;
     padding: 15px 15px 15px 15px;
     font-size: 20px;
 }
 .message h2{
     font-size: 30px;
     text-decoration: underline;
 }
 .message p{
    font-size: 20px;
    
}