@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

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

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

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  height: 100vh;
  color: #333;
  background-image: url(images/bckg_wood.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LAYOUT */
main {
  position: relative;
  width: 100rem;
  height: 60rem;
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(200px);
  filter: blur();
  box-shadow: 0 2rem 5rem rgba(12, 17, 94, 0.486);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
}

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

  background-image: url(images/bck_player.jpg);
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
}

/* ELEMENTS */
.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: #c7365f;
  margin-bottom: auto;
}

.player--active h2 {
  background-color: #c7365f33;
  width: 100%;
  text-align: center;
}
.player--active .name {
  font-weight: 700;
}
.player--active .score {
  font-weight: 400;
}

.player--active .current {
  opacity: 1;
}

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

.current-label {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: #ddd;
}

.current-score {
  font-size: 3.5rem;
}

/* ABSOLUTE POSITIONED ELEMENTS */
.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255, 255, 255);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 2rem;
  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: 5px;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}

.btn--new {
  top: 0px;
  right: 0;
  background-color: rgb(98, 156, 40);
}
.btn--new:hover {
  background-color: rgb(151, 212, 89);
}
.btn--roll {
  top: 40.3rem;
  background-color: rgb(247, 130, 35);
}
.btn--roll:hover {
  background-color: rgb(255, 157, 76);
}
.btn--hold {
  top: 45.1rem;
  background-color: rgb(207, 33, 33);
}
.btn--hold:hover {
  background-color: rgb(255, 76, 76);
}
.btn:active {
  transform: translate(-50%, 3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.btn:focus {
  outline: none;
}

.dice {
  position: absolute;
  left: 50%;
  top: 22rem;
  transform: translateX(-50%);
  height: 110px;
  border-radius: 10px;
  box-shadow: 0 2rem 5rem rgba(12, 17, 94, 0.486);
}
.trophy {
  position: absolute;
  left: 50%;
  top: 20rem;
  transform: translateX(-50%);
  height: 450px;
  border-radius: 10px;
}

.player--winner h2 {
  background-color: #b2fa82;
  box-shadow: 1px 1rem 2rem #b2fa82;
  width: 80%;
  text-align: center;
}
.player--winner .score {
  color: #9ce76a;
  font-weight: 600;
  text-align: center;
}

.player--winner .name {
  font-weight: 700;
  color: #29570a;
}

.hidden {
  display: none;
}
