* {
  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(diceBackground.jpg);
  background-size: auto;
  background-position: 77% 35%;
  background-repeat: no-repeat;
  font-family: 'Lato';
  font-weight: 600;
  position: relative;
  height: 100vh;
  color: #555;
}

.wrapper {
  width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255, 183, 124);
  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;
}

.score-field {
  position: relative;
  top: -20%;
  left: -20%;
  font-family: 'Lato';
  letter-spacing: 2px;
}

#high-score {
  margin-top: 2%;
  margin-left: 5%;
  width: 50px;
  height: 20px;
  text-align: center;
  border-radius: 5px;
}

/* ===== 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: #eb4d4d;
  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: #eb4d4d;
  top: -7px;
  right: 10px;
}

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

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

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

.rules {
  display: none;
  width: 950px;
  padding: 50px;
  background-color: #ffe1b5;
  line-height: 3rem;
  font-size: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgb(0, 0, 0);
  border: 5px solid #eb4d4d;
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rules .bxs-x-circle {
  position: relative;
  left: 95%;
  font-size: 3rem;
}

.rules .bxs-x-circle:hover {
  cursor: pointer;
}

.highlight {
  color: rgb(255, 139, 85);
}

button {
  position: absolute;
  width: 200px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  font-family: Lato;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 10px;
  padding-top: 3px;
}

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

button:focus {
  outline: none;
}

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

.btn-rules {
  top: 30px;
}

.btn-new {
  top: 90px;
}
.btn-roll {
  top: 470px;
}
.btn-hold {
  top: 530px;
}

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

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

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