* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

body {
  background-color: #ec9b3b;
  background-size: cover;
  background-position: center;
  font-family: "Varela Round", sans-serif;
  font-weight: 300;
  position: relative;
  height: 100vh;
  color: #393e46;
  /* Disable text selection highlighting */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  text-decoration: none;
  color: #fff;
}

.navbar {
  padding: 24px;
}

/* .social-icons {
  float: right;
  margin-left: 0.5rem;
} */

.theme-picker {
  float: left;
}

.line-2 {
  position: absolute;
  top: 70px;
}

.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: 12px;
}

.player-0-panel,
.player-1-panel {
  width: 50%;
  float: left;
  height: 600px;
  padding: 100px;
}

.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: #00818a;
  margin-bottom: 130px;
}

.active {
  background-color:#f1f1f1;
}

.active .player-name {
  font-weight: 300;
}

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

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

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

.btn {
  position: absolute;
  width: 200px;
  left: 50%;
  transform: translateX(-50%);
  color: #393e46;
  background: none;
  border: none;
  font-family: "Varela Round", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 300;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  font-weight: 600;
}

.game-controller {
  padding-top: 12px;
}

img {
  margin-right: 8px;
  float: left;
  height: 36px;
}

img.social-icons {
  height: 24px;
}

.btn-new {
  top: 45px;
}

.btn-roll {
  top: 403px;
}

.btn-hold {
  top: 467px;
}

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

.winner-yellow .player-name {
  color: #00818a;
}

.winner-blue .player-name {
  color: #ed6663;
}

.attribution {
  color: #fff;
  padding-top: 50%;
  text-align: center;
  font-size: 0.5rem;
}

/* Rule button  */
.button {
  background: #00818a;
  padding: 1em 2em;
  color: #fff;
  border: 0;
  border-radius: 12px;
}

.button:hover {
  background: #333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #f4f4f4;
  margin: 20% auto;
  width: 70%;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.2);
  animation-name: modalopen;
  animation-duration: 1s;
}

.modal-header h2,
.modal-footer h3 {
  margin: 0;
}

.modal-body {
  padding: 10px 20px;
}

.modal-footer {
  background: #00adb5;
  padding: 10px;
  color: #fff;
  text-align: center;
}

.modal-header {
  background: #00adb5;
  padding: 15px;
  color: #fff;
}

.closeBtn {
  color: #ccc;
  float: right;
  font-size: 30px;
  color: #fff;
}

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

@keyframes modalopen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}