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

* {
  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(img/back.jpg);
  background-size: cover;
  background-position: center;
  font-family: Lato;
  font-weight: 300;
  position: relative;
  height: 100vh;
  color: #555;
  display: flex;
  justify-content: center;
}

.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%;
  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: #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: #eaeaea;
}

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

.btn {
  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;
}

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

.btn:focus {
  outline: none;
}

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

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

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

.dice2 {
  position: absolute;
  left: 50%;
  top: 240px;
  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;
}

.game-notification {
  position: absolute;
  width: 100%;
  left: 50%;
  top: 65px;
  transform: translateX(-50%);
  color: #eb4d4d;
  background: none;
  border: none;
  font-family: Lato;
  font-size: 20px;
  text-align: center;
  cursor: default;
  font-weight: 300;
  transition: background-color 0.3s, color 0.3s;
}

.scoreInfo {
  position: absolute;
  width: 100%;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  color: #555;
  background: none;
  border: none;
  font-family: Lato;
  font-size: 20px;
  text-align: center;
  cursor: default;
  font-weight: 300;
  transition: background-color 0.3s, color 0.3s;
}

.scoreInfo > #winningScore {
  color: #eb4d4d;
}

.scoreInfo > #setScore {
  color: #eb4d4d;
}

.scoreInfo > #setScore:hover,
.scoreInfo > #setScore:focus {
  text-decoration: underline;
  cursor: pointer;
}

/**
  * Overlay
  */

.overlay {
  width: 600px;
  display: flex;
  justify-content: center;
  align-self: center;
  background-color: #fff;
  box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 40px;
}

.set-score {
  width: auto;
  height: 200px;
  bottom: 30px;
  color: #eb4d4d;
  text-align: center;
  font-family: Lato;
  font-size: 20px;
  font-weight: 300;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-score label {
  text-align: center;
  margin-right: 10px;
  font-size: 22px;
}

.set-score input {
  padding: 2px 1px 2px 1px;
  margin-right: 10px;
  font-size: 16px;
  color: #555;
}

.set-score input:focus,
.set-score input:active {
  outline-color: #eb4d4d;
}

.set-score .setScoreBtn {
  position: relative;
  background: #eb4d4d;
  color: #eaeaea;
  outline: none;
  padding: 6px 10px 6px 10px;
  font-size: 14px;
}

.set-score .setScoreBtn:hover {
  background: #db3d3d;
}

.set-score .setScoreBtn:focus {
  outline: 1px solid;
  outline-color: #555;
}
