@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: beige;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  font-weight: 300;
  height: 100vh;
}

/*************************************/
/*             General               */
/*************************************/

.container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 50px;
}

.player-0-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: white;
}

.player-1-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: white;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 80%;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}

/*************************************/
/*             Button                */
/*************************************/

button {
  width: 200px;
  color: #555555;
  background: none;
  border: none;
  font-size: 100%;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 300;
  transition: backgroun-color 0.3s, color 0.3s;
}

button:hover {
  font-weight: 600;
}
button:focus {
  outline: none;
}
.center .btn-roll,
.center .btn-hold,
.center .final-score {
  margin-bottom: 10px;
}

.center .final-score {
  text-align: center;
  border: none;
}

.center .final-score:focus {
  background-color: wheat;
  outline: none;
  border-bottom: 1px solid red;
}

.btn-new {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: 5%;
}

/*************************************/
/*             Icons                 */
/*************************************/

.small-icon {
  color: #eb4d4d;
  display: inline-block;
  font-size: 200%;
  line-height: 1;
  vertical-align: text-top;
  margin-right: 15px;
  margin-top: -10px;
  transition: margin 0.3s;
}

/*************************************/
/*             Dice                  */
/*************************************/

.dice {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: 50%;
  height: 100px;
  box-shadow: 0px 10px 20px rgb(0, 0, 0);
  border-radius: 10%;
}
.dice2 {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: 30%;
  height: 100px;
  box-shadow: 0px 10px 20px rgb(0, 0, 0);
  border-radius: 10%;
}

/*************************************/
/*            Players                */
/*************************************/
.player-name {
  font-size: 200%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 100;
  margin-top: 20px;
  margin-bottom: 10px;
  position: relative;
}

.active {
  background-color: #f7f7f7;
}
.active .player-name {
  font-weight: 400;
}

.active .player-name::after {
  content: "\2022";
  font-size: 120%;
  position: absolute;
  color: #eb4d4d;
  top: -7px;
}

.player-score {
  text-align: center;
  font-size: 400%;
  font-weight: 100;
  color: #eb4d4d;
  margin-bottom: 130px;
}

.player-current-box {
  background-color: #eb4d4d;
  color: #fff;
  width: 20%;
  margin: 0 auto;
  padding: 12px;
  text-align: center;
}

.player-current-label {
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 12px;
  color: #fff;
}
.player-current-score {
  font-size: 150%;
}

.winner {
  background-color: #fff;
}
.winner .player-name {
  font-weight: bold;
  color: #eb4d4d;
}
