* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  height: 100vh;
  color: #333;
  background-color: #0177ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  position: relative;
  width: 100rem;
  height: 60rem;
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  display: flex;
}

.p {
  flex: 50%;
  padding: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.8s;
}

.name {
  position: relative;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 2px;
  font-weight: 300;
  margin-bottom: 1rem;
}

.score {
  font-size: 8rem;
  font-weight: 300;
  color: #000000;
  margin-bottom: auto;
}

.pa {
  background-color: rgba(255, 255, 255, 0.6);
}
.pa .name {
  font-weight: 700;
}
.pa .score {
  font-weight: 400;
}

.pa .current {
  opacity: 1;
}

.current {
  background-color: #00000095;
  opacity: 0.8;
  border-radius: 9px;
  color: #ffffff;
  width: 65%;
  padding: 2rem;
  text-align: center;
  transition: all 0.75s;
}

.c1 {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: #ffffff;
}

.c2 {
  font-size: 3.5rem;
}

.b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #000000;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.8rem;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  background-color: white;
  padding: 0.7rem 2.5rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.2);
}

.b_new {
  top: 4rem;
}
.b_roll {
  top: 39.3rem;
}
.b_hold {
  top: 46.1rem;
}

.b:active {
  transform: translate(-50%, 3px);
}

.dice {
  position: absolute;
  left: 50%;
  top: 16.5rem;
  transform: translateX(-50%);
  height: 10rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.p_w {
  background-color: #00000095;
}

.p_w .name {
  font-weight: 700;
  color: #c7365f;
}
.p_w .score {
  color: #c7365f;
}
.hidden {
  display: none;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body > .b_r {
  position: fixed !important;
  top: 2rem;
  right: 2rem;
  left: auto !important;
  transform: none !important;
  z-index: 1;
}

.r {
  font-size: x-large;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.r1 {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  width: 65rem;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .r1 {
    width: 80%;
    font-size: large;
  }
}
@media (max-width: 900px) {
  html {
    font-size: 55%;
  }

  main {
    width: 92%;
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
  }

  .player {
    width: 100%;
    padding: 3rem 2rem;
  }

  .name {
    font-size: 2.4rem;
    text-align: center;
  }

  .score {
    font-size: 5rem;
  }

  .current {
    width: 80%;
    padding: 1.5rem;
  }

  .c1 {
    font-size: 1.4rem;
    word-wrap: break-word;
  }

  .c2 {
    font-size: 2.5rem;
  }

  .dice {
    position: static;
    transform: none;
    height: 7rem;
    margin: 2rem 0;
  }

  .b {
    position: static;
    transform: none;
    margin: 0.8rem 0;
    font-size: 1.5rem;
    padding: 0.6rem 2rem;
  }

  .b_new {
    margin-top: 1rem;
  }
}
