:root {
    --player-active: #555;
    --player-0: #E82C2C;
    --player-1: #EC9625;
}

.intro {
    font-size: 18px;
    text-align: left;
    letter-spacing: 2px;
    font-weight: 600;
    line-height: 27px;
    margin: 0px 100px 150px 100px;
    position: relative;
}

.header {
	margin: 60px 80px 60px 80px;
	font-size: 40px;
	text-align: center;
	font-weight: 1000;
}

.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;
}

.final-score:focus { outline: none; }

#dice1 { top: 135px; }
#dice2 { top: 265px; }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body {
    background-size: cover;
    background-position: center;
    font-family: Lato;
    font-weight: 600;
    position: relative;
    height: 100vh;
    color: #555;
    background:linear-gradient(to right, var(--player-0), var(--player-1))
}

.body-0{
    background:linear-gradient(to right, var(--player-0), #fff);
}

.body-1{
    background:linear-gradient(to right, #fff, var(--player-1));
}



.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;
    border-radius: 26px;
}

.intro-wrapper {
    width: 750px;
    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;
    border-radius: 26px;
}

.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: 300;
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
}

.player-score {
    text-align: center;
    font-size: 80px;
    font-weight: 300;
    margin-bottom: 130px;
}


.active { background-color: #f7f7f7; }
.active .player-name { font-weight: 600; }

.active .player-name::after {
    content: "\2022";
    font-size: 47px;
    position: absolute;
    top: -7px;
    right: 10px;

}

.player-current-box-0, .player-current-box-1 {
    color: #fff;
    width: 40%;
    margin: 0 auto;
    padding: 12px;
    text-align: center;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.30);
    border-radius: 26px;
}

.player-current-box-0 {
    background-color: var(--player-0);
}

.player-current-box-1 {
    background-color: var(--player-1);
}

.player-current-label {
    text-transform: uppercase;
    margin-bottom: 4px;
    font-size: 14px;
    color: #fff;
}

.player-current-score {
    font-size: 30px;
}

button {
    color: #555;
    border: none;
    font-family: Lato;
    font-size: 20px;
    border-radius: 26px;
    text-transform: uppercase;
    transform: translateX(-50%);
    font-weight: 300;
    position: absolute;
    background: #fff;
    cursor: pointer;
    width: 200px;
    padding: 10px 10px 16px 10px;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.10);
    transition: 0.3s;
}

button:hover {
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.20);
}

button:hover i{
    font-size: 34px;
}

button:active {
    background-color: #ECECEC;
    box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.00);
}


button:focus {
    outline: none;
}

i {
    position: relative;
    color: #555;
    display: inline-block;
    margin-right: 15px;
    line-height: 1;
    transition: color 0.3s;
    bottom:-4px;
    font-size: 32px;
}

.btn-1-player{
    top: 510px;
    left: 33.33%;
}

.btn-2-player{
    top: 510px;
    left: 66.66%;
}

.btn-new {
  top: 45px;
  left: 50%;
}
.btn-roll {
  top: 400px;
  left: 50%;
}
.btn-hold {
  top: 480px;
  left: 50%;
}

.dice {
    position: absolute;
    left: 50%;
    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: 600; color: var(--player-active); }
