@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  height: 100vh;
  color: #333;
  background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  position: relative;
  margin: 0 1.25rem;
  width: 50rem;
  height: 30rem;
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(200px);
  filter: blur();
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
.player {
  width: 50%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  margin-bottom: 1rem;
}
.score {
  font-size: 4rem;
  font-weight: 300;
  color: #c7365f;
  margin-bottom: auto;
}
.current {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  background-color: #c7365f;
  opacity: 0.8;
  border-radius: 9px;
  color: #fff;
  width: 65%;
  padding: 2rem;
  transition: all 0.75s;
}
.player-active {
  background-color: rgba(255, 255, 255, 0.4);
  transition: 300ms ease-in-out;
}
.player-1 .current {
  opacity: 1;
}
.text-current {
  font-size: 0.8125rem;
}
.current-score {
  font-size: 1.8rem;
}
.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #444;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.6rem;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;

  background-color: white;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);

  padding: 0.7rem 2.5rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}
.btn--new {
  top: 2rem;
}
.btn--roll {
  top: 19.2rem;
}
.btn--hold {
  top: 23.05rem;
}
.dice {
  position: absolute;
  left: 50%;
  top: 12rem;
  transform: translateX(-50%);
  height: 4rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none;
}
.winner {
  color: #c7365f;
  background-color: #2f2f2f;
}
