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

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

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

* {
    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.4), rgba(62, 20, 20, 0.4)), url(back2.jpg);
    background-size: cover;
    background-position: center;
    font-family: Bangers;
    font-weight: 300;
    position: relative;
    height: 100vh;
    color: red;
}

.wrapper {
    width: 1200px;
    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%;
    float: left;
    height: 600px;
    padding: 100px;
}

H1 {
    position: relative;
    top: 50%;
    left: 38%;
    font-size: 60px;
    font-family: 'Bangers';
    text-align: center;
    padding-top: 80px;
    color: #fff;
    word-spacing: 2px;
    letter-spacing: 5px;
}

H2 {
    position: static;
    color: #000;
    font-family: monospace;
    text-align: center;
}

p {
    text-align: center;
}



/**********************************************
*** 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: red;
    margin-bottom: 130px;
}

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

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

.player-current-box {
    background-color: red;
    color: cornsilk;
    width: 40%;
    margin: 0 auto;
    padding: 12px;
    text-align: center;
}

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

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

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


button:hover{
    color: red;
}



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;
}

.iconify { color: red;
    display: inline-block;
    margin-right: 2px;
    font-size: 38px;
    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;}
.myBtn { top: 200px;}
.center {
    position: fixed;
    left: 33%;
    top: -56px;
}


.dice {
    position: absolute;
    left: 44%;
    top: 240px;
    transform: translateX(-50%);
    height: 100px;
}

.dice2 {
    position: absolute;
    left: 56%;
    top: 240px;
    transform: translateX(-50%);
    height: 100px;
}


.winner { background-size: 600px 600px; background-position: center; background-image: url(winner.jpg) }
.winner .player-name { font-weight: 300; color: red;}

/**************** HOW TO PLAY ****************/

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: absolute; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    color: #000;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: #000;
  float: right;
  font-size: 28px;
  font-weight: bold;
    font-family: monospace;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: red;
  color: white;
}

.modal-body {
    padding: 2px 16px;
    font-family: monospace;}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}






















